|
|||||||||
|
|||||||||
|
|||
|
hey there
![]() on many sites i am Surfing the browser of the iPhone displays the ''mobile'' version of the Page and i cant switch to the Normal version because the Safari identifies as: Code:
Mozilla/5.0 (iPhone; U; CPU like Mac OS X; de-de) AppleWebKit/420.1 (KHTML, like Gecko) Version/3.0 Code:
Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1.8.1.12) Gecko/20080201 Firefox/2.0.0.12 Code:
Mozilla/5.0 (Macintosh; U; Intel Mac OS X; de-de) AppleWebKit/523.15.1 (KHTML, like Gecko) Version/3 i have opened the mobilesafari in Winhex but i find nothing usable
__________________
US Iphone 8gb PWNED!,2.0 (beta "d") PC: Mac Pro,Dual QX9650,32Gb DDR3 Ram,8800GTX in near Future SLI Chips from Skulltrail and then Tripple 8800GTX |
| Remove advertisements | |
|
|
|
|
|
||||
|
Wish there was a safari plugin like user agent switcher for firefox. Anybody know where the user agent settings are stored on the iphone?
__________________
iPhone (OTB 1.1.1 / Currently 3.1) Unlock, activation, jailbreak: PwnageTool 3.1 City Fido, Vancouver Last edited by TwistyValhalla; 05-07-2008 at 04:35 AM. |
|
|||
|
does anyone know of a way of switching the user agent on the iPhone yet?
im on 1.1.4 and i've looked everywhere but no luck |
| Sponsored links Remove advertisements | |
|
|
|
|
|
|||
|
I've seen the string in /System/Library/PrivateFrameworks/WebKit.framework/WebKit
There are 2 lines. The difference is the %@ at the end of the line. Mozilla/5.0 (%@; U; CPU iPhone OS %@ like Mac OS X; %@) AppleWebKit/%@ (KHTML, like Gecko) %@ Each %@ is filled at runtime with whatever variables that is given to it... much like a printf statement in c. I foresee that modifying it isn't going to be as simple as changing the string to what you want since it'll change the addresses in the file. Good luck. Oh and this was taken from iPhone 3G 2.0.2 5C1. |
|
|||
|
ok... heres how I changed my user agent on 1.1.4.
I have not yet tested it on 2.x (although I presume it can be done). If you wish to attempt this on 2.x, you will need to pseudosign the hacked file (/System/Library/Private Frameworks/Webkit.framework/Webkit) BEFORE you restart your phone, otherwise you will be locked out and need to do a restore. If you're going to try this, obviously im not responsible in the event of damage or loss. This worked for me on 1.1.4 though, and I hope it can help out others too. Step 1 - SFTP or SSH into iPhone and Grab the following files: [on 1.x]: /System/Library/Frameworks/Webkit.framework/Webkit /System/Library/Frameworks/Webkit.framework/Info.plist Step 2 - Open the 'Webkit' file in a hex editor (I used 0xED on my Mac) You need to find this line: Code:
Mozilla/5.0 (%@; U; CPU iPhone OS %@ like Mac OS X; %@) AppleWebKit/%@ (KHTML, like Gecko) %@ Code:
%*0.*0@ ![]() Step 3 - You need to convert the Info.plist into standard XML format. If you have a Mac you can do this in the terminal using the following command (make sure to change your file path to wherever you have the file saved): Code:
plutil -convert xml1 /Users/username/Desktop/Info.plist Step 4 - Now open the converted Info.plist Look for these lines: Code:
<key>CFBundleVersion</key> <string>420.1</string> Code:
<key>CFBundleVersion</key> <string>Mozilla/5.0 (SymbianOS/9.2; U; Series60/3.1 NokiaN95/21.0.016; Profile/MIDP-2.0 Configuration/CLD(-1.1) AppleWebKit/413 (KHTML, like Gecko) Safari/413</string> Code:
plutil -convert binary1 /Users/username/Desktop/Info.plist Step 7 - Reset your phone and test out your new user agent by going to something like useragent.org Last edited by wzad; 10-07-2008 at 03:54 AM. Reason: adding tutorial |
| Sponsored links Remove advertisements | |
|
|
|
|
|
|||
|
I think I figured it out...
If somebody who knows anything about programming can review the tutorial (see my last post) and make sure I'm not doing anything that might f** stuff up. Otherwise, my phone seems to work fine and my user agent is changed, so thats a good thing
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|
|
|