Change PIE user agent string dynamically - MDA II, XDA II, 2060 General

I know you can change the user agent string with registry settings, but that requires a reboot to take effect. Anyone know of a way to change it dynamically, or even better yet, just for specific sites?
My bank now traps you if you're not using an "approved" browser and tells you that you can't log on. Setting the user agent to IE 5 fixes that, but then of course, many sites don't recognize you as a mobile device. Including PPC Thoughts. So then you're stuck with the standard version of that site.

Hi Carlos...
Did you ever resolve this dynamic PIE User-Agent issue?
I have a great need to do the same thing.
Need ability to dynamically change PIE User-Agent
based on which site is about to be accessed and
then, if need be, change it BACK to default
again on-the-fly.

Related

Internet Banking problems

I've had my Exec a few weeks now and generally am well chuffed however a big problem seems to be it will not log in to my internet banking
Does anyone know how or if it's possible to log in to Abbeys IB?
A friend of mine has no problem with HSBC so I guess it must be Abbey some how.
Anyone got it to work?
I don't bank with Abbey, but if I was to take an educated guess, its most likely because their internet banking website needs a browser that supports Java and I do not think PIE does.
I am with Abbey, I think their site does not recognise the Universal browser (PIE) and so throws up the page you are getting. I seem to remeber seeing a post on XDA-Developers regarding changing the registry to make PIE report itself as a standard IE on a desktop PC, Abbey would think everything is okay and would continue sending you the pages you are meant to see, how PIE handles them is another matter but from memory their site is nothing clever and PIE should be able to handle it okay.
Good luck,
Let me know if you get anywhere
Ok guys, any of you clever so and sos know how to do this?
Go to the HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\User Agent\ key.
Set the default value to "Mozilla/4.0" (Default is "Mozilla/2.0").
Set the "Version" value to "MSIE 5.5" (Default is "MSIE 3.02").
Set the "Platform" value to "Windows NT 5.0" (Default is "Windows CE").
You are a genius!!!
It's working a treat
negatong said:
Go to the HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\User Agent\ key.
Set the default value to "Mozilla/4.0" (Default is "Mozilla/2.0").
Set the "Version" value to "MSIE 5.5" (Default is "MSIE 3.02").
Set the "Platform" value to "Windows NT 5.0" (Default is "Windows CE").
Click to expand...
Click to collapse
Would that cause any problems with other webpages or would it just ensure you always get the full webpage as in a desktop ie ? Its like when I go to google on my Exec, I always get the cut down pda version.
knowsleyroader said:
Would that cause any problems with other webpages or would it just ensure you always get the full webpage as in a desktop ie ? Its like when I go to google on my Exec, I always get the cut down pda version.
Click to expand...
Click to collapse
I believe it would only cause problems where the website you're visiting delivers content based on the user-agent. By making those registry changes, you are basically telling PocketIE to pretend that it's a full version of IE running on Windows XP, so any sites that are optimised for spitting out mobile content would send you the full version (including google; try it and see, you can always change the values back to what they were). If you want to get the PDA interface to google every time, just go to http://www.google.com/pda (or www.google.countrycode/pda ), this works in whatever browser you use.

Vodafone Live! on HTC Touch HD ..

