Page 1 of 1

can't unlock by finger print as it's locked by admin

Posted: 27 Jan 2019 14:47
by yxd0018
Using action "lock device" to lock the screen, but seems it's locked by admin so that I can't use fingerprint to unlock it. Does anyone have a better solution to use fingerprint in locking?

Re: can't unlock by finger print as it's locked by admin

Posted: 27 Jan 2019 17:13
by Desmanto
What is your device android version? Lock Device will always lock everything and prompt the password/pattern. The only way you can lock device and still able to unlock using fingerprint is to use Execute Root Command, input keyevent POWER, to emulate the power button press. Obviously, this need root. Other than that, only android Pie 9.0 support lockScreen() in Control UI, which don't prompt for password upon unlock.

Re: can't unlock by finger print as it's locked by admin

Posted: 27 Jan 2019 18:05
by yxd0018
I have lineageOS 16 = android 9. I tried both input event POWER and lockScreen() from UI control (which I end with), both works with fingerprint. The drawback is, like power button, it won't lock until timeout. it's sufficient for me now. Thanks. You know a lot of these control actions.

Re: can't unlock by finger print as it's locked by admin

Posted: 27 Jan 2019 21:12
by yxd0018
I have an issue that {ssid} always return null or <unknown ssid> when connect to wifi. I checked the exported xml and find no assignment statement. I don't see {ssid} in the debug condition. Is {ssid} built-in var or user-defined var? How do I debug this issue?

Re: can't unlock by finger print as it's locked by admin

Posted: 27 Jan 2019 21:56
by yxd0018
It turns out for android 8+, you have to turn on GPS in order to get SSID. I always turn off GPS to conserve battery. Not sure how I can achieve both.

Re: can't unlock by finger print as it's locked by admin

Posted: 27 Jan 2019 23:16
by yxd0018
Another finding is the {ssid} seems not get value unless right after condition WIFI connected all SSIDs. And {ssid} won't pass along value across flows so I have to save the value into global var as I consolidate all wifi setting into a wifi init flow.

Re: can't unlock by finger print as it's locked by admin

Posted: 28 Jan 2019 17:51
by Desmanto
I follow tightly every Automagic new version feature and test it immediately. Hence I know what new trick I can use.

As I answer in my navigation apps thread, I turn on location feature all the time, but at battery saving mode. Actually, even leaving the location at high accuracy mode won't consume more battery. Because it is only being used when there is app requesting high accuracy location. So better leave location on, battery saving mode. Try it out and check if it drains more battery. You have no choice, this is the limitation since Oreo 8.0.

{ssid} seems have some problem for AP with the same ssid, but different bssid. I still don't quite get the problem, but in Automagic 1.37.0 EAP, there is option to check for the bssid. Probably the problem will be solved once 1.37.0 is released.

Any local variable (non global) won't pass across flow, unless you use execute flow to trigger other flow. You have to save it to glovar as the exchange variable. This is actually good, to have each flow separated from each other. So you can reuse similar concept for different flows, running at the same time. I use for(i in list) something like this a lot. If the {i} is the same across the flows (not separated), there are so many disaster will happen.