yashsingh1/xdaforums huggingface dataset:
[Nexus 5 General] wmn79:
Good to hear that it has worked.
[Nexus 5 General] Guzanni:
Great to see this, I had the very same problem. I also have Telfort, haha I even work for Telfort ;)

I asked the dev of the rom I'm using to implement national data roaming in it (he did it also in the kitkat version for me) so that's how I got rid of the stupid annoying 'r'. But good job on this! [MENTION=846756]wmn79[/MENTION]
[Nexus 5 General] ilMessia:
Can you please share how to do this? I wanted to modify the framework-res from cataclysm rom, so i've looked into the framework-res you provided to see where the folder you talked about is located, and what's into the xml file but, as stupid as it sounds, i'm unable to find them

EDIT: i was simply decompressing the apk as if it was a normal archive, using apktools showed the folders
[Nexus 5 General] wmn79:
To edit the framework-res.apk yourself and create a flashable update.zip for Android 5.1 you basically need to follow the following steps:

Install the framework apk: apktool if framework-res.apk

Decompile the framework: apktool d framework-res.apk

Edit the files in the framework-res folder that is created

Recompile the framework: apktool b -c framework-res

Use framework-res.apk from the dist folder for your update.zip with FrameworkFlasher 1.1.4a

Put the apk file generated in the previous step in the "place-framework-res-here" folder of FrameworkFlasher 1.1.4a and rename it to unsignedframework-res.apk. After than run RunMe.bat and choose option 4.

For Android 5.0 and 5.01 the last steps are slightly different:

Recompile the framework: apktool b framework-res

Copy the resources.arc file from the new compiled framework-res.apk in the dist folder to the original framework-res.apk

Use framework-res.apk to create your update.zip with FrameworkFlasher 1.1.4a
[Nexus 5 General] junior.youngman:
I have this issue in the US with Verizon network on Liquid Rom with my Nexus 6. What are the chances you could help me with getting it right? The dev is busy and hasnt had the chance to.
[Nexus 5 General] wmn79:
Which network are you/is Verizon using when you see the roaming r? Fixing can be done with the steps I wrote above your post. Sure I can help you with it.
[Nexus 5 General] GiacintoB:
has anyone tested this mod on cataclysm rom for nexus 5?

thanks!
[Nexus 5 General] wmn79:
The files wont work on any other rom than the stock ones listed in the OP. The method should work on any custom rom if you edit the framework of that specific rom. So the files wont work on cataclysm rom the method should work.
[Nexus 5 General] AforAnonymous:
The national roaming behaviour for the carrier "Drei" in Austria is a bit more complex than previously described.

The official MNC list for Austria is available here (German):

rtr.at/de/tk/SKP

And here (English) - but this list is outdated, which is sort-of-our-luck:

itu.int/pub/T-SP-OB.1056-201

Based on this and the APN for "Drei", The home network of "Drei" is called "3 AT" and has the MNC 10. The MCC for Austria is 232. Based on this, and the known roaming agreements (basically, only with T-Mobile) and mergers that Drei (with "Orange", previously known as "One") is undertaking, we must thus assume that phones that have MNC 10 as the home network must be allowed to roam into the following MNCs:

MNC 10 needs to be able to do national roaming to the following MNCs inside MCC 232:

03 - T-Mobile

04 - T-Mobile

05 - Drei - Former Orange/One

07 - T-Mobile

14 - Drei

16 - Drei

And more importantly the, the following MNCs should NOT be roamed to anymore inside MCC 323 - i.e. IF roamed to that network, it should be treated as proper roaming, not national roaming:

06 - A1 - previously Orange (which is now owned by Drei, but Drei had to hand that part of the network to A1!)

12 - A1 - previously Orange (which is now owned by Drei, but Drei had to hand that part of the network to A1!)

Unfortunately I don't know how each of these networks self-identifies in Human readable form, some of them identify as "3 AT", some of them identify as "T-Mobile", some as "3-AT", some as "One", some as "Orange". It's quite confusing, really.