Actual article present on my blog here.
I posted earlier about how to access the Mobile TV on HTC Touch HD on my blog here. But later I found out that method as an inadequate one to continue in normal usage. So I did some more R&D at home around this and found the perfect method of doing so !
So here you go now.
My HTC Touch HD has, L26 v9.0 WWE ROM and you need following software before proceeding further.
* AdvancedConfig – for doing the configuration changes on Internet Explorer User agent
* PHM registry editor – for making the changes to rtsp default player
Vodafone Live! runs primarily on S60 based devices and I had an excellent experience of it running on my earlier Nokia N95. So you need to try and ‘fool’ the system at Vodafone to assume your phone as a N95 instead of Internet Explorer running on a Windows Mobile phone. To do so, you need to change the ‘mobile’ user agent string of your Internet Explore browser to the one used for N95. Use the following steps to change the user agent string.
1. Run AdvancedConfig
2. Expand Internet Explorer option
3. Click on User Agent custom base
4. Change the value as follows
Mozilla/5.0 (SymbianOS/9.2; U; Series60/3.1 NokiaN95/11.0.026; Profile MIDP-2.0 Configuration/CLDC-1.1) AppleWebKit/413 (KHTML, like Gecko) Safari/413
Once you are done with this, to ensure that the change has worked, Open the internet explorer browser and go to the website http://www.useragentstring.com. Your browser should recognize your device as N95 using Mozilla Safari browser.
If this happens, then you have passed the first step!
Now go to Start –> Settings –> Connections –> Connections –> Advanced –> Select networks
Select “Contract WAP” as the default network and you are good to go.
Just to test if this works.. try accessing http://live.vodafone.co.uk via your Internet Explorer browser (in a Mobile mode, not Desktop mode) and see if it works for you.
It worked for me and I hope it would work for you.
However, I had one issue with HTC Streaming Media that the rtsp link would not play. Hence I had to go and change the default RTSP player to WMPlayer.exe by modifying the registry.
If you too are having similar issue, then open PHM registry editor and access the key \HKCR\rtsp\Shell\Open\Command. Change the default value from StreamingPlayer.exe to WMPlayer.exe “%1” and you should be able to view the streaming from your Windows Media player.
Try the above steps and let me know how it goes…
What .. no reply? :-(
Hey!
So, I have done exactly as you said, but no luck... the User Agent does not change. To be mentioned: I am using Dutty's XTREME v2.1. Perhaps the User Agent Code is stored in another place, not where AdvancedConfig expects to find it...
xerxes1 said:
Hey!
So, I have done exactly as you said, but no luck... the User Agent does not change. To be mentioned: I am using Dutty's XTREME v2.1. Perhaps the User Agent Code is stored in another place, not where AdvancedConfig expects to find it...
Click to expand...
Click to collapse
Dunno much about Dutty's ROM. I had it earlier and the above process did not work for me there .. probably because the Internet Explorer browser in there has a hard coded useragentstring in browser.dll
I tried the above on L26 ROM and it worked .. in fact to my surprise ... !
Hello!
Just an update. Everything works fine with Opera Mobile 6.5; there it is easyer to change the User Agent String. I replaced it with the string you gave and ... everything is working fine. Couldn't convince IEM6 to work, though! Ah, well... the procedure how to change to a Custom Agent String in Opera is described here: "In opera:config, User Perfs there is a setting called “Custom User-Agent”.". Good luck!
One question: where can I find this browser.dll in my device? Oh, and the quality of the live stream from VodafoneLive is lousy!
Thanks ...
I dunno about the browser.dll, supposedly in the Windows folder somewhere. I suggest you not to try and play with that, otherwise you will corrupt your IE forever.
I tried on IE first and it worked, so never bothered to try on Opera. Kept opera separately and in tact for web browsing ..
Youtube video added on http://sollerthoughts.co.uk/2009/03/26/video-guide-for-accessing-vodafone-live-on-touch-hd/

User Agent (UAString) change

I have an unlocked Rogers Magic running on AT&T. I have not rooted the phone, thus I am running the default software/firmware.
The phone and default image work great, with one exception. According to tools like useragent.org, my browser UAString is coded to "en-ca" (vs. what I would like it to be: "en-us"). This causes some sites to redirect to Canadian content (e.g. snapfish.com redirects to snapfish.ca), and it is driving me nuts.
I'm aware of the "about:debug" trick for faking other (but, not the above referenced portion of the string) aspects the reported User Agent. Further, I'm aware that I could download an alternate browser like Steel.
The default image and browser would be just fine for me if I could simply change what amounts to 2 characters in the User Agent string. Any ideas on the least invasive (i.e. vs rooting, new images.. etc. etc.) way of doing this? THX!
Have you tried going to settings - locale & text - Select locale and changing the language to English (United States)?
QwertyGraves said:
I have an unlocked Rogers Magic running on AT&T. I have not rooted the phone, thus I am running the default software/firmware.
The phone and default image work great, with one exception. According to tools like useragent.org, my browser UAString is coded to "en-ca" (vs. what I would like it to be: "en-us"). This causes some sites to redirect to Canadian content (e.g. snapfish.com redirects to snapfish.ca), and it is driving me nuts.
I'm aware of the "about:debug" trick for faking other (but, not the above referenced portion of the string) aspects the reported User Agent. Further, I'm aware that I could download an alternate browser like Steel.
The default image and browser would be just fine for me if I could simply change what amounts to 2 characters in the User Agent string. Any ideas on the least invasive (i.e. vs rooting, new images.. etc. etc.) way of doing this? THX!
Click to expand...
Click to collapse
sorry my reply won't help since my knowledge of android is still infantile. my rogers unit (to run an att usa) is due tomorow and hacking won't begin until surfing the device stock for a few days before "rooting" and rom swaps.
question: how branded is your interface experience? from startup screen and through the dailer, is rogers prominent?
spamlucal said:
Have you tried going to settings - locale & text - Select locale and changing the language to English (United States)?
Click to expand...
Click to collapse
Yes... I looked at 'locale & text' settings ... My options are "English" or "French".... no option for "English (United States)"
lpasq said:
sorry my reply won't help since my knowledge of android is still infantile. my rogers unit (to run an att usa) is due tomorow and hacking won't begin until surfing the device stock for a few days before "rooting" and rom swaps.
question: how branded is your interface experience? from startup screen and through the dailer, is rogers prominent?
Click to expand...
Click to collapse
Branding is minimal ... Based on research, I understand that to get rid of the splash on boot, you will need to root etc etc... For me, it's nbd because it is very rare that I turn the phone completely off and on again ... There are a few Rogers 'apps' (really simple URL links) that you can't remove (again w/o rooting etc etc), but I just don't include them on my desktop
Any ideas on my User Agent issue?
The disadvantages of the original Rogers ROM are adding-up:
1) Canadian user Agent
2) No Voice Search (Ugh! this one of the things I flet made a Keyboard-less phone more tolerable)
3) No ability to see/edit Custom words for type-ahead (usually found under Menu - Settings - Locale & text - User dictionary)
Assuming Rogers ever fixes any of these and send in over the air updates... will I get those using and unlocked phone on AT&T?
Any love out there on my questions? THX!

