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 10/05/2009, 10:49 AM   #161 (permalink)
Member
 
hofs1's Avatar
 
Join Date: Sep 2004
Posts: 461
Likes Received: 0
Thanks: 20
Thanked 23 Times in 20 Posts
Default

I had only created the user agent string that worked so well.....the OP clipcarl put it into the change user agent tweak..........i dont know how to update the tweak for 1.2.1...but some others here are looking into it...........so i posted the user agent string to make things easier.

sorry for the confusion........i wish i knew binary linux coding.
__________________
T300 - T600 - T650 - T700p - T755p - T800w - Pre
hofs1 is offline   Reply With Quote
Old 10/05/2009, 01:59 PM   #162 (permalink)
Member
 
csplinter's Avatar
 
Join Date: Sep 2009
Location: Beaumont, Tx
Posts: 31
Likes Received: 0
Thanks: 2
Thanked 4 Times in 4 Posts
Default

I unpacked the 1.2.0 installer and made changes that should allow it to pass a version check on v1.2.1. It's quite possible it will work as is, but it also might break your browser requiring a factory reset.

Would anyone care to try it?

If so, its attached. Rename change-user-agent-1.2.1.tar.gz.zip to change-user-agent-1.2.1.tar.gz. Sorry for the inconvenience, but precentral wouldn't except the file otherwise. Upload the archive to your phone. Unpack it, and execute runme.sh
Attached Files
File Type: zip change-user-agent-1.2.1.tar.gz.zip (4.6 KB, 12 views) Email Attachment
csplinter is offline   Reply With Quote
Old 10/05/2009, 02:06 PM   #163 (permalink)
Member
 
Join Date: Aug 2009
Posts: 236
Likes Received: 0
Thanks: 42
Thanked 241 Times in 58 Posts
Default

Fails with "ERROR: Unknown file version" after running "bash runme.sh"

Edit: Looking at the source it seems to be a result of MD5 checksums not matching. libWebKitLuna.so WAS changed between 1.2 and 1.2.1, not sure if it's a good idea to apply a binary patch in this case.

Last edited by Leathal; 10/05/2009 at 02:16 PM.
Leathal is offline   Reply With Quote
Old 10/05/2009, 02:27 PM   #164 (permalink)
Member
 
milliman's Avatar
 
Join Date: Jul 2009
Location: Boulder, CO
Posts: 209
Likes Received: 0
Thanks: 17
Thanked 22 Times in 18 Posts
Default

Just changing the WebOS version and load is not enough. You will have to change the checksum as well. I did the same. I was thinking tonight, if I have the time, I would compare the two versions of libWebKitLuna.so to see if they changed from 1.2 to 1.2.1. If not then this patch should work as long as the appropriate checks in the runme.sh script are changed.
milliman is offline   Reply With Quote
Old 10/05/2009, 02:28 PM   #165 (permalink)
Member
 
Join Date: Jul 2009
Posts: 22
Likes Received: 0
Thanks: 14
Thanked 4 Times in 4 Posts
Default

This is the error I got:

rootcastle:/media/internal/change-user-agent.instal# sh runme.sh
sh runme.sh
Applying patch. Phone will reboot when done.
ERROR: Patch verification failed

any ideas?
rbagherian is offline   Reply With Quote
Old 10/05/2009, 02:57 PM   #166 (permalink)
Member
 
csplinter's Avatar
 
Join Date: Sep 2009
Location: Beaumont, Tx
Posts: 31
Likes Received: 0
Thanks: 2
Thanked 4 Times in 4 Posts
Default

Upon closer inspection, I see why this isn't working properly. In order to fix it though, we need install the patch manually once, so we can gather information about what the expected results of a proper installation are.

Would you mind running the following from the directory you extracted earlier?

'./bspatch /usr/lib/libWebKitLuna.so ./libWebKitLuna-iphone_user_agent.so ./libWebKitLuna.so-iphone_user_agent.bsdiff'

'mount / -oremount,rw'
'cp /usr/lib/libWebKitLuna.so /usr/lib/libWebKitLuna.so.original'
'cp ./libWebKitLuna-iphone_user_agent.so /usr/lib/libWebKitLuna.so'

'md5sum ./libWebKitLuna-iphone_user_agent.so' (please note the output of this command)

'clear_browser_cookies'
'sync'
'reboot'

EDIT:
In case you have trouble after reboot,

