Data Sim switch not working in terminal or shell - OnePlus 3 Questions & Answers

Hi,
I'm using a sim in slot 2 just for data when I'm abroad (chatsim). I tried making a tasker profile which would switch data to sim2 when sim1 is roaming.
I've tried using a root shell command "settings put global multi_sim_data_call 2" and it does switch the data to sim 2 in the settings but actually nothing happens further.
The data is still on sim 1.
Does anyone know how to activate it? Maybe a command to restart the RIL?
Thanks for any help

Have the same problem ?

Any news on that?

Ketelbinie971 said:
Hi,
I'm using a sim in slot 2 just for data when I'm abroad (chatsim). I tried making a tasker profile which would switch data to sim2 when sim1 is roaming.
I've tried using a root shell command "settings put global multi_sim_data_call 2" and it does switch the data to sim 2 in the settings but actually nothing happens further.
The data is still on sim 1.
Does anyone know how to activate it? Maybe a command to restart the RIL?
Thanks for any help
Click to expand...
Click to collapse
Hi, this might be late but try changing SElinux from forced to permissive. It should solve the problem

Related

[Q] APN Problem in Cosmic V4.6

I did a clean install of cosmic v4.6
Installed Gapps.
APN is not saved by default.
I have to change preferred network to GSM/WDCMA Auto.
I get an error that Unfortunately, the process com.android.phone has stopped.
But the APN now gets installed of both the sims.
In dual sim settings the 2nd sim is activated by default for calls, data & messaging.
Now when I restart my phone due to any reason I have to go through the entire process stated above to get APN.
Also when I get a 2nd call in call waiting the 1st call goes to HOLD automatically.
Kindly HELP
antiquitygold said:
I did a clean install of cosmic v4.6
Installed Gapps.
APN is not saved by default.
I have to change preferred network to GSM/WDCMA Auto.
I get an error that Unfortunately, the process com.android.phone has stopped.
But the APN now gets installed of both the sims.
In dual sim settings the 2nd sim is activated by default for calls, data & messaging.
Now when I restart my phone due to any reason I have to go through the entire process stated above to get APN.
Also when I get a 2nd call in call waiting the 1st call goes to HOLD automatically.
Kindly HELP
Click to expand...
Click to collapse
a simple fix fr this prob is ...use single sim
open terminal
type su and grant root access
then type setprop persist.radio.multisim.config none
then reboot .. u can use mobile data now ...... k2wl is working towards fixing this issue

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?

Switch from sim1 to sim2 using command

Hi,
im on LineageOS on my oneplus3 and i disable my mobile data using Tasker with a shell command 'svc data disable'. Now i have a second sim and i want to switch from sim1 to sim2 when i'm at work. What is the command to do this? I want find anything. Using shell command is the only way that worked for me.
Piere

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

Categories

Resources