yashsingh1/xdaforums huggingface dataset:
[Xposed Framework Modules] Fif_:
I've looked at the module's source code.

https://github.com/CazeW/RoamingCon...et/caze/roamingcontrol/XposedRoaming.java#L36 shows that it's only hooking com.android.providers.telephony.

That won't do anything, for the reasons above.

So you could be hitting an Xposed bug (have you tried rebooting a few times, are other Xposed modules working), or your device may be incompatible.
[Xposed Framework Modules] CazeW:
Couldn't see anything interesting in the log either. As the file access has changed in Android since I made this module, I've suspected a couple of times that the reason why it's not working for some is that the module isn't able to access the configuration files saved by the app. I could be wrong though and it's something else that has changed. I did create a couple of beta builds of 1.54 in order to try fix another issue back in the day and if I remember correctly, I enabled more logging in those builds.

You can find them here and here. Test with either of those builds to see if they work or if you get something in the logs indicating why it isn't working.
[Xposed Framework Modules] lukjod:
Can I use it with esim on samsung s20 ultra, cant see option for esim just sim1 and sim2. Or any other way to force esim for use data only in switzerland and for rest sim1. Any help welcome
[Xposed Framework Modules] CazeW:
Haven't tried with eSIM, but if you're seeing two sims in the app, I don't see why it wouldn't work. Unfortunately you can't force behavior for the sims with this app. What you can do with it is to make the phone think it's either roaming or on home network to remove the restrictions roaming can have.
[Xposed Framework Modules] Valiante:
@CazeW

Given no one could figure this out thus far, is there any way we can help you fix the module?

What do you need?
[Xposed Framework Modules] CazeW:
Someone else to take over the development. 😄

I don't have a rooted phone anymore to test on, nor the time to really dig what's been broken/changed in newer versions of Android.
[Xposed Framework Modules] systoxity:
I'm not in the states but probably. I'd guess you could do that by enabling force into roaming mode and then disable roaming in android settings if that exists.

I use it because i'm on an international data plan and studying abroad. Marshmallow will not let you see what kind of network you are connected to when roaming. This fixes that.
[Xposed Framework Modules] CazeW:
Great that the app has been of use. I added a donation link to OP and profile.

The app won't stop your phone from connecting to other domestic networks, but the "Force roaming" option will force the phone into roaming mode on those networks. In other words, you won't be using data unless you have roaming enabled in the android settings.
[Xposed Framework Modules] FloBaoti:
Ok so it's about roaming data only, not roaming globally.
[Xposed Framework Modules] CazeW:
Yes, as most people still want to be able to make calls and texts while roaming.
[Xposed Framework Modules] FloBaoti:
That's what I'm looking for : tell my phone to NOT connect to some networks (sort of MVNO having multiple physical networks).
[Xposed Framework Modules] systoxity:
For me it was useful because peeking at the data connection speed or even if you have data at all is needlessly complicated in marshmallow when roaming. This simplified things.

Unfortunately, i don't know why, but it won't work on the new rom/kernel i'm trying: Kylo Kernel + Ubermallow. Xposed Framework 80 Nexus 6p.

I install, enable module. Reboot. Run Roam Controll. Enable national roaming and Network roaming. i add my current network. Then i reboot. Stupid little signal R signal still present.

Thanks for the app though, i'm glad to know its there and will work when i go back to a less exotic setup. Please enjoy a hot beverage from my behalf.
[Xposed Framework Modules] CazeW:
I'll look into this. By the way, you don't need to reboot after adding a network, just toggling flight mode on and off is enough.
[Xposed Framework Modules] CazeW:
[MENTION=1364881]systoxity[/MENTION] Give the new version a try. I noticed a bug had crawled in to the previous version and it should work now.
[Xposed Framework Modules] systoxity:
Thank you for taking the time to optimize the app. Gave it another shot, still no go. I suspect that its a change specific to this rom kernel combo. It's okay, i'm not enjoying my switch. battery life has been suboptimal for some reason. I'll report back when i'm back to my old rom kernel to confirm that it works there.

Thanks for looking into it :D
[Xposed Framework Modules] CazeW:
That is strange, as I've looked at the ROM source code and it should work (the kernel makes no difference). Could you try the country mode and see if that works? Also, did you try it by toggling the flight mode on and off after adding the network (I'm assuming you had rebooted after activating the module)?
[Xposed Framework Modules] systoxity:
CazeW, you're really going above and beyond. Thank you. I'm in the process of downloading the other rom.

