AutoTools Force connection to wifi network while at work even if phone tries to connect to other networks

Learn how you can make your phone always connect to the same networks if it wants otherwise

  1. joaomgcd

    joaomgcd Administrator Staff Member

    Joined:
    Feb 3, 2015
    Messages:
    9,479
    Likes Received:
    806
    joaomgcd submitted a new AutoApps project:

    Force connection to wifi network while at work even if phone tries to connect to other networks - Learn how you can make your phone always connect to the same networks if it wants otherwise

    Read more about this project...
     
  2. GeneMar

    GeneMar New Member

    Joined:
    Oct 25, 2018
    Messages:
    7
    Likes Received:
    0
    I hope this thread is still monitored!
    On my Moto G7, the AutoTools Connectivity | Wifi | SSID function has never worked for me. Once executed, the newly requested AP - if it connects at all - switches right back to where I was.

    I watched Logcat at the time I initiated this tasker statement, and I'm seeing the following:
    01-18 16:01:11.172 1649 4731 I WifiService: enableNetwork uid=10156 disableOthers=true
    01-18 16:01:11.172 1649 2047 D WifiStateMachine: connectToUserSelectNetwork netId 37, uid 10156, forceReconnect = false
    01-18 16:01:11.173 1649 2047 E WifiConfigManager: UID 10156 does not have permission to update configuration "GM2.4a"WPA_PSK
    01-18 16:01:11.173 1649 2047 I WifiStateMachine: connectToUserSelectNetwork Allowing uid 10156 with insufficient permissions to connect=37
    01-18 16:01:11.173 1649 2047 E WifiStateMachine: CMD_START_CONNECT but no requests and connected, but app does not have sufficient permissions, bailin


    Any suggestions?
    Tnx.

    EDIT: I already have these set each time I start adb:
    adb shell pm grant com.joaomgcd.autotools android.permission.WRITE_SECURE_SETTINGS
    adb shell pm grant net.dinglisch.android.taskerm android.permission.WRITE_SECURE_SETTINGS
    adb shell pm grant net.dinglisch.android.taskerm android.permission.READ_LOGS
    adb shell am force-stop net.dinglisch.android.taskerm
     
  3. joaomgcd

    joaomgcd Administrator Staff Member

    Joined:
    Feb 3, 2015
    Messages:
    9,479
    Likes Received:
    806
    Hmm, for some reason seems like on your phone this requires extra permissions, sorry :(
     

Share This Page