Dual Sim Support

Post your feature requets for new triggers, conditions, actions and other improvements.

Moderator: Martin

User avatar
Bluscre
Posts: 134
Joined: 31 Aug 2017 13:58
Location: Germany
Contact:

Re: Dual Sim Support

Post by Bluscre » 14 Jul 2019 14:46

Any news for this, @martin? I would really love to automatically switch the sim used for networking based on connectivity
Unofficial AutoMagic Telegram Group: http://t.me/automagic4android
Check out my other flows here: https://github.com/Bluscream/AutoMagicFlows or here.
Sent from my Lenovo TAB 2 A10-70L running Android 6.0.

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

Re: Dual Sim Support

Post by Martin » 16 Jul 2019 19:58

Unfortunately no news. The required methods seem to be protected by permissions that can not be requested by apps like Automagic.

Regards,
Martin

User avatar
Bluscre
Posts: 134
Joined: 31 Aug 2017 13:58
Location: Germany
Contact:

Re: Dual Sim Support

Post by Bluscre » 13 Aug 2019 17:59

Martin wrote:
16 Jul 2019 19:58
Unfortunately no news. The required methods seem to be protected by permissions that can not be requested by apps like Automagic.

Regards,
Martin
What about root?
Unofficial AutoMagic Telegram Group: http://t.me/automagic4android
Check out my other flows here: https://github.com/Bluscream/AutoMagicFlows or here.
Sent from my Lenovo TAB 2 A10-70L running Android 6.0.

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

Re: Dual Sim Support

Post by Martin » 15 Aug 2019 19:05

Sure, root would be an option but it's usually a lot of work to get such undocumented/unofficial features working on most devices and maintaining the code is also taking a lot of time so it's not an option at the moment.
Only option for the moment is to use a plugin (if it still works). I think there was at least one plugin that worked on some devices. The other option is to automate the UI which admittedly only works in some cases and is not very reliable.

Regards,
Martin

Pastis
Posts: 1
Joined: 23 Sep 2019 17:43

Re: Dual Sim Support

Post by Pastis » 24 Sep 2019 16:41

I use the following instruction to activate/desactivate sim
Action type execute root command
service call phone x x32 y i32 z

Where:
x = index number you fetched previously,
y = your subscription ID (generally, SIM1 = 0, SIM2 = 1)
z = whether on (1) or off (0)

For X

In old android (until 8)
Download jadx
ADB pull the devices framework.jar (adb pull /system/framework/framework.jar)
Open the .jar file with 7-Zip and extract the *.dex files.
Open each .dex file with jadx-gui until you find the one with the following tree: com.android.internal.telephony.ITelephony
Search for the item TRANSACTION_setSimPowerStateForSlot. Note the = x after it; this is the index number.

In new and old android
http://ktnr74.blogspot.com/2014/09/call ... l.html?m=1

In pocophone with android 9 x= 176

Post Reply