[MOD] HULU Flash Hack - Flashex 2.05(5/2/12) Auto Hex-edit libflashplayer.so

Search This thread

NoSudo

Senior Member
Feb 2, 2012
187
95
Kalifornia
FLASHEX 2.05 (unified release 4)(Release Date: 5/2/2012)


Description
Flashex is designed to allow people using an Android device to watch hulu and some other restricted sites with Adobe Flash Player and a properly configured web browser as if it was a Windows PC. Dolphin HD Stock Browser(choose "request desktop site" in menu each time) is a good choice but any browser that allows you to act as Desktop via settings should work.

Note: Dolphin HD has some issues with full screen video at the moment so I have switched over to useing the stock browser and selecting "request desktop site" from the upper right-hand menu for now this works and has good full screen performance on FlexReaper and Stock ICS 4.0.3.

How it works
The script will look for libflashplayer.so then attempt to create a copy, edit the copy, and copy the edited version back. It stores the edited copy, and writes it over the default file each time it's run. It will check the version of the current libflashplayer.so file each time before it copies the edited version over. If libflashplayer.so's version has been upgraded or downgraded it will make a new copy, edit, write it back and store the new one to use each time. I suggest using Script Manager to run the script at boot once you run it the first time manually to make the first edited copy.

What's New in Version 2.05?

-Added a few more checks for libflashplayer.so to help improve troubleshooting and configuring on different ROMs and to eliminate the possibility of a hang if libflashplayer.so is not readable.
(Still waiting on feed back and/or -x mode debug output reports. feel free post them or better yet PM them to me)


What's New in Version 2.04?

-Added support for Custom BusyBox from CynogenMod (BusyBox 1.19.4-cm9) when testing the Busybox version

What's New in Version 2.03?

-Added checks to verify Busybox location, permisssions, and version to verify compatability and inform the user if they need to update/reinstall busybox or make a configuration change.

-Various minor refinements.

-Can now safely be test run on ANY device since it will verify the location of all required elements prior to performing any task.
NOTE: This doesnt mean it will enable hulu on an old 500mhz 2.2 device, just that it should be safe to use to modify Adobe Flash on any device capable of properly running it.(If your Adobe Flash is installed in a diffrent location you will need to configure the script to point it's install directory, or put a copy of your libflashplayer.so file into the Flashex2 directory and name it AND_libflashplayer.so and copy the resulting WIN_libflashplayer.so back by hand if you prefer.)

What was new in Version 2.02?

-Fixed various typoes in output messages

-Added a fix for people having issues with strings, grep etc returning as not found when /system/xbin is either not in the users default $PATH or is too low in the list to get used.

What was new in Version 2.01?

-Many minor bug fixes

-Scripts have been unified into a single script.

-Made some changes to how version checking is done

-Script is safer, more reliable, and easier to use over all.(at least IMO hehe)

-Automatic re-edit of edited source file, when either an upgrade or downgrade is detected. This allows the script to be run at boot via Script Manager, or other while still leaving, Adobe Flash to auto update.

-Script is now a single executable file that will both hex edit Adobe Flash(each update), and copy the edited file over to /data when needed.

-Improved version detection

-Improved output messages

Some notes on running during bootup
Once you have decompressed the Flashex2 folder and flashex.sh script to /mnt/sdcard/Flashex2 you will be able to run it automatically at boot via Script Manager if you wish. I currently have been using it this way. I have tested it performing the hexedit during a boot up. It works fine.

Known Limitation
Note: This only applies to auto-running the script via Script Manager, Cron, what ever It takes about 2 minutes with a Tegra 2 to complete the hexedit of the file.
Because of this when booting after an update to libflashplayer.so it will be editing the file for a min or two after your home screen shows. You will want to wait 3 min or so to be safe before you try to use Adobe Flash. This will ONLY happen when the version changes. Since Adobe Flash isn't changed that often it's not a big deal.

The rest of the time, it will be the same version so it will just take a few seconds to copy the file over. This allows you to just watch when you like even right after a system boot.

Install Instructions

Quick Directions:
Download file, unzip/extract the Flashex2 folder and it's contents, copy it to the sdcard to end up with /mnt/sdcard/Flashex2/flashex.sh. Run flashex.sh as root. Set web browser to Desktop. Enjoy watching hulu.

Full Directions:

When using Flashex205.zip via a File Manager like Astro for example.
1) Either download Flashex204b.zip directly to your tablet, or copy it to a micro SD card via PC.(note: you could unzip the contents in Windows if you prefer)

2) Save, Copy or Move Flashex205.zip to /mnt/sdcard/ It has a folder inside already of the correct name.

3) Open Flashex205.zip, then copy/paste the whole folder to /mnt/sdcard/
Note: After you do this you should have a folder named Flashex2 on your internal sdcard example: /mnt/sdcard/Flashex2

