Frequently have to reauthorize adb wifi

187 views
Skip to first unread message

Tom Stern

unread,
Apr 29, 2020, 11:15:33 PM4/29/20
to Tasker
Does anyone else have this problem:

I have tasks set up so that when I leave home, my phone
Turns on Bluetooth to connect to my car
Disables WiFi sets automatic lock to 15 minutes, and
Turns on mobile data

When I leave the car, the phone
Turns off Bluetooth
Turns WiFi back on

When I get home, the phone
Turns on WiFi
Turns off Bluetooth
Sets automatic locking to 72 hours
Turns off mobile data

Lately, when I stop and restart WiFi and connect to a different WiFi server, my phone insists I've lost my adb write secure settings.

I know I have to re-read enable when I reboot the OS, but is it normal to have to do it when i get a new IP address?

Thanks.

João Dias

unread,
Apr 30, 2020, 4:43:00 AM4/30/20
to tas...@googlegroups.com
Wait, so is it ADB Wifi or Write Secure Settings that's resetting?

Thank you for your contact.

   Join: connect multiple devices (send pushes, remote SMS, notifications) on Android, Windows, Mac, Linux
   Tasker: customize/automate anything on your phone!
   AutoApps: add advanced functionality to Tasker via plugins

     

João Dias

Tom Stern

unread,
Apr 30, 2020, 4:05:17 PM4/30/20
to Tasker
Thanks for getting back to me, João (Big fan or your work).

I'm not sure which it is.  Here's what I did yesterday to cause the problem.

1) I left home for the Doctor;s office.
   Phone turns off WiFi, starts Bluetooth, turns on Mobile Data, sets screenlock to 15 minutes

2)  I get about 10 blocks from home, remember I left my facemask at home, go back for it.
     Phone turns on Wifi, turns off Bluetooth, turns off Mobile Data, sets screenlock to 72 hours

3) Pick up the mask and leave again
        Phone turns off WiFi, starts Bluetooth, turns on Mobile Data, sets screenlock to 15 minutes

4) 50 miles later arrive at doctor's office
     Phone turns on Wifi, turns off Bluetooth, but when it tries to turn off Mobile Data, I get an error message about missing permissions
.
.
.
6) Return home
       Phone turns on Wifi, turns off Bluetooth, turns tries to turn off Mobile Data but I again get missing permissions message, tries to set screenlock to 72 hours but it still locks after 15 minutes.

7)  Connect phone to PC (Windows 7) and enter the following commands.
     adb devices
     adb tcpip 5555
     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

8)  Things appear to go back to working, but several hours later I get a message asking to accept a RSA key.  I check the "don't ask again" then the OK.

And it's back to normal.

Thanks.
tom

João Dias

unread,
May 4, 2020, 6:20:14 AM5/4/20
to tas...@googlegroups.com
Would you be able to send me a screenshot of that dialog so I can check what it could be please?

Tom Stern

unread,
May 4, 2020, 6:53:06 PM5/4/20
to Tasker
I'll be glad to  the next time it happens.  Right now it's behaving itself (probably because I haven't left home in days).

Thanks.
Reply all
Reply to author
Forward
0 new messages