Changing UserAgent of Browser (NOT about:debug) - Hero, G2 Touch Android Development

Hi All,
I'm looking into an issue in VillainROM where the browser reports the device to be a Motorola Droid / Verizon Droid with larger screen res. than the hero has. This causes issues with some google sites.
I'm trying to find the user agent string of the browser, so I can change it. But I'm not after the about:debug way to change the string. I'm trying to find it in the filesystem or apk, to see if I can change it to the Hero's correct resolution.
Anyone got any ideas where this would be stored?

I think it may be in here
/data/data/com.android.browser/shared_prefs/com.android.browser_preferences.xml
got it from this thread on modaco
http://android.modaco.com/content/h...ge-user-agent-in-browser-for-swisscom-tv-air/

Minimad said:
I think it may be in here
/data/data/com.android.browser/shared_prefs/com.android.browser_preferences.xml
got it from this thread on modaco
http://android.modaco.com/content/h...ge-user-agent-in-browser-for-swisscom-tv-air/
Click to expand...
Click to collapse
Thanks. Seems to be working OK

user agent
Hello,
On VillainRom 5, it dosn't seem to work.
When I go to http://whatsmyuseragent.com/, that it detects my original user agent like that it doesn't use the modified file /data/data/com.android.browser/shared_prefs/com.android.browser_preferences.xml :-(

Related

PIE "save picture as" saves very small pixilated picture

Hey all,
I've really been trying to find a solution to this and searched a lot. I think it has something to do with the USER AGENT thing, and changing the registry, but I can't get it to work.
So PIE loads all pictures on the phone, automatically squishing it or formatting it for the hermes screen resolution. That's fine, but when I save the image, it ONLY saves it at that small, pixilated crappy resolution. I can't zoom the picture.
I think this is somehow linked to the whole "can't post on myspace" thing, because I can't post on myspace either haha.
I'm using the Black 2.5 right now, but tried Custel's 1.2 and had the same issue. When I used Black 1.2 or 2.0 it was NOT an issue.
This happens whether or not I use PIE Plus.
I know where the information is on the WIKI showing the reg edit to change the user agent so the web thinks you're using a regular desktop browser, and PIE Plus has this option to change in it's options as well, but it's not doing it.
Is there some other registry key or whatever that i'm missing that tells the internet how to format its information?
Again, I searched and looked and tried and hacked and regged haha, but did not find a definitive answer to this. MUST POST TO MYSPACE ON MY PHONE!!!!
Thanks.
anyone? i'm willing to donate some moolah... i need to figure this out before i hack back down to 1.2
chrisallen said:
anyone? i'm willing to donate some moolah... i need to figure this out before i hack back down to 1.2
Click to expand...
Click to collapse
check your pm's
thanks. i don't like opera though. the scroll bar on the right doesn't work at all and i don't like the interface.
the only reason i'm persistent here is because it actually WORKED at one time with no problems! all i did was change the user agent in the reg and it worked after i set it to make the net think it was windows xp.
but on these latest roms, it doesn't work.
i know there has to be a solution here.
thanks though!
chrisallen said:
thanks. i don't like opera though. the scroll bar on the right doesn't work at all and i don't like the interface.
the only reason i'm persistent here is because it actually WORKED at one time with no problems! all i did was change the user agent in the reg and it worked after i set it to make the net think it was windows xp.
but on these latest roms, it doesn't work.
i know there has to be a solution here.
thanks though!
Click to expand...
Click to collapse
scroll bar doesn't work? which version were you using? Also have you tried minimo? Not a fan of it personally but might work for your needs?
minislo is too mo... I mean... yeah.
I bumped back down to black 2.0 and PIE is perfect! man I may have to stay here
there's gotta be a reason it works here and not higher...
sorry to up my own thread,
but with black 3.5 now, the myspace posting works, and gifs work...
but jpegs still display as formatted to the screen size, and when saving the images, they are much smaller in file size and resolution.
for example, a normally 111kb file is only 25k when saved.
there has to be a definitive answer to this!! and i can't be the only one trying to look at po... uh, pictures and they don't display well.
I've noticed this behavior when I have the Cingular proxy enabled. My understanding is the proxy compresses images in order to speed up load times. Once disabled, images appear, and can be saved, as they should be.
Perhaps you have a carrier proxy enabled?
ugh... n00b question of the millenium
how do i disable the cingular proxy from black dymond?

