Locked out of my own phone!
Moderator: Martin
Locked out of my own phone!
I have a script that changes the lock Screen from QuickSettings dependent on which SSID I am connected to. When I disconnect from my home SSID, the lock screen is turned on. When I return home and connect to my home network, the lock screen is turned off. However, (here is the oddity) sometimes, but not always, the phone remains locked when I return home, even though I can see that Lock Screen in quicksettings is off! The inconsistency of this is driving me crazy. Clearly the flow is working to turn lock screen off, but phone does not recognize it. And it is not consistent; sometimes it works and sometimes not. Anyone have any idea on what is going on and how to fix it?
Re: Locked out of my own phone!
Flow is executing fine, that means something is not synced between the toggle and the actual state of the lock screen. Since it is intermittent, you have to try it out multiple times. Copy the elements which disable/enable lock screen to another flow. Use sleep and repetition to repeatly disable and enable in an interval.
Example, you can try something like this
- Disable the lock screen.
- Turn on screen, show the quick setting (so you can check)
- sleep 10 seconds
- Enable the lock screen, lock the phone
- Sleep 5 seconds, turn on the screen, check if lockscreen is enabled
- sleep 10 seconds, loop back to disable lock screen.
Let the flow loop for let say 10 times and see if the quick setting state is consistent with the actual lockscreen state.
Example, you can try something like this
- Disable the lock screen.
- Turn on screen, show the quick setting (so you can check)
- sleep 10 seconds
- Enable the lock screen, lock the phone
- Sleep 5 seconds, turn on the screen, check if lockscreen is enabled
- sleep 10 seconds, loop back to disable lock screen.
Let the flow loop for let say 10 times and see if the quick setting state is consistent with the actual lockscreen state.
Index of Automagic useful thread List of my other useful posts (and others')
Xiaomi Redmi Note 5 (whyred), AOSP Extended v6.7 build 20200310 Official, Android Pie 9.0, Rooted.
Xiaomi Redmi Note 5 (whyred), AOSP Extended v6.7 build 20200310 Official, Android Pie 9.0, Rooted.