I did reboot after installing and enabling the module. I then opened Roam Control and enabled top top most setting and added the current network to the list. I verified that it picked up the correct network and closed out of the app and rebooted. had it on for a couple days like that through a couple reboots. But I don't remember if i ever toggled airplane mode. i'll give it another shot before the roms downloaded and see if that was the issue.

Thank you!
[Xposed Framework Modules] CazeW:
No need to thank me, bugs just happen to annoy me. :)

The module is hooked so that whenever there is a change in the connection (change in network, lose network, connect to network etc.) it will kick in and do its thing. This saves battery as it doesn't need to do unnecessary checking until there is a change in network. But it also means that when rebooting, if the module doesn't manage to load before the phone connects to a network, nothing will happen. So if you after a reboot have the phone sitting on a strong connection on a single network, the module might never get to do its work. Hence why toggling flight mode on and off helps.
[Xposed Framework Modules] systoxity:
I gave it another shot this morning before swapping back to the old rom. No luck even when toggling airplane mode. Tried to let it sit without a connection for a while too. No idea what could be causing it :/

Will update here to confirm that its working on the other rom.
[Xposed Framework Modules] systoxity:
Yup, working flawlessly on newest version of purenexus with elementalx kernel on nexus 6p t-mobile.

Just out of curiosity, does roam control affect wifi calling support on t-mobile in any way?
[Xposed Framework Modules] CazeW:
No. Unless wifi calling on t-mobile doesn't work when you're roaming (which it should).

EDIT: And thanks for the report. Still strange that it refused to work on that other ROM...
[Xposed Framework Modules] systoxity:
Had some time to poke around. Found the WiFi calling glitch, was not related to roam control. Everything is working as it should be.

Thanks again CazeW.

For future searchers that may stumble on this thread: if T-Mobile WiFi calling is bugging out its due to 6.0.1 update on nexus 6p. Go into airplane mode and enable WiFi. Wait for WiFi calling to enable and disable airplane mode.
[Xposed Framework Modules] cabina:
While on country mode enabled,had the missluck selected on serbia wich was not on my country list

Will reboot and check back
[Xposed Framework Modules] cabina:
Still will change on non selected country

Now i am on network mode,will see
[Xposed Framework Modules] CazeW:
You mean you could roam (there was no R icon) in Serbia when you didn't have Serbia added to your country list? Did you test if the phone will roam (there is no R icon) when you have saved roaming completely turned off?
[Xposed Framework Modules] cabina:
Yes

And on network mode same

For example

I have not favourite telenor and on auto settings in mobile settings is choosing telenor or mts

So not working on country mode and netowrk mode,national roamimg or force roamong mode
[Xposed Framework Modules] CazeW:
The app can not stop your phone from connecting to those networks. Also, if the R isn't showing up on those foreign networks when they are not in the list, it's your operator that is allowing for you to roam on them. If this is unintentional and you're paying for roaming charges while on those networks, that is a problem with your operator (which you should take up with them).

I am however planning on extending the functionality of Force roaming mode so that you can manually add networks that you want the phone to go to roaming mode on (so it displays the R), but just haven't had the time to do that yet.
[Xposed Framework Modules] cabina:
Ok i get it now

Yes it will be very good app if you can choose certain networks or country to roam,independent on operator

Just set it and roam on favourite

Thanks for reply ang good job
[Xposed Framework Modules] Lion_1:
Thank you, CazeW, for your rellay helpful app.

The topic is very important for me, but i can not solve my problems with your app, because i have a Dual Sim Phone (Oneplus TWO).

Situation: Austrian and German SIM in the Phone

If i enable "national roaming" in your app (and i am in Austria) also, the "R" of the German Sim disappiers (which is wrong).

So my request: Would it be possible to apply the settings to the 2 Simcards independently???

BR

Lion
[Xposed Framework Modules] CazeW:
That is unfortunately a known problem with the current app. It should be possible to toggle them independently and I'll look into it when I get time.
[Xposed Framework Modules] Lion_1:
Thank you very much.

This would solve much of my headache :o

