Dual Sim Support
Moderator: Martin
Re: Dual Sim Support
Any news for this, @martin? I would really love to automatically switch the sim used for networking based on connectivity
Unofficial AutoMagic Telegram Group: https://t.me/automagicforandroid
Check out my other flows here: https://github.com/Bluscream/AutoMagicFlows or here.
Check out my other flows here: https://github.com/Bluscream/AutoMagicFlows or here.
Re: Dual Sim Support
Unfortunately no news. The required methods seem to be protected by permissions that can not be requested by apps like Automagic.
Regards,
Martin
Regards,
Martin
Re: Dual Sim Support
What about root?
Unofficial AutoMagic Telegram Group: https://t.me/automagicforandroid
Check out my other flows here: https://github.com/Bluscream/AutoMagicFlows or here.
Check out my other flows here: https://github.com/Bluscream/AutoMagicFlows or here.
Re: Dual Sim Support
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
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
Re: Dual Sim Support
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
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
Re: Dual Sim Support
Yes it works also for me on LineageOS 16 Android 9
x = 176
x = 176
Re: Dual Sim Support
In pocophone with Android 10 x=178