[Epic 4G Apps] compuw22c:
Ok guys, so I absolutely love Hulu and other legit TV sites, some of which prohibit mobile devices based on a "flash id" similar to what you have with a User Agent string for the browser. It is based on this ID that it prohibits mobile phones from accessing content such as hulu and HBO (I think?). With this mod your phone will appear as though it is a PC running flash and I believe it also modifies your version number to be something like 99.9.999.99 for sites that try and check the version number. I also must make sure to give credit where credit is due. Credit goes to imneveral0ne who posted the modified lib files in the Thunderbolt forums http://xdaforums.com/showthread.php?p=12433036#post12433036.

His mod stopped working because Gingerbread (and 10.3) copies the lib files from the APK itself back into the lib folder (/data/data/com.adobe.flashplayer/lib/) on boot, thus require the mod be redone every reboot. I simply took his mod, wrote a simple script that installs the hacked lib files to /data/flash/ at first for storage, modifies permission of /data/data/com.adobe.flashplayer/lib/ so that it can be written to by the script, and also installs a "run on boot" script at /system/etc/init.d/01-fixflash.sh which will copy the hacked lib files from /data/flash to /data/data/com.adobe.flashplayer/lib/. It also adds Hulu Bookmark app (1.0) to /data/app.

For whatever reason, I've been having trouble replicating a "start from stock, flash, and you're good" situation. Something about my setup isn't quite perfect yet (this is my first "mod"/script, and first flashable zip so any suggestions would be greatly appreciated), as I've had some issues getting it to run on its own the first time. That being said my launcher pro also force closes on every reboot so the leaked EF02 and nagging (ef10 to ef02) downgrade screen may be responsible. The GOOD news is that it does seem to work like clockwork once the script has been run manually for the first time. Enough explaining why, now to the how:

REQUIREMENTS:

Kernel with init.d support (most custom kernels with root support) and root

Busybox (for running the copy commands. If you don’t have it, install ‘busybox installer’ from the market once you are rooted)

Root explorer (recommended, not required)

NOTE: I have developed this file FOR gingerbread, however I BELIEVE it should also work on froyo. Please let me know if it does/doesn’t work on Froyo. If it doesn’t work and needs troubleshooting let me know and I’ll downgrade again to see if I can get it worked out.

INSTRUCTIONS:

EDIT: I'm such a moron, I almost forgot:

Install latest flash player (10.3.185.25) from the market FIRST and be sure to uncheck automatic updates (and don't manually either)

Make sure busybox is installed. One way to test this is to type cp –help in ADB and see if it can run the command. If it does, you’re good to go.

Next, simply flash gbflash.zip. Wipe cache/dalvik if you want (I don’t believe it’s necessary, although again, this is my first time and for whatever reason the script doesn’t seem to want to run on its own the first time)

Upon first reboot, you MAY be lucky enough that it simply just works and you’re all set. I was not this lucky, either due to my semi-lockup (FC of launcher pro) on boot and/or the EF10->EF02 downgrade screen. Anyways, if you still get the "Hulu not available for your platform" error, simply use either root explorer or adb to run the script for the first time manually. In root explorer, navigate to /system/etc/init.d, tap on S98fixflash and select "execute". In ADB, navigate to /system/etc/init.d and type "sh S98fixflash". Wait a sec for it to run, then try Hulu again. It should be working immediately (without a reboot required) AND the script should then run correctly on subsequent reboots.

Like I said this is my first "product" I've been able to make available to the community and am more than open to suggestions, criticisms and ideas of how I can make this script better. Enjoy guys!

EDIT: If you do have issues with the script not running on every reboot, simply install "Script Manager" from the market, navigate to /system/etc/init.d, select S98fixflash and check the "run on boot" checkbox.

NOTE: I believe this hack is EXCLUSIVE to Gingerbread (and maybe Honeycomb). Froyo will not work

http://www.multiupload.com/E9GP7V1QJ1 - update 10/4//2011 for 11.0.1.152 AND hopefully fixed data mounting issues on certain devices so it works easily on CWM on more devices

NOTE: Latest update includes a brand new flashplayer.so files freshly edited, so no more issues with youtube in the browser, and uses TRUE flash 11.0.1.152 libraries for increased performance (no longer based on 10.2) (LOL, flash 11 was only released 4 hours ago, hehe )

Note: after more feedback it seems using busybox installer from the market helps if running the script, even manually does nothing.