If you need a beta tester: i am going each day between Germany and Austria, so good possibility to test...
[Xposed Framework Modules] Lion_1:
This would be really, really great...

With this feature and the fix for dual Sims it would address all possible problems with roaming...
[Xposed Framework Modules] CazeW:
That feature is already in the newest version. I've made some progress on the dual sim support but as I've been quite busy lately, the development has been slow.
[Xposed Framework Modules] Lion_1:
Thank you, CazeW, take your time.

I really appreciate your work...
[Xposed Framework Modules] CazeW:
New version with a bug fix to Whitelist mode is up. You couldn't add networks in your home country to the list on single SIM phones.
[Xposed Framework Modules] zer0ality:
Requirements

Hello. This is my first post on xda. With that out of the way , here's what I'd appreciate assistance with.

I have a Sprint HTC One M9 , S-ON , Unlocked , Unrooted , Bootloader RELOCKED and Sprint's official Marshmallow OTA Update installed and I have my sim on roaming currently and I cannot access mobile data and I have installed this apk and checked all the options , including "Advanced Roaming" and yet I cannot access data/ remove the roaming notification on my sim despite rebooting it several times . Any help as to what I should do now would be welcome as it's incredibly difficult to travel without ready internet access .

Thanks in advance , any help at all would be really appreciated .
[Xposed Framework Modules] CazeW:
For this app to work you need to have the Xposed framework installed from here and to be rooted.
[Xposed Framework Modules] Briegl:
Can anyone say, if this works on Android 6.0? I have an Elephone P9000 and it doesn't work...
[Xposed Framework Modules] CazeW:
It should work on Marshmallow but there has been one person reporting that it didn't work on a specific ROM. I didn't find the reason for it.

After a reboot, check catlog for any messages from Roaming Control and if there are any, send me the log.
[Xposed Framework Modules] Whoozer:
Hi,

i was just wondering if with this application you can pick a network abroad to roam with avoiding your phone connecting to other networks. That would avoid unwanted charges. Would that be possible? Sorry but being a bit confused.
[Xposed Framework Modules] CazeW:
Well yes and no. The app can't currently stop your phone from connecting to other networks (I'm working on this), but you can allow roaming only on the networks you want. For example, you have cheaper roaming on 3 in UK so you allow roaming on that network. Then the phone loses the network and connects to Orange, but as you don't have roaming allowed on that network, your data connection will be disabled and you won't get unwanted charges.
[Xposed Framework Modules] Briegl:
Hm, doesn't work with my phone. I have dual Sim, so I can't select the national roaming option. I checked Catalog, there was only the following message from roaming control.

05-31 09:19:49.258 V/SQLiteStatements(5679): :memory:: "INSERT INTO applications ('_id', 'name', 'description', 'package', 'class', 'icon', 'launch_count', 'last_resume_time') VALUES (NULL, 'Roaming Control', 'App', 'net.caze.roamingcontrol', 'net.caze.roamingcontrol.Activity-Alias', 'android.resource://net.caze.roamingcontrol/mipmap/ic_launcher', COALESCE(0, 0), COALESCE(0, 0));"
[Xposed Framework Modules] CazeW:
National roaming option on dualsim is disabled by choice (at least for now) as you can use Saved roaming to do the same thing. Have you tried adding the network to the list in Saved roaming? I assume you also have the Xposed framework installed?
[Xposed Framework Modules] Briegl:
Yes, Xposes Framework is installed. How can I test, if Xposed is working correct? The Xposed app says "Xposed framework version 82 is active."

I enabled Force roaming and Saved roaming and added all network codes. Should I disable Force Roaming?
[Xposed Framework Modules] CazeW:
Yes, disable Force roaming. Force roaming is for forcing your phone into roaming mode. For example the phone thinks Orange is your home network when it's not, so you add it to the Force roaming list and the phone will then correctly disable data and show the roaming icon.

If you have the same network added to both Force and Saved roaming lists, Force roaming will override Saved roaming.
[Xposed Framework Modules] Briegl:
ok, thank you, I will try it.
[Xposed Framework Modules] Briegl:
I hope I solved my problem right now. I think my problem was, that my SELinux was running in enforced mode. So I switched it to permissive mode and now the national roaming seems to work for me. Thank you for your patience. ;)
[Xposed Framework Modules] CazeW:
Great if that made it work. :)

