PPCGeeks Forums HTC Arrive HTC HD2 HTC Thunderbolt HTC Touch Pro 2 HTC Evo 4G HTC Evo 3D Samsung Galaxy S II Motorola Droid X Apple iPhone Blackberry
Go Back   PPCGeeks > Android > Android HTC Devices > Legacy HTC Android Devices > HTC Hero
Register Community Search

Notices


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 12-18-2009, 12:25 PM
Gambit's Avatar
Lurker
Offline
Pocket PC: HTC Hero (Sprint)
Carrier: Sprint
 
Join Date: Dec 2007
Posts: 21
Reputation: 10
Gambit is a n00b
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
How to change the User Agent String setting on stock Android Browser

A while ago I found a tip somewhere on how to get to some additional hidden android browser settings including how to change the user agent string so that the browser would identify itself as a desktop browser or iPhone browser while surfing.
This setting is reset between sessions, I didn't use it frequently and eventually forgot how to go about making the change.
Recently I had a need to access these hidden browser settings again and it took quite a long and frustrating search effort to finally locate this information which does not seem to be widely publicized. So, in an effort to save anyone else this trouble, I figured I would post the information on how to do this on a couple Android boards that I frequent and also include a few words that might be picked up as search terms for anyone else trying to find this info. The procedure is very simple. I currently have an HTC Sprint Hero running Android 1.5, so I'm not sure what other devices or builds this will work on...

Open the Android web browser. In the address bar enter 'about:debug' where you would normally enter a URL and hit enter or Go. Be sure to erase the 'http://www.' that the browser likes to leave in the address bar for you. No page will load and you may or may not get a pop-up message 'Debug mode'. But if you now go to Menu > More > Settings in the browser and scroll to the bottom of the list, you should see a new group of options under the 'Debug' heading. The bottom setting is 'UAString' and if selected will give you the option of enabling your browser to identify itself as Android, Desktop or iPhone. Results after making this switch have been mixed, but go ahead and give it a try if you have a need to. I'm not sure what the other options do, so use at your own risk.

Feel free to leave a reply if you found this information helpful, or if it does or does not work on your particular device / build.

search terms: Android Browser Hidden Debug Settings Change User Agent String Identify Desktop Firefox iPhone about:debug UAString
Reply With Quote
This post has been thanked 1 times.
  #2 (permalink)  
Old 12-18-2009, 01:48 PM
flipzmode's Avatar
VIP Member
Offline
Pocket PC: HTC Hero - Fresh ROM
Carrier: Sprint
 
Join Date: Jan 2009
Posts: 390
Reputation: 2820
flipzmode is a VIPflipzmode is a VIPflipzmode is a VIPflipzmode is a VIPflipzmode is a VIPflipzmode is a VIPflipzmode is a VIPflipzmode is a VIPflipzmode is a VIPflipzmode is a VIPflipzmode is a VIP
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Re: How to change the User Agent String setting on stock Android Browser

Shouldn't disabling "mobile view" do the same thing?

(From the browser) Menu < More < Settings < Uncheck mobile view

Although I guess you don't say your reason for needing to change it to identify as a different browser. But if your reasoning was to access a full site rather than their mobile version then that should do it... and is quite a bit easier.
__________________
Fresh Evo: 4.2 (Android 2.3.3) || 3.5.0.1 (Android 2.2)
Fresh Hero: 2.4.0 (Android 2.1) || Fresh Kitchen
CDMA Hero Development & Fresh ROM home: http://GeekFor.Me || Twitter
Reply With Quote
  #3 (permalink)  
Old 12-18-2009, 06:23 PM
tersoth's Avatar
Regular 'Geeker
Offline
Pocket PC: Sprint Pre 2, Evo
Carrier: Sprint
Location: Rio Rancho, NM
 
Join Date: Nov 2008
Posts: 327
Reputation: 735
tersoth knows their stufftersoth knows their stufftersoth knows their stufftersoth knows their stufftersoth knows their stufftersoth knows their stufftersoth knows their stuff
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Re: How to change the User Agent String setting on stock Android Browser

Thanks! I've been looking for something like this. I really hate being directed to mobile sites. I usually cook this into my ROMs for the diamond. It just sucks you need to do it for each browsing session. Too bad there isn't a way to cook this into the firmware.
Reply With Quote
  #4 (permalink)  
Old 12-23-2009, 12:25 PM
nextelfixer's Avatar
N00b
Offline
Pocket PC: HTC Touch Pro
Carrier: Sprint
Location: New York
 
Join Date: May 2008
Posts: 38
Reputation: 70
nextelfixer is becoming a great contributor
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Re: How to change the User Agent String setting on stock Android Browser

I downloaded the Dolphin Browser and so far, I really like it. It also has a setting button in it to change the User Agent.
__________________
ADDICTED TO FLASHING
Nextel i370 -> i600 -> i1000 -> i85 -> i730 -> i860 -> 7520 -> 7100i -> i930 -> Razr2 -> HTC Touch -> Instinct -> HTC Touch Pro -> ??????
Reply With Quote
Reply

  PPCGeeks > Android > Android HTC Devices > Legacy HTC Android Devices > HTC Hero

Tags
agent, android, browser, desktop, user


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


All times are GMT -4. The time now is 02:17 PM.


Powered by vBulletin® ©2000 - 2024, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.6.0
©2012 - PPCGeeks.com