yashsingh1/xdaforums huggingface dataset:
[Xposed Framework Modules] Tachilowitsch:
I tried both modes actually. Sorry i didnt add theese log lines:

11-06 19:42:05.437 I/Xposed ( 2349): RoamingControl: Country saved roaming set successfully for SIM1

11-06 19:42:28.354 I/Xposed ( 2349): RoamingControl: Allow data on roaming set for sub 1

11-06 19:42:28.354 I/Xposed ( 2349): RoamingControl: Network saved roaming set successfully for SIM1

11-06 19:42:30.350 I/Xposed ( 2349): RoamingControl: Allow data on roaming set for sub 1

11-06 19:42:30.350 I/Xposed ( 2349): RoamingControl: Network saved roaming set successfully for SIM1
[Xposed Framework Modules] CazeW:
New test, different patch. It's now applied to both network and country mode so you can try either.
[Xposed Framework Modules] Tachilowitsch:
one information: at my asus phone i can choose from 3 options whenever i tap on the data roaming switch:

- turn off data roaming

- turn on data roaming for this trip (i think this means data roaming remains on until the current network providers signal is lost)

- turn on data roaming always...

maybe this helps.

anyway thanks for the great support and your effort!!!

best regards!
[Xposed Framework Modules] CazeW:
Unfortunately it doesn't. There's a possibility Asus is doing something differently with the networks compared to AOSP (other than having that option), but without sources it's impossible to do anything about it. I'll dig more into this when I get the time to see if I can find something more to test.
[Xposed Framework Modules] veron161:
Did anyone try this on Android 7 version?

I have Galaxy S7 Edge and would like to enable this module, but before I root my phone (and loose warranty) I would like to know if it still works?
[Xposed Framework Modules] CazeW:
I haven't personally tried it with Nougat as I don't use Xposed anymore (because of SafetyNet), but I haven't gotten any reports of it not working on Nougat.
[Xposed Framework Modules] fila2208:
Hey is there version for magisk? Thy
[Xposed Framework Modules] CazeW:
No, Magisk doesn't have the functionality that Xposed has.
[Xposed Framework Modules] Op_Flashpoint:
Does this work on Oreo? Doesn't seem to be working. Or am I missing something? I want to force my phone into roaming mode while still being on my home network. Can someone guide me?
[Xposed Framework Modules] CazeW:
Unfortunately I haven't been able to test this on Oreo as I don't use Xposed anymore. To force your phone into roaming mode, enable "Force roaming" and add your home network to the list. Then toggle airplane mode on and off and let the phone reconnect to the network for the settings to effect.

If this doesn't work, send a me a Logcat and I'll try to figure out why it isn't working.
[Xposed Framework Modules] Op_Flashpoint:
I'm sorry, which list are we talking about? The "Saved network" list right? And why am I supposed to add my HOME network to the list and not the network on which I want to be? Sorry if the questions are noob, thank you in advance.
[Xposed Framework Modules] CazeW:
You can't select with this app the network you want to be on. You can only control how the phone sees the network you're connected to, either as a roaming or home network. If you want your phone to see your home network as a roaming network, enable "Advanced force roaming" in the settings and add your home network to the list that appears in the main window.
[Xposed Framework Modules] flyingfishfinger:
Hi,

I'm trying to use this (v.1.53) on LineageOS 13 on a Droid Mini. I'm running Xposed v89 as a Magisk module, which works OK for most other things.

However, nothing I do in this app affects either the function or appearance of my networks.

The main issue I'm trying to solve is the data connection constantly dropping while I'm roaming in China. Stock Android on this device worked fine last time I tried, but something is different about LineageOS. I'm hoping that if I use national roaming this problem might go away, but to begin with this app doesn't seem to work.

I've attached my Xposed log; the most interesting bit is repeats of "

11-26 15:51:43.154 I/Xposed ( 1497): RoamingControl: Xposed could not find the list ForceList

11-26 15:51:43.154 I/Xposed ( 1497): RoamingControl: Operator networkNameShort, networkNameLong or networkNumeric is empty"

and

"11-26 15:45:55.846 I/Xposed ( 1497): RoamingControl: SIM operator not found for SIM1"

Any suggestions here?

Thanks,

