Set permanent user agent in browser? - Samsung Galaxy Nexus

Is there a way to set the user agent to desktop *permanently* on the stock browser? Or do I have to use maxthon or some other browser? Thx
Sent from my Galaxy Nexus using XDA App

Type "about:debug" in the browser's top bar(URL bar)
Sent from my Galaxy Nexus using xda premium

platinumandroid said:
Type "about:debug" in the browser's top bar(URL bar)
Sent from my Galaxy Nexus using xda premium
Click to expand...
Click to collapse
Actually thats why i created this thread b/c its not persistent. its only active per session. once you close the browser you have to do it again and again....... why can't we just disable "mobile view" permanently? so lame.

he want permanent desktop view.

enkrypt3d said:
Actually thats why i created this thread b/c its not persistent. its only active per session. once you close the browser you have to do it again and again....... why can't we just disable "mobile view" permanently? so lame.
Click to expand...
Click to collapse
Your OP didn't specify that you wanted it permanent,all you asked was if it was possible to change it.I haven't had any issues with Dolphin Browser HD freezing up at all & I have Desktop as my UA String & I use Dolphin Browser as my primary browser and use it quite heavily.
Your right about it being lame,I think it should be a option in the default settings.
Sent from my Galaxy Nexus using xda premium

platinumandroid said:
Your OP didn't specify that you wanted it permanent,all you asked was if it was possible to change it.I haven't had any issues with Dolphin Browser HD freezing up at all & I have Desktop as my UA String & I use Dolphin Browser as my primary browser and use it quite heavily.
Your right about it being lame,I think it should be a option in the default settings.
Sent from my Galaxy Nexus using xda premium
Click to expand...
Click to collapse
Um what does the subject of this topic say exactly? Derp
Sent from my Galaxy Nexus using XDA App

enkrypt3d said:
Um what does the subject of this topic say exactly? Derp
Sent from my Galaxy Nexus using XDA App
Click to expand...
Click to collapse
I guess no one wants to take advantage of this high res screen and see web pages like they are meant to be? Who wants to view web pages in mobile view on a phone like this?

enkrypt3d said:
I guess no one wants to take advantage of this high res screen and see web pages like they are meant to be? Who wants to view web pages in mobile view on a phone like this?
Click to expand...
Click to collapse
I also would love a permanent solution as its annoying to always have to change to desktop
Sent from my Galaxy Nexus using xda premium

There is a way. It requires editing the strings xml. I have tried, but apktool will not successfully compile anything I mod
Sent from my Galaxy Nexus using xda premium

Gotta throw in a bump on this one...really shocked this hasn't been one of the first mods to have been sorted out for this device.

I modded the browser source and compiled it if anyone is interested in it. Persistent ua string and a whole slew of options not normally visible. Require root and 4.0.3.

adrynalyne said:
I modded the browser source and compiled it if anyone is interested in it. Persistent ua string and a whole slew of options not normally visible. Require root and 4.0.3.
Click to expand...
Click to collapse
That's phenomenal...where might I try out this mod?
EDIT: nevermind, found your post in the other thread! Will check it out, cheers! (btw hopefully some more folks will take notice of your work, and ideally it would be great if your mod would get a sticky on this forum, given that it should be one of the very first mods that a GN owner would want!)

Related

Saving browser useragent

I can't get the stock browser to save my useragent selection. I'm changing it by entering about:useragent in the browser. I select desktop and it works for the current window, but when I leave and return the useragent is defaulted to android again. Any suggestions?
Sent from my SPH-D710 using XDA App
+1 I would also like to know if anyone found a solution to this besides use a different browser.
+ 1, hope someone has something.
Sent from my SPH-D710 using xda premium
This has been a question for day one with the device. I tried changing this and know what has to be fixed but i can't do it. We need to have the framework-res.apk file modified to have this fixed. I will do some inquiring and see what i can find.
dschachm said:
This has been a question for day one with the device. I tried changing this and know what has to be fixed but i can't do it. We need to have the framework-res.apk file modified to have this fixed. I will do some inquiring and see what i can find.
Click to expand...
Click to collapse
Thanks for taking the initiative. I really don't know where to start.
I just made a bookmark for the useragent code and select it. Works pretty painlessly until a better technique comes up.
Opera browser does display desktop display.
If take sites you regularly visit and bookmark the Desktop url, you can just go to the bookmark for those sites and most browsers will display the desktop.
System searching those sites then works most efficiently..and it'll desktop them.
or u can follow the guide in this section to remove sprint proxy, that should also fix the issue.
Sent from my SPH-D710 using xda premium
veritasaequita said:
or u can follow the guide in this section to remove sprint proxy, that should also fix the issue.
Sent from my SPH-D710 using xda premium
Click to expand...
Click to collapse
The proxy fix didnt help the user agent for me. My user agent still reverts back to custom.
Does any know whats actually causing this to happen? The user agent change on other browsers such as dolphin does not work for me either.
Devo
There are a few threads in the devo section addressing this issue.... For now there doesn't seem to be a solid workaround. I'm sure there will be ROMs in the coming weeks that fix it. A PITA to be sure...
YMMV

