AutoTools Secure Settings Mobile data enable timeout

Discussion in 'AutoApps' started by threeFatCat, Sep 12, 2018.

  1. threeFatCat

    threeFatCat New Member

    Joined:
    Sep 12, 2018
    Messages:
    3
    Likes Received:
    0
    I tried using the AutoTools and granted permission using adb, during task creation it works well the Quick panel enable as expected but no data (but that's okay), I have this trick that I discovered when I was using Macrodroid where, Enable data + Wifi Tether On + Wifi Tether Off will enable Mobile data without root.

    After few retries and testing eventually it will just freeze in Enable data until it will just timeout. I enable log but can't find any error message. I'm using Tasker beta. Is it a bug? I don't have that issue with Macrodroid but I have premium with Tasker so i want to utilize it.
     
  2. joaomgcd

    joaomgcd Administrator Staff Member

    Joined:
    Feb 3, 2015
    Messages:
    9,479
    Likes Received:
    806
    Can you please try using the "Custom Setting" action in Tasker to change the mobile data status instead? Does that work? :)
     
  3. threeFatCat

    threeFatCat New Member

    Joined:
    Sep 12, 2018
    Messages:
    3
    Likes Received:
    0
    It does the same thing, I tried the help notification and the manual too, I tried both Int type and String type for 1 value. It works for a while during test, I think 3-6 runs then later it just stops. I once got this error instead of the timeout, I dont know if this means anything.

    12.27.50/TD getStatic: Active load: true
    12.27.50/Plugin PLUG setMetaData: start: type: Action code: 1646792910 pkg: com.joaomgcd.autotools clsOrLabel: com.joaomgcd.autotools.activity.ActivityConfigsettings
    12.27.50/Plugin PLUG setMetaData: end: type: Action code: 1646792910 pkg: com.joaomgcd.autotools cls: com.joaomgcd.autotools.activity.ActivityConfigsettings label: AutoTools Secure Settings
    12.27.50/Plugin PLUG setMetaData: start: type: Action code: 547879170 pkg: com.joaomgcd.autotools clsOrLabel: com.joaomgcd.autotools.activity.ActivityConfigConnectivity
    12.27.50/Plugin PLUG setMetaData: end: type: Action code: 547879170 pkg: com.joaomgcd.autotools cls: com.joaomgcd.autotools.activity.ActivityConfigConnectivity label: AutoTools Connectivity
    12.27.50/E no wait key, next action
    12.27.50/Plugin PLUG setMetaData: start: type: Action code: 1646792910 pkg: com.joaomgcd.autotools clsOrLabel: com.joaomgcd.autotools.activity.ActivityConfigsettings
    12.27.50/Plugin PLUG setMetaData: end: type: Action code: 1646792910 pkg: com.joaomgcd.autotools cls: com.joaomgcd.autotools.activity.ActivityConfigsettings label: AutoTools Secure Settings
    12.27.50/Plugin PLUG setMetaData: start: type: Action code: 547879170 pkg: com.joaomgcd.autotools clsOrLabel: com.joaomgcd.autotools.activity.ActivityConfigConnectivity
    12.27.50/Plugin PLUG setMetaData: end: type: Action code: 547879170 pkg: com.joaomgcd.autotools cls: com.joaomgcd.autotools.activity.ActivityConfigConnectivity label: AutoTools Connectivity
    12.27.50/E handleNewTask: fromUI: false
    12.27.50/E onStart: ignoring new abort-type task Activate Mobile Data, already in queue
    12.27.50/E
    A1: Variable Set [ Name:%atinternet To:false Recurse Variables: Do Maths: Append: ]
    A2: Variable Set [ Name:%IsData To:false Recurse Variables: Do Maths: Append: ]
    A3: Variable Set [ Name:%retry To:0 Recurse Variables: Do Maths: Append: ]
    A4: AutoTools Secure Settings [ Configuration:Setting Type: Global
    Name: mobile_data
    Input Type: Int
    Value: 1
    Read Setting: true
    Read Settings: mobile_data Timeout (Seconds): Continue Task After Error:On ]
    A5: If [ %mobile_data eq 1 ]
    A6: WiFi Tether [ Set:On Keep Wi-Fi when turning on:Off ]
    A7: WiFi Tether [ Set:Off Keep Wi-Fi when turning on:Off ]
    A8: Wait [ MS:0 Seconds:10 Minutes:0 Hours:0 Days:0 ]
    <Ping Google>
    A9: Anchor
    A10: Stop [ With Error: Task: ] If [ %atinternet eq true ]
    A11: AutoTools Connectivity [ Configuration:Check Internet: true Timeout (Seconds): Continue Task After Error:On ]
    A12: Variable Add [ Name:%retry Value:1 Wrap Around: ]
    A13: Goto [ Type:Action Number Number:8 Label: ] If [ %atinternet eq false & %retry < 4 ]
    A14: Variable Set [ Name:%IsData To:%atinternet Recurse Variables: Do Maths: Append: ]
    A15: Else
    A16: Notify [ Title:Error Text: Icon: Number: Permanent: Priority: ]
    A17: End If

    12.27.50/E child rejected
    12.27.50/E Error: 1
    12.27.50/MacroEdit action finished exeID 4 action no 5 code 130 status: Err next 6

    I also get another error where the last line says 'null'. I'll try to reproduce it if you need it.
     
  4. joaomgcd

    joaomgcd Administrator Staff Member

    Joined:
    Feb 3, 2015
    Messages:
    9,479
    Likes Received:
    806
    Hmm, that seems to be saying that the previous tasks didn't end running yet. CAn you try running the task directly instead of running it as a child Task?
     
  5. threeFatCat

    threeFatCat New Member

    Joined:
    Sep 12, 2018
    Messages:
    3
    Likes Received:
    0
    What do you mean? Separate it in a separate task? Actually that's what I did, I have this task A that do some stuffs then part of it will call to run task B (Secure settings mobile data on) then I added Wait until for few seconds. But it will do the same. Perhaps that error pop up when I tried to retry the actions in the tasks when it got freeze and I didn't disable/able tasker. Is there like a command 'destroy' that will destroy 'threads' created by tasker? Perhaps too many process cause it to freeze?
     
  6. joaomgcd

    joaomgcd Administrator Staff Member

    Joined:
    Feb 3, 2015
    Messages:
    9,479
    Likes Received:
    806
    Sorry, I meant to run the task directly and not from a different. So the opposite :)

    To do what you mentioned disable and re-enable Tasker.
     

Share This Page