webOS Nation Forums >  Homebrew >  webOS patches > iPhone User Agent Spoof - How to make all mobile websites display perfectly
iPhone User Agent Spoof - How to make all mobile websites display perfectly

  Reply
Like Tree7Likes

 
LinkBack Thread Tools Display Modes
Old 08/16/2011, 05:47 PM   #721 (permalink)
Moderator
 
Cantaffordit's Avatar
 
Join Date: Jan 2010
Posts: 14,933
Thanks: 3,772
Thanked 3,892 Times in 2,760 Posts
Default

I don't think it is available for the touchpad.
Cantaffordit is offline   Reply With Quote
Old 08/16/2011, 05:57 PM   #722 (permalink)
Member
 
Join Date: Jun 2009
Location: Chicago
Posts: 62
Thanks: 25
Thanked 12 Times in 8 Posts
Default

Quote:
Originally Posted by Cantaffordit View Post
I don't think it is available for the touchpad.
It's frustrating when browsing to certain sites and only the mobile version is displayed. There has to be a way to tweak the User Agent String on the touchpad. I've been looking everywhere with no luck. I found that Iphone UA spoof for the Pre but havn't had the courage to try it yet for fear of screwing it up.
MP715 is offline   Reply With Quote
Old 08/23/2011, 04:26 PM   #723 (permalink)
Member
 
Join Date: Aug 2011
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Default

anyone working on touchpad version? I would like to be able to change it to any user agent, not just iphone.

Would be willing to help out testing and such or maybe someone can point me to a site to learn programming or what tools to use for webOS.
hxh103 is offline   Reply With Quote
Old 08/23/2011, 05:31 PM   #724 (permalink)
Member
 
RedMist's Avatar
 
Join Date: Oct 2009
Location: Swansea, UK
Posts: 674
Thanks: 24
Thanked 204 Times in 79 Posts
Default

It doesn't appear to work on a Pre3. (Updated line 22)

"ERROR: Could not find area to patch (unknown file version?)"

Can I help to debug this for you?

I *think* the UA is now.. (Using a hex editor on libWebkitLuna)

"Mozilla/5.0 (Linux; webOS/%s; U; %s) AppleWebKit/534.6 (KHTML, like Gecko) %s/221.54 Safari/534.6 %s/%s"

Do the OLD_UA and NEW_UA need to have identical lengths for the sed to work?
__________________
Pilot 5000 > Pre > Pre2 > Pre3 > Galaxy Nexus
TouchPad > Galaxy Tab 8.9
RedMist is offline   Reply With Quote
Old 08/24/2011, 09:40 AM   #725 (permalink)
Member
 
Join Date: Aug 2006
Location: Philadelphia, Pa
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

With all of the TouchPad's purchased recently someone should be able to fix this script. I just got mine so I haven't had much time to mess with it. Once it's fixed for webOS 3.0 it should work on the TouchPad.
tsquillario is offline   Reply With Quote
Old 08/24/2011, 03:20 PM   #726 (permalink)
Member
 
Join Date: Aug 2011
Posts: 27
Thanks: 0
Thanked 3 Times in 3 Posts
Default

Anyone working on this for webOS 3?

Edit: On second thought, from looking at the script, this seems fairly straight forward. I will give it a go.

Touchpad's UA is as follows (as listed in libWebKitLuna.so):

Mozilla/5.0 (%s; Linux; %s/%s; U; %s) AppleWebKit/534.6 (KHTML, like Gecko) %s/234.40.1 Safari/534.6 %s/%s

Edit 2: I think I've got it. Waiting on reboot.

Edit 3: File attached. Uncomment the NEW_UA line of your choice before running the script. The included Google Chrome user agent has not been tested. As far as I could tell, the iPad user agent works.

Edit 4: I think this may have broken the app catalog. File has been removed for the time being.

Last edited by davegarbs; 08/24/2011 at 07:28 PM.
davegarbs is offline   Reply With Quote
Old 08/24/2011, 06:07 PM   #727 (permalink)
Member
 
phil.hsr's Avatar
 
Join Date: Oct 2009
Location: Liverpool, UK
Posts: 331
Thanks: 99
Thanked 75 Times in 52 Posts
Default

cancel my last
__________________


Creator of webOS Simplicity Theme

Last edited by phil.hsr; 08/24/2011 at 06:34 PM.
phil.hsr is offline   Reply With Quote
Old 08/24/2011, 06:45 PM   #728 (permalink)
Member
 
RedMist's Avatar
 
Join Date: Oct 2009
Location: Swansea, UK
Posts: 674
Thanks: 24
Thanked 204 Times in 79 Posts
Default

