[Q] Change Mobile IE User Agent - Windows Phone 7 Development and Hacking

Hi, does anyone know how to change WP7's IE user agent?
I've tried modifying registry [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\5.0\User Agent] with no luck at all, www.whatsmyuseragent.com still showing original Mobile IE7 user agent string.
Thanks a bunch.

hey guys, i've just tested the web browser with iPhone 4.1 Mobile Safari user agent string "User-Agent: Mozilla/5.0 (iPhone; U; CPU iPhone OS 4_1 like Mac OS X; en-us) AppleWebKit/532.9 (KHTML, like Gecko) Version/4.0.5 Mobile/8B117 Safari/6531.22.7"
The result is unacceptable in most occasions, so... guess we'll just have to wait for IE9 to come out

Please tell us how you changed this! I've been looking for a way to do it for some time.

GoodDayToDie said:
Please tell us how you changed this! I've been looking for a way to do it for some time.
Click to expand...
Click to collapse
It involves lots of needy greedy programming stuff. I basically create a browser with the built-in WebBrowser control and set the user-agent to iPhone 4.1 mobile safari user-agent.
I've attached the source code. But anyway MobileIE7 just isn't powerful enough to render those elements, e.g. it can't properly render Google to the formatting like iPhone safari.
Cheers

user agent switcher
Folks, just to bring closure to this thread and for the benefit of future Bing/Google searches, here is the marketplace-approved user agent switcher:
http://www.windowsphone.com/en-us/store/app/user-agent-switcher/65783cf3-4a4f-4a89-a315-7998fe1ced6e
On your WP7 phone, just type in "user agent switcher" into marketplace search. Using the Apple Ipad user-agent string seems to work really well with a lot of sites on WP7.8.

^^ Great app user agent switcher, and I am starting to use it, it is just what I am looking for.
But, it would be nice to integrate it in IE or better UC browser, that will be so great...
And offcourse text reflow in those web browsers!

Related

Help - No BBC iplayer streaming after flashing