XDA search function issues!!!

Well im not sure if this is only an issue for me or everyone but when you use teh search feature at the top it will only display one page of links if you select page 2 it throws a 404 error. kind of makes it hard to find info and will all the new phone sites its harder to find stuff from xda. just a heads up.
HackMimic said:
Well im not sure if this is only an issue for me or everyone but when you use teh search feature at the top it will only display one page of links if you select page 2 it throws a 404 error. kind of makes it hard to find info and will all the new phone sites its harder to find stuff from xda. just a heads up.
Click to expand...
Click to collapse
I cannot re-create it searching the forum search or the google search for "Flash".
What search Term were you using?
Dave
DaveShaw said:
I cannot re-create it searching the forum search or the google search for "Flash".
What search Term were you using?
Dave
Click to expand...
Click to collapse
I have been working on the issue myself and discovered it only is a problem if you use Fire Fox. If i fire up IE and search the site all is well. The issue could just be related to the horrible flash support through FF. If you need any help with more data just let me know i will take some screens so you can see what i mean.
any term will cause the issue and it is only related to the XDA search intergrated into the forum. Google is fine.
HackMimic said:
I have been working on the issue myself and discovered it only is a problem if you use Fire Fox. If i fire up IE and search the site all is well. The issue could just be related to the horrible flash support through FF. If you need any help with more data just let me know i will take some screens so you can see what i mean.
any term will cause the issue and it is only related to the XDA search intergrated into the forum. Google is fine.
Click to expand...
Click to collapse
I use FF and never have an issue searching internal as long as stay past 3 letters since the search engine relies on 4+ & XDA Google search fine too.
Just tried every way to create a 404 error and not happening.
i have attached some screenshots. one is the first page results and you will see i typed in maxmanila so way over 3 but when i select page 2 its a no go and that is what the other screenshot is. i am finding that issues with several other machines running firefox.
It's a mystery. I just tried with Firefox 3.6 and had no problems with successive search pages. I wonder if it's something in your setup. Are all the computers you are using operating through the same router? Search results do go out of date and usually only work on the PC on which the search was done. I assume you are not using a proxy server?
Mike
yes and no. 1 tower goes through my router but i have tried with my EME(UMPC) and Laptop and both do the same. They will either use the same router or my phones internet or other internet locations. Each setup is diffent. only thing i can think of is that firebug or greasemonkey causing the issue but i have no scripts running when i come to this site. its a mystery to me.
i have no problems with firefox, chrome or ie or safari...

How to change browser tab??

Hi everyone!! I've tried to change my default browser on the TAB, but i can't.
Everytime i open it up the screen goes black, htc appears in the middle of the page and then it dissappear, leading me back to the tab; What can be done??
browser: Opera 9 Beta;
thanks!!
i' ve managed to modify the xlm file, setting Opera as default.
But it still doens't work, because i need to change OperaL file in Windows, and I cannot modify it, even with Total C.
HOW?? Read only, modify, i try again and it's still there!! still read only!! WHat can I do?? PLEASEE!! ):
I clicked on this thinking that someone was making a new browser tab available, because that's what the thread title suggests.
It turns out it's a question. There's actually a punctuation mark specifically for that. It looks like this: ? not this: !
I know this sounds pedantic, and I'll cop to that. My main point is that if you're asking for help linking an alternate browser to the existing tab, you're far better off actually asking that question.
If someone has the answer to your question but thinks you're announcing a "New Browser TAB!!" in which they have no interest, what's to keep them from just passing your thread by and never responding?
ur' right..
i just wrote it down simply, i'm gonna change it now. However, do you know the answer??

[Q] DHD thinks it's an iPhone

Hi
Ever since flashing LeeDroid a few weeks ago my phone thinks its an iPhone. For example, when I used to come onto this site with the browser on the Stock ROM it said "This forum is Android native" or something like that. Now it says "This forum is iPhone native".
Any ideas on what this is?
Which internet browser did you use?
You seem to have cracked it my friend. It only happens in Dolphin and not the regular browser.
Then i guess there is an option where you can change the browser user-agent header to android
Found it. Thanks very much mate