4) Inside the Flashex2 folder from the zipfile is flashex.sh

5) run flashex.sh either via terminal emulator or with an app like Script Manager.

The script "can" be run without root, BUT it will only make the hexedited file. It MUST be run as root if you also want the script to install the edited file so you can watch hulu. You can also copy the file by hand.

When using flashex205.tar.gz via a terminal emulator do the following.

1) Either download the file directly to your tablet, or copy it to a micro SD card.

2) Copy or Move the file to /mnt/sdcard/
example(copy): cp /mnt/external_sd/flashex205.tar.gz /mnt/sdcard/
example(move): mv /mnt/external_sd/flashex205.tar.gz /mnt/sdcard/

3) unzip and untar the Flashex folder and flashex.sh script from flashex205.tar.gz
gzip -d /mnt/sdcard/flashex205.tar.gz
tar -xvf /mnt/sdcard/flashex205.tar

Note: If you get an error saying not found. Your trying to install it in a diffrent location then it's currently configured you can probably figure out how to make it work easy enough. Just remember to set the path to the script inside the script it's self so it knows where make/read the edited file.

4) Now change working directories and run the script.
cd /mnt/sdcard/Flashex2

5) Run the script(su is optional, but running as root it wont copy the edited file over)
su
sh flashex.sh

Note: I suggest using sh before the script name though it's not nessesary if the path to sh at the top of the script matches yours.


Confirmed Compatable Device List(Make sure you are rooted if you want to use the script to install the modified file)

Acer Iconia A100, A200, A500 HC or ICS, FlexReaper ------ Use Latest Version
Samsung Galaxy S 4G rooted modified Gingerbread 2.3 --- Use Latest Version
Samsung Galaxy Nexus LTE ----------------------------------- Use Latest Version
Asus Eepad Transformer Prime ------------------------------- Use Version 2.2 or Latest Version
Motorola Droid Razr ------------------------------------------- Use Latest Version
HTC EVO 3D --------------------------------------------------- Use Latest Version
HTC EVO 4G running mikg v11 ------------------------------- Use Latest Version

Note: Any Device that is compatable with Adobe Flash and capable of playing hulu videos(500 Mhz or better ARM7 CPU 256 MB ram, Android 2.2 or better) that has been rooted and has busybox installed should be compatable

If you are attempting to use a Busybox older then v1.18.1 You will have to change a value at the top of the script before attempting to run it since I'm not sure how old of versions are 100% compatible.
===============================================
ATTN: SUPPORT, QUESTIONS, COMMENTS
If you need help getting it to work for your device and cant post in this section you can follow this
->SUPPORT LINK HERE

You can PM me or you can also try me on Twitter

Legal Info
Flashex205.sh was made by NoSudo for personal use
anyone may use it or change it but I retain creative
licence for my work. You should only take credit for your
changes.

I take no reponsablility for anyone elses actions. If you break
something or violate any rules it's on you.

If you wish to try and make money on it or use it for any comercial
venture I expect to be contacted and informed so I may negociate
an acceptable for profit licence with compensation.

This software is FREE and yours to enjoy, give away, edit, use for Non-Profit purposes ONLY.

A NOTE ON VERSIONS!
I recommend the use of the latest version Flashex204.sh. If you have old versions installed. MAKE SURE YOU RUN THE RIGHT ONE. It's up you to reconfigure Script Manager etc. so don't forget or it will keep running the old one.

ALSO Please remember to hit that Thanks button if you find my script useful.
 

Attachments

  • flashex202b.tar.gz
    8 KB · Views: 485
  • Flashex202b.zip
    11 KB · Views: 803
  • flashex203b.tar.gz
    8.9 KB · Views: 54
  • Flashex203b.zip
    12.3 KB · Views: 102
  • flashex204b.tar.gz
    9 KB · Views: 87
  • Flashex204b.zip
    12.4 KB · Views: 620
  • Flashex205.zip
    12.7 KB · Views: 5,042
  • flashex205.tar.gz
    9.2 KB · Views: 1,428
  • Readme.txt
    7.4 KB · Views: 616
Last edited:

NoSudo

Senior Member
Feb 2, 2012
187
95
Kalifornia
I have been doing a little version testing.

I can confirm that flashex v2.01 does edit other versions so far I have tested it with. I just tested with 11.1.115.7 and it works fine via xxd. Im going to test on Android with Busybox's hexdump next.

I can also confirm that it works on 11.1.111.8 since my tablet just auto-updated. I simply ran the script and updated my hexed version from 11.1.111.7 to 11.1.111.8 as designed.:D
 
Last edited:
  • Like
Reactions: Joecascio2000

Joecascio2000

Senior Member
Just tried the new version and still a no go. See the pic for the full error.