Here's my situation.
I was able to stream iplayer thru opera mobile on my HD stock rom, bought from mobiles.co.uk.
Got into flashing last week but have had absolutely no joy with iplayer since. I have tried many different opera mobile builds. I have changed the user agent within but with still no joy. The closest I have managed, was to load the iplayer site only to be told my device is not supported (using the HD user agent).
Anybody got any pointers - please enlighten me.
I don't think the problem is related to flashing.
I am getting the same message for the last few days and I'm using original (Orange) ROM.
Is iplayer working for anyone else?
hi guys
yeah i had the same problem after flashing with Davideuck V1. I thought it was the build. I kept my old ORANGE ROMS, opera.ini file just in case but it still didnt work.
Looks like support for the Touch HD has been dropped by the BBC for now. LAthough it stills lists it on their site.
For now ive just used the "sgh-i900" hack in the user agent field in the opera.ini file and that seesm to work fine. If you do a search on here or at wmpoweruser you should be able to do this.
WTF says unsupported device now!!! thats maddness -- using duttys xtreme 1.9 (was working last week, spent the whole week getting it up and running)
bbc suck!
Here are the instructions for the fix mentioned above:
* Run Opera
* In the address bar enter opera:config (no http://)
* Scroll down to User Prefs and click
* Scroll down to Custom User-Agent and at the end of the pre-filled text add sgh-i900
* Scroll down some more and press Save. You will get a prompt which suggests you may need to reset the phone, but for this you don’t.
* Now point your browser to http://www.bbc.co.uk/mobile/iplayer/ and enjoy.
It worked for me.
THANKS!
Problem for me there is, I've got no pre filled text at all in the custom user agent.
Can anyone provide the complete string to fill in.
Thanks in advance.
Some custom ROMS have disabled flash in Opera for stability and speed. They usually include IE though which should work with iPlayer.
* Scroll down to Custom User-Agent and at the end of the pre-filled text add sgh-i900
So - can anyone post the full text string to type into the custom user agent. Mine's blank!
had the same problem a while back,just goto opera config and add standard Touch HD user agent then it should all work.
HTC_Touch_HD_T8282 Opera/9.50 (Windows NT 5.1; U; en)
_macca said:
HTC_Touch_HD_T8282 Opera/9.50 (Windows NT 5.1; U; en)
Click to expand...
Click to collapse
Sorry, my mistake. What I meant to ask for - does anynbody have the full string for the Samsung Omnia.
HD string just says unsupported device!
seems to give me playback error?? wtf is that about. but not this.... it did the same when the user agent said HTC_TOUCH_HD_T8282 Opera/9.50 (Windows NT 5.1; U; en)
is the sgh-i900 working on everyone elses??? or is it just my setup i have at the moment??? it opened up with WIFI and also streaming media app.

Anchorfree Hotspot Shield VPN access

Anchorfree gives on their website the procedure to access their VPN with an iphone.
Why can i not use these settings on my PPC ?
Does anyone have an idea ?
Thanks.
PS: Don't tell me that an iphone can do things that a Windows mobile device can't
http://www.anchorfree.com/
Ok, I see.
Just to get your attention ...
HotSpot Shield is a vpn that allows people in China, like me, to connect to youtube, facebook, an many other websites.
This is why i'm really looking for some help here
ThanX
You will have to change your default user agent, for opera you can do it straight from the browser.
For internet explorer i think you can do it in advanced configuration tool. there have been alot of threads covering how to do this, just use search, also to help you here is the default iphone user agent.
Mozilla/5.0 (iPhone; U; CPU like Mac OS X; en) AppleWebKit/420+ (KHTML, like Gecko) Version/3.0 Mobile/1A543 Safari/419.3
i would also like to find out ,,, tried to set it up but wasnt successful for me....
anyone mind to help ?

[Q] Can we change the User Agent string?

Hi,
what do you think, is there any solution to change the browser's user agent string to gain acces to (for exmaple) iPhone optimized webpages? Or is it hard-coded into the browser?
I saw several times UA String somewhere... maybe in *.ini files.
Best Regards
Edit:
Found in ffs in several Widgets *.js
SAMSUNG; SAMSUNG-GT-S8500/S8500SXJD1; U; Bada/1.0; en-us) AppleWebKit/533.1 (KHTML, like Gecko) Dolfin/2.0 Mobile WVGA SMS-MMS/1.2.0 OPN-B"
http://forum.xda-developers.com/showthread.php?t=906966
You need to flash RC2 file with MID in the name... to activate this menu.
Best Regards
Here is a list of UAgent if it can help
http://www.handsetdetection.com/properties/vendormodel/Samsung/GT S8500
Go to your stock browser.
In the address bar type about:debug
press go.
Then press your menu button and then settings. Awhole lot of options open up.
Choose your desired ua string at the bottom.
enjoy!
Hit thethanks button if i have helped!
Go to your stock browser.
In the address bar type about:debug
press go.
Then press your menu button and awhole lot of options open up.
Choose your desired ua string, reload your desired page.
enjoy!
Hit thethanks button if i have helped!
I have tried this on my g1 g2 zoom and galaxy tab with 2.2 2.2.1 and 2.3.3
it has worked for all.
Currently i am on the leaked gingerbread rom with overcome beta 1
Maybe bada cannot do it.
Ps my uploading isnt working will try later to post a pic of what u should do and see
Dokugogagoji said:
Yeah...bada browser is not Dolphin...it is dolFin ...Samsung wants to confuse their bada users ahah
Click to expand...
Click to collapse
Try it in stock browser
Hi today I found a file which has one line:
"nUser-Agent: Mozilla/5.0 (iPhone; U; CPU iPhone OS 3_1_2 like Mac OS X; en-us) AppleWebKit/528.18 (KHTML, like Gecko) Version/4.0 Mobile / 7D11 Safari/528.16 \ r \ n "
Maybe we can change this user agent. File is located in: "\ SystemFS \ User \ Br \ RmConfig \ iphone.ini" (strange name)
Also in this file there is still a pretty interesting line: "ACCEPT_EXT_DOWNLOAD =" I think it defines extensions for download.
Sorry for my English
Yes the iphone.ini comes from the WebKit, it is no longer a secret that samsung uses some Apple relevated things for bada.
But this ini is part of the ported WebKit, for they that don't knows what WebKit is:
It is a HTML-Rendering-Engine, Browsers like Dolfin, Dolphin, Safari are all based on it.
By the way the Bada WebKit from 1.2 is terrible. But iphone sites working just I know, you only need to find the correct link of the page, some sites have different features for iphone and android wich goes through javascript, this sites checks if their web client connects to the site, if not they block scrolling and things like that. This is a blocking feature for other clients and browsers. The creators don't wont that the content can be used without their app.
The best sample of one of this sites is imo.im this is one of this sites where only a certified app can scroll on it, and so on.
While developing Voluntas i have seen some such sites, maybe it could be possible to add such checks in the application so that everyone can use such sites.
Manipulating the Ugent string would be a good way for that, but for me it doesn't worked on even this site written below.
frxbg said:
Hi today I found a file which has one line:
"nUser-Agent: Mozilla/5.0 (iPhone; U; CPU iPhone OS 3_1_2 like Mac OS X; en-us) AppleWebKit/528.18 (KHTML, like Gecko) Version/4.0 Mobile / 7D11 Safari/528.16 \ r \ n "
Maybe we can change this user agent. File is located in: "\ SystemFS \ User \ Br \ RmConfig \ iphone.ini" (strange name)
Also in this file there is still a pretty interesting line: "ACCEPT_EXT_DOWNLOAD =" I think it defines extensions for download.
Sorry for my English
Click to expand...
Click to collapse
Yeah, even I thought that was extensions for download. I added all the MIME/ Internet media type extensions for different formats. I flashed the the FFS file which had the modified iphone.ini file. But it didn't work.
Hi,
did anyone have success already in editing the useragent-string? Currently I'm living in Japan and I am not able to use my Wave-S8500 with my messaging-flat.
The reason is, that the provider Softbank checks the User-Agent String when sending MMS and if the phone was sold by them, the connection is blocked . I found several tutorials to fit the string with android and valid ones for softbank, but I found no way to do that with bada...
I really would like to use my Wave again instead of the crappy phone I got from softbank...
Best regards,
Chris
Ok, yesterday I stumbled on the answer in another forum (Thanks to mylove90 from sammobile-forum).
You can change the User Agent String as following:
-First enter *#33284*# and change the Debug-Level to Middle
-After reboot, enter *#7092463*#, then go to Module Settings>Browser>UAgent and just change the string (it would be a good idea to note the orginial one first )
-If wanted, enter *#33284*# and change the Debug-Level to Low again
My Wave is working now with SoftBank, after changing the User Agent String to one from a SoftBank Phone
Chris

