Question Disabling/Enabling SIM card in Tasker? - Xiaomi Poco F4 (Munch) / Redmi K40S

Anyone been able to automatically disable/enable SIM cards in Tasker on the Poco F4 on Android 12? Need the magic numbers that seem to differ from phone to phone (and the command may differ from Android version, I think?), as discussed in this post and thread for another phone brand (OnePlus):
[GUIDE] Automatic dual sim switching on latest official OTA
TL;DR: You need root. Shell command with root privileges to toggle sim programatically: service call phone 162 i32 x i32 y Where x is 0 for SIM1 and 1 for SIM2, and y is 0 to disable and 1 to enable. For example: service call phone 162 i32 1 i32...
forum.xda-developers.com
Happy to use another method if can't be done with Tasker.

Related

[Q] Dual Sim and Sharewifi not work( build 13 AOSB 1.3.7)?

At first the for this great room
I install( build 13 AOSB 1.3.7) from this title http://forum.xda-developers.com/showthread.php?t=2603219
And I can't find option one Sim card only work
And I can't find option Sharewifi
And option move to SD card not showing
Is the room don't have these option
BTW in the title was shown that the room (DUAL)
Whats should I do
waled moner said:
At first the for this great room
I install( build 13 AOSB 1.3.7) from this title http://forum.xda-developers.com/showthread.php?t=2603219
And I can't find option one Sim card only work
And I can't find option Sharewifi
And option move to SD card not showing
Is the room don't have these option
BTW in the title was shown that the room (DUAL)
Whats should I do
Click to expand...
Click to collapse
Simply download app from this thread http://forum.xda-developers.com/android/apps-games/app-multisim-toggle-t2830647
or
Follow this................
How do I enable Dual SIM?
To enable or disable, run the following command from adb or terminal emulator and then reboot. SIM Settings can then be found in Settings -> Multi Sim Settings.
Enable:
Code:
su
setprop persist.radio.multisim.config dsds
Disable:
Code:
su
setprop persist.radio.multisim.config none
Note that Dual SIM mode currently has the following limitations:
Both SIMs are always enabled (no way to disable one SIM)
"Receive incoming call while data is enabled" is always enabled
The QuickSettings tile will display the status for the currently selected SIM for data
There is no arrow activity indicator in the status bar.
Changing 2G/3G network mode using the QuickSettings toggle is not supported, only do it from Settings.
Changing 2G/3G mode in Settings may show too many options if the language used is not English. If more than 3 options is shown, only use the 3 top options (which will be WCDMA only/GSM only/WCDMA preferred regardless of the actual label shown).
3G may not work properly if Dual SIM mode is enabled with only 1 SIM inserted
Cannot set different ringtone for each SIM
Baseband version not displayed in Settings

How to turnoff sim2 in dual sim?

Hi all,
I am using micromax canvas A1 which was updated to lollipop. Its a dual sim phone. I want to turn off the sim2 without receiving any calls/messages(messages is ok to receive) for a period of time(daily 3 hrs for eg). If i try to keep my phone in areoplane mode, my sim1 also not receiving any calls. Is there any way to receive calls only to sim2 for a particular period of time? How to turnoff it for a period of time.?
Thanks in advance
Lakshman
lucky418 said:
I want to turn off the sim2 without receiving any calls/messages(messages is ok to receive) for a period of time(daily 3 hrs for eg). If i try to keep my phone in areoplane mode, my sim1 also not receiving any calls. Is there any way to receive calls only to sim2 for a particular period of time? How to turnoff it for a period of time.?
Click to expand...
Click to collapse
1. Root your phone
2. Create 2 scripts and save it somewhere:
Enable-Multi-SIM.sh :
Code:
su
setprop persist.radio.multisim.config dsds
Disable-Multi-SIM.sh :
Code:
su
setprop persist.radio.multisim.config none
3. Install Tasker app.
4. To disable SIM-2 at a certain time, add a task to execute Disable-Multi-SIM.sh at a certain time..
5. To enable SIM-2 at a certain time, add a task to execute Enable-Multi-SIM.sh at the required time..
Note:
You won't get messages too from SIM-2 when it's disabled.
I am on KitKat cm-11-20150607-NIGHTLY-sprout.zip and I am about to try this.
In my case, I want to disable SIM1 for certain time how do i do that?
One obvious approach would be swap the SIM to be disabled in the 2nd slot. But it would be nice if there is something in the script.
GokulNC said:
1. Root your phone
2. Create 2 scripts and save it somewhere:
Enable-Multi-SIM.sh :
Code:
su
setprop persist.radio.multisim.config dsds
Disable-Multi-SIM.sh :
Code:
su
setprop persist.radio.multisim.config none
3. Install Tasker app.
4. To disable SIM-2 at a certain time, add a task to execute Disable-Multi-SIM.sh at a certain time..
5. To enable SIM-2 at a certain time, add a task to execute Enable-Multi-SIM.sh at the required time..
Note:
You won't get messages too from SIM-2 when it's disabled.
Click to expand...
Click to collapse
I swapped the SIM. Put the one I wanted to disable in SIM2 slot. The script works fine. Just needs a restart.
ravinshende said:
I am on KitKat cm-11-20150607-NIGHTLY-sprout.zip and I am about to try this.
In my case, I want to disable SIM1 for certain time how do i do that?
One obvious approach would be swap the SIM to be disabled in the 2nd slot. But it would be nice if there is something in the script.
Click to expand...
Click to collapse
According to those commands, they just disable and enable dual-sim feature.
To use those same commands, obviously, you have to make sure that the sim that has to work continuously should be SIM 1 and the other one should be SIM 2.
Apart from this method, there might be some other methods.
For example, you may also use Tasker to block calls from certain SIM during certain time period..
Or there might be some call blocker app that can do this. Searching a little might help