'mount / -oremount,rw'
'cp /usr/lib/libWebKitLuna.so.original /usr/lib/libWebKitLuna.so'
'clear_browser_cookies'
'sync'
'reboot'
csplinter is offline   Reply With Quote
Old 10/05/2009, 03:41 PM   #167 (permalink)
Member
 
Join Date: Oct 2009
Posts: 17
Likes Received: 0
Thanks: 0
Thanked 0 Times in 0 Posts
Default

csplinter this is the tweak I need I think but I don't understand what you want me to do.
1KRUNCH is offline   Reply With Quote
Old 10/05/2009, 04:09 PM   #168 (permalink)
Member
 
csplinter's Avatar
 
Join Date: Sep 2009
Location: Beaumont, Tx
Posts: 31
Likes Received: 0
Thanks: 2
Thanked 4 Times in 4 Posts
Default

Quote:
Originally Posted by 1KRUNCH View Post
csplinter this is the tweak I need I think but I don't understand what you want me to do.
Sorry, but I'm still trying to figure it out myself. In the near future, you will probably be able to install this through preware, but for right now we're just experimenting.
csplinter is offline   Reply With Quote
Old 10/05/2009, 04:17 PM   #169 (permalink)
Member
 
Join Date: Jul 2009
Posts: 22
Likes Received: 0
Thanks: 14
Thanked 4 Times in 4 Posts
Default

root:castle:/media/internal/change-user-agent.install# md5sum ./libWebKitLuna-ip
hone_user_agent.so
md5sum ./libWebKitLuna-ip
hone_user_agent.so
bc23058cc4363b3a0e6192528ee42403 ./libWebKitLuna-iphone_user_agent.so

just rebooted the phone...
rbagherian is offline   Reply With Quote
Thanked By: p-niiice
Old 10/06/2009, 12:07 AM   #170 (permalink)
Member
 
gage006's Avatar
 
Join Date: Jul 2009
Posts: 547
Likes Received: 0
Thanks: 50
Thanked 53 Times in 41 Posts
Default

Quote:
Originally Posted by rbagherian View Post
root:castle:/media/internal/change-user-agent.install# md5sum ./libWebKitLuna-ip
hone_user_agent.so
md5sum ./libWebKitLuna-ip
hone_user_agent.so
bc23058cc4363b3a0e6192528ee42403 ./libWebKitLuna-iphone_user_agent.so

just rebooted the phone...
Results? Is this good to go with the manual method?
gage006 is offline   Reply With Quote
Old 10/06/2009, 12:10 AM   #171 (permalink)
Member
 
holley2583's Avatar
 
Join Date: Aug 2009
Location: Boston
Posts: 355
Likes Received: 1
Thanks: 83
Thanked 23 Times in 14 Posts
Smile

Quote:
Originally Posted by rbagherian View Post
root:castle:/media/internal/change-user-agent.install# md5sum ./libWebKitLuna-ip
hone_user_agent.so
md5sum ./libWebKitLuna-ip
hone_user_agent.so
bc23058cc4363b3a0e6192528ee42403 ./libWebKitLuna-iphone_user_agent.so

just rebooted the phone...
so...what happened...the waitins killin me...lol
holley2583 is offline   Reply With Quote
Old 10/06/2009, 08:48 AM   #172 (permalink)
Member
 
csplinter's Avatar
 
Join Date: Sep 2009
Location: Beaumont, Tx
Posts: 31
Likes Received: 0
Thanks: 2
Thanked 4 Times in 4 Posts
Default

Well, it's still unclear if rbagherian achieved any sort of success yesterday, but we might have a working script, thanks to the info he provided.

Same thing as before, rename, unpack, run runme.sh.
Attached Files
File Type: zip change-user-agent-1.2.1-r2.tar.gz.zip (4.6 KB, 8 views) Email Attachment

Last edited by csplinter; 10/06/2009 at 08:48 AM. Reason: oops forgot the attachment
csplinter is offline   Reply With Quote
Thanked By: p-niiice
Old 10/06/2009, 09:43 AM   #173 (permalink)
Member
 
csplinter's Avatar
 
Join Date: Sep 2009
Location: Beaumont, Tx
Posts: 31
Likes Received: 0
Thanks: 2
Thanked 4 Times in 4 Posts
Default

Rbagherian, would you please upload your libWebKitLuna-iphone_user_agent.so?

Last edited by csplinter; 10/06/2009 at 12:52 PM. Reason: Nevermind, I no longer need this
csplinter is offline   Reply With Quote
Old 10/06/2009, 12:27 PM   #174 (permalink)
Member
 
Join Date: Oct 2009
Posts: 17
Likes Received: 0
Thanks: 0
Thanked 0 Times in 0 Posts
Default