Any browser for WP7?

I don't like Ie9
Is there another browser for my hd2 with Mango?
SurfCube Browser.
Browser pluse
Sent from my HD2 using XDA Windows Phone 7 App
It might be worth people writing to the makers of browsers for other phones to see if they'll consider writing for WP7 Mango. I'd love to see something like the Dolphin browser (from Android) ported, and they've recently rewritten for iPhone so I'm sure they're considering all platforms.
http://www.dolphin-browser.com/contact-us
Yeah, I gotta say ie9 has been a disappointment. Really would love to see an opera browser, like I had on my HD2 running winmo 6.5.x. That browser was light years better than ie9.
Sent from my King LEO using XDA Windows Phone 7 App
Firefox for Android is very nice, I abandoned Opera for it. Would be great to see on WP7.
JonnieLasVegas said:
Yeah, I gotta say ie9 has been a disappointment. Really would love to see an opera browser, like I had on my HD2 running winmo 6.5.x. That browser was light years better than ie9.
Sent from my King LEO using XDA Windows Phone 7 App
Click to expand...
Click to collapse
Unfortunately this isn't possible all browser because WP7 doesn't allow native apps. So any browser will be mere wrapper of IE.
aarayas said:
Unfortunately this isn't possible all browser because WP7 doesn't allow native apps. So any browser will be mere wrapper of IE.
Click to expand...
Click to collapse
MS would maybe allow big companies like mozilla to write native apps...
And if not, cotulla & co are making big process on unlocking our WP7 devices to a level where we can write our own native apps...
waiting for OPERA on WP7.
I would LOVE Opera for WP7 although I highly doubt we will be getting Opera anytime soon, if ever, for WP7.
Although another browser similar to Opera, I would be extremely happy. I dislike IE9 quite a bit. Esecially the fact that you cannot browse with cached images... Kills my airtime.
Only thing I'd change was to add the tabs button back nodo browser was better like that.

Problem with Cool3D Sense 3.5 and all Sense 3.5 ROMS