On Lollipop I have SELinux in enforced mode and it works fine, but I guess there is a possibility there could be some issue with it on Marshmallow (either with app or with Xposed framework itself).
[Xposed Framework Modules] Henner7:
Int. Roaming does not work but nat. Roaming does

Good morning,

I have run into the following problem (I have not yet installed your app): International roaming does not work even if the phone is connected to the network (R is shown) and all roaming settings are enabled. However, the national roaming works fine (R is also shown). I have asked my provider but they have no roaming locks set for me. Also the APN settings are fine. Maybe I have had installed an app some time ago that has changed some settings permanently. Any idea where the such settings are stored in Android 4.4.2 (/etc, /init.d)? I have root access.

Could this app presented here solve this problem? How?

Thanks in advance, Christian
[Xposed Framework Modules] CazeW:
As to my knowledge, there is no setting that could do that and that kind of roaming block is usually set by the operator or it's an issue with the SIM. If the block is set by the operator (despite them saying otherwise) this app won't solve the problem. If the issue is somewhere else, there is a slight chance that this app could help as it makes the phone believe that it's on the home network even though connected to a foreign network. It would also get rid of the R when you're nationally roaming.
[Xposed Framework Modules] Henner7:
Thank you for the answer. I gave a phone call to my mobile service provider but they confirmed that there is no lock on the international data roaming. But they also told my that they work together with almost all international services for voice connection but

only

with one for data connection. :( So I suppose I have been connected just to the wrong networks....
[Xposed Framework Modules] CazeW:
Glad you found the cause. If they really allow for data roaming only on a specific international network then the app unfortunately can't do much to help.
[Xposed Framework Modules] LordWurstbrot:
Hello, thank you for this awesome module[emoji106] Working perfectly on my MM device!

Please hit Thanks if I helped you!
[Xposed Framework Modules] PeterJake:
Hello, your module doesn't work form me, the roaming logo is always active. I'm currently in a Note 3 with the MM based Resurrection Remix ROM and idle kernel.

Thanks for your awesome job.
[Xposed Framework Modules] CazeW:
Make sure you don't have forced roaming on. If you don't have that on, reboot the phone, let everything load, toggle plane mode on and off and send me catlog and the log from Xposed framework.
[Xposed Framework Modules] PeterJake:
I didn't have forced roaming on so, I did what you told me and got the log. It's on my dropbox since it is pretty long but I can't post any links by the moment. How can I send the log to you? :confused:

Thanks for helping out. :o
[Xposed Framework Modules] CazeW:
If you can't send it in a PM or attach the file, just paste in the part of the link that comes after dropbox.com. Did you also get the log from the Xposed app?
[Xposed Framework Modules] PeterJake:
Just send you PM. Let me know if you need something more.
[Xposed Framework Modules] tboom:
Settings for a dual sim-card mobile in germany using eplus and O²

Hello

I'm in Germany, using an Elephone P9000 with latest (20160608) stock Firmware on it.

My Provider is "Drillisch AG" a part of the eplus / O² "national roaming alliance" ;). In my Mobile only SIM2 is used.

I have installed Roaming Control App 1.21 and selecteted there the option "Saved Network Roaming".

Saved Networks (SIM2) are: MCC:262, MNC: 03, 07 (which means: Eplus and O²)

Everytime I leave a LTE-Cell (O²/MNC 07), going to HDSPA (eplus, MNC 03), I loose data-connection and see the roamig "R" for a short time...

Have I to change any Parameter(s)?
[Xposed Framework Modules] CazeW:
Try 1.22. I fixed some bugs that may have been the cause of that issue. If that doesn't help, send me the log from Xposed after your phone switches from LTE to HDSPA.
[Xposed Framework Modules] LordWurstbrot:
Same problem her! Since the last update the app says "dual sim phone detected force roaming activated" And then I can't enable the national roaming anymore [emoji24]

Please hit Thanks if I helped you!
[Xposed Framework Modules] CazeW:
You can simply use saved roaming to do the same thing as national roaming did. Just add the network(s) that show the "R" to the list for the inserted SIM and you're done.
[Xposed Framework Modules] Droidphilev:
Hi,