Ran with terminal emulator, gscript, and root explorer. Same error for all.

And you have the .so file from the old version thread.

.so path: /data/data/com.adobe.flashplayer/lib/libflashplayer.so

ICS Leak .012.
busybox 1.19.3
 
  • Like
Reactions: NoSudo

NoSudo

Senior Member
Feb 2, 2012
187
95
Kalifornia
Just tried the new version and still a no go. See the pic for the full error.

Ran with terminal emulator, gscript, and root explorer. Same error for all.

And you have the .so file from the old version thread.

.so path: /data/data/com.adobe.flashplayer/lib/libflashplayer.so

ICS Leak .012.
busybox 1.19.3

Weard here is the output I got running a test edit. I used the same 2.01 script just modified so it doesn't write to my adobe flash. Kind of sandbox I guess. As you can see it reads and edits it fine. I'll look some more.:confused:

Command: '/mnt/sdcard/FLASHEX2_vtest/flashex_vtest.sh'
-------------
Out: $ exec sh '/mnt/sdcard/FLASHEX2_vtest/flashex_vtest.sh'
=================================================
Source Files Doesn't Exist

Destination File: /mnt/sdcard/FLASHEX2_vtest/DST/libflashplayer.so
Destination Ver: Adobe Flash says AND(Androiud) v1111157
Detected READ access for /mnt/sdcard/FLASHEX2_vtest/DST/libflashplayer.so

Created /mnt/sdcard/FLASHEX2_vtest/cache Sucessfully... Checking...
/mnt/sdcard/FLASHEX2_vtest/DST/libflashplayer.so preparing to copy and edit file........
Copy: /mnt/sdcard/FLASHEX2_vtest/cache/libflashplayer_PREMOD looks good =================================================
Preparing to create a hexdump.........
Dont panic...This could take over a minute on a Tegra 2..
Its Converting an 8MB or so Binary on a little tablet...Just wait its fine Created a hexdump of /mnt/sdcard/FLASHEX2_vtest/cache/libflashplayer_PREMOD
=================================================
Preparing to edit /mnt/sdcard/FLASHEX2_vtest/cache/libflashplayer_HEXDUMP..
This might take a minute too.... /mnt/sdcard/FLASHEX2_vtest/cache/libflashplayer_HEXDUMP has been edited... =================================================
Converting /mnt/sdcard/FLASHEX2_vtest/cache/libflashplayer_EDITED to binary...
Binary File: /mnt/sdcard/FLASHEX2_vtest/WIN_libflashplayer.so created...
Checking Binary file /mnt/sdcard/FLASHEX2_vtest/WIN_libflashplayer.so... =================================================
HEXEDIT SUCCESSFUL File: /mnt/sdcard/FLASHEX2_vtest/WIN_libflashplayer.so now reads as Version: WIN 11,1,115,7


Sent from my A100 using XDA
 
Last edited:

NoSudo

Senior Member
Feb 2, 2012
187
95
Kalifornia
I'm at a bit of a loss as to why it's not working for you Joecascio2000. I'm still looking into it.

I can confirm if I copy your libflashplayer.so v 11.1.115.7 to my device and run the script on it. I AM able to edit the file and get a good binary at the end. I was able to run it via Terminal IDE, Terminal Emulator, and Script Manager.

Going by the error your getting I would say the issue could be related to Busybox. I know you say you have 1.19.3(same as mine)

what happens if you try this from a Terminal

strings /data/data/com.adobe.flashplayer/lib/libflashplayer.so | grep "AND 1[0-2],[0-9]*"

You should get back a list of strings out of the binary, and one of them should say something like "AND 11,1,115,7"

If that doesnt return the correct line, what does this return

strings /data/data/com.adobe.flashplayer/lib/libflashplayer.so | grep "AND 1"

This should return "AND 11,1,115,7" if it doesn't then I would take a closer look at your strings, and grep binaries which would indicate a possible issue with your copy of Busybox or maybe your $PATH as it could effect what version gets used when running a shell command.

I still feel very confused by it working on my device and not on yours with the same file. However I also feel confident that since it works on my A100 we can get it working on yours too without much hassle. We just need to figure out what the deal is.
 

Joecascio2000

Senior Member
Sent from my A100 using XDA

Yeah so weird. I just tried it again after uninstalling flash and re-installing it. Same error. Maybe I'm executing it wrong. This is what I put:

su
sh /mnt/sdcard/Flashex2/flashex201.sh

It does seem to work, just give me an error with the .so file.

EDIT: and both string lines return "no such file or director". I just copy and pasted them in, maybe I did something wrong?...maybe its busybox...?
 
Last edited:

NoSudo

Senior Member
Feb 2, 2012
187
95
Kalifornia
I just copy and pasted them in, maybe I did something wrong?
copy and past of the strings command above should work yes. You can even just run the following