In addition to that, all Drei end users should log into the drei.at homepage and request a SIM update (It's super hidden away /somewhere/ in the customer web interface), or call Drei to request one. The carrier then sends a silent upgrade for the SIM code to the phone, changing the roaming behaviour (significantly!). Note that the homepage lies and claims the delivery of the update takes a few minutes, in reality it takes a few hours, you receive a confirmation text afterwards (which is NOT the SIM upgrade itself - the SIM upgrade itself is invisible/transparent!) asking you to reboot the phone.

If you could update the update.zip for the above MNC configuration, that would be awesome. :) Also: should this work on Nexus 6?
[Nexus 5 General] wmn79:
I use http://mcclist.com/mobile-network-codes-country-codes.asp for looking up the mnc codes. For Austria I also used the wikipedia site. Based on those to I have configured the files for it. The current update file contains the values for the following MNC's: 03, 05, 10, 14, 16 so only 04 and 07 are missing for T-Mobile. I didn't hear back from someone that they still see the R on T-Mobile sometimes. I will update the zip for 5.0.1 in the OP.

Regarding your question on using this on Nexus 6 as I said previously the files won't work on a different ROM or Telephone but the method will. You will need to edit the framework of your Nexus 6 rom. As I don't have a Nexus 6 I also don't have the framework-res.apk from that ROM.
[Nexus 5 General] ilMessia:
Looking at your username i assume you're italian, so your operator must be Noverca. I created an update.zip with just noverca files, it works only on Cataclysm 22DEC nightly
[Nexus 5 General] marco2012:
This is the file I need,but I have Cataclysm 24 Dec Stable. Can I make it work on it?
[Nexus 5 General] marco2012:
I created an update.zip that works with Italian operator Noverca on Cataclysm rom build 24 Dec 2014 stable.

Tested on my nexus 5.
[Nexus 5 General] wishmasterf:
Works great in Austria with 3 AT, but there must be one ir more network-id which is not considered, because i get roaming message.

Is there a way to log used network-ids to find the non considered? I use phono. Hope to find with that app. It is not easy, because it happens mostly on travel per car or train. At this situation the network change very often.
[Nexus 5 General] gorko122:
If you use Llama you can see the recent network IDs in the history. I can see there (3AT) only 232:3 and 232:10, maybe it depends on the location or if you are a ex-orange customer, etc.
[Nexus 5 General] wishmasterf:
I found the official list of Austrian MNCs

https://www.rtr.at/de/tk/SKP/Zugeteilte_SKP_2014-11-24.pdf

Are MNC 4 and 7 considered for 3 AT in update.zip for 5.0.1?
[Nexus 5 General] GiacintoB:
Hi guys, thank you both.

I'm Italian and my operator is Noverca. I currently have the stable release of December 24. I tried to use the zip file of marco2012 but strangely when the installation starts the recovery (TWRP 2.8.3) restarts itself and the installation fails. Any help? Thanks!
[Nexus 5 General] daun20:
Hi, just wanted to thank you for this mod! Working great on Yesss! (AT) 5.0.1 stock rom so far.
[Nexus 5 General] CypherMK:
Can anyone make this compatible with this rom: http://xdaforums.com/showthread.php?t=2557353
[Nexus 5 General] TichDarkener:
Sorry for the OT, trying to figure out how to make it work on my S4 using [MENTION=4830253]Danvdh[/MENTION] GPE (2nd link).

My MNVO is Bob (MNC 232-11), looking at my history in Llama I see the MNC 232-1 which belongs to A1.

Here is the framework-res.apk of Dan's GPE (05.01.2015). I would be utterly delighted and thankful if somebody could mod it and make it into a flashable zip!
[Nexus 5 General] wmn79:
Yes they are, included are: 3, 4, 5, 7, 10, 14 and 16.