Change user agent string

Hi everyone,
I like to watch "Swisscom Mobile TV" (a swiss service) wich is only accessable for branded phones (like the htc magic).The nexus one isn't branded phone.
So i read on a forum that i have to change my default_user_agent in the "com.android.browser_preferences.xml" to the HTC magic one to make it work. But it doesn't work.
And finally, i read that i have to modify the browsersettings.java to make the change effective (http://github.com/Wysie/android_pac.../src/com/android/browser/BrowserSettings.java)
And i really don't know how to do this, if someone can help me?
And sorry for my bad english
Enter the URL "about:debug" into the browser, confirm the address, nothing happens. now go into the browser preferences, scroll waaaay down. some debug settings showed up. one allows you to change the user agent
ps: search function
FloOGB said:
Enter the URL "about:debug" into the browser, confirm the address, nothing happens. now go into the browser preferences, scroll waaaay down. some debug settings showed up. one allows you to change the user agent
ps: search function
Click to expand...
Click to collapse
it's not really what i wanted, i already read, don't worry i know how to use the search function
I have a nexus one and i'd like to set my user agent to "Mozilla/5.0 (Linux; U; Android 1.6; de-ch; HTC Magic Build/DRC92) AppleWebKit/528.5+ (KHTML, like Gecko) Version/3.1.2 Mobile Safari/525.20.1" instead of being recognize as a nexus one user

[Q] Some questions about developing

Hi there, i'm new to developing Android Apps, so i have some questions.
1. I know that always have a chance of breaking security on computer world
2. Whats the most secure method to generate a UniqueID? because my app needs to work on china tablets, original tablets, cellphones, hacked phones, etc. I need this for verification of paid things (wait, xda will have a free version ;o)
3. There is any way to encript the program without affecting the performance too much? I'm new to java and comming from C++, so there is any compaction, encrypt, etc? Because if anybody knows the NEW IDA will come with android support.
4. There is any HTML parser on java? Because i need to fetch a html page with httpclient and after i need to parse it to get content... the contect is dynamic (html table with N rows), so i need a parser... or there is any other way?
5. I know how to make a tabed interface, but how is the best way to know the app state? Like it:
App Start -> User Already Logged (Save on SQLite?) ?
Yes = Display app interface and unlock config menu (here is the tabed interface)
No = Display login interface and lock config menu (here is just a relative layout with login bnts)
Thanks in advance.
1: Number one is not a question.
2: Do you mean most secure possible, or most secure practical? Those concerns should be addressed. Most secure would be to have a courier bring the user one-time-pads for every session, but that's not very practical. That said, what is the nature of your ID? Depending on what you are using it for, I would think a few randomly generated bits from some user entered entropy (like touchpad event timing) should suffice.
3: Again, what is the nature of your need for encryption? Do you want to keep it from being decompiled and analysed? If so, you're pretty much out of luck as there is always a way for a dedicated hacker to disassemble the code that does the decryption unless you use some sort of challenge-handshaking algorithm to load the keys at runtime for every session from some secure source but that requires connectivity and user interaction which necessarily complicates the process.
4: The XML parsers available as part of the Android SDK do a pretty good job of parsing HTML if it is clean compliant HTM> See, i.e. the Sax classes:
http://developer.android.com/reference/org/xml/sax/package-summary.html
5: You can use the API included preference classes to save state between sessions:
http://developer.android.com/reference/android/preference/package-summary.html
Note: for general application cryptography information, you still can't beat the venerated Applied Cryptography by Bruce Schneier.
Thanks for the answers.
I just wanna know how the most used programs like rom manager, power amp, titanium backup and whatsapp protect their paid versions, and how they validate it.
Another question that leaves on it is that some programs have a dedicated paid version, and some have just a key that you download and unlock the free version, how they did it? They just check if key is installed assuming that it was downloaded from market?
My uses is just for two reasons:
1.) protect my app as possible from newbie crackers
2.) transmit user information with a secure method to my server. Its important because my app will be used on open networks.
As for UniqueID generating, i just wanna a "unique world global super id" for each user of my app, and it will be installed on cellphones, tablets without phone, tv with android, and all of this.
Also, what to do if html is not well formated?

Categories

Resources