Hello, i was given the following code and i'm new to this so I cant figure out where to put it. I'm using Basic4Android and im trying to change the user agent for a webview, anyway... here's the code:
Code:
Mozilla/5.0 (Linux; U; Android 4.0.3; de-ch; HTC Sensation Build/IML74K) AppleWebKit/534.30 (KHTML, like Gecko) Version/4.0 Mobile Safari/534.30
I know it probably sounds kinda noobish, i wanna know where to put that line of code...
any help would be greatly appreciated!!!
Related
Hello,
After a forum & google search I have found this solution (http://forum.xda-developers.com/showpost.php?p=3661716&postcount=49)
but apparently it does not work on 2.3.3
So I am asking here, is it possible to change the UAString to a custom string permanently on the nexus s?
(in my case, to this string: Mozilla/5.0 (Linux; U; Android 2.2.1; iw-il; GT-I9000 Build/FROYO) AppleWebKit/533.1 (KHTML, like Gecko) Version/4.0 Mobile Safari/533.1)
thanks
Gonizahavy said:
Hello,
After a forum & google search I have found this solution (http://forum.xda-developers.com/showpost.php?p=3661716&postcount=49)
but apparently it does not work on 2.3.3
So I am asking here, is it possible to change the UAString to a custom string permanently on the nexus s?
(in my case, to this string: Mozilla/5.0 (Linux; U; Android 2.2.1; iw-il; GT-I9000 Build/FROYO) AppleWebKit/533.1 (KHTML, like Gecko) Version/4.0 Mobile Safari/533.1)
thanks
--Goni Zahavy
Click to expand...
Click to collapse
in the browser type about:debug
then press menu, more, settings, go to the bottom and pick your user agent.
Thanks, but I already know about this method and it is not what I am looking for.
I need to change the user agent to the specific string I have mentioned in the first post.
(if you're asking why: because my network provider's website does not let me access his android features unless I am using a "supported phone".)
Gonizahavy said:
Thanks, but I already know about this method and it is not what I am looking for.
I need to change the user agent to the specific string I have mentioned in the first post.
(if you're asking why: because my network provider's website does not let me access his android features unless I am using a "supported phone".)
Click to expand...
Click to collapse
your only solution is to change the code yourself and compile a version of a ROM with the browser having that specific user agent string. or maybe you can convince the cyan team to add that one into it.
i dont know of any other easy ways you could do it.
Is it possible to recompile just the browser and not the complete ROM?
I'm hoping that I can get some help from all you Android tablet owners. I am currently working on a website for the company i work for and and trying to get Android tablets to load the full site and not mobile. I tried alot of this but if it works it breaks things elsewhere. I managed to come up with a working workaround in the form of adding the device name in User String ID code, ie A500, Xoom etc. However I don't know how all the other tablets show up. If anyone with android tablets can got to detectmobilebrowser dot com and tell me how their device shows up in the User String it would be a big help, so far i can only properly test with my A500 Iconia to get the user string. Thanks to anyone that can help.
I would love to help you out. However, My tab is down in anticipation for the BTL Kernel and ROM. I will as soon as I am back on line..
Anyone out there? This would really help me a lot.
For the Xoom
Moziall/5.0 (Linux; U; Android 3.2; en-us;Xoom Build/HTJ85B) AppleWebKit/534.13 (KHTML, like Gecko) Version/4.0 Safari/534.13
Great thanks a lot. Appreciate it. Anybody else out there, there are a lot of tablets i need to cover.
Nook Color with Cyanogen mod 7 show up as
Mozilla/5.0 (Linux; U; Android 2.3.4; en-us; NookColor Build/GRI40) AppleWebKit/ 533.1 (KHTML, like Gecko) Version/4.0 Mobile Safari/533.1
Asus Transformer with stock-browser: Mozilla/5.0 (Linux; U; Linux Ventana; de-de; Transformer TF101 Build/HTJ85B) AppleWebKit/534.13 (KHTML, like Gecko) Chrome/8.0 Safari/534.13
Sent from my Transformer TF101 using XDA Premium App
Transformer with Prime 1.8
Mozilla/5.0 (Linux; U; Android 3.2; en-us; Transformer TF101 Build/HTJ85B) AppleWebKit/534.13 (KHTML, like Gecko) Version Safari/534.13
I would like to help but my tab doesn't come in till next week....
Hey I was recently looking through some UA threads and noticed that there wasn't really a consolidated list. It may not be all that important to some people but to others it's very handy so I'll post what I have here and if you have one go ahead and post it or PM it to me and I'll add it to the list. This is for android only!
Motorola XOOM:
Mozilla/5.0 (Linux; U; Android 3.0; en-us; Xoom Build/HRI39) AppleWebKit/534.13 (KHTML, like Gecko) Version/4.0 Safari/534.13
LG Viper:
Mozilla/5.0 (Linux; U; Android 2.3.7; en-us; LG-LS840 Build/ZVC.GWK74) AppleWebKit/533.1 (KHTML, like Gecko) Version/4.0 Mobile Safari/533.1
I'll post more as I get them. If you want to help but don't know yours offhand there's an app on the market that gets it for you. Please read the about though as it can display information other than the stock browser info.
You can get it here.
I'm using habit browser on my tablet and the User Agent PC string is giving me the old version of google search on the web.
Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_6_3; ja-jp) AppleWebKit/533.16 (KHTML, like Gecko) Version/5.0 Safari/533.16
Anyone know what I need to change on this to get the newer version of google?
A few months ago the stock browser with my HTC android phone reported a "mobile" user agent string:
Mozilla/5.0 (Linux; Android 5.0.2; HTC6500LVW 4G Build/LRX22G) AppleWebKit/537.36 \ (KHTML, like Gecko) Version/4.0 Chrome 33.0.0.0 Mobile Safari/537.36
Auto update is enabled on this phone, and sometime over the last month that user agent string changed, it's now a "generic" string that no longer is recognized as being from a mobile device:
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/534.24 (KHTML, like Gecko) Chrome/33.0.0.0 Safari/534.24
This is the stock browser that comes with the phone. I also have Dolphin installed, and that still reports a mobile type device.
Anyone know why/how this happened and how to reverse it, get back a user agent string that reports the HTC device type? The browser is displaying pages as though they're desktop - very, very small features.
Hi,
Which version of the HTC ONE do you have?