R
[Xposed Framework Modules] CazeW:
Can't say for sure why it isn't working. Though I don't see any information that you had enabled any settings. Did you enable "Saved network roaming", added the network you were on to the "Saved networks" list and toggled aiplane mode on and off? If you did all those steps, try the beta build I've attached below and report back.
[Xposed Framework Modules] flyingfishfinger:
Right, sorry. If I use v1.53 and follow your steps (I didn't use "Saved Network Roaming" before) , it does turn off the roaming indicator.

I still can't connect to data for some reason, but that may be an entirely different issue...

Thanks!

R
[Xposed Framework Modules] CazeW:
Try turning on allow roaming in the system settings. That is the bug I tried to fix with the beta builds but I never found a working fix for it.
[Xposed Framework Modules] flyingfishfinger:
Further update (NOT using the beta build) - if I disable "data while roaming" on the phone, enable the Saved Network Roaming and REBOOT the phone, I get an EDGE connection (which is about all I can expect around here, I think).

However, if I lose reception or switch in and out of airplane mode, the data connection is NOT reacquired until I reboot again, even if I re-enable data while roaming. Is that still consistent with the bug you're trying to fix?

Cheers,

R
[Xposed Framework Modules] CazeW:
That's actually new information as I was unaware that a reboot could trigger it to start working. However, it's also strange that you don't get a data connection afterwards even with data while roaming enabled.

Do a reboot, check that you have a data connection, toggle airplane mode, check that you don't have a data connection and send me the log of that.

Test the beta version after that as well to see if it behaves any differently, as it does have some changes.
[Xposed Framework Modules] flyingfishfinger:
Not having a data connection was the original issue anyway. Without your app, I can't get a data connection at all here in China, even though the intro text message says I should be able to (T-mobile SIM from US) - I blame this on LineageOS, since with the stock ROM the same SIM had no issues last time I came here. Also, even if I reboot I can only get a data connection if I set the phone to 2G or 3G (not LTE).

Still no go after I toggle airplane mode, Xposed log attached. I don't think there's anything new after the toggle...I'll try the beta tomorrow.

The "R" icon stays gone, just no data.

Thanks for the great work!

R
[Xposed Framework Modules] CazeW:
Didn't see anything new in the log. Did you try the beta?
[Xposed Framework Modules] flyingfishfinger:
I did, and as far as I can tell there's no discernible difference.

I'm now in London, and it's having similar issues. Mostly I need to reboot to get the data connection back after I lose reception. Sometimes it takes several reboots to get it, sometimes it works right away. When I switch between WiFi and cellular data though, it mostly gets the data connection back just fine without a reboot, assuming it had one before I turned on WiFi and dropped the data connection.

Thanks,

R
[Xposed Framework Modules] CazeW:
Sorry for the late reply. That is quite strange behaviour. Unfortunately it's very difficult to fix as well without a device on hand that has those issues
[Xposed Framework Modules] Sebastl:
Once had a similar Problem. Roaming Control didnt cause it, just "changed" the symptoms.

You might try changing the MVNO Type of your APN from "/" to "IMSI" and save it. No promises but an easy try ;)
[Xposed Framework Modules] flyingfishfinger:
I'm not currently travelling, but I tried it for fun at home and the result was that that "fast.t-mobile" APN completely disappeared from the list.

LTE is still successfully acquired, but I don't see that APN choice anymore until I "Reset to defaults".

Is that expected behaviour and what does that mean?
[Xposed Framework Modules] Sebastl:
Found my post and some more grey cells popped up ;)

After that update additionally i had the same problem in the neighbourcountry. National Roaming (with roaming enabled) was working nicely, but as soon as i crossed the border and the telco changed the data connection was gone. If i changed to IMSI and gave him the MNCMCC of either itsself or the other sim card it was somehow working.

But as far as i can remember definitely no disappearing.
[Xposed Framework Modules] eda100:
it is possible to adapt this module to magisk?
[Xposed Framework Modules] CazeW:
Unfortunately no, as the app requires Xposed to be able to hook in to system processes.
[Xposed Framework Modules] flyingfishfinger:
Alrighty I'm in China again.

This time I can't get any sort of data connection, with or without this app. The steps that worked last time (see my post a page or so back) don't work this time, but I don't think I've made any significant changes other than install a new build with the January security updates.

Do you have any suggestions of what I might try out to force the device to acquire a data connection, given that your app (sort of) worked last time?