strings /data/data/com.adobe.flashplayer/lib/libflashplayer.so

If that give you bad command or something then you have an issue with either Busybox or your $PATH

$PATH is a special variable that unix/linux/android uses to store the locations of programs like grep, strings, etc. It specifies various directories commands are stored in. If the directory strings is stored in IS NOT in your path the script will not be able to access the command, so I can't say at this point which issue it in fact is, but I'm 99% sure it's one of those two things at this point.

That error is kinda old and can be erroneous. I'll look at that area a little closer later and see.

If you rerun the script after a successful edit it will tell you if it was successful BTW. If /data/data/com.adobe.flashplayer/lib/libflashplayer.so is already edited and is the same version as the WIN_libflashplayer.so Source file it will just print out a message that displays the actual version string from inside both files. The output will look somthing like this

Source File: /2.01FLASHEX_Dev/Lib_Version_Testing/WIN_libflashplayer.so
Source Ver: Adobe Flash says WIN(Windows) v1111157

Destination File: /2.01FLASHEX_Dev/Lib_Version_Testing/DST/libflashplayer.so
Destination Ver: Adobe Flash says WIN(Windows) v1111157

=================================================
It looks like you dont need make any further changes at this time.
Make sure you have set your browser to Desktop in settings(try Dolphin HD)
a
 
Last edited:

NoSudo

Senior Member
Feb 2, 2012
187
95
Kalifornia
Yeah so weird. I just tried it again after uninstalling flash and re-installing it. Same error. Maybe I'm executing it wrong. This is what I put:

su
sh /mnt/sdcard/Flashex2/flashex201.sh

It does seem to work, just give me an error with the .so file.

EDIT: and both string lines return "no such file or director". I just copy and pasted them in, maybe I did something wrong?...maybe its busybox...?

It could be. If you don't have a "strings" command the script wont work for you in it's current state. I made extensive use of strings to read info out of the binary files for version checking and to confirm the edit.

The error you got is something you could get from no strings command. It could also just be that the location "strings" is installed if it IS NOT in your $PATH for your ENV this would be a simple fix, in fact I'm tempted to add a PATH="" export PATH line back into the script just in case of stuff like this. I had removed it thinking it overkill.

Two diffrent folks seem to have a Busybox installer available via play.google.com. I use the one from J Rummy because it's only 1.99 for the Pro version instead of 4.99 and so far it has all the features I want and even has 1.19.4 available currently. It sounds like you may just need to figure out the location of the strings command and make sure that directory is exported as part of your $PATH. Let me know if would like assistance figuring this out.
 

Joecascio2000

Senior Member
It could be. If you don't have a "strings" command the script wont work for you in it's current state. I made extensive use of strings to read info out of the binary files for version checking and to confirm the edit.

The error you got is something you could get from no strings command. It could also just be that the location "strings" is installed if it IS NOT in your $PATH for your ENV this would be a simple fix, in fact I'm tempted to add a PATH="" export PATH line back into the script just in case of stuff like this. I had removed it thinking it overkill.

Two diffrent folks seem to have a Busybox installer available via play.google.com. I use the one from J Rummy because it's only 1.99 for the Pro version instead of 4.99 and so far it has all the features I want and even has 1.19.4 available currently. It sounds like you may just need to figure out the location of the strings command and make sure that directory is exported as part of your $PATH. Let me know if would like assistance figuring this out.

When I open terminal emulator the first line reads:

app_196@android:/ $ export PATH=/data/local/bin: $PATH

Also, I can't update busybox because for my current root method 1.19.3 is required.
 

NoSudo

Senior Member
Feb 2, 2012
187
95
Kalifornia
When I open terminal emulator the first line reads:

app_196@android:/ $ export PATH=/data/local/bin: $PATH

Also, I can't update busybox because for my current root method 1.19.3 is required.

You don't need a newer version of Busybox I'm running the same version.

it's your $PATH I will post an updated version that includes an Export PATH line to resolve after I eat some dinner.

for now you can copy/paste this into a terminal before running the script. Im guessing if you run that, then the script it will work

PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/system/sbin:/system/xbin:/system/bin:/data/local/bin:/vendor/bin; export PATH
 
Last edited:

Joecascio2000

Senior Member
Darn...still isn't working. Lol my tab hates me. See the pic I think its a little different.

here's a link the one below is a little low res: http://i.imgur.com/uP9ZR.png
 

Attachments

  • Screenshot_2012-03-28-19-06-21.jpg
    Screenshot_2012-03-28-19-06-21.jpg
    22 KB · Views: 315

NoSudo

Senior Member
Feb 2, 2012
187
95
Kalifornia
Darn...still isn't working. Lol my tab hates me. See the pic I think its a little different.

here's a link the one below is a little low res: http://i.imgur.com/uP9ZR.png