I'm on a ship right now. This app saves me from hopping between land networks (0.06 eu/mb) and the onboard network (9.25 eu/mb!!!) so MANY thanks for this. Must-have app for cruisers! I had to disable data roaming in settings though. I think that's not really documented.

Thank you!
[Xposed Framework Modules] igresso:
Hi,

Many thanks for your work. Can you make a guide for dual-sim ?
[Xposed Framework Modules] CazeW:
Thanks for the tip, I'll add the mention of disabling it in the app.

Yes, the module works from JB to MM.
[Xposed Framework Modules] pyler:
Is source code somewhere available? Or can you send me strings.xml file? I would like to translate this app to Slovak :)
[Xposed Framework Modules] realcams:
Hello,

can´t configure the app to work with my dual-SIM Elephone P9000.

Immediately it gives message, that a dual-SIM phone was encountered, and national roaming disabled. Instead it switches to "Force Roaming" - but even I add both Telefonica Networks in Germany (O2 and E-Plus) as saved networks (SIM2) - nothing changes...

Any idea what I can additionally try?

realcams
[Xposed Framework Modules] CazeW:
I've added the strings.xml file to the first post as attachment.

National roaming getting disabled and Advanced force roaming enabled is a choice I made for now for easier handling of dual-sim phones. I assume you have the Xposed framework installed? If you are sure you've configured the app right (forced roaming turned off and both networks added to the correct SIM in saved roaming), do a reboot, toggle flight mode on/off and send me the log from the Xposed framework.
[Xposed Framework Modules] RFrancis:
This app has become so confusing to me... I live in a border town us and Mexico. On the US I want to use T-Mobile and in Mexico Telcel. Is there a way for this app to only pick between those two all the time and not roam to different networks?
[Xposed Framework Modules] realcams:
now working

Updated the xposed framework to v87, re-installed Roam and re-enabled in xposed installer... no idea why, but now it works correctly!

Fine work - many thanks for that helpful app!

regards

Dietmar
[Xposed Framework Modules] CazeW:
No. I'm trying to add this feature but haven't had time work on it for a while. The best the app can do for you now is that if you add those networks in the app, you can disable roaming in the system settings and your data will be enabled only when connected to those networks.
[Xposed Framework Modules] RFrancis:
Hmm that is only half an option because I've already been connected to another network and not have data access until I noticed what was going on... anyway to incentivize you? It would make for an amazing useful app.
[Xposed Framework Modules] LordWurstbrot:
Could you please tell me where I can find the strings.xml on my phone, so I can test the translation!

Thank you

Please hit Thanks if I helped you!
[Xposed Framework Modules] CazeW:
It's probably the most requested feature but until I find how/where exactly Android negotiates a connection to a network, or how it selects a network automatically there's not much I can do. I've been combing through the source files with no luck so far.

The strings.xml is compiled into the apk so the only way you can test the translation yourself is to decompile and recompile the apk with your strings.xml.
[Xposed Framework Modules] LordWurstbrot:
For all the Germans ! I have made a German transition for this great app! It will be added in the next update.

It is the first time for me doing this, so if you find so mistakes please tell me so that I can fix it!

Thanks

Please hit Thanks if I helped you!
[Xposed Framework Modules] hegyre:
Hello,

Seems like the app cannot see my 2nd sim card on my HTC 626G dual sim phone (Android 4.4), chip MTK6592

Thus I cannot use the app the way I want.

Let me know if you want some logs or anything that could help.
[Xposed Framework Modules] CazeW:
Unfortunately the dual-sim support is for Lollipop 5.1 and onwards as that is when Google implemented official support for it. Before that Mediatek had their own implementation and I'm not sure I can easily implement that in my current code, nor would I have any way of testing it.
[Xposed Framework Modules] hegyre:
Well, you could at least detect if the phone is dual sim, with the following :

if this command gives you something:

getprop | grep gsm.sim.operator.alpha.2

should give you:

[gsm.sim.operator.alpha.2]: [Free]

.. or nothing if the phone (at least my phone type) is not dual-sim capable.
[Xposed Framework Modules] CazeW:
Just correctly detecting if the phone is dual-sim doesn't really help when the rest of the app isn't working properly. But I'll look into this when I get the time if I can make it work with older Mediatek dual-sim phones.
[Xposed Framework Modules] hegyre:
OK cool Kindly let me know so that I can test this ;)