[Galaxy S II Themes and 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/show...6#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.

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.

INSTRUCTIONS:

Install latest flash player (11.1.115.12) 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 the 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.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: ICS Only version now (least as far as I know). May work on others, please let me and others know if it does work on GB

File is now attached to post due to multiupload being unavailable -

UPDATE 6/26/2012 for 11.1.115.12

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