Like better than my SGS2 EXCEPT FOR THIS which I HATE

And this has always been a thing with me:
Samsung has industry leading screens but they then DUMB DOWN THE WEB PAGE DISPLAYS TO MOBILE!
At least with my International galaxy S2 I could use a third party browser and change the useragent to desktop.
The Epic 4G Touch DOESN'T EVEN LET YOU DO THAT. F***!
Sound like I'm yelling? GOOD!
WTF SAMSUNG/SPRINT. DON'T YOU THINK THATS PARTLY WHY SOME FOLKS WANT A FREAKIN 4'5" SCREEN....TO ENJOY FULL PAGE DISPLAYS.
Damn. Gotta decide if this is a dealbreaker.
I know a developer will be able to mod this.
(You know the Charge has a useragent setting).
I KNOW I can scroll down and opt for the desktop. Don't wanna have to do that evwrytine.
Btw, I don't use the addressbar useragent script. It doesn't stick and is a pain.
What about Dolphin HD?
wow, I really hope this isnt actually a deal breaker for you.
It's the same way with my Galaxy Tab, and it's a Sprint thing, not Samsung. Certain sites (like NYT) will not go desktop on Sprint despite the user agent setting. Reportedly, you could get it to go to the full site on Verizon by changing the user agent. This did not apply to all sites, just the ones that did not want you to go to the full site on mobile devices.
Well tried boat browser and dolphin HD mini and htc's Maxthon..same
I suppose its a way for carrier to save data load...
I do a lot of work on the go in part working with web sites. This sucks.
Hopefully we'll get it modded.
did u try type ‘about:useragent’ in the browser? works for me on my gsII
yoklol said:
did u try type ‘about:useragent’ in the browser? works for me on my gsII
Click to expand...
Click to collapse
But you have to keep typing it in if you close the browser right?
I always use Dolphin HD. Give that a try.
No go on either Dolphin.
Never seen a disabling of this that includes 3rd party browsers.
Folks if you do a lotof browsing...this is called crippling.
rockky said:
But you have to keep typing it in if you close the browser right?
Click to expand...
Click to collapse
nope..only have to do it once
lol OP, you are a little dramatic
Hi, get a tablet.
Try opera mobile
Sent from my SPH-D710 using XDA App
clamknuckle said:
Hi, get a tablet.
Click to expand...
Click to collapse
I believe the tablets do the same thing on Sprint.
so u cant get any webpages to display in desktop mode?? because i just tried it in skyfire, and got the following webpages to load as desktop (they did NOT load mobile):
xda
engadget
yahoo
facebook
cnn
tried on sprint 3g first, and then on wifi (dunno if that makes difference), but it worked on both
So... I just installed Dolphin HD and switched the useragent to desktop and it worked fine...sounds like user error
The user agent change works for most webpages. But certain sites like espn and nyt don't, because they don't want you to. If you deep link, it will go to the desktop page (like "espn.com/nfl"), but the mainpage is mobile only and totally sucks ass.
On my old EVO, in the EPST settings, you could remove the Sprint Proxy from the network config and not have anything filtered.
This is my first Samsung device, so I'm not sure if EPST exists or how to edit those settings.
You had to remove the HTTPPDProxy
I just tried about:debug. Got alot of extra settings but didn't see anything to change the useragent or desktop mode
Edit: never mind i forgot it was about:useragent
Sent from my SPH-D710 using xda premium
jefbal99 said:
On my old EVO, in the EPST settings, you could remove the Sprint Proxy from the network config and not have anything filtered.
This is my first Samsung device, so I'm not sure if EPST exists or how to edit those settings.
You had to remove the HTTPPDProxy
Click to expand...
Click to collapse
I was wondering about that myself being from a string of HTC devices. I swore off Samsung after the moment, the NS4G kinda doesn't count software wise...
...the NS4G, hardware wise, is what convinced me that this is a serious contender and likely winner in this round of superphones....which is almost over, we'll get recess and the new Nexus device in a few months and then late winter is preseason.
Come to think of it if you were to graph that out the Nexus truly would be the, well, nexus...I think I just derped.

Categories

Resources