Hey all, just a small problem I've encountered with all sense 3.5 ROM ranging from Seb15's to Cool3D sense 3.5.
Does anyone know how disable mobile view in the browser?
I've tried unticking the box in the settings but it still does not disable the mobile view as all the websites I go on, it automatically puts me into mobile view!
Does anyone know how to actually disable it?
Cheers
Dave
this may be silly but have you tried restarting after you unticked mobile view
Hi Dave,
That setting works for me on sebastiaan Runnymede fine. Just tried it on www diy com for example.
Yep, I've restarted when unticked. It won't move to desktop view. Such websites I have tried is Google, BBC, engadget, guardian and YouTube. I've tried "about:debug" to get the UA String option. When I change that to desktop I still can't get desktop mode to work!
Sent from my Brain using XDA App
Hi Dave,
This won't help you fix your problem I expect , but just sharing how it works for me.
Google. I have to click the Mobile or Classic link at the bottom of the page to get it to switch. It ignores the setting in the browser.
Endgadget and Guardian always gives me the mobile version, regardless of setting.
youtube and BBC gives me mobile or desktop depending on what I've ticked. I don't have to even restart my browser to switch I just change the setting and then type www youtube com in the address bar and it loads the "right" version.
Maybe it's to do with how the web site detects the browser, rather than a problem with Sense per se?
topgeardave said:
Yep, I've restarted when unticked. It won't move to desktop view. Such websites I have tried is Google, BBC, engadget, guardian and YouTube. I've tried "about:debug" to get the UA String option. When I change that to desktop I still can't get desktop mode to work!
Sent from my Brain using XDA App
Click to expand...
Click to collapse
beardymarrow said:
Hi Dave,
This won't help you fix your problem I expect , but just sharing how it works for me.
Google. I have to click the Mobile or Classic link at the bottom of the page to get it to switch. It ignores the setting in the browser.
Endgadget and Guardian always gives me the mobile version, regardless of setting.
youtube and BBC gives me mobile or desktop depending on what I've ticked. I don't have to even restart my browser to switch I just change the setting and then type www youtube com in the address bar and it loads the "right" version.
Maybe it's to do with how the web site detects the browser, rather than a problem with Sense per se?
Click to expand...
Click to collapse
All pre-sense 3.5 totally disabled the mobile setting. Sense 2.1 and 3.0 browsers when unticked let me access the web in desktop mode. I had to do no faffing around. I think I'll have to let the devs know because even when the UA string is changed to desktop it still presents me with mobile view.
I've done a bit of playing with my daily driver ROM, while looking at the User Agent String on www mybrowserinfo com.
On Seb15 Runny AIO ROM (Android 2.3.5, Sense 3.5) in mobile view :-
Mozilla/5.0 (Linux; U; Android 2.3.5; en-gb; HTC_Desire_A8181 Build/GRJ90) AppleWebKit/533.1 (KHTML, like Gecko) Version/4.0 Mobile Safari/533.1
but in Desktop view it shows :-
Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_6_3; HTC Desire; en-gb) AppleWebKit/533.16 (KHTML, like Gecko) Version/5.0 Safari/533.16
Don't need to restart the phone or the browser
On ICS in mobile view
Mozilla/5.0 (Linux; U; Android 4.0.1; en-gb; Full Android on Bravo Build/GRI40) AppleWebKit/534.30 (KHTML, like Gecko) Version/4.0 Mobile Safari/534.30
in desktop view
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/534.24 (KHTML, like Gecko) Chrome/11.0.696.34 Safari/534.24
On Stock Froyo (Android 2.2 with Sense) in mobile view
Mozilla/5.0 (Linux; U; Android 2.2; en-gb; HTC Desire Build/FRF91) AppleWebKit/533.1 (KHTML, like Gecko) Version/4.0 Mobile Safari/533.1
Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_5_7; en-us) AppleWebKit/530.17 (KHTML, like Gecko) Version/4.0 Safari/530.17
So the setting is definitely having a difference to how the phone presents itself to the web-site (which is also proved by how www diy com reacts to the setting for me). Maybe some web-sites are looking at different bits of info in the UA string to others, to determine which page to display?
Been looking into it, tried loads of UA strings in the browser settings when I typed in about:debug in the address bar.
Changed my UA string so many times, yet it still comes up the same as stock UA :/ This looks like a ROM problem!

Categories

Resources