Quote:
Originally Posted by davegarbs View Post
Edit 3: File attached. Uncomment the NEW_UA line of your choice before running the script. The included Google Chrome user agent has not been tested. As far as I could tell, the iPad user agent works.

THIS WORKS FOR TOUCHPAD ONLY.
Dave, I know you say TouchPad only, but the UA, looks the same as the one in the Pre3 (See my Post above)

Do you think it will work on the Pre3 too? (Too scared to just try it in case I bugger anything up)
__________________
Pilot 5000 > Pre > Pre2 > Pre3 > Galaxy Nexus
TouchPad > Galaxy Tab 8.9
RedMist is offline   Reply With Quote
Old 08/24/2011, 07:19 PM   #729 (permalink)
Member
 
Join Date: Aug 2011
Posts: 27
Thanks: 0
Thanked 3 Times in 3 Posts
Default

RedList: possibly, but hold off because I think it may have broken some things

Edit: Confirmed. Whoops...

I will say that changing the user agent still doesn't help us get past hulu

Last edited by davegarbs; 08/24/2011 at 07:29 PM.
davegarbs is offline   Reply With Quote
Old 08/25/2011, 02:01 AM   #730 (permalink)
Member
 
ncinerate's Avatar
 
Join Date: Sep 2009
Posts: 1,004
Thanks: 17
Thanked 1,076 Times in 208 Posts
Default

Yeah, hulu is based on flash. You'd have to mess with the flash .so file to be able to get it working...

There's some details from android hacking on how to do it here:

xda-developers - View Single Post - Working hulu

There's even a .so file there, but I'm pretty sure that wouldn't be a copy paste fix for the touchpad (for obvious reasons). Might be worth a look at what they actually -did- however, as you could potentially edit the touchpad's flash .so file appropriately to fix hulu...


As for you "breaking things" - one of the first things I did with my touchpad was edited that script to swap in an ipad user agent . When I saw it was fubar'ing everything up, I gave up on the attempt altogether.

I'd love to get an ipad user agent up and running properly though - there are quite a few sites that are ipad specific and keep me locked out despite the touchpad's ability to render them...
ncinerate is offline   Reply With Quote
Old 08/25/2011, 11:35 AM   #731 (permalink)
Member
 
HeyRadar's Avatar
 
Join Date: Jul 2010
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default How about a Proxy site?

How about another approach...

Does anyone know a proxy site that will mimic an iPad to the final website?

So basically, if a proxy site was to connect to the final website as an iPad, iPhone, etc. then we could just goto the proxy website, then connect to the final web site and see the results as an iPad would.
HeyRadar is offline   Reply With Quote
Old 08/25/2011, 11:45 AM   #732 (permalink)
Member
 
RedMist's Avatar
 
Join Date: Oct 2009
Location: Swansea, UK
Posts: 674
Thanks: 24
Thanked 204 Times in 79 Posts
Default

Maybe we could patch the TouchPad Browser app so uses a custom libWebKitLuna.so

Leaving the App Catalog, etc, to still open the original libWebKitLuna.so
__________________
Pilot 5000 > Pre > Pre2 > Pre3 > Galaxy Nexus
TouchPad > Galaxy Tab 8.9
RedMist is offline   Reply With Quote
Old 08/25/2011, 02:13 PM   #733 (permalink)
Member
 
ncinerate's Avatar
 
Join Date: Sep 2009
Posts: 1,004
Thanks: 17
Thanked 1,076 Times in 208 Posts
Default

I went ahead and changed this post (thanks Abyssul). I've removed the link to the file - but - Abyssul has given us an even easier method. Here's what you do:

Go into webOS quick install on your home pc - you can find it here:

http://forums.precentral.net/canuck-...-v4-2-3-a.html

Run the program, select the TOOLS tab, and pick LINUX COMMANDLINE. Make sure your browser is closed on the touchpad.

You should now be in a terminal at a command line looking at your touchpad .

Now type the following -exactly- (ALL ON ONE LINE, not two lines):

cp /usr/lib/BrowserServerPlugins/libflashplayer.so /usr/lib/BrowserServerPlugins/libflashplayer.so.bak

Now type:
cd /usr/lib/BrowserServerPlugins

Now type (again, ALL ON ONE LINE):

sed -i 's/WEB 10/WIN 10/' libflashplayer.so

Finally, type:

chmod 755 /usr/lib/BrowserServerPlugins/libflashplayer.so



TADA, hulu works.

Want to reverse the process? Simply type (ALL ONE LINE):
cp /usr/lib/BrowserServerPlugins/libflashplayer.so.bak /usr/lib/BrowserServerPlugins/libflashplayer.so