How to change the user agent in stock browser???

I know there is a setting that says request desktop site but it want save the setting, is there a permanent way to change the user agent to desktop mode?
Thanks
Sent from my Galaxy Nexus using xda premium
I dont know know how to do it in stock browser but in Dolphin you can change to any user agent including iPhone.
Gunner86 said:
I know there is a setting that says request desktop site but it want save the setting, is there a permanent way to change the user agent to desktop mode?
Thanks
Sent from my Galaxy Nexus using xda premium
Click to expand...
Click to collapse
Looked through the stock browser and I don't see any settings allowing the user agent to be adjusted. Might have to make the adjustment thru smali/reversing the apk or in source code and compiling from AOSP.
Otherwise, as suggested above, 3rd party browsers might be more likely to allow this information to be changed.
Gunner86 said:
I know there is a setting that says request desktop site but it want save the setting, is there a permanent way to change the user agent to desktop mode?
Thanks
Sent from my Galaxy Nexus using xda premium
Click to expand...
Click to collapse
In the broswer search field type in about:debug, hit enter. Go to settings>debug>UAString and choose Desktop
Sent from my Galaxy Nexus using xda premium
That's strange. In all the blurb leading up to the release it was said multiple times that there was an option to select Desktop view for sites, albeit without the ability to remember your preference.
DirkGently said:
That's strange. In all the blurb leading up to the release it was said multiple times that there was an option to select Desktop view for sites, albeit without the ability to remember your preference.
Click to expand...
Click to collapse
There is an option. The OP wanted it to always request the desktop version for all websites instead of having to select it for each one.
about:debug isn't permanent, as said above. Whenever you're redirected to a mobile website hit the settings icon and there will be a request the full website option. Isn't the same as setting the UA string but gets you there.
So anybody find a *permanent* fix for this yet? With all due respect to devs, not really sure why all the time and effort is being put into ROMs, etc, when simple things like permanent UA string mods haven't been sorted out yet...
There's an app in the market based on the ics browser called "ics browser+" that has the option. Its the stock browser with more features
Sent from my PG86100 using xda premium
I sorted it two weeks ago.
I make no guarantee it works on:
OEM anything.
Pre 4.0.3 roms.
non Team BAMF roms. (That can be fixed by re-signing)
adrynalyne said:
I sorted it two weeks ago.
I make no guarantee it works on:
OEM anything.
Pre 4.0.3 roms.
non Team BAMF roms. (That can be fixed by re-signing)
Click to expand...
Click to collapse
Will check it out now...FWIW I'm running 4.0.3 CM9 kang, so we'll see what happens....

AOSP browser from ICS on N7 ?

Does anyone think it would be possible to install the default browser from ICS? The jelly bean browser is lacking the very useful and important "read" function that I loved do much.
I tried to copy the browser from my evo lte, but it only crashes.
Sent from my Nexus 7 using xda app-developers app
haz3lnut said:
Does anyone think it would be possible to install the default browser from ICS? The jelly bean browser is lacking the very useful and important "read" function that I loved do much.
I tried to copy the browser from my evo lte, but it only crashes.
Click to expand...
Click to collapse
I flashed the AOKP JB build 1 rom, and it has the stock browser in it.
Did you change to the proper permissions? Did you disable the browser sync app?
Sent from my Nexus 7 using xda app-developers app
Yes. Yes. I got the jb browser running just fine. But it lacks the very important "read" function, which reformats a page for easy, uncluttered reading. That's why I'm looking to install the version from ics.
Sent from my Nexus 7 using xda app-developers app
Bump.
Sent from my Nexus 7 using xda app-developers app
haz3lnut said:
Yes. Yes. I got the jb browser running just fine. But it lacks the very important "read" function, which reformats a page for easy, uncluttered reading. That's why I'm looking to install the version from ics.
Sent from my Nexus 7 using xda app-developers app
Click to expand...
Click to collapse
Read function?
man....I can't for the life of me picture that...guess I must whip out the Gnex and look....I prolly been overlooking a very useful feature haven't I?
Sent from my Nexus 7 using Tapatalk 2
ashclepdia said:
Read function?
man....I can't for the life of me picture that...guess I must whip out the Gnex and look....I prolly been overlooking a very useful feature haven't I?
Click to expand...
Click to collapse
See here: http://www.guidingtech.com/11294/and...-things-to-do/
I used it all the time. But not there in the JB browser.
haz3lnut said:
See here: http://www.guidingtech.com/11294/and...-things-to-do/
I used it all the time. But not there in the JB browser.
Click to expand...
Click to collapse
Wow
Looks very useful
Thing is,.I've NEVER.seen that. Ever. Anywhere.
only thing even close that I've seen is pressing menu> dance for offline reading. i have never seen what is described there at all.
Is that a feature built into a certain OEMs included browser? Cuz it's certainly not on my gnex on stock aosp.
Maybe I'll need to go back to ics again just to make sure i am not losing my mind lol. Which i probably am.....
Hmmm, well I know it's on my htc evo 4g lte, so maybe it's only htc phones?
Sent from my Nexus 7 using xda app-developers app
Correct, that is a functionality within the sense browser. Not the stock ICS browser.
Is HTC violating the GPL by not releasing the source for their modified browser? Or is that source available somewhere?
Sent from my Nexus 7 using xda app-developers app