It looks like you might still be missing the strings command. Because it doesnt look like anything is getting passed to grep. It looks like strings didnt run, so grep tried to look for the search expression as a file name.

what do you get if you type

ls -la /system/xbin/strings

or even just

ls -la /system/xbin

I show a symbolic link for /system/xbin/strings that points to Busybox. If it's in another location with your version of Busybox you just need to make sure the strings command is located in the path you use.

If you dont have a strings command at all for some reason since you have the same version of Busybox 1.19.3 you should be able to just make a Symbolic Link in /system/xbin(or what ever space you are configured to use) called strings that points to busybox. All those buxybox commands are symlinks to the same binary file in reality.
 

Joecascio2000

Senior Member
It looks like you might still be missing the strings command. Because it doesnt look like anything is getting passed to grep. It looks like strings didnt run, so grep tried to look for the search expression as a file name.

what do you get if you type

ls -la /system/xbin/strings

or even just

ls -la /system/xbin

I show a symbolic link for /system/xbin/strings that points to Busybox. If it's in another location with your version of Busybox you just need to make sure the strings command is located in the path you use.

If you dont have a strings command at all for some reason since you have the same version of Busybox 1.19.3 you should be able to just make a Symbolic Link in /system/xbin(or what ever space you are configured to use) called strings that points to busybox. All those buxybox commands are symlinks to the same binary file in reality.

Both commands showed: not found, however, I looked in /system/xbin/ and busybox and strings are in that folder. Also, right under strings is ( -> busybox )
 

NoSudo

Senior Member
Feb 2, 2012
187
95
Kalifornia
Both commands showed: not found, however, I looked in /system/xbin/ and busybox and strings are in that folder. Also, right under strings is ( -> busybox )

Yep the

strings --> busybox

is the way strings and the other Busybox commands look the
"--> Busybox" is to show what it links to, but the name is still strings. It's sorta like a shortcut in windows in a way.

Anyway that means you should be able to use strings try copy/paste this before you run the script in the same terminal.

PATH=$PATH:/system/xbin; export PATH

that take what ever you currently have for a $PATH and add /system/xbin to it

you can view your $PATH by typing

echo $PATH

Either way if your Busybox is properly installed into /system/xbin this should return a few lines out the binary. Just to confirm it's a working command on your system.

/system/xbin/strings /data/data/com.adobe.flashplayer/lib/libflashplayer.so | grep "AND"

I will come up with an up date to check for the location of Busybox and use hard paths for the commands, later in the week. That should avoid this issue coming up in the future.
 

NoSudo

Senior Member
Feb 2, 2012
187
95
Kalifornia
First off thank you for helping with my pain-in-the-you-know-what tablet.
But sadly still a no go. I did get some more info though: http://i.imgur.com/oVxBz.png

It showed AND 11,1,115,7.

I think it's either the way I'm putting in the commands or the way my tab is rooted.

First off, Your very welcome. I actually enjoy this kinda stuff as long as I have time.

Next, Since it DID respond with AND 11,1,115,7 I am sure you CAN use the script, once updated. I will be working on an update this weekend. I may have a revised version made today, if I get an extra hour to dedicate to make the changes.

The issue seems to be, for what ever reason your device is having an issue with /system/xbin not being in your PATH or PATH and ENV not working as it should, BUT since /system/xbin/busybox and the symlink /system/xbin/strings both work when you type the full path, it's not a big deal.

I'm also going to try to write in a feature to test the location and version of Busybox and make sure it lists "strings" as a defined function, so the script can identify and resolve the issue when possible.
 

NoSudo

Senior Member
Feb 2, 2012
187
95
Kalifornia
Updated Version should resolve any issues with the script not being able to use strings, grep etc on some systems.

Also check here for information on configuring Terminal Emulator to work correctly with Busybox. This I belive would get the old script working for those that had issues also for what it's worth.
 

Joecascio2000

Senior Member
Updated Version should resolve any issues with the script not being able to use strings, grep etc on some systems.

Also check here for information on configuring Terminal Emulator to work correctly with Busybox. This I belive would get the old script working for those that had issues also for what it's worth.

This is with the new version 2.02 and after configuring Terminal Emulator:
http://i.imgur.com/Rb458.png
 

NoSudo

Senior Member
Feb 2, 2012
187
95
Kalifornia
This is with the new version 2.02 and after configuring Terminal Emulator:
http://i.imgur.com/Rb458.png

Man I am at a total loss as to what your system is doing. That just doesn't make any sense at all. Are you running the script or Copy/Pasting lines into Terminal? What Busybox are you running anyway, not the version where did you get it? It seems totally defective honestly.

The script should work fine for you at this point TBH. Heck it works for me on my Linux PC too when I change the paths, and swap out xxd for hexdump and change the pattern format.

