User Agent fix for Magic with Hero Rom? - myTouch 3G, Magic Android Development

Hi Guys ... maybe someone can help me
I tried the Hero Rom and it installed just fine and worked like a charm. My problem is now that my mobile provider renderes its "mobile portal" based on parts of the user agent string and for a not compatible one (actually one that is not in their portfolio) it shows an error ... so I would need a switch of the hero user agent which is:
Mozilla/5.0 (Linux; U; Android 1.5; de-de; HTC Hero ... and so on to:
Mozilla/5.0 (Linux; U; Android 1.5; de-de; HTC Magic Build/CUPCAKE) AppleWebKit/528.5+ (KHTML, like Gecko) Version/3.1.2 Mobile Safari/525.20.1
which is the original Magic one.
Does anyone know how to manage this? -> maybe it could be just a small .apk file which when installed changes the user agent or just an entry in some config file?
Thanks Chris

If your operator supports the iPhone the following might help you :
Type: "about:debug" in the browser's adress bar.
It seems that nothing happened but when you go to the browser settings and scroll all the way down, you will see that the last option is "UAString".
There you can set the user-agent to iPhone.

or... install the Steel browser (can be found in Market) and has settings to change to iPhone or 'normal' web browser user agent.

... unfortunately not
thanks guys ... but my provider neither supports the iPhone nor a standard web browser string will do.
i need to set a completely different one

Related

Changing User Agent to emulate an iPhone?

Has anyone had success with some of these iPhone centric web sites by changing their user agent on the Windows Mobile devices?
Specifically I want to use Opera Mobile, but I can't for the life of me figure out how to change the User Agent string. I have the iPhone user agent string:
Mozilla/5.0 (iPhone; U; CPU like Mac OS X; en) AppleWebKit/420+ (KHTML, like Gecko) Version/3.0 Mobile/1A543a Safari/419.3
But I have tried a couple suggestions that I found by searching this site to change the opera.ini file in the applications folder, but no success it still reports as Opera at www.whatismyuseragent.com???
anyone figure this out yet. i've got IE, opera, and netfront and can't get it to work in any of them. i'm convinced im just not doing it right tho
Is that a smart thing to do anyway? I tried to select iPhone mode on a mobile site that let's you choose which version you want and the result was not pretty.
View Iphone sites on your WM (windows mobile)
I got it work with pocket IE + PIE Plus software
Just install PIE plus , open PIE -> tools -> option Plus -> User Agent , then fill in the blanks like the one in the photo by using this string
Mozilla/5.0 (iPhone; U; CPU like Mac OS X; en) AppleWebKit/420.1 (KHTML, like Gecko) Version/3.0 Mobile/4A102
Have fun !
pb4ugoout said:
anyone figure this out yet. i've got IE, opera, and netfront and can't get it to work in any of them. i'm convinced im just not doing it right tho
Click to expand...
Click to collapse
Check out: http://www.1800pocketpc.com/2008/06/28/change-user-agent-on-opera-mobile-95.html
Basically, if you type opera:config in your address bar, it's all customizable. I don't have time to try it now, but it looks like in User Prefs, there is a custom user agent option.
I agree that there are a lot of sites that are being customized for the iPhone and they look pretty good on the Diamond as well! (eg www.calgaryherald.com/iphone)
Dan
For PIE it's a registry key tweak.
http://wiki.modaco.com/index.php/Windows_Mobile_5_Registry_Tweaks#Pocket_IE_.28PIE.29
Change user agent in Opera mobile
There is an option in opera:config that allow to enter any custum user agent.
To have it either search custum or check "show all" option (top right)
Then you will be able to give the user agent of the iphone which is
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'm not sure that it actually mask Opera, it's just identify as iphone browser, which is enough to enjoy some nice website on touchscreen wm phone.
Enjoy!
with these settings on my hd2 (none branded) it comes up as a LG9600
i'll just stick with the config for a hd me thinks untill the hd2 is supported on iplayer over wifi
limpit said:
i'll just stick with the config for a hd me thinks untill the hd2 is supported on iplayer over wifi
Click to expand...
Click to collapse
A preferable solution in just about every conceivable way is to use the myplayer app.
Help please....
I have a WM device, however AT&T thinks I have a Sony Ericsson C905a. (I actually do but I bought a new phone recently).
Anyhow, because they have me down for the C905a I can get unlimited data for 15 a month. I would like to be able to change the User-agent string in my WM 6.5 phone to report that I still have the C905a. Is this possible? I see that I can change it in opera etc.. but I dont think that will matter to AT&T from the data logging they keep. I think they would see that I'm not on my C905a while using data. (If I were to be audited)
Where can I modify the user-agent string in my phones registry?
Thanks!!!
Shawn
sblees said:
I have a WM device, however AT&T thinks I have a Sony Ericsson C905a. (I actually do but I bought a new phone recently).
Anyhow, because they have me down for the C905a I can get unlimited data for 15 a month. I would like to be able to change the User-agent string in my WM 6.5 phone to report that I still have the C905a. Is this possible? I see that I can change it in opera etc.. but I dont think that will matter to AT&T from the data logging they keep. I think they would see that I'm not on my C905a while using data. (If I were to be audited)
Where can I modify the user-agent string in my phones registry?
Thanks!!!
Shawn
Click to expand...
Click to collapse
they know what phone you have by imei not by user agent string.
You just have to modify the Registry key. You can find it at:
HKEY_LOCAL_MACHINE\Software\Opera\Prefs\User Prefs\Custom User-Agent
punch in what-ever user agent string you'd like and you should be good to go.
Paladin27 said:
Has anyone had success with some of these iPhone centric web sites by changing their user agent on the Windows Mobile devices?
Specifically I want to use Opera Mobile, but I can't for the life of me figure out how to change the User Agent string. I have the iPhone user agent string:
Mozilla/5.0 (iPhone; U; CPU like Mac OS X; en) AppleWebKit/420+ (KHTML, like Gecko) Version/3.0 Mobile/1A543a Safari/419.3
But I have tried a couple suggestions that I found by searching this site to change the opera.ini file in the applications folder, but no success it still reports as Opera at www.whatismyuseragent.com???
Click to expand...
Click to collapse
sblees said:
I have a WM device, however AT&T thinks I have a Sony Ericsson C905a. (I actually do but I bought a new phone recently).
Anyhow, because they have me down for the C905a I can get unlimited data for 15 a month. I would like to be able to change the User-agent string in my WM 6.5 phone to report that I still have the C905a. Is this possible? I see that I can change it in opera etc.. but I dont think that will matter to AT&T from the data logging they keep. I think they would see that I'm not on my C905a while using data. (If I were to be audited)
Where can I modify the user-agent string in my phones registry?
Thanks!!!
Shawn
Click to expand...
Click to collapse
did you sort it out?
Im trying to change my user agent string also.
Pls let me know.

Free Att WiFi For your fuze

This is just a theory and should work, i havnt tested it myself cuz i dont live near a starbucks but as u guys remember att was offering free wifi access to iphone users, well it just so happen that we as WM owners have the power to change our Broswer String just like u would on a PC.
Here are the steps: -
Open Opera
type Opera:config *note* remove "http://"
scroll down till you see "User Agent" and click it
change Spoof UserAgent ID to 3
lower down should be "User Prefs" click that
and scroll down till you see "Custom User-Agent"
*NOTE* make sure and back up ur orginal string so u can change i back later or else all website you visit will be in iphone format and formated for the iphone screen
now change your "Custom User-Agent" to this -
_________________________________________________________________
Mozilla/5.0 (iPhone; U; CPU like Mac OS X; en) AppleWebKit/420+ (KHTML, like Gecko) Version/3.0 Mobile/1A543a Safari/419.3
--------------------------------------------------------------------------
save your settings and connect to the att wifi within your location
for the iphone section on getting into the wifi you will need to follow the instructions on HERE its at the bottom
like i said before i havnt tested this myself but the logic of the idea should work as the WiFi DNS server should see your device as a iphone and not a HTC Touch Pro.
If anyone has tested this post back here if it works or doesnt
This is ur community friendly guy "Allthatinny" giving back
work great! Thanks
Free WiFi while i eat
mastanthony89 said:
work great! Thanks
Free WiFi while i eat
Click to expand...
Click to collapse
np great news that it does
Does it continue to recognize your device if you return to the same location without the IPhone layout?
allthatinny said:
scroll down till you see "User Agent" and click it
change Spoof UserAgent ID to 3
lower down should be "User Prefs" click that
and scroll down till you see "Custom User-Agent"
now change your "Custom User-Agent" to this -
_________________________________________________________________
Mozilla/5.0 (iPhone; U; CPU like Mac OS X; en) AppleWebKit/420+ (KHTML, like Gecko) Version/3.0 Mobile/1A543a Safari/419.3
--------------------------------------------------------------------------
Click to expand...
Click to collapse
i found this change to also be helpful for viewing web pages that are rendered better for the iPhone - for example Google Calendar looks much better on the iPhone than other handsets. spoofing the user-agent let's me see just what an iPhone does. very nice.
ya there are a few sites that streams also great for the iphone but i cant get it to work on windows mobile
Would it be possible to build a cab to make this change when needed and then switch back when done? Kind of like the Hidden Proxy cabs on the ATT phones...
not sure since am not a dev but would be a cool idea
I have a data plan but if you just use the Iris browser this may do the same trick...everything in Iris thinks I have an iPhone and looks all iPhony...sort of nice sort of annoying but the ID has to be something along the same lines as the iPhone (probably since they are both based on WebKit).
hmm i tested this out and it didnt work everysite i went to was the iphone version(the ones that had iphone versions i mean) but when i connected to att wifi it asked me to log in with an account it didnt say anything about putting in my number or the iphone.
HTC-P4600/1.2 Opera/9.50 (Windows NT 5.1; U; en)
Just like to put that there so incase you forgot what it was or the default didn't work to put back the default Custom User-Agent value.
ya, it would be a good idea for some of you guys that use this little trick to copy that user string and save it in note pad, so that you may copy and paste it back later when you need to
Very cool, haven't tested yet, this is a great excuse to take a trip down to Starbucks ;-) hmhmhm
Thx!
Kewlj1313
I thought that you were supposed to get ATT wifi for the price you pay for the data plan unlimited...No?
I have not had a reason to use it, but I thought it was included.
I will probably go back since I can't get the google search page to load properly using this custom user agent. :-(
Worked for me yesterday, I tested it in a Chipotle next to a Starbucks!
Changing my Useragent back today though, too many pages think I am an iPhone and don't load properly or just obnoxiously slow.

[Q] http headers x-wap

As far as I can see all the browsers available in android 2.2 are sending headers notifying of wap capability and there is no option to disable this
Code:
"Accept-Encoding: gzip
Accept-Language: en-GB, en-US
Accept: application/xml,application/vnd.wap.xhtml+xml,application/xhtml+xml;profile='ht://...wapforum.org/xhtml',text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
User-Agent: Mozilla/5.0 (Linux; U; Android 2.2; en-gb; ZTE-BLADE Build/FRF91) AppleWebKit/533.1 (KHTML, like Gecko) Version/4.0 Mobile Safari/533.1
Accept-Charset: utf-8, iso-8859-1, utf-16, *;q=0.7"
As a result many pages detect mobile browsing and redirect to advertisment pages.
I have dissasembled some of the browsers but I am unable to find this string anywhere.
(i mean the "application/xml,application/vnd.wap.xhtml+xml,application/xhtml+xml;profile='h" in the Accept: )
Can anyone tell me where this header is defined?
Can we remove the wap capability somehow?
I have tried removing the header by using a proxy which does so but I also still had problems defining the proxy to my android device.
I am using japanese jellyfish RLS9 for ZTE blade custom rom.
Thank you!
Anyone? So all of you are happy that your browser redirects the web pages to wap pages? Doesn't anyone know any solution for this problem? Thank you

[Q] internet explorer problem, please help

Hi guys, I have a small problem and I am hoping someone can help me a little. Basicly what happened is after updating to mango I was unable to open my work webpages. I work as a flight attendant and I have 2 webpages from work that I must check everyday (company mail and flight schedual). Before updating to mango they worked without problems. I know my company website has some problem with the certificate but never the less it used to work but now after the update they dont work anymore... I enter username and password and I can only see blank page and the loading bar (coloured line) stay at about 90% for a while and after a while it reaches 100% but nothing happens. My phone is a LG optimus 7. one of the pages is: HTTPS :// oword dot airitaly dot it/
Any help would be much appreciated. Best regards.
I suggest you rollback to NoDo for now.
It could be a bug or it be that the website is incompatible with Internet Explorer 9.
The problem is similar to one I have found with the Scandinavian Airlines mobile internet site and appears to be caused by the User-Agent String of IE9 reporting:
Mozilla/5.0 (compatible; MSIE 9.0; Windows Phone OS 7.5; Trident/5.0; IEMobile/9.0; <manufacturer>; <model> [;<operator])
The previous versions reported:
Mozilla/4.0 (compatible; MSIE 7.0; Windows Phone OS 7.5; Trident/3.1; IEMobile/7.0; <manufacturer>; <model> [;<operator])
I think this is the issue. There are several pages that work in IE9 on a PC but fail when the mobile browser UA is used.
Could any suggest a tool or trick that could shift the UA in Windows Phone 7 in a similar way to that which is possible in the desktop version using the F12 tools?
An app that switched between Mozilla/4.0 and Mozilla/5.0 would be very useful...
Do none of the optional browsers use flags that would cause a page to display properly?
John

[ Guide ] how to DISABLE GOOGLE AMP one CHROME (root and no-root method)

EDIT:
2019/ SEPT / 28
THIS TRICK IT SEEMS NOT TO WORK LONGER DUE TO A CHANGE IN AMP PROTOCOL (locale related) ...Try this ... people tell me that it in some countries continues to work
Recently I saw that several people use a Firefox user agent "Mozilla/5.0 (Android 9; Mobile; rv:65.0) Gecko/65.0 Firefox/65.0" together to ADGUARD to disable GOOGLE AMP in CHROME ... Unfortunately I noticed that this Firefox User agent break some Chrome functionality...after some test I found that if you remove the version of Chrome from your Original UserAgent the amp function stops working.I also found a lighter alternative (without local VPN but with root) to adguard (only for change user agent). Below the description:
CHANGE YOUR ORIGINAL USER AGENT AS IN THE EXAMPLE
( example: i changed from "...Chrome/76.0.3809.89..." to "...Chrome..." )
THIS WAS MY ORIGINAL USER AGENT​
"Mozilla/5.0 (Linux; Android 7.1.2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/76.0.3809 Mobile Safari/537.36"
AND THIS MY MODDED UA WITH NO AMP FEATURE:​
"Mozilla/5.0 (Linux; Android 7.1.2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome Mobile Safari/537.36
Note that only the "chrome" entry has been modified
And with this modded UA I don't see AMP result anymore
°°° If you are NO ROOT
you must use ADGUARD (local VPN) and in his stealth mode section you find an option to change UserAgent ... Simply past string and save... Restart Chrome and adguard...OPEN NEW TAB...make a serch...you have done!
( if don't work or you have troubles red detailed description below for information)
°°° If You are ROOT you can use
"UAgent for Google Chrome (root required)"
from playstore (no need local VPN)
(Unfortunately I can't post the PlayStore link for xda's policy but to clarify i can post the package name:
" com.linuxjet.apps.ChromeUA ")
In this app simply create new entry... Paste your modded UA ... Save and click on new entry that you have created... Restart chrome...OPEN NEW TAB...make a search.... you have done!
( if don't work or you have troubles read detailed description below for information)
Detailed explanation​Don't copy my user agent,The best thing to do ...As I said previous ...is that you just have to take your real UA (extract this information by going to sites like whatmyuseragent-com) and remove chrome version from the string (Example: from "Chrome / 76.0001.89" to "Chrome") and leave the rest of your UA unmodified.
Insert the string obtained in the appropriate section of the programs mentioned above that you have decided to use( "adguard" or "Uagent for Google Chrome " ) After changing user agent (If you are using adguard also make sure to restart the protection) you must kill and relaunch chrome (Go to android settings> app> Chrome> stop application> go to drawer > relaunch chrome, or in the method you prefer). After that i recommend also to visit some site that return your current user agent and check that it has been modified...
IMPORTANT: I verified that o make my trick work, in addition to the steps described in the previous line, you must open new tab for search...( If don't work close all tabs and remove history and cache ) because If you serch in a Tab where you have already done a search will return amp results again ... I think it is due to various utm+something?= **** and various tracking garbage string on Google search query
On my device ( android 7.1.2 Chrome 76, but it should also work on Oreo and pie ) It works perfectly, I also tested this thing on friends' phones and it works fine.
If for you don't work please reply.
If you need help ask and I make a video tutorial for you.
Sorry for my poor English... I'm italian
See ya!!
Nice, works fine. But i left the string like this: ".....Chrome/ Mobile Safari..." Instead of "...Chrome Mobile Saf..." Like you suggested in your post. Just deleted version numbers.

Categories

Resources