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
Related
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
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
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
So in the past either through Tasker shell command or just using a terminal I was able to disable or enable WiFi, mobile data, and bt by using svc (WiFi or data or bt) enable\disable to turn radios on or off. Specifically data because I can't stand the annoying popup asking me if I want data turned off. Not sure when it happened but I'm on June patch and commands no longer work. Can someone who's rooted try
su;
setenforce permissive;
svc data disable;
setenforce enforcing
And tell me if it works for you? Thank you
Mods you can delete, I solved my issue
This way is very similar with how it was done on OOS10, but root is required.
Steps:
1) Open the dialer: type *#800# > Function Switch > enable VoLTE + VoWifi switch
2) Connect phone to PC, make sure it works with adb and run "adb shell"
3) Type "su" - allow superuser access on phone
4) Type "setprop sys.usb.config diag,diag_mdm,qdss,qdss_mdm,serial_cdev,dpl,rmnet,adb". At this step, phone will disconnect and reconnect to your PC.
5) Open PDC app (it will be visible now)
6) Select Telefonica_UK_Commercial or UK-VoLTE-Vodafone or w/e worked for you with OOS10
7) Right click and SetSelectedConfig for both Sub0 and Sub1
8) Select the same profile with Step 6 and press "Activate"
VoLTE/VoWiFi should work now.
You can download PDC here: https://androidfilehost.com/?fid=11410963190603912872
Enjoy
Thanks for sharing
I installed 11.0.1.1 today. Since then no VoLTE icon is shown in the status bar, although VoLTE is switched on and worked before with 11.0.0.2. Call quality is poor, so it seems that VoLTE might be broken.
When I dial *#800# I am directed to the OnePlus LogKit. Nothing to switch VoLTE on or off there.
Any hints?