At this point I can only conclude that either you have a bad version of Busybox or you are doing something wrong.

Here is an example of what I mean

BUSYBOXPATH="/system/xbin"
if [ -e "$BUSYBOXPATH/busybox" ]&&[ -e "$BUSYBOXPATH/grep" ]; then
echo "Found BusyBox in $BUSYBOXPATH"
BSYBX_VER=`$BUSYBOXPATH/busybox | $BUSYBOXPATH/grep "BusyBox v"`
echo "Version: $BSYBX_VER"
else
echo "Unable to confirm location of BusyBox, please configure the script"
exit 3
fi

This statement says if /system/xbin/busybox and /system/xbin/busybox exist to echo "Found" etc.

Your output has those lines, so those commands HAVE to exist in those locations or it would respond with
Unable to confirm location of BusyBox, please configure the script.

However the script is unable to read the Version line off busybox because busybox isnt spitting out anything or maybe it's been modified and no longder displays the correct response. Again even a Desktop PC with Linux on it get's this response from Busybox.

What happens when you just type

/system/xbin/busybox

Do you get anything?

You should get something like;


$ busybox
BusyBox v1.19.3 (2011-11-22 01:37:10 MST) multi-call binary
Copyright (C) 1998-2011 Erik Andersen, Rob Landley, Denys Vlasenko
and others. Licensed under GPLv2.
See source distribution for full notice.

Usage: busybox [function] [arguments]...
or: function [arguments]...

BusyBox is a multi-call binary that combines many common Unix
utilities into a single executable. Most people will create a
link to busybox for each function they wish to use and BusyBox
will act like whatever it was invoked as!