Last edited by ncinerate; 08/25/2011 at 04:24 PM.
ncinerate is offline   Reply With Quote
Old 08/25/2011, 02:48 PM   #734 (permalink)
Member
 
Join Date: Jun 2009
Location: Chicago
Posts: 62
Thanks: 25
Thanked 12 Times in 8 Posts
Default

Hulu does seem to work after that, thanks! I do still however need the ability to change my UAS. Some sites are still stubbornly coming up as mobile when I know the desktop version would work. I'm not sure what do do. MP
MP715 is offline   Reply With Quote
Old 08/25/2011, 05:56 PM   #735 (permalink)
Member
 
Join Date: Apr 2008
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default Read Only problem??????

I'm continuing to have the terminal tell me the file system is read only. Chmod 777 will not change this, device is in dev mode. I was able to create the backup and mod the file but i cannot write back to the /usr/lib or any other system directory. What am i doing wrong?
jasontyo is offline   Reply With Quote
Old 08/25/2011, 05:57 PM   #736 (permalink)
Member
 
Join Date: Apr 2008
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default I am Desperate for HULU (read only?)

Quote:
Originally Posted by ncinerate View Post
I went ahead and changed this post (thanks Abyssul). I've removed the link to the file - but - Abyssul has given us an even easier method. Here's what you do:

Go into webOS quick install on your home pc - you can find it here:

http://forums.precentral.net/canuck-...-v4-2-3-a.html

Run the program, select the TOOLS tab, and pick LINUX COMMANDLINE. Make sure your browser is closed on the touchpad.

You should now be in a terminal at a command line looking at your touchpad .

Now type the following -exactly- (ALL ON ONE LINE, not two lines):

cp /usr/lib/BrowserServerPlugins/libflashplayer.so /usr/lib/BrowserServerPlugins/libflashplayer.so.bak

Now type:
cd /usr/lib/BrowserServerPlugins

Now type (again, ALL ON ONE LINE):

sed -i 's/WEB 10/WIN 10/' libflashplayer.so

Finally, type:

chmod 755 /usr/lib/BrowserServerPlugins/libflashplayer.so



TADA, hulu works.

Want to reverse the process? Simply type (ALL ONE LINE):
cp /usr/lib/BrowserServerPlugins/libflashplayer.so.bak /usr/lib/BrowserServerPlugins/libflashplayer.so






Im getting read only error over and over, what am I doing wrong. Hulu is my favorite feature of my touchpad, next to the amazing webOS community, Please help me out guys!
jasontyo is offline   Reply With Quote
Old 08/25/2011, 09:45 PM   #737 (permalink)
Member
 
Join Date: Aug 2011
Posts: 27
Thanks: 0
Thanked 3 Times in 3 Posts
Default

Quote:
Originally Posted by jasontyo View Post
Im getting read only error over and over, what am I doing wrong. Hulu is my favorite feature of my touchpad, next to the amazing webOS community, Please help me out guys!
mount -o rw,remount /
davegarbs is offline   Reply With Quote
Old 08/26/2011, 09:55 PM   #738 (permalink)
Member
 
Join Date: Aug 2011
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I'd love to see the full sed command that (maybe?) fixed the useragent in the web browser.

I could actually care less if it breaks app catalogue, I just want a working web browser that'll display the ipad version of sites, since the desktop versions of youtube, google docs, etc display too slow to use on the touchpad).
paradoxquine is offline   Reply With Quote
Old 08/27/2011, 12:51 PM   #739 (permalink)
Banned
 
Join Date: May 2010
Posts: 25
Thanks: 7
Thanked 0 Times in 0 Posts
Default

Attached a version of the Patch for webOS 2.1.1

Too bad Google doesnt treat the webOS Browser of a HP Veer as a mobile device automatically.

After applying this patch (for v2.1.1) via webOS Quick Install, Google+, GMail and co are now working nicely... like on iOS.
Attached Files
File Type: zip change-user-agent_for_webOS2.1.1.zip (2.5 KB, 155 views) Email Attachment
john_robot is offline   Reply With Quote
Old 08/27/2011, 02:57 PM   #740 (permalink)
Member
 
Join Date: Feb 2011
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by john_robot View Post
Attached a version of the Patch for webOS 2.1.1

Too bad Google doesnt treat the webOS Browser of a HP Veer as a mobile device automatically.

After applying this patch (for v2.1.1) via webOS Quick Install, Google+, GMail and co are now working nicely... like on iOS.
can this work on touchpad?
rush_ad is offline   Reply With Quote
Reply

 

Thread Tools
Display Modes



 

Content Relevant URLs by vBSEO 3.6.0