Thanks for the tip, wasn't aware of that app and functionality.
[Nexus 5 General] Danvdh:
Great work here folks, I appreciate the fix
[Nexus 5 General] wishmasterf:
I traveled the same train route and could not reproduce. I will went again today. I will tell you if i find out something.

Can you explain which file(s) are changed by you to port that to other devices?
[Nexus 5 General] wmn79:
Sure no problem I can guide you on which files to edit, I recently explained it to someone via private message so I can do some copy pasting here :).

You have to have some values like the MCC (mobile country code) and MNC (Mobile Network Code) for your provider and for the provider of the network you are using. So for me this is Telfort (MNC=12) on the KPN network (Multiple MNC's= 8, 10 & 69) the MCC for the Netherlands is 204. I use this site for determining the MCC and MNC's: "http://mcclist.com/mobile-network-codes-country-codes.asp".

In the framework-res folder you need to go in the res folder. There you need to create a folder with the name in the following format I do it for my Telfort example.

values-mcc204-mnc012 in this folder you create an xml file called arrays.xml I have copied the code contents for the Telfort example below.

<?xml version="1.0" encoding="utf-8"?>
<resources>
<string-array name="config_operatorConsideredNonRoaming">
<item>20408</item>
<item>20410</item>
<item>20469</item>
</string-array>
</resources>

You can of course also copy a file from another country and edit that. Hope you can work it out. Otherwise let me know where you get stuck.

Good luck!
[Nexus 5 General] forcedmeme:
I got as far as decompiling and editing the files neccessary, but I'm not sure what to do now. How do I recompile the .apk? And how do I turn it into a flashable zip?

I've tried a few guides that I found online, but there's so many variables that when it fails I'm not sure why it fails.

For the record, I've got a JFLTEXX - galaxy s4, running CM12 5.0.2
[Nexus 5 General] wmn79:
I have explained how I create the update.zip in this post
[Nexus 5 General] rolex0815:
I wonder about the size of your framework-res.apk.

I'm also on 5.0.1 (LRX22C), but my framework-res.apk is near double the size of yours: 13,9 MB (14*602*186 Bytes).

So i wanted to decompile it on my own, but when it comes to recompiling, apktool throws an annoying error:

C:\Dropbox\Tools\xdaAutoAPKTool_V5.0.0b2>java -jar apktool_20141103.jar b framework-res
I: Using Apktool 2.0.0-ec3fbf-SNAPSHOT on framework-res
W: Could not find sources
I: Checking whether resources has changed...
I: Building resources...
invalid resource directory name: C:\Dropbox\Tools\xdaAutoAPKTool_V5.0.0b2\framework-res\res/values-watch

Any ideas why folder "values-watch" (it is existing) is invalid?
[Nexus 5 General] gorko122:
you should use a backslash instead of a forward slash in the path name
[Nexus 5 General] wmn79:
About the size that is near double when you get it from your phone, that is correct. I don't know why that is the case but when I pull an unmodified framework-res.apk from my phone the size is: 13,9 MB when I have edited the files and added some files it is 7,25 MB. Making a zip of it even compresses it a bit more to 6,65 MB.

About the error you have with the xdaAutoAPKTool. I don't know why you get that since I don't have experience using that one I use the normal apktool. Maybe you can check in the thread of the xdaAutoAPKTool if someone has a clue there on this error.
[Nexus 5 General] rolex0815:
With the normal apktool, it worked.

I don't get the last step of your instructions:

It is not enough to decompile the original .apk, modify it it within the "decompiled" folder and then build the folder to an apk? :confused:

I have some misunderstanding here I guess.
[Nexus 5 General] wmn79:
To get it working you need to copy the resources.arcs file from the original apk archive and put it in the new apk archive. I do this with 7-zip, just open the two archives and drag and drop the file from the one to the other. I don't exactly know why you need to do this but when I didn't do this it did not work for me.
[Nexus 5 General] teqnl:
Is it possible to create a zip for 5.1 stock root (Telfort) :D
[Nexus 5 General] rolex0815:
apktool 2.0.0rc4 does not work with the framework-res.apk from Android 5.1

Very strange; there are a lot of errors and the apk won't decompile.

Hopefully, there's soon an update, switched to 5.1 today.
[Nexus 5 General] ToldYouSo:
Ask telfort for a new simcard. It will fix the problem as it fixed mine.
[Nexus 5 General] wmn79:
Did that a while ago but a new sim didn't fix it for me.

I have the same issue with apktool need to look into that a bit more.

Edit: Seems like we need to wait untill the developer of apktool incorporates the new source code to his tool.
[Nexus 5 General] wmn79:
Apktool was updated and I managed to create the update.zip for 5.1. I have updated the OP with it.

Enjoy!
[Nexus 5 General] mietu:
How can I revert flashing this zip? I wanted to give it a try even though my provider is not on the list but it does not work. I would like to uninstall it so it will not cause any issues later on.
[Nexus 5 General] wmn79:
If you made a backup you can restore that one. If not I don't think you can revert it. I don't expect it to cause any issues later on.

If you tell me your provider and country and which network should be considered as non roaming, I can update the file so it contains your provider as well. I will be off some days so that will be next week probably.
[Nexus 5 General] daun20:
Hi, just wanted to mention that with Android 5.1 and the new baseband my YESSS! - sim card (Austria, A1 network) doesn't need roaming enabled anymore in order to have mobile data working. Anyway, thanks for your efforts, was using your mod on 5.0.1!
[Nexus 5 General] mietu:
That would be absolutely great, please take as much time as you want :)