One of the computer guys I work with says he can fix this program in 5 minutes but says it needs a license or it might be illegal to change it without the writer's permission. How do I get the license get permission.
1KRUNCH is offline   Reply With Quote
Old 10/06/2009, 12:41 PM   #175 (permalink)
Legend
 
Jason Robitaille's Avatar
 
Join Date: May 2005
Location: Winnipeg, MB, Canada
Posts: 3,883
Likes Received: 496
Thanks: 801
Thanked 12,956 Times in 1,495 Posts
Default

It applies a binary diff to the webkit linux binary. You'll wanna make sure the diff works with the 1.2.1 webkir binary, or you'll need to make a new diff.
Jason Robitaille is offline   Reply With Quote
Old 10/06/2009, 01:47 PM   #176 (permalink)
Member
 
csplinter's Avatar
 
Join Date: Sep 2009
Location: Beaumont, Tx
Posts: 31
Likes Received: 0
Thanks: 2
Thanked 4 Times in 4 Posts
Default

Quote:
Originally Posted by Jason Robitaille View Post
It applies a binary diff to the webkit linux binary. You'll wanna make sure the diff works with the 1.2.1 webkir binary, or you'll need to make a new diff.
After playing with it, I successfully managed to change my user agent, breaking google maps as clipcarl did before.

If only I could find the source code to webkit from 1.2.1, I would produce the new diff with hofs1's user agent string, but I only see sources as new as 1.1 on palm's site.
csplinter is offline   Reply With Quote
Old 10/06/2009, 06:49 PM   #177 (permalink)
Member
 
gage006's Avatar
 
Join Date: Jul 2009
Posts: 547
Likes Received: 0
Thanks: 50
Thanked 53 Times in 41 Posts
Default

Quote:
Originally Posted by csplinter View Post
After playing with it, I successfully managed to change my user agent, breaking google maps as clipcarl did before.

If only I could find the source code to webkit from 1.2.1, I would produce the new diff with hofs1's user agent string, but I only see sources as new as 1.1 on palm's site.
Thanks for the hard work. Hope we can get it fixed with google maps in tact again.
gage006 is offline   Reply With Quote
Old 10/06/2009, 09:06 PM   #178 (permalink)
Member
 
milliman's Avatar
 
Join Date: Jul 2009
Location: Boulder, CO
Posts: 209
Likes Received: 0
Thanks: 17
Thanked 22 Times in 18 Posts
Default

Looks like we have to wait for the 1.2.1 SDK to see the source that needs to be modified. I wish I had Carl's source as a basis to see how he addressed the Google Maps issue. The easiest way is to exclude the URL for Google Maps.
milliman is offline   Reply With Quote
Old 10/07/2009, 12:51 AM   #179 (permalink)
Member
 
Join Date: Jul 2009
Posts: 22
Likes Received: 0
Thanks: 14
Thanked 4 Times in 4 Posts
Default

Quote:
Originally Posted by csplinter View Post
Well, it's still unclear if rbagherian achieved any sort of success yesterday, but we might have a working script, thanks to the info he provided.

Same thing as before, rename, unpack, run runme.sh.
Sorry, I went out and totally forgot about this... last time no chance it didn't work...

I updated the agent with new file you attached, same result:

root:castle:/media/internal/change-user-agent.install# md5sum ./libWebKitLuna-ip
hone_user_agent.so
md5sum ./libWebKitLuna-ip
hone_user_agent.so
d52c83e8bb00019ded49cde99af6392b ./libWebKitLuna-iphone_user_agent.so

the browser got messed up after this.. I couldn't even open yahoo.com

Last edited by rbagherian; 10/07/2009 at 02:43 AM.
rbagherian is offline   Reply With Quote
Old 10/07/2009, 06:04 AM   #180 (permalink)
Member
 
Trekker's Avatar
 
Join Date: Oct 2007
Location: Subspace
Posts: 2,592
Likes Received: 13
Thanks: 603
Thanked 511 Times in 324 Posts
Default

Assuming someone can get this working again, is it possible to turn it on/off from within the browser itself...or do you have to un-install the tweak?

I was thinking that there may be times when people want to see the full version of a website, so it would be nice to have a menu option that would temporarily disable the tweak and then be able to re-enable it.
__________________

Sign up and get 2.25 GB of free online storage.
Trekker is offline   Reply With Quote
Reply

 

Thread Tools
Display Modes



 


Content Relevant URLs by vBSEO 3.6.0