chaoscreater
Active member
Hi all,
I'm using a Xiaomi Redmi Note 9T running Android 11, non-rooted.
Is it possible to use adb shell to switch data sim? I know you can use this to turn on/off data:
adb svc data enable/disable
If I manually change the data from SIM1 to SIM2, then I use this:
adb shell settings get global multi_sim_data_call
And the results I get is either:
multi_sim_data_call = 3
multi_sim_data_call = 5
However, if I manually set the value, it doesn't change anything. I've tried to use a broadcast intent like this:
adb shell am broadcast -a android.telephony.action.CARRIER_CONFIG_CHANGED
but it's denied, apparently requires root permission.
I also tried to use "pkill phone" to restart the phone process, but then I get this:
pkill: TERM->2000: Operation not permitted
I've also tried switch_dual_card_slots, but that setting doesn't exist and doesn't do anything on my phone.
I then tried to look up methods such as using this:
service call phone SERVICE i32 y i32 z
but I can't figure out what the SERVICE # is for changing SIM cards......
I'm using a Xiaomi Redmi Note 9T running Android 11, non-rooted.
Is it possible to use adb shell to switch data sim? I know you can use this to turn on/off data:
adb svc data enable/disable
If I manually change the data from SIM1 to SIM2, then I use this:
adb shell settings get global multi_sim_data_call
And the results I get is either:
multi_sim_data_call = 3
multi_sim_data_call = 5
However, if I manually set the value, it doesn't change anything. I've tried to use a broadcast intent like this:
adb shell am broadcast -a android.telephony.action.CARRIER_CONFIG_CHANGED
but it's denied, apparently requires root permission.
I also tried to use "pkill phone" to restart the phone process, but then I get this:
pkill: TERM->2000: Operation not permitted
I've also tried switch_dual_card_slots, but that setting doesn't exist and doesn't do anything on my phone.
I then tried to look up methods such as using this:
service call phone SERVICE i32 y i32 z
but I can't figure out what the SERVICE # is for changing SIM cards......