My provider is PLAY but I am connected to t-mobile all the time using national roaming. I am from Poland.

Thank you!
[Nexus 5 General] wmn79:
I have updated the 5.1 zip in the OP to contain the edit for your provider. Please test it and let me know whether it works. Always make sure you have a nandroid backup so you can restore your phone if you get in a bootloop or something like that.
[Nexus 5 General] mietu:
It works just fine! Thank you once again :)
[Nexus 5 General] rootSU:
ok, so i followed the tutorial and created the update.zip for 5.1, but i am getting stuck at the spinning boot logo, what's wrong? Also i see that your updated 5.1 zip has 14mb framework-res.apk, rest had 7mb framework-res.apk in the update.zip, does that make difference on 5.1? And what steps to follow in frameworkflasher? Just create the zip or sign the apk as well?
[Nexus 5 General] wmn79:
With 5.1 one thing has changed. The only thing you need to do different is with rebuilding the apk you need to use the option -c with it. This copies original AndroidManifest.xml and META-INF folder into built apk. After that step you don't have to copy the resources.arc file from the built apk to the original apk anymore. You need to use the framework-res.apk from the dist dir for your zip. The rest of the steps are the same but I will update the post with the instructions and link to it in the first post. I seem to have some issues with signing the zip with Frameworkflasher so I do that with another app called Sign+.
[Nexus 5 General] rootSU:
thanks, it worked now. :good::D
[Nexus 5 General] jeroencusters:
Hi wmn79,

Thanks again for the update! I have just updated to 5.1 with this guide http://xdaforums.com/google-nexus-5/general/guide-update-rooted-device-to-5-1-lmy47d-t3050789 and flashed update-5.1.zip to get rid of the 'R' again. Works perfect!

Regards,

Jeroen
[Nexus 5 General] wmn79:
The first post is updated with an update.zip for build LMY47I.
[Nexus 5 General] jeroencusters:
Hi wmn79,

I updated my Nexus 5 5.1 LMY47I with update 5.1 zip 2 days ago and this works good. Do I have to patch the update 5.1 LMY47I as well?

Regards,

