[Q] http headers x-wap - Android Software/Hacking General [Developers Only]

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

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.

Java platforms with http proxy suport?

OK, I've searched a lot for a JAVA platform with http proxy support.
I'm using a wap GPRS connection that work only with a http proxy.
I have a SPV C600 (HTC Tornado) with Windows Mobile 6.
First time I was using Tao intent client that has support for http proxy (via registry changes). But it suddenly stop working... (the operator has changed the wap gateways etc..)
Another Java platform that work with http proxy is Jblend_fullscreen. But it is terrible. As far as I remember I couldn't see the text for softkeys , and the softkeys dind't work.
I've found some esmertec java platforms that had a file named internal.config or system.config (I don't rememeber exactly) where you can define a http proxy. I've tried to modify the file properly .. but nothing
So.. do you have know a java platform that support connections via http proxy? Or o solution for esmertec or jblend (from Samsung Blackjack)?
Thanks!
---
jblend_fullscreen:
http://www.sharemobile.ro/file.php?id=12200
esmertec:
http://www.sharemobile.ro/dlfile.php?id=25937
esmertec jeodek:
http://www.sharemobile.ro/file.php?id=12197
OK, found one java platform that works with http proxy (it seems that it uses the proxy settings from connections) and it works properly on my smartphone.
Cloudyfa_EsmertecJbed.cab
thx to ppl who made this posible.
found it here:
http://forum.xda-developers.com/showthread.php?t=326951&page=10
mirror:
http://www.sharemobile.ro/file.php?id=31572
Don't forget this: if jbed exits when you run a java application go to settings > regional settings > local: english (united states)
XDA-DEV rocks!

User Agent fix for Magic with Hero Rom?

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

How to force opera to...

Use the memory card to store downloads
and
use the memory card to store opera cache
?
Im using opera10
Heres my config from opera:
pera Preferences version 2.1
; Do not edit this file while Opera is running
; This file is stored in UTF-8 encoding
[User Prefs]
Preferences Version=2
Button Set=\Storage Card\opera\skin\standard_skin.zip
Home URL=http://www.opera.com
Minimum Font Size=0
Client Refresh=1
Scroll Is Pan=0
Ignore Unrequested Popups=0
UA Mode=1
Console Error Log Enabled=0
Console Error Log Filter=javascript,css
Warn Insecure Form=0
Expand IFrames and Scrollable Containers Height=1
Single Window Browsing=1
Show ScrollBars=0
Language File=\Lagerkort\Programmer\Opera Mobile 10\profile\\locale\\da.lng
Overrides Timestamp=1250061751
Browser JavaScript=2
Browser JavaScript Timestamp=1271336140
BrowserJS Download Timestamp Last Check=1276069721057
Browser JavaScript Last Check=14769
[Disk Cache]
Size=5000
[Fonts]
Normal=Times New Roman
PRE=Courier New
Form.Text=Courier New
Form.Input=Arial
Form.Button=Arial
[CSS Generic Font Family]
Serif=Times New Roman
Sans-Serif=Arial
Cursive=Comic Sans MS
Fantasy=Arial
Monospace=Courier New
[Security Prefs]
Enable SSL v2=1
Enable SSL v3=1
Enable TLS v1.0=1
Enable TLS v1.1=1
Enable TLS v1.2=1
[Install]
Preference URL=http://xml.opera.com/spoof/wince/?pnum=101536&version=10.00&buildno=WMD-50433
[Network]
ByteMobile GUID=498B0F0C-6F27-116D-2E22-01BF65C1312B
[Proxy]
Use Web Turbo Mode=0
[File Types]
text/vnd.sun.j2me.app-descriptor=9,,,,jad,|
application/java-archive=9,,,,jar,|
audio/x-wav=0,,,,wav,|
audio/wav=0,,,,wav,|
[File Types Extension]
text/vnd.sun.j2me.app-descriptor=\windows\appdb\,2
application/java-archive=\windows\appdb\,2
audio/x-wav=,128
audio/wav=,128
[Link]
Underline=1
[Visited Link]
Underline=1
[Extensions]
Plugins=0
Best regards

[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

Categories

Resources