Currently defined functions:
[, [[, addgroup, adduser, adjtimex, ar, arping, ash, awk,
basename, brctl, bunzip2, bzcat, bzip2, cal, cat, chgrp,
chmod, chown, chroot, chvt, clear, cmp, cp, cpio, crond,
crontab, cut, date, dc, dd, deallocvt, delgroup, deluser,
df, dirname, dmesg, dos2unix, dpkg, dpkg-deb, du, dumpkmap,
echo, ed, egrep, eject, env, expand, expr, false, fbset,
fdflush, fdisk, fgrep, find, fold, free, freeramdisk, fsck.minix,
ftpget, ftpput, getopt, getty, grep, gunzip, gzip, halt,
head, hexdump, hostid, hostname, httpd, hwclock, id, ifconfig,
ifdown, ifup, init, ip, ipcalc, kill, killall, klogd, last,
length, less, linuxrc, ln, loadfont, loadkmap, logger, login,
logname, logread, losetup, ls, lzmacat, makedevs, md5sum,
mdev, mesg, microcom, mkdir, mkfifo, mkfs.minix, mknod,
mkswap, mktemp, more, mount, mt, mv, nameif, nc, netstat,
nslookup, od, openvt, passwd, patch, pidof, ping, ping6,
pivot_root, poweroff, printf, ps, pwd, rdate, readlink,
realpath, reboot, renice, reset, rm, rmdir, route, rpm,
rpm2cpio, run-parts, sed, setkeycodes, sh, sha1sum, sleep,
sort, start-stop-daemon, static-sh, strings, stty, su, sulogin,
swapoff, swapon, sync, syslogd, tac, tail, tar, tee, telnet,
telnetd, test, tftp, time, top, touch, tr, traceroute, true,
tty, udhcpc, umount, uname, uncompress, unexpand, uniq,
unix2dos, unlzma, unzip, uptime, usleep, uudecode, uuencode,
vconfig, vi, vlock, watch, watchdog, wc, wget, which, who,
whoami, xargs, yes, zcat

Note: Busybox in Android will have a slightly diffrent list of functions but the version line etc is the same.
 
Last edited:

Joecascio2000

Senior Member
Man I am at a total loss as to what your system is doing. That just doesn't make any sense at all. Are you running the script or Copy/Pasting lines into Terminal? What Busybox are you running anyway, not the version where did you get it? It seems totally defective honestly.

The script should work fine for you at this point TBH. Heck it works for me on my Linux PC too when I change the paths, and swap out xxd for hexdump and change the pattern format.

At this point I can only conclude that either you have a bad version of Busybox or you are doing something wrong.

The command I'm using is
Su
Sh /mnt/sdcard/flashex2/flashex202.sh

I think it might be my version of busybox. I think its a modified version because rooting ICS on the a100 was a difficult process. It also says not to update busybox because root will be broken.

Sent from my A100 using XDA Premium HD app
 
  • Like
Reactions: NoSudo

Top Liked Posts

  • There are no posts matching your filters.
  • 27
    FLASHEX 2.05 (unified release 4)(Release Date: 5/2/2012)


    Description
    Flashex is designed to allow people using an Android device to watch hulu and some other restricted sites with Adobe Flash Player and a properly configured web browser as if it was a Windows PC. Dolphin HD Stock Browser(choose "request desktop site" in menu each time) is a good choice but any browser that allows you to act as Desktop via settings should work.

    Note: Dolphin HD has some issues with full screen video at the moment so I have switched over to useing the stock browser and selecting "request desktop site" from the upper right-hand menu for now this works and has good full screen performance on FlexReaper and Stock ICS 4.0.3.

    How it works
    The script will look for libflashplayer.so then attempt to create a copy, edit the copy, and copy the edited version back. It stores the edited copy, and writes it over the default file each time it's run. It will check the version of the current libflashplayer.so file each time before it copies the edited version over. If libflashplayer.so's version has been upgraded or downgraded it will make a new copy, edit, write it back and store the new one to use each time. I suggest using Script Manager to run the script at boot once you run it the first time manually to make the first edited copy.

    What's New in Version 2.05?

    -Added a few more checks for libflashplayer.so to help improve troubleshooting and configuring on different ROMs and to eliminate the possibility of a hang if libflashplayer.so is not readable.
    (Still waiting on feed back and/or -x mode debug output reports. feel free post them or better yet PM them to me)


    What's New in Version 2.04?

    -Added support for Custom BusyBox from CynogenMod (BusyBox 1.19.4-cm9) when testing the Busybox version

    What's New in Version 2.03?

    -Added checks to verify Busybox location, permisssions, and version to verify compatability and inform the user if they need to update/reinstall busybox or make a configuration change.

    -Various minor refinements.

    -Can now safely be test run on ANY device since it will verify the location of all required elements prior to performing any task.
    NOTE: This doesnt mean it will enable hulu on an old 500mhz 2.2 device, just that it should be safe to use to modify Adobe Flash on any device capable of properly running it.(If your Adobe Flash is installed in a diffrent location you will need to configure the script to point it's install directory, or put a copy of your libflashplayer.so file into the Flashex2 directory and name it AND_libflashplayer.so and copy the resulting WIN_libflashplayer.so back by hand if you prefer.)

    What was new in Version 2.02?

    -Fixed various typoes in output messages

    -Added a fix for people having issues with strings, grep etc returning as not found when /system/xbin is either not in the users default $PATH or is too low in the list to get used.

    What was new in Version 2.01?

    -Many minor bug fixes

    -Scripts have been unified into a single script.

    -Made some changes to how version checking is done

    -Script is safer, more reliable, and easier to use over all.(at least IMO hehe)

    -Automatic re-edit of edited source file, when either an upgrade or downgrade is detected. This allows the script to be run at boot via Script Manager, or other while still leaving, Adobe Flash to auto update.

    -Script is now a single executable file that will both hex edit Adobe Flash(each update), and copy the edited file over to /data when needed.

    -Improved version detection

    -Improved output messages

    Some notes on running during bootup
    Once you have decompressed the Flashex2 folder and flashex.sh script to /mnt/sdcard/Flashex2 you will be able to run it automatically at boot via Script Manager if you wish. I currently have been using it this way. I have tested it performing the hexedit during a boot up. It works fine.

    Known Limitation
    Note: This only applies to auto-running the script via Script Manager, Cron, what ever It takes about 2 minutes with a Tegra 2 to complete the hexedit of the file.
    Because of this when booting after an update to libflashplayer.so it will be editing the file for a min or two after your home screen shows. You will want to wait 3 min or so to be safe before you try to use Adobe Flash. This will ONLY happen when the version changes. Since Adobe Flash isn't changed that often it's not a big deal.

    The rest of the time, it will be the same version so it will just take a few seconds to copy the file over. This allows you to just watch when you like even right after a system boot.

    Install Instructions

    Quick Directions:
    Download file, unzip/extract the Flashex2 folder and it's contents, copy it to the sdcard to end up with /mnt/sdcard/Flashex2/flashex.sh. Run flashex.sh as root. Set web browser to Desktop. Enjoy watching hulu.

    Full Directions:

    When using Flashex205.zip via a File Manager like Astro for example.
    1) Either download Flashex204b.zip directly to your tablet, or copy it to a micro SD card via PC.(note: you could unzip the contents in Windows if you prefer)

    2) Save, Copy or Move Flashex205.zip to /mnt/sdcard/ It has a folder inside already of the correct name.

    3) Open Flashex205.zip, then copy/paste the whole folder to /mnt/sdcard/
    Note: After you do this you should have a folder named Flashex2 on your internal sdcard example: /mnt/sdcard/Flashex2

    4) Inside the Flashex2 folder from the zipfile is flashex.sh

    5) run flashex.sh either via terminal emulator or with an app like Script Manager.

    The script "can" be run without root, BUT it will only make the hexedited file. It MUST be run as root if you also want the script to install the edited file so you can watch hulu. You can also copy the file by hand.

    When using flashex205.tar.gz via a terminal emulator do the following.

    1) Either download the file directly to your tablet, or copy it to a micro SD card.

    2) Copy or Move the file to /mnt/sdcard/
    example(copy): cp /mnt/external_sd/flashex205.tar.gz /mnt/sdcard/
    example(move): mv /mnt/external_sd/flashex205.tar.gz /mnt/sdcard/

    3) unzip and untar the Flashex folder and flashex.sh script from flashex205.tar.gz
    gzip -d /mnt/sdcard/flashex205.tar.gz
    tar -xvf /mnt/sdcard/flashex205.tar

    Note: If you get an error saying not found. Your trying to install it in a diffrent location then it's currently configured you can probably figure out how to make it work easy enough. Just remember to set the path to the script inside the script it's self so it knows where make/read the edited file.

    4) Now change working directories and run the script.
    cd /mnt/sdcard/Flashex2

    5) Run the script(su is optional, but running as root it wont copy the edited file over)
    su
    sh flashex.sh

    Note: I suggest using sh before the script name though it's not nessesary if the path to sh at the top of the script matches yours.


    Confirmed Compatable Device List(Make sure you are rooted if you want to use the script to install the modified file)

    Acer Iconia A100, A200, A500 HC or ICS, FlexReaper ------ Use Latest Version
    Samsung Galaxy S 4G rooted modified Gingerbread 2.3 --- Use Latest Version
    Samsung Galaxy Nexus LTE ----------------------------------- Use Latest Version
    Asus Eepad Transformer Prime ------------------------------- Use Version 2.2 or Latest Version
    Motorola Droid Razr ------------------------------------------- Use Latest Version
    HTC EVO 3D --------------------------------------------------- Use Latest Version
    HTC EVO 4G running mikg v11 ------------------------------- Use Latest Version

    Note: Any Device that is compatable with Adobe Flash and capable of playing hulu videos(500 Mhz or better ARM7 CPU 256 MB ram, Android 2.2 or better) that has been rooted and has busybox installed should be compatable

    If you are attempting to use a Busybox older then v1.18.1 You will have to change a value at the top of the script before attempting to run it since I'm not sure how old of versions are 100% compatible.
    ===============================================
    ATTN: SUPPORT, QUESTIONS, COMMENTS
    If you need help getting it to work for your device and cant post in this section you can follow this
    ->SUPPORT LINK HERE

    You can PM me or you can also try me on Twitter

    Legal Info
    Flashex205.sh was made by NoSudo for personal use
    anyone may use it or change it but I retain creative
    licence for my work. You should only take credit for your
    changes.

    I take no reponsablility for anyone elses actions. If you break
    something or violate any rules it's on you.

    If you wish to try and make money on it or use it for any comercial
    venture I expect to be contacted and informed so I may negociate
    an acceptable for profit licence with compensation.

    This software is FREE and yours to enjoy, give away, edit, use for Non-Profit purposes ONLY.

    A NOTE ON VERSIONS!
    I recommend the use of the latest version Flashex204.sh. If you have old versions installed. MAKE SURE YOU RUN THE RIGHT ONE. It's up you to reconfigure Script Manager etc. so don't forget or it will keep running the old one.

    ALSO Please remember to hit that Thanks button if you find my script useful.
    2
    Thanks for this. Confirmed working on Nexus 10 tablets.

    I've also posted a noob-friendly tutorial using your script on the Nexus10 XDA forum: http://xdaforums.com/showthread.php?t=2099327
    2
    This isn't the current ICS method everyone is switching to is it?

    I was going to upgrade from HC to ICS, but if I will end up stuck with some fubar Busybox I don't think I'm interested.

    Any version of busybox will work with rooted ICS. ZeroNull found a way to mount /system writable and used a script to replace busybox mount and /system/bin/mount. The usual "mount -o remount,rw /system" doesn't work but "mount -o remount /dev/block/mmcblk0p3 /system/" is one of a few other ways that do work. I'm using busybox 1.20 compiled from source and use a modified version of ZeroNull's mount.sh as /system/bin/mount and /system/xbin/mount.
    2
    Works Great, crashes on Full screen mode in most browsers though

    This works for Amazon Prime Instant Videos as well... just an FYI!:eek::D
    1
    I have been doing a little version testing.

    I can confirm that flashex v2.01 does edit other versions so far I have tested it with. I just tested with 11.1.115.7 and it works fine via xxd. Im going to test on Android with Busybox's hexdump next.

    I can also confirm that it works on 11.1.111.8 since my tablet just auto-updated. I simply ran the script and updated my hexed version from 11.1.111.7 to 11.1.111.8 as designed.:D