haykuro / sapphire-port-dream

Automatically exported from http://code.google.com/p/sapphire-port-dream
0 stars 0 forks source link

Browser Doesn't Send Correct User-Agent header #211

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Google Mobile website can't recognize the browser came from Android. Maybe
the browser's user-agent header doesn't include 'android' string.

Original issue reported on code.google.com by ericsk on 19 Apr 2009 at 11:59

GoogleCodeExporter commented 9 years ago
I'm in 5.0.2Hr3_zh

Original comment by ericsk on 19 Apr 2009 at 11:59

GoogleCodeExporter commented 9 years ago
Same issue happens with 5.02Hr3, the 5.02H Browser works fine if you replace it

Original comment by defconoii on 19 Apr 2009 at 12:29

Attachments:

GoogleCodeExporter commented 9 years ago
Right.
I just check useragent params:
1) cupcake test build
"Mozilla/5.0 (Linux; U; Android 1.5; en-us; htc_dream Build/CUPCAKE) 
AppleWebKit/528.5+ (KHTML, like Gecko) Version/3.1.2 Mobile Safari/525.20.1"
2) 5.02Hr3
"HTC Magic"

So, it's a defect

Original comment by toytro...@gmail.com on 19 Apr 2009 at 12:36

GoogleCodeExporter commented 9 years ago
Stupid mobile format. Why doesn't Google give us the option to disable this? 
It's maddening! Anyone 
have a temp workaround? Tried the .apk posted above, but I get the same result.

Original comment by ryannosa...@gmail.com on 19 Apr 2009 at 2:24

GoogleCodeExporter commented 9 years ago
Using the above Browser.apk is not a good option is it doesn't seem to fix the
problem and even if it did it doesn't have any zoom options like the new one. Is
there some way to edit the user agent?

Original comment by alanc...@gmail.com on 20 Apr 2009 at 2:08

GoogleCodeExporter commented 9 years ago
user agent should be hard-coded in Browser source code, so there is only one 
way to 
fix it =)

Original comment by toytro...@gmail.com on 20 Apr 2009 at 11:24

GoogleCodeExporter commented 9 years ago
Here's a temporary solution I saw on a forum post:

In the browser address bar type: "about:debug" (Don't worry, it looks like 
nothing
happened). Then go to your browser settings and scroll all the way down, the 
last
option is "UAString" and you can change the user agent here, I have been using 
the
"iPhone" because it gets you a decent browsing experience.

Mind you this is only temporary as everytime you restart you lose this 
setting... but
at least it makes it usable for now.

Original comment by alanc...@gmail.com on 20 Apr 2009 at 12:55

GoogleCodeExporter commented 9 years ago
Using the .apk from above fixed it for me in 5.0.2hr3.  I just had to refresh 
the 
webpage.

Original comment by mitchell...@gmail.com on 20 Apr 2009 at 7:18

GoogleCodeExporter commented 9 years ago
go to defect 37.  The browser attached to that defect works fine, user agent, 
zoom, and bookmarks.

Original comment by manny...@gmail.com on 21 Apr 2009 at 11:17

GoogleCodeExporter commented 9 years ago
Just dl'ed and installed with AppsInstaller. Looks good so far. Thanks!

Original comment by ryannosa...@gmail.com on 21 Apr 2009 at 11:53