MultiSIM switch data
Posted: 24 Feb 2017 17:02
Hi, first post here so thanks for this awesome tool!
Now for the little ongoing project im trying to solve: I have a Xiaomi Mi Max phone running the xiaomi.eu rom. This is a phone with 2 SIM slots which i have populated with my work and private SIM cards. When im at work i want to switch data to my work SIM and when im home i want to switch to my private SIM. So far i have been running a "input slide" and "input tap" root shell flow which opens the SIM settings, scrolls down ad selects the SIM i want. This is pretty awkward so i started exploring other ways to do that: I found that by using "Set Systemsetting" - Global - multi_sim_data_call tro "1" or "2" does just what i want but the change is not reflected in the regular settings UI. I.e. the SIM card switches but the selected SIM name still stays the same in the settings UI. Scouring the nets i found a command that supposedly rectifies that "am broadcast -a 'android.intent.action.SUB_DEFAULT_CHANGED'" but for some reason this does not seem to work either. As i am out of ideas i came here to ask You guys - please enlighten me!
Now for the little ongoing project im trying to solve: I have a Xiaomi Mi Max phone running the xiaomi.eu rom. This is a phone with 2 SIM slots which i have populated with my work and private SIM cards. When im at work i want to switch data to my work SIM and when im home i want to switch to my private SIM. So far i have been running a "input slide" and "input tap" root shell flow which opens the SIM settings, scrolls down ad selects the SIM i want. This is pretty awkward so i started exploring other ways to do that: I found that by using "Set Systemsetting" - Global - multi_sim_data_call tro "1" or "2" does just what i want but the change is not reflected in the regular settings UI. I.e. the SIM card switches but the selected SIM name still stays the same in the settings UI. Scouring the nets i found a command that supposedly rectifies that "am broadcast -a 'android.intent.action.SUB_DEFAULT_CHANGED'" but for some reason this does not seem to work either. As i am out of ideas i came here to ask You guys - please enlighten me!