R
[Xposed Framework Modules] CazeW:
Did you try what Sebastl suggested a few posts back? If you could test with a different SIM, you could at least determine if the cause is the SIM or the phone, but other than that I'm unfortunately out of ideas as this has been a very strange issue from the beginning. A log/trace from the moment when the phone tries to get a data connection but fails would help diagnose the problem, but I'm unsure in which log that kind of information shows up.
[Xposed Framework Modules] flyingfishfinger:
Yeah I did try that, but when I switch my APN to "IMSI" and save, it, that entire APN entry disappears until I "Reset to defaults", and I still don't get a connection. Unless he means something else?

I also remember trying with my colleague's SIM during the last trip and it didn't work. The thing that DOES work is returning to the stock, Motorola Android 4.4.4 OS and then everything is fine with my own SIM in the same phone. That points to a Lineage issue I guess, but I don't know what else to look at.

Since I don't have any of these issues at home, being here for work is a good opportunity for debugging this...

R
[Xposed Framework Modules] CazeW:
Do you have the latest baseband/radio installed on the phone? If you are on an old version, that could explain the problem.
[Xposed Framework Modules] flyingfishfinger:
That was my suspicion at first as well, except backwards. I thought that the latest version might have broken something that used to work, so I went back one revision. Two days ago I went back to stock (4.4.4-SU6-7.2, latest is 4.4.4-SU6-7.7) and that worked fine. I then installed LineageOS again without changing the radio, and the problem shows up again.