Jeroen
[Nexus 5 General] wmn79:
No I don't think you have to do that then. I had an issue with version 2.8.6.0 of TWRP recovery that it did not flash the zips correctly. Therefore I thought my previous update.zip did not on this new build so I created a new one for this specific build. When I tried to flash that it also didn't work. So when I updated TRWP to version 2.8.6.1 flashing my new zip worked. Did not try the previous one. Probably google didn't change anything on the framework for this update.
[Nexus 5 General] jeroencusters:
I flashed the update 5.1.zip with TRWP 2.8.5.2.
[Nexus 5 General] dsharma.25:
Facing same issue on CM12

Hi,

I am facing same issue with my oneplus one phone.

Recently I upgraded to CM12 (cyanogen os) with Android Lollipop 5.0.2 with build LRX22G from CM11 (Android Kitkat 4.4.4).

After upgrade my mobile network appears to be in Roaming even though I am on same local network.

I tried to change the APN settings, still the issue persists for me.

I am on Tata Docomo network in India. Let me know if any more details are needed.

Please help me with this issue?

Thanks,

Deepak Sharma
[Nexus 5 General] Germian:
I can confirm this! I have Yesss (Austria), too. I don't know what they did, but I use the newest stable Cataclysm - AFAIK the dev doesn't alter with the national roaming options - and I'm getting a standard signal on my reception strengh, no nasty R :)
[Nexus 5 General] wmn79:
Hi Deepak, in order to make the changes you need to pull your framework-res.apk from your device. With that you can do the edits and create an update.zip to install the fixed update.zip to your device.

Thanks for letting me know. I think I keep it included for a while since it is only one small file to add to the framework-res.apk and I already have it present so the only effort for including it is selecting it when I copy the files :)
[Nexus 5 General] tusshar.gaba:
if while on roaming, means really out of local network ..so can we also edit the R mark and get all these 2g and 3g marks ??? or is it work only on local area where roaming sign R appears bcos of some fault ??

---------- Post added at 02:08 PM ---------- Previous post was at 01:50 PM ----------

also i am from india ..and i am using Airtel here .. so my country's MCC is - 404 and 405 and multiples MNC for the same ..

for 404 - (2, 3, 10, 16, 31, 40, 45, 49, 70, 90, 92, 93, 94, 95, 96, 97, 98)

&

for 405 - (54, 55, 56)..

so how would i create a folder for the same and create an xml files ??? please specify bcos here in india there are 2 MCC and multiple MNC for the same ..
[Nexus 5 General] syedhmed:
Removing the r

Hey i have the same problem as you except i am on same carrier and different circles .Can you help me remove the r symbol as well?
[Nexus 5 General] wmn79:
So you have roaming R when you are on airtel? On which network are they broadcasting. If Airtel has all these MNC's and is also using them you should create a folder and file for each and every MNC. You can check which MNC's you are using by using Llama, this app can show you which MNC's you are using.

Not sure what you mean, what do you mean by circles. Can you explain your issue a bit more? Thanks.
[Nexus 5 General] wmn79:
So you know, an update zip for Lollipop 5.1.1 is uploaded to the OP.
[Nexus 5 General] :
Thanks again for the update! I just updated my Nexus to 5.1.1 and reapplied your fix.
[Nexus 5 General] Khiven:
Hello there, I have a Spanish MVNO and I've been trying to solve this issue with the R icon appearing all the time instead of the actual connection. I searched for fixes and I tried to create the spn-conf.xml file with spn overrides as well as editing build.prop file to change roaming mode. Neither of these old solutions work anymore. Then I tried Xposed framework with a module, but xposed frameworks does not work in android 5.0.2 or at least in my version, OxygenOS (OnePlus OS for the One).

Finally I came up with this post. I don't have the sdk in my pc at the momment. I wanted to ask you if you think it is possible to build an update for android 5.0.2 and if it really matters if it's not stock ROM. OxygenOS is basically a stock Android 5.0.2 with minor if any changes.

So, do you think it is possible? If so, would you be willing to recompile the update for android 5.0.2 with the MVNO codes that I could give you?

