Guest funkfish77 Posted January 3, 2011 Report Posted January 3, 2011 (edited) hi people, I've recently upgraded my ZTE Blade (Optimus San Francisco) to custom ROM FLB-Froyo r4a, and now i can't access some operator services like Optimus Zone Portal (http://portal.optimus.pt) or MobileTV app. I know this services are restricted to operator 3G connection, but looks like it needs information from original operator ROM too. There's any workaround for fixing this? Thx a lot NOTE: Optimus is a portuguese operator similar to Orange UK. MobileTV app is the same whith custom configuration. Edited January 3, 2011 by funkfish77
Guest StevenHarperUK Posted January 3, 2011 Report Posted January 3, 2011 hi people, I've recently upgraded my ZTE Blade (Optimus San Francisco) to custom ROM FLB-Froyo r4a, and now i can't access some operator services like Optimus Zone Portal (http://portal.optimus.pt) or MobileTV app. I know this services are restricted to operator 3G connection, but looks like it needs information from original operator ROM too. There's any workaround for fixing this? Thx a lot NOTE: Optimus is a portuguese operator similar to Orange UK. MobileTV app is the same whith custom configuration. This is usually because the User Agent needs to be set exactly as the Original ROM The User Agent is partly modifiable in a file in /system/ What I would do is tether the phone to your PC - download a Useragent switcher for Firefox and try out different strings until it works. Then I would change the System file on your Device using ADB
Guest funkfish77 Posted January 3, 2011 Report Posted January 3, 2011 This is usually because the User Agent needs to be set exactly as the Original ROM The User Agent is partly modifiable in a file in /system/ What I would do is tether the phone to your PC - download a Useragent switcher for Firefox and try out different strings until it works. Then I would change the System file on your Device using ADB Thx a lot Steven can you tell me the useragent file name? I guess i can check it from the original backup files. Do you think that mobileTV app uses the same browser useragent file?
Guest StevenHarperUK Posted January 3, 2011 Report Posted January 3, 2011 Thx a lot Steven can you tell me the useragent file name? I guess i can check it from the original backup files. Do you think that mobileTV app uses the same browser useragent file? Your browser (and all browsers) : with each request send a useragent in the HEADERS This site shows what they are : http://whatsmyuseragent.com/ I will have a look and re-locate the system file for you. If you could get an STOCK version of your blade and point it at that site - it will eb perfect. However comparing the 2 files should be enough.
Guest StevenHarperUK Posted January 3, 2011 Report Posted January 3, 2011 From this thread: http://android.modaco.com/content/htc-hero...r/#entry1165770 They report the file is : /data/data/com.android.browser/shared_prefs/com.android.browser_preferences.xml However it may have moved in 2.2 - 1 sec.....
Guest StevenHarperUK Posted January 3, 2011 Report Posted January 3, 2011 From this thread: http://android.modaco.com/content/htc-hero...r/#entry1165770 They report the file is : /data/data/com.android.browser/shared_prefs/com.android.browser_preferences.xml However it may have moved in 2.2 - 1 sec..... OK go get ADB Wireless http://www.appbrain.com/app/adbwireless-(w....es.adbWireless Download fastboot fastboot.zip Start ADB Wireless Now on your PC Open a Command prompt cd c:\fastboot IP and port should be on your phones screen (in adb wireless) mine is 192.168.1.69:5555 adb-windows.exe connect <IP>:PORT Don't miss the . off the end adb-windows.exe pull /data/data/com.android.browser/shared_prefs/com.android.browser_preferences.xml . Now you have a copy of the file com.android.browser_preferences.xml in c:\fastboot
Guest StevenHarperUK Posted January 3, 2011 Report Posted January 3, 2011 Make a backup of the file com.android.browser_preferences.xml in c:\fastboot Now edit the original to be what you want Then push it back up adb-windows.exe push com.android.browser_preferences.xml /data/data/com.android.browser/shared_prefs/ You probably have to re-start to see the effects - revisit http://whatsmyuseragent.com/ on the phone
Guest StevenHarperUK Posted January 3, 2011 Report Posted January 3, 2011 Hmm the setting for user agent is not in that file any more (was in 2.1) Back soon
Guest funkfish77 Posted January 3, 2011 Report Posted January 3, 2011 Hmm the setting for user agent is not in that file any more (was in 2.1) Back soon Hi, i noticed that too :unsure: the settings are no longer in com.android.browser_preferences.xml neither WebViewSettings.xml. the good news it that i've discovered a valid user agent string in firefox with a tether connection
Guest StevenHarperUK Posted January 3, 2011 Report Posted January 3, 2011 Hi, i noticed that too :unsure: the settings are no longer in com.android.browser_preferences.xml neither WebViewSettings.xml. the good news it that i've discovered a valid user agent string in firefox with a tether connection Share it please : I am still looking for the file where it is on 2.2 - sad thing is I found it on another PC for a desire in Early December....
Guest funkfish77 Posted January 3, 2011 Report Posted January 3, 2011 Share it please : I am still looking for the file where it is on 2.2 - sad thing is I found it on another PC for a desire in Early December.... The actual UA string: "Mozilla/5.0 (Linux; U; Android 2.2; pt-pt; ZTE Blade Build/FRF91) AppleWebKit/533.1 (KHTML, like Gecko) Version/4.0 Mobi" I've just changed to: "Mozilla/5.0 (Linux; U; Android 2.2; pt-pt; Optimus San Francisco) AppleWebKit/533.1 (KHTML, like Gecko) Version/4.0 Mobi" and it worked in firefox.
Guest StevenHarperUK Posted January 3, 2011 Report Posted January 3, 2011 Ok on my phone the useragent is Mozilla/5.0 (linux: U: Android 2.2; en-gb; ZTE-BLADE Build/FRF91) AppleWebKit/533.1 (KHTML, like Gecko) Version/4.0 Mobile Safarai/533.1 Most of that you have NO control over The Highlighted bit ZTE-BLADE is the bit you can effect. The ONLY file I can find that in is the /system/build.prop ro.product.model=ZTE-BLADE so adb-windows.exe pull /system/build.prop . Edit the file adb-windows.exe push build.prop /system/ done!
Guest StevenHarperUK Posted January 3, 2011 Report Posted January 3, 2011 BTW : if you are lazy you can just modify the ROM.zip file and change the /system/build.prop ro.product.model=Optimus San Francisco Then just re-flash in clockwork..... If you don't want to use adb
Guest funkfish77 Posted January 3, 2011 Report Posted January 3, 2011 Ok on my phone the useragent is Mozilla/5.0 (linux: U: Android 2.2; en-gb; ZTE-BLADE Build/FRF91) AppleWebKit/533.1 (KHTML, like Gecko) Version/4.0 Mobile Safarai/533.1 Most of that you have NO control over The Highlighted bit ZTE-BLADE is the bit you can effect. The ONLY file I can find that in is the /system/build.prop ro.product.model=ZTE-BLADE so adb-windows.exe pull /system/build.prop . Edit the file adb-windows.exe push build.prop /system/ done! that's it !!! It works !!! Just changed: ro.product.model=ZTE-BLADE to: ro.product.model=Optimus San Francisco Optimus Zone Portal and MobileTV confirmed! Thx a lot!!!
Guest StevenHarperUK Posted January 3, 2011 Report Posted January 3, 2011 that's it !!! It works !!! Just changed: ro.product.model=ZTE-BLADE to: ro.product.model=Optimus San Francisco Optimus Zone Portal and MobileTV confirmed! Thx a lot!!! Sweet : A handy tutorial for anyone who suspects their provider is filtering access via Useragent
Guest Simon O Posted January 3, 2011 Report Posted January 3, 2011 Sweet : A handy tutorial for anyone who suspects their provider is filtering access via Useragent This should be added to some guides and pinned
Guest StevenHarperUK Posted January 3, 2011 Report Posted January 3, 2011 This should be added to some guides and pinned I kind of agree - but we have too much pinning in this section - if we had sub forums - then this could be a pinned thread in a section called Tinkering.... or something better
Guest Simon O Posted January 3, 2011 Report Posted January 3, 2011 I kind of agree - but we have too much pinning in this section - if we had sub forums - then this could be a pinned thread in a section called Tinkering.... or something better Good idea. Also thinking it would be nice to have a small app that can change this variable in the build.prop for times like this. It would also allow people to download games from Gameloft too, for example.
Guest StevenHarperUK Posted January 3, 2011 Report Posted January 3, 2011 Good idea. Also thinking it would be nice to have a small app that can change this variable in the build.prop for times like this. It would also allow people to download games from Gameloft too, for example. I bet the JAVA VM app can be very quickly hacked to do this.
Guest Mike_P Posted January 3, 2011 Report Posted January 3, 2011 Would be nice to get all these little problems in one place, same problem (and fix in following posts) came up in Seb's 2.1 thread here.
Guest k0nrad Posted January 9, 2011 Report Posted January 9, 2011 I bet the JAVA VM app can be very quickly hacked to do this. It would be even better to make it switch various build.prop parameters, like enabling/disabling HW UI acceleration etc.
Guest vareBlade Posted January 9, 2011 Report Posted January 9, 2011 It would be even better to make it switch various build.prop parameters, like enabling/disabling HW UI acceleration etc. This would be interesting.
Guest Arr Too Posted January 18, 2011 Report Posted January 18, 2011 There is a simple way to change to a few preset User-Agent choices. In the Browser, put "about:debug" in the address bar and then Go there. Nothing will appear to have happened, but if you now press Menu and go to More->Settings you'll find a way to change the UA String at the bottom of the options. First choice is Android, second is Desktop [Mac] and third is iPhone.
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now