The only other thing (without digging for logs, but I'd need help finding what logs to look for) is that when I pop up the diagnostic menu with the *#*#4636*#*# code, it says "Connecting" for a while under the data connection, then after a while it always goes back to "Disconnected". So it's trying, but never seems to succeed. With or without your app, that is....

R
[Xposed Framework Modules] CazeW:
Apparently you can view the radio log with the MatLog app. Go to Settings, Log Buffer(s) and select Radio. Hopefully you'll find some information there why it's failing.
[Xposed Framework Modules] flyingfishfinger:
Ooh this is a cool app. However, I have absolutely no idea how to make sense of what it's spitting out, would you?
[Xposed Framework Modules] CazeW:
Unfortunately I'm not that familiar with that log. If there are no obvious errors, or you can't find the spot where it stops trying to connect, there's not much that I can do.
[Xposed Framework Modules] flyingfishfinger:
It does say something about succeeding in connecting to GSM, but there is some stuff about unsuccessful CDMA attemps:

"IccSmsInterfaceManager(1487): [IccSmsInterfaceManager] Failed to add cdma broadcast subscription for MID range 4100 to 4100 from client com.android.cellbroadcastreceiver"

It tries that for a bunch of ranges, so there are a lot of entries for it.

If you're interested, I've attached a dump of this while switching off airplane mode. Your app is off, roaming is enabled.

R
[Xposed Framework Modules] CazeW:
I'll take a look when I get time if I manage to spot anything interesting.
[Xposed Framework Modules] CazeW:
Finally got time to look at this. Unfortunately it doesn't really tell me why it's failing to connect data. It keeps repeating that you're connected to EDGE and that data and roaming is enabled.

I suspect, that the line:

MDMCTBK (227): updateDataState new_state=0, old_state=0

is the culprit and that it should be setting the new_state to 1. Why it isn't changing the data state I have no idea, but I could also be wrong about it being the cause.
[Xposed Framework Modules] CazeW:
Some good new for fans of this app running android Pie. I have tested the app on a OnePlus 6T and confirmed it working. I've updated the OP with information.
[Xposed Framework Modules] RootedLee:
[MENTION=1346563]CazeW[/MENTION] , two questions:

with your app in "factory" default settings, when I am in another country, does it still allow me to go into roaming manually/ on demand via the Network Carriers function in settings (Search for networks, then pick an abroad network)? Or do I have to enable some special setting for that to work because your app with default settings blocks roaming in general, even on demand?

when I change settings in your app's settings section, disable your module in Xposed installer, reboot, will everything be back to phone default, or does your app write some of its settings changes into the system which will remain active even with your module deactivated?

I read your entry posting but did not find these explained. Thanks for clarifying.
[Xposed Framework Modules] CazeW:
1. Yes, you can still roam manually as long as you have the system setting enabled to allow roaming. My app isn't able block roaming by itself, it all depends on the system setting.

2. If you disable the module and reboot, everything will be back to default. Even disabling all the settings in the app and toggling flight mode on/off will restore complete default behavior. The app doesn't alter any system settings.
[Xposed Framework Modules] RootedLee:
Awesome, that's all great, thanks CazeW.

Little well-meant and constructive hint: compile conversations like this in a dedicated F.A.Q. section to help both you (avoiding redundant answers) AND the users like many other devs already do here - best in a separate post below your entry post (-> example) so you can easily link to it, or otherwise at the bottom of your entry post.
[Xposed Framework Modules] ValeV008:
Hi CazeW,

I want to see connection type on foreign networks ("LTE" and not "R") and found this module. My roaming data is always ON and that's perfectly fine.

I don't know how to use the module though, because I tried it and couldn't get it to show connection type. Can you write a dummy guide on how to do what I want? Do I have to disable roaming in android settings and activate some option in your module?

I'm using Android 6.0.1.

Thanks in advance!
[Xposed Framework Modules] CazeW:
Do you have Xposed installed and have you activated the module? After you have done that, easiest way to show the network type is by using the country mode and adding the country of the foreign network.
[Xposed Framework Modules] ValeV008:
Yes I have it installed and activated.

I found "country mode" if I enable "Saved country roaming" and selecting "Roaming type". I don't know what "country mode" means though.

I also added country of the foreing network (Italy) under "Save countries".

Is this all I have to do? What about first 2 options "national roaming" and "forced roaming"? Do I enable any of them?
[Xposed Framework Modules] CazeW:
Country mode means the phone will treat all networks in that country as a home network.

National roaming is for virtual networks in your home country that for some reason show the phone as roaming, even though you are on your home network.

Forced roaming is to force the phone in to thinking that it's connected to a foreign network and show the R icon.

You don't need to enable either national roaming or forced roaming. Enabling saved country roaming, adding the country and toggling flight mode on/off is enough.
[Xposed Framework Modules] ValeV008:
I see, thanks a lot! I imagine "data roaming" must be enabled in android system settings? (even though modul asks me to disable it at startup)
[Xposed Framework Modules] CazeW:
Technically you shouldn't need to have data roaming enabled in the system settings, but with newer Android versions Google changed something so usually you have to leave it enabled for data to work.
[Xposed Framework Modules] Valiante:
Hmm trying to search this thread but no clear answers on whether this is functioning well on Android 10 / Android Q

EDIT: With all the new options for carriers to actually lock many options on the device itself I don't think that this module is actually working on Android 10 / Android Q. The "R" is gone but I can't access any of the other networks around me - a limitation that I know for a fact was put on by the carrier (preventing manually switching my network while roaming)
[Xposed Framework Modules] CazeW:
Thanks for testing. If the "R" is gone and data is working, then the module is working as intended. It was never supposed to lift/hack the restrictions of which networks you can connect to.
[Xposed Framework Modules] raulci:
Hi CazeW and other interested,

I own a Xiaomi Mi 9 with official Miui Global 11.0.6 (this is Android 10) with root. I'm from Barcelona using the Digi Virtual Operator working on Movistar.

I had the issue that after a reboot I had to manually switch on the roaming, every reboot and always... It was not a big deal, because I don't reboot a lot but... you know...

After searching a bit I've found this Xposed module and try it.

It's working really great! I don't need to manuall switch on anymore, the R symbol has gone and the 4G connection is done automatically after each reboot.

My config:

- I didn't need to enable the data roaming in the system settings (it's disabled).

- In Remote Control module:

* National romaing on SIM1

* Force roaming is not enabled

* Roaming type set to Country mode

* Saved country roaming

* And I saved the country where I'm

Reboot and enjoy! Thanks a lot CazeW! You're great!

I've made a donation to you :)

Best regards,

Raúl.
[Xposed Framework Modules] LimWilliam65:
If I enable force roaming on my home network, is it safe to use data and will I get roaming charges?
[Xposed Framework Modules] CazeW:
You won't get roaming charges on your home network. If you enable force roaming for your home network, the phone will think that it's roaming and disable data unless you have allowed using data while roaming in your system settings.
[Xposed Framework Modules] nidjo83:
hello, I just want to be sure... in my country I'm allowed to use another carrier's network when there is no signal from my native carrier. the thing is, another carrier's network is so much better and faster and I would like to stay connected, but it automatically switches me back to my native carrier as soon as phone finds it's signal.

