Welcome to XDA

Search to go directly to your device's forum

Register an account

Unlock full posting privileges

Ask a question

No registration required
Post Reply

R roaming icon MVNO removal

OP asbesto

18th February 2014, 06:01 PM   |  #1  
OP Senior Member
Flag Turin, Italy
Thanks Meter: 9
 
104 posts
Join Date:Joined: May 2011
More
Dear all,

I am currently under a MVNO and my Xperia Z1 (stock 4.2.2) currently shows the R for roaming.
I would like to remove the R in order to show H, E or 3G in the top bar.

I have found this guide and I really would like to receive an help from a dev:

Quote:
Originally Posted by tiwag

the only problem what i have with BHuvan goyal's ICS AOKP beta 2.1 is, that it doesn't handle my MVNO (mobile virtual network operator)
http://en.wikipedia.org/wiki/Mobile_...twork_operator
as home-net. By default it classifies it as net used by roaming.
This is somehow annoying, and can be financially dangerous, when one allows "data on roaming" by default and "automatically select operator network".

On Samsung-GB-ROM's there was a solution for this behaviour which i described already here
http://forum.xda-developers.com/show...9#post22947309
and here
http://forum.xda-developers.com/show...1#post23025991


But i found a dirty hack, which solves at least the nasty roaming - sign problem, so that i get at least the H, 3G or E signs instead of the odd R sign above the field-strength symbol.

i use this script, which is started as root-user automatically at boot-time

Code:
#!/system/bin/sh

getprop | grep operator
echo bobA1 start

setprop gsm.sim.operator.alpha "A1"
setprop gsm.operator.isroaming false

getprop | grep operator
echo bobA1 done
it needs some explanation:

MCC - mobile country code, 232 = Austria
MNC - mobile network code, different network operators in this country
see
http://en.wikipedia.org/wiki/Mobile_Network_Code


my MVNO provider is "bob", MCC=232, MNC=11 (23211)

bob's home-net is "A1", MCC=232, MNC=01 (23201)


what it basically does is the following:

1.) overrrides the name of the operator, which is stored on the sim card, from "bob" to "A1", so that it matches the operator name given by the network.
Code:
setprop gsm.sim.operator.alpha "A1"
and

2.) overrrides the roaming status flag.
Code:
setprop gsm.operator.isroaming false

the rest ist only a status output primarily for debugging that one can see what was stored in these properties before and after the hack.

This overridden properties are valid until a Flightmode setting or until a reboot.

The effect of this change is only, that the roaming sign "R" disappears and does not reappear, because the strings stored in
[gsm.operator.alpha] and [gsm.sim.operator.alpha] are now ident.

One can now disable "data on roaming" and enable "automatically select operator network" safely, because when you get out of the range of the A1 network, the roaming flag is automatically reset by the OS after changing to another countrys network operator, where we are really roaming as intended, and therefore do not want to allow data because of high roaming costs.

Hope this helps for all suffering by the national roaming MVNO problem.
Hope also that this issue get's fixed one day by the ROM devs.

Can someone please help me??
Post Reply Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes