AutoTools Dual SIM - Enable/Disable SIM card

Discussion in 'AutoApps' started by pfaustinopt, Dec 5, 2016.

  1. pfaustinopt

    pfaustinopt New Member

    Joined:
    Dec 5, 2016
    Messages:
    2
    Likes Received:
    0
    Hello,
    I've a dual SIM phone and I only use the 2nd SIM card for mobile data purposes.
    What I'm trying to achieve is a way to disable my 2nd SIM card when I'm not using mobile data and vice-versa (this way I can reduce battery drain). I came to a temporary solution by using Tasker + AutoInput, which basically simules all the clicks that I've to do manually when opening the Mobile Data Settings.
    Do you guys have any ideas on how to enable/disable the SIM card using AutoTools?
     
  2. joaomgcd

    joaomgcd Administrator Staff Member

    Joined:
    Feb 3, 2015
    Messages:
    9,479
    Likes Received:
    806
  3. pfaustinopt

    pfaustinopt New Member

    Joined:
    Dec 5, 2016
    Messages:
    2
    Likes Received:
    0
    I've already tried it.
    The only setting I found was "multi_sim_data_call", which allows me to set my 2nd SIM card as the default for mobile data. However, I couldn't find any setting related to the state of a SIM card.
     
  4. joaomgcd

    joaomgcd Administrator Staff Member

    Joined:
    Feb 3, 2015
    Messages:
    9,479
    Likes Received:
    806
    Sorry, wish I could help!
     
  5. VeRychard

    VeRychard New Member

    Joined:
    Oct 13, 2017
    Messages:
    2
    Likes Received:
    0
    Hi!
    I have an HTC U11 Dual SIM, and I was checking some flags I've found that 'slot2_is_checked' is changing from 1 to 0 when I'm turning off my second SIM.
    I tried to reproduce the result with the AutoTools secure settings, but I got the error respond: 1185377229 (Cant change setting on this device: You cannot keep your settings in the secure settings)

    Any idea on that? I gave ADB permissions as well.
     
  6. joaomgcd

    joaomgcd Administrator Staff Member

    Joined:
    Feb 3, 2015
    Messages:
    9,479
    Likes Received:
    806
    Can you maybe choose a different data type instead of string?
     
  7. VeRychard

    VeRychard New Member

    Joined:
    Oct 13, 2017
    Messages:
    2
    Likes Received:
    0
    I tried with int first, then toggle with value "2", and string as well. No success :/

    Maybe another way, to turn off SIM 2 totally?
     
  8. joaomgcd

    joaomgcd Administrator Staff Member

    Joined:
    Feb 3, 2015
    Messages:
    9,479
    Likes Received:
    806
    Unfortunately not that I know of, sorry!
     
  9. thieubinh

    thieubinh New Member

    Joined:
    Dec 10, 2017
    Messages:
    1
    Likes Received:
    0
    In my rooted Samsung J7 Prime (android 6.0), there are 2 var in sercure setting "phone1_on" and "phone2_on" , i can turn off sim 1 when set "phone1_on" =0"....
     

Share This Page