would I be able to force my phone to stay connected to another carrier's network? (I'm on android Q if that matters, I can install some 9.0 custom rom if necessary, I'm also aware I need to be rooted). thanks in advance!
[Xposed Framework Modules] CazeW:
Unfortunately you can't force your phone to stay connected to a network with this app. Have you tried just manually selecting to use that network in your phone settings?
[Xposed Framework Modules] nidjo83:
of course I did... it's not working. is there any other way, if not with this app?
[Xposed Framework Modules] CazeW:
You could try to fool your phone with this app by enabling network roaming for the other carriers network and enabling force roaming for your home network, but I strongly doubt that works.

I don't know of any other way, sorry.
[Xposed Framework Modules] nidjo83:
yes, that's what i was planning to do...

thanks for your help, I'll try that.
[Xposed Framework Modules] Valiante:
Anyone able to get this working on Android 11?
[Xposed Framework Modules] CazeW:
I've released the source code for the app if someone wants to continue developing it. Link in OP.
[Xposed Framework Modules] dkadds2:
@CazeW first of all - many thanks for the App! Amazing work and idea!

I've used to have it working nice on Android 8, enabled National Roaming, Saved country roaming, Roamaing type: Country mode, Managed saved countries - current one added. Sim 1 is from other country, Sim 2 is from local.

It all used to work fine on that Android 8 (Samsung S9) and moving very same sim cards to Jelly 2 (Android 10) with very same settings within Roaming Control - doesn't do the trick.

Installation was via EdXposed (added as Magisk), then module downloaded, enabled, reboot and started to set it. Upon first launch, have permission for "make calls" has been requested and approved.

Unfortunately "R" stays form Sim 1, unless data in roaming is enabled in system settings which is for what is the module to avoid.

Not sure how to troubleshoot it further or to get some data allowing analysis.

Would be great if you could recommend some steps, especially as some people above reported that it worked for them on Android 10.

Thanks in advance!
[Xposed Framework Modules] CazeW:
Unfortunately I never found the reason why on some phones and Android versions enabling roaming in system settings was necessary for the module to work. So the only way to get it working is to turn on roaming in the system settings despite what the apps says. That at least removes the R and should also remove the roaming restrictions some apps have (like Whatsapp backup upload).
[Xposed Framework Modules] dkadds2:
Unfortunately it shows the "R" too. Seems like it completely doesn't work.

Let me know pls. if any debug/troubleshooting details would help to resolve it.

Thanks!
[Xposed Framework Modules] CazeW:
You could look in the log in Xposed if it shows any obvious errors, but other than that it's very hard for me to debug without a test device of my own.
[Xposed Framework Modules] Valiante:
Anyone know if something like this exists for IPhone? Jailbreak tweak maybe?
[Xposed Framework Modules] Fif_:
I'm posting to mention the module works well with LSPosed on Android 11, including dual SIM support. You just have to include com.android.providers.telephony in the module scope (that's the only package required).

OnePlus 8T KB05AA (International/US)

OOS 11.0.11.11 (Android 11)

Magisk 23.0

Riru 26.1.3.r513

LSPosed 1.6.3

Roaming Control 1.53
[Xposed Framework Modules] Valiante:
Doesn't seem to work on Android 12.

Selected as specified, nada.
[Xposed Framework Modules] dkadds2:
@Fif_ - many thanks for hint.

Key question is how did you figure out which module to put in module scope? I've added System Framework with hopes it would work but it didn't.

With just com.android.providers.telephony and after reboot it didn't work for me.

- mobile: Unihertz Jelly2

- Android 11 (Unihertz_Jelly2_EEA_20210727 build, kernel 4.14.

186), system ABI arm64-v8a

- Magisk 24.1

- Riru 25.4.4.r426,

- Riru LSPosed v1.7.1

- Roaming Control 1.53

@CazeW - I slept on this issue for a year as with close to no travel possible.... it wasn't a pain with Roaming. In the meantime moved to Android11, as had to replace HW unit, again same Jelly2. I've moved also from XPosed to LSPosed, but no juice - same problem.

Still having same problem, R visible regardless of Mobile Data enabled or not in settings.

Logs are here - but I couldn't find there anything interesting:

https://pastebin.com/raw/UZL8JfBB

Thank you for help.