View webpage source on mobile browser?

Hey guys just wondering if there is a way to view the source code for a webpage like on a PC. Usually (on windows) if you're on a website and you go to View and hit Source it's there. Don't see it on stock 4.1.2 browser or chrome. Is there a way?
Sent from my Galaxy Nexus using xda app-developers app
RoyJ said:
Hey guys just wondering if there is a way to view the source code for a webpage like on a PC. Usually (on windows) if you're on a website and you go to View and hit Source it's there. Don't see it on stock 4.1.2 browser or chrome. Is there a way?
Sent from my Galaxy Nexus using xda app-developers app
Click to expand...
Click to collapse
you mean the .htm or html file?
Copy its address and add it to your browser, it works well like that!
Not sure what you mean, but usually it just opens a webpage that looks like notepad and has the source for the page you're on. That's all I'm looking for
Sent from my Galaxy Nexus using xda app-developers app
RoyJ said:
Not sure what you mean, but usually it just opens a webpage that looks like notepad and has the source for the page you're on. That's all I'm looking for
Sent from my Galaxy Nexus using xda app-developers app
Click to expand...
Click to collapse
OK!
if it can't automatically give you the option of the browsers then go to the direction where is the file e.g. index.htm and copy its address /sdcard/website/index.htm and put it to browser's url bar and it will open the file via browser..
"View Web Source" from the Google Play Store
play.google.com direct link
manumanfred said:
OK!
if it can't automatically give you the option of the browsers then go to the direction where is the file e.g. index.htm and copy its address /sdcard/website/index.htm and put it to browser's url bar and it will open the file via browser..
Click to expand...
Click to collapse
Still confused about what you're saying, sorry, so I have to go to where what file is exactly? Real sorry man I spent most of the night backing up windows and trying to dual boot Ubuntu. Few beers deep ATM....lol
Sent from my Galaxy Nexus using xda app-developers app
the easiest and fastest way to view source is download Firefox browser. It has a free plugin in its store equivalent that allows you to view source in the browser itself without closing the site you are viewing.
Source: I use it.
Please press thanks if this helps.
Sent from my Galaxy Nexus using xda premium
thanks I guess that sorta works. It only displays like 3 or 4 lines of text and then I have to scroll the whole rest of the way across. Like 90% of the screen is blank and unused. Also if I try to zoom in everything disappears same if I scroll too fast. :/
Sent from my Galaxy Nexus using xda app-developers app
Add view-source: in front of URL
Android versions of Firefox, Kiwi and Chrome all allow you to put "view-source:" on the URL line BEFORE the https:// (or http://).
Example:
view-source:https://forum.xda-developers.com

Habit browser

Anyone want to check out a new browser in play store. Very nice and has alot of options. Also very quick response (even for me who don't have lte inmy area yet :banghead:
Sent from my SPH-L900 using xda premium
Uamore6 said:
Anyone want to check out a new browser in play store. Very nice and has alot of options. Also very quick response (even for me who don't have lte inmy area yet :banghead:
Sent from my SPH-L900 using xda premium
Click to expand...
Click to collapse
Nice find bud... its a pretty good browser I like it.
Sent from my SPH-L900 using xda app-developers app
Cool browser. Wish it supported bookmark folder import. Loosing the hierarchical folder of 300 bookmarks is a no go.
Sent from my SPH-L900 using Tapatalk 2
Uamore6 said:
Anyone want to check out a new browser in play store. Very nice and has alot of options. Also very quick response (even for me who don't have lte inmy area yet :banghead:
Sent from my SPH-L900 using xda premium
Click to expand...
Click to collapse
This browser is great. it even supports native flash within the browser. Super fast and excellent controls and the customization options are great. Good find!
**edit**
Wish it had a way to reflow the text shown you Zoom in. This is one thing I really like from opera browser.
-Wizzle
Great browser smooth and fast and supports flash
Sent from my SPH-L900 using xda app-developers app
wizzlewizzle said:
Wish it had a way to reflow the text shown you Zoom in. This is one thing I really like from opera browser.
Click to expand...
Click to collapse
Just tick "Auto-fit pages", and there you go
hasenbein1966 said:
Just tick "Auto-fit pages", and there you go
Click to expand...
Click to collapse
I did that and it doesn't change the text to fit on my screen when I zoom in.. is there a different setting I'm missing?
-Wizzle

Categories

Resources