SIM slot lock

Hi,
I need help, I like yo lock the SIM slot number 2 with lineageos 15. I think that rild service is the solution.
I changed the service configuration in the system file init.qcom.rc but when the phone starts if only detect one IMEI the data connection of sim 1 dont start.
Can anyone help me?

after flashing mi a2 lite mobile data not working in one sim

hello,
some days ago i flash my mobile with fastboot then i realise that sim card slot changed.
sim slot no. 1 is now 2 and sim slot 2 is now 1
after automatic update on android 10 latest version but sim 1 data connection not working..when i turn it on no cellular symbol show.
i tried correct APN setting, reset network setting, factory reset but still not working data connection in only sim 1.
sim 2 work well.
after that i decide to downgrade for android 9 and continue vai fastboot..then finally its work ..sim 1 and 2 both date connection work but sim slot problem not fix..
my question is how to solv sim slot exchange problem and android 10 one sim data not working problem.
thanks.
kaemon25 said:
sim slot no. 1 is now 2 and sim slot 2 is now 1
but sim 1 data connection not working..when i turn it on no cellular symbol show.
Click to expand...
Click to collapse
Swapped sim slots sounds like what happens when downgrading to Oreo. The fix for that is to use a newer (pie) modem partition.
https://forum.xda-developers.com/mi-a2-lite/help/sim-card-issue-downgrading-pie-9-0-t3874350
I see a more recent thread complaining that sim 2 does not work. I only use sim 1 and it works for me.
Did you try turning the phone off (not just sleep or reboot)? My data connection almost always dies when I install an OTA (probably TWRP). Turning the phone off and sometimes leaving it in airplane mode for an hour fixes it.
In my case, the network is rejecting data connections (call and sms works). This was not in the regular logcat...
adb logcat -b radio

How to enable Volte on Stock ROM - Help?

I spend days but cannot get volte provisioned on T-Mobile USA.
Things I've done so far
1. Volte Carrier check id already off via *#*#86583#*#*
2. Have temp root access but unable keep edited build.prop, reboot cause a restore of original build.prop, reference link here
3. Try QPST method from this thread and many similar ones, but PDC cannot recognize our phone even QPST see it fine and connected on a com port. Have to use su command "setprop sys.usb.config diag,adb " to make the connection.
Everyone have any ideas?
Your provider may need to enable it from their end as well.
At least that's what mine had to do before I could get VoLTE working.
IkkeZelf1000 said:
Your provider may need to enable it from their end as well.
At least that's what mine had to do before I could get VoLTE working.
Click to expand...
Click to collapse
That's not an option, T-Mobile and all US carriers will not do that, tried already.
It worked for my Familys Phone A2 Lite with Android 9 (don't trust Android 10 update many reports of bugs)
with *#*#86583#*#* then you see HD Symbol in right corner. Your Provider must support VoLTE also some Providers in my Country they only enabled it for certain mobile plan.

Categories

Resources