MultiSIM switch data

Post your questions and help other users.

Moderator: Martin

Post Reply
User avatar
g_BonE
Posts: 4
Joined: 17 Feb 2017 07:36

MultiSIM switch data

Post by g_BonE » 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!

User avatar
Martin
Posts: 4468
Joined: 09 Nov 2012 14:23

Re: MultiSIM switch data

Post by Martin » 24 Feb 2017 18:03

Hi,

Thanks, glad you like Automagic!

The intent android.intent.action.SUB_DEFAULT_CHANGED might be protected so you could try to send it with action Execute Root Command. Maybe the intent also requires to pass some additional extras, not sure since I did not find any documentation about this intent and I did not have the time to check the Android source.

Regards,
Martin

User avatar
g_BonE
Posts: 4
Joined: 17 Feb 2017 07:36

Re: MultiSIM switch data

Post by g_BonE » 25 Feb 2017 16:57

i have it configured as a "execute root command" - did figure it would not work any other way. Still, no luck with it ;( Might end up researching a little more or just live with the actual settings and the shown setting in the settings UI not being in sync.

Post Reply