01/18/2012, 01:49 AM
So, fiddling with the Pre2 just for giggles - was trying to help someone get HULU on their pre3. I thought, what the hell, I wonder if I can make it work appreciably well on my pre2.
A little fiddling around later, and I'm watching the Alcatraz pilot on my pre2. With performance governor and 1.2ghz it seems to be watchable over 3G (SLIGHTLY choppy framerate, but perfect sound and pretty damn good all things considered).
If you're feeling adventurous and want to try this, I could probably knock together some instructions or a basic patch - does anyone actually care?
Use webOSquickinstall to receive a file from your pre2:
Copy the file to make a backup (libWebKitLuna.OLD).
Use a hex editor like HxD to "find" this string:
Mozilla/5.0 (Linux; webOS/%s; U; %s) AppleWebKit/534.6 (KHTML, like Gecko) %s/221.56 Safari/534.6 %s/%s
Change it to this:
Mozilla/5.0 (Windows NT 5.11; U; en) AppleWebKit/534.6 (KHTML, like Gecko) xp/234.76 Safari/535.2 01/07
Note these strings are exactly the same length, this is necessary for this hex edit to work.
Use webOSquickinstall to send this newly created libWebKitLuna file to:
Now terminal into your touchpad (using webOS quick install or xserver/xterm) and type this:
sed -i 's/WEB 10/LNX 10/' /usr/lib/BrowserServerPlugins/libflashplayer.so
Once everything is back up and running, go to IMDB, click on videos, and enjoy. If you're following this on the PRE 3 you might even be able to just go to hulu itself thanks to your more powerful phone.
To reverse the process, simply rename your libWebKitLuna.OLD back to libWebKitLuna.so, remove the libWebKitLuna.so file on the pre2 (rm /usr/lib/libWebKitLuna.so) and replace it with this original file (send the old libWebKitLuna.so file to /usr/lib with webosquickinstall), then run this command:
sed -i 's/LNX 10/WEB 10/' /usr/lib/BrowserServerPlugins/libflashplayer.so
I know it's a little complex but it's more of a proof of concept right now. It works, but you sorta have to use 1.2ghz in performance mode to get reasonable watch-ability. Be careful following these instructions - if you don't know what you're doing and feel over-your-head I'm not responsible if you manage to obliterate your phone in the process. **** luck!