Post Reply

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

OP NoSudo

28th March 2012, 10:32 PM   |  #1  
OP Senior Member
Flag Kalifornia
Thanks Meter: 84
 
188 posts
Join Date:Joined: Feb 2012
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.
Attached Files
File Type: gz flashex202b.tar.gz - [Click for QR Code] (8.0 KB, 336 views)
File Type: zip Flashex202b.zip - [Click for QR Code] (11.0 KB, 645 views)
File Type: txt Some info on ENV PATH etc.txt - [Click for QR Code] (1.6 KB, 102 views)
File Type: gz flashex203b.tar.gz - [Click for QR Code] (8.9 KB, 29 views)
File Type: zip Flashex203b.zip - [Click for QR Code] (12.3 KB, 74 views)
File Type: gz flashex204b.tar.gz - [Click for QR Code] (9.0 KB, 62 views)
File Type: zip Flashex204b.zip - [Click for QR Code] (12.4 KB, 532 views)
File Type: zip Flashex205.zip - [Click for QR Code] (12.7 KB, 4156 views)
File Type: gz flashex205.tar.gz - [Click for QR Code] (9.2 KB, 1173 views)
File Type: txt Readme.txt - [Click for QR Code] (7.4 KB, 501 views)
Last edited by NoSudo; 27th May 2012 at 12:17 AM.
The Following 26 Users Say Thank You to NoSudo For This Useful Post: [ View ]
28th March 2012, 11:13 PM   |  #2  
OP Senior Member
Flag Kalifornia
Thanks Meter: 84
 
188 posts
Join Date:Joined: Feb 2012
Smile
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.
Last edited by NoSudo; 29th March 2012 at 12:03 AM.
The Following User Says Thank You to NoSudo For This Useful Post: [ View ]
29th March 2012, 12:20 AM   |  #3  
Joecascio2000's Avatar
Senior Member
Flag Upland, CA
Thanks Meter: 419
 
1,818 posts
Join Date:Joined: Nov 2010
More
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
Attached Thumbnails
Click image for larger version

Name:	2012-03-28 16.12.12.jpg
Views:	1595
Size:	20.8 KB
ID:	970567  
The Following User Says Thank You to Joecascio2000 For This Useful Post: [ View ]
29th March 2012, 12:28 AM   |  #4  
OP Senior Member
Flag Kalifornia
Thanks Meter: 84
 
188 posts
Join Date:Joined: Feb 2012
Quote:
Originally Posted by Joecascio2000

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.

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 by NoSudo; 29th March 2012 at 12:35 AM.
29th March 2012, 01:06 AM   |  #5  
OP Senior Member
Flag Kalifornia
Thanks Meter: 84
 
188 posts
Join Date:Joined: Feb 2012
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.
29th March 2012, 01:09 AM   |  #6  
Joecascio2000's Avatar
Senior Member
Flag Upland, CA
Thanks Meter: 419
 
1,818 posts
Join Date:Joined: Nov 2010
More
Quote:
Originally Posted by NoSudo

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 by Joecascio2000; 29th March 2012 at 01:16 AM.
29th March 2012, 01:21 AM   |  #7  
OP Senior Member
Flag Kalifornia
Thanks Meter: 84
 
188 posts
Join Date:Joined: Feb 2012
Quote:

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 by NoSudo; 29th March 2012 at 01:52 AM.
29th March 2012, 01:36 AM   |  #8  
OP Senior Member
Flag Kalifornia
Thanks Meter: 84
 
188 posts
Join Date:Joined: Feb 2012
Quote:
Originally Posted by Joecascio2000

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.
29th March 2012, 01:47 AM   |  #9  
Joecascio2000's Avatar
Senior Member
Flag Upland, CA
Thanks Meter: 419
 
1,818 posts
Join Date:Joined: Nov 2010
More
Quote:
Originally Posted by NoSudo

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.
29th March 2012, 01:57 AM   |  #10  
OP Senior Member
Flag Kalifornia
Thanks Meter: 84
 
188 posts
Join Date:Joined: Feb 2012
Quote:
Originally Posted by Joecascio2000

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 by NoSudo; 29th March 2012 at 02:02 AM.

Post Reply Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes