Change network selection mode programmatically
Asked Answered
L

2

6

I'm trying (wondering if it's even possible) to write an app, that would change the network selection mode automatically, based on some criteria. E.g. change the network operator from Vodafone to T-Mobile (assuming that the SIM card registration will succeed, but I'm not worried about it atm)

Unfortunately, I can't seem to find any way in the API to do it. Anyone has any idea? I assume, since it's not in the public APIs, there might still be a way to do it, if the phone is rooted. Is that true? If so, where should I look?

Thanks in advance

Laevo answered 15/5, 2011 at 18:0 Comment(0)
V
4

Sorry but you can't.

You can have a look into the TelephonyManager .

You can know the current operator: getSimOperator(Name) / getNetworkOperator(Name).

You can also check this thread saying "I learn that for the sake of security there aren't any public APIs to manage this so the only option is to send the user to the system PreferenceScreen within my app."

Vanadous answered 13/12, 2011 at 11:27 Comment(1)
I thought it would be something like this, but couldn't find anything that would prove or disprove that. Thanks )Laevo
V
3

How about using android.telephony.CarrierConfigManager? I read about it on https://developer.android.com/reference/android/telephony/CarrierConfigManager.html and it seems to allow you to change alot of carrier-specific parameters, although the app must be signed with the certificate that has a matching signature to one on the SIM, so it can usually only be implemented by the carrier issuing the SIM. See also https://source.android.com/devices/tech/config/carrier.

I havent found an actual method to actively switch carrier, but if anywhere, I'd expect it to be there.

Veilleux answered 3/4, 2019 at 12:57 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.