Jump to content


Photo

[Solution] Lost access to some operator services after upgrade to custom ROM (FLB-Froyo)

- - - - -

  • Please log in to reply
22 replies to this topic

#1
funkfish77

funkfish77

    Newbie

  • Members
  • Pip
  • 5 posts
  • Gender:Male
  • Location:Montijo
  • Devices:ZTE Blade (Optimus)
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 by funkfish77, 03 January 2011 - 07:51 PM.

  • 0

#2
StevenHarperUK

StevenHarperUK

    Hardcore

  • Moderator Team
  • PipPipPipPipPipPip
  • 1,431 posts
  • Gender:Male
  • Location:United Kingdom
  • Devices:Orange San Francisco

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

  • 0

#3
funkfish77

funkfish77

    Newbie

  • Members
  • Pip
  • 5 posts
  • Gender:Male
  • Location:Montijo
  • Devices:ZTE Blade (Optimus)

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?

  • 0

#4
StevenHarperUK

StevenHarperUK

    Hardcore

  • Moderator Team
  • PipPipPipPipPipPip
  • 1,431 posts
  • Gender:Male
  • Location:United Kingdom
  • Devices:Orange San Francisco

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.

  • 0

#5
StevenHarperUK

StevenHarperUK

    Hardcore

  • Moderator Team
  • PipPipPipPipPipPip
  • 1,431 posts
  • Gender:Male
  • Location:United Kingdom
  • Devices:Orange San Francisco
From this thread:

http://android.modac...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.....

  • 0

#6
StevenHarperUK

StevenHarperUK

    Hardcore

  • Moderator Team
  • PipPipPipPipPipPip
  • 1,431 posts
  • Gender:Male
  • Location:United Kingdom
  • Devices:Orange San Francisco

From this thread:

http://android.modac...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.....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

  • 0

#7
StevenHarperUK

StevenHarperUK

    Hardcore

  • Moderator Team
  • PipPipPipPipPipPip
  • 1,431 posts
  • Gender:Male
  • Location:United Kingdom
  • Devices:Orange San Francisco
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

  • 0

#8
StevenHarperUK

StevenHarperUK

    Hardcore

  • Moderator Team
  • PipPipPipPipPipPip
  • 1,431 posts
  • Gender:Male
  • Location:United Kingdom
  • Devices:Orange San Francisco
Hmm the setting for user agent is not in that file any more (was in 2.1)

Back soon

  • 0

#9
funkfish77

funkfish77

    Newbie

  • Members
  • Pip
  • 5 posts
  • Gender:Male
  • Location:Montijo
  • Devices:ZTE Blade (Optimus)

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

  • 0

#10
StevenHarperUK

StevenHarperUK

    Hardcore

  • Moderator Team
  • PipPipPipPipPipPip
  • 1,431 posts
  • Gender:Male
  • Location:United Kingdom
  • Devices:Orange San Francisco

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....

  • 0

#11
funkfish77

funkfish77

    Newbie

  • Members
  • Pip
  • 5 posts
  • Gender:Male
  • Location:Montijo
  • Devices:ZTE Blade (Optimus)

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.

  • 0

#12
StevenHarperUK

StevenHarperUK

    Hardcore

  • Moderator Team
  • PipPipPipPipPipPip
  • 1,431 posts
  • Gender:Male
  • Location:United Kingdom
  • Devices:Orange San Francisco
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!

  • 0

#13
StevenHarperUK

StevenHarperUK

    Hardcore

  • Moderator Team
  • PipPipPipPipPipPip
  • 1,431 posts
  • Gender:Male
  • Location:United Kingdom
  • Devices:Orange San Francisco
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

  • 0

#14
funkfish77

funkfish77

    Newbie

  • Members
  • Pip
  • 5 posts
  • Gender:Male
  • Location:Montijo
  • Devices:ZTE Blade (Optimus)

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!!!

  • 0

#15
StevenHarperUK

StevenHarperUK

    Hardcore

  • Moderator Team
  • PipPipPipPipPipPip
  • 1,431 posts
  • Gender:Male
  • Location:United Kingdom
  • Devices:Orange San Francisco

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

  • 0

#16
flibblesan

flibblesan

    Token Northern bloke

  • Assistant Admin Team
  • PipPipPipPipPipPip
  • 5,631 posts

Sweet : A handy tutorial for anyone who suspects their provider is filtering access via Useragent


This should be added to some guides and pinned

  • 0

#17
StevenHarperUK

StevenHarperUK

    Hardcore

  • Moderator Team
  • PipPipPipPipPipPip
  • 1,431 posts
  • Gender:Male
  • Location:United Kingdom
  • Devices:Orange San Francisco

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

  • 0

#18
flibblesan

flibblesan

    Token Northern bloke

  • Assistant Admin Team
  • PipPipPipPipPipPip
  • 5,631 posts

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.

  • 0

#19
StevenHarperUK

StevenHarperUK

    Hardcore

  • Moderator Team
  • PipPipPipPipPipPip
  • 1,431 posts
  • Gender:Male
  • Location:United Kingdom
  • Devices:Orange San Francisco

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.

  • 0

#20
Mike_P

Mike_P

    Regular

  • Members
  • PipPip
  • 86 posts
  • Location:UK
  • Devices:Orange San Francisco
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.

  • 0




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users