Page 1 of 1

MultiSIM switch data

Posted: 24 Feb 2017 17:02
by g_BonE
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!

Re: MultiSIM switch data

Posted: 24 Feb 2017 18:03
by Martin
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

Re: MultiSIM switch data

Posted: 25 Feb 2017 16:57
by g_BonE
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.