Thanks in advance.
[Nexus 5 General] syedhmed:
Well forget circles .My state has been divided into two .one being the capital and the second rest of the state .So I have a sim from the capital and don't live in the capital .So I have roaming symbol .However the network is the same .
[Nexus 5 General] Joe_the_tulip:
Any chance of getting this working on a Nexus 6 with "bob" Austria?
[Nexus 5 General] wmn79:
Sure if you use the framework from your Nexus 6 and follow the steps I earlier described in this topic than this should work for your device as well.
[Nexus 5 General] :
Hi wmn79,

Google just released 5.1.1 stagefright fix (lmy48i). Can I use the 5.1.1 update zip to fix the roaming 'R' issue again or should I wait for a new update.zip?

Best regards,

Jeroen
[Nexus 5 General] wmn79:
Hi you can just use the 5.1.1 update zip for release lmy48i. Did this myself a couple of days ago without any issues.

Verstuurd vanaf mijn Nexus 5 met Tapatalk
[Nexus 5 General] :
Thanks for your reply. I missed it because I didn't get a notification. I just flashed the 5.1.1 update and it works again.
[Nexus 5 General] GtrCraft:
Delete
[Nexus 5 General] trogl0dyte:
Small clarification to the process

Small detail needs to be added to this step:

Put the apk file generated in the previous step in the "place-framework-res-here" folder of FrameworkFlasher 1.1.4a and rename it to unsignedframework-res.apk. After than run RunMe.bat and choose options 3 and 4 in order.
[Nexus 5 General] trogl0dyte:
Most probably in Android M changing this will be a lot easier as the API was added.

https://developer.android.com/refer...html#KEY_GSM_NONROAMING_NETWORKS_STRING_ARRAY
[Nexus 5 General] swukjay:
I have this problem with delight mobile in the uk, always a r above the signal, it also causes a data problem where I have to switch data on and off, could somebody out the edit my framework. res for me? I would be really grateful if they could , grovel grovel, pretty please :D:D:D
[Nexus 5 General] flapm:
Tesco Mobile

Hi, could you do one for Tesco mobile in Ireland. Thanks
[Nexus 5 General] swukjay:
Hi I have this problem for a UK network, I am using android 4.1.2, would it be possible to do this for my network? its delight network mcc234 mnc01 ? its a mvno that runs on orange uk ?
[Nexus 5 General] SortingSebas:
Android 6 Marshmallow

Hello,

I am very thankfull about your mod. It fix that annoying bug since android kitkat.

Can you make this fix also for android 6.0 that wil me awesome. :)

Greetings,

Sebastian.
[Nexus 5 General] wmn79:
The coming three weeks I will be off on holiday so I don't expect to create the mod for Android M before the beginning of November.
[Nexus 5 General] SortingSebas:
Holiday

Oké no problem. Fijne vakantie ;)
[Nexus 5 General] chefkeds:
I tried to create an update.zip myself by following the instructions in the first post. That resulted in a bootloop :(

I guess it isn't the same procedure like android lollipop.
[Nexus 5 General] kurai_mistral:
-delete-
[Nexus 5 General] wmn79:
I have updated the OP with an update zip for Android Marshmallow 6.0, same method was used as before.
[Nexus 5 General] nicob:
any hope for the new MRA58N build?
[Nexus 5 General] nitr00:
Did you perhaps tested this? It should work however.
[Nexus 5 General] nicob:
Yes, you are right it just works.... My bad, I thought every build needs a new update.zip
[Nexus 5 General] wmn79:
As log as they don't change anything in the framework it should work. The MRA58N build is one of the new monthly security updates. I don't know if they patched something in the framework-res.apk otherwise it gets undone by installing this older framework-res.apk.
[Nexus 5 General] nitr00:
Thanks for your efforts but would it be possible to rename the current "update-6.0.zip" to "update-6.0-MRA58K.zip" and add a new updated zip for "update-6.0-MRA58N.zip"? Just in case if something did changed in the framework-res.apk?