Page 1 of 1

Pixel 2 on Pie Lockdown option

Posted: 19 Oct 2018 12:28
by Wibbly
Theres an option in settings that exposes a power button option that turns off Smart Lock, fingerprint unlocking and notifications on the lock screen.

Could Lockdown be triggered by an Action? I'm not sure if this a standard Pie feature exposed by an API or Pixel-specific...

Re: Pixe 2 on Pie Lockdown option

Posted: 20 Oct 2018 11:02
by Desmanto
I don't quite get what you want to do. Do you mean to disable android security feature? You can try to use Set Disabled Keyguard Features, and disable the ones you want.

Re: Pixe 2 on Pie Lockdown option

Posted: 20 Oct 2018 11:51
by Wibbly
Pie seems to have an option to do a number of things concurrently from the power menu with an option that can be added. I would like to be able to activate the option programatically to 'lock down' the phone under some conditions, especially stopping notification visibility...
Screenshot_20181020-123620.png
Screenshot_20181020-123620.png (107.27 KiB) Viewed 12898 times

Re: Pixel 2 on Pie Lockdown option

Posted: 21 Oct 2018 18:13
by Desmanto
Oh, you mean you want to toggle the Show lockdown option? You can try to do this using Set System Setting. But first you have to find which value correspond to that setting. With Automagic 1.36.0, we can put * in the Trigger System setting Changed. So you can put 3 of them at the same flow and use my variable logger (see my index) to log the changes. Toggle the Show lockdown option and check the value at the glovar. Use that value in the Set System Setting. Doesn't guarantee to work properly

The other definite method is to use control UI, navigate to the menu and toggle the menu. Of course, this will work only on screen on and have UI distraction.

Re: Pixe 2 on Pie Lockdown option

Posted: 02 Nov 2018 13:39
by Wibbly
Desmanto wrote:You can try to use Set Disabled Keyguard Features, and disable the ones you want.
What's the recommended method to re-enable the features that have been disabled with this action? Run action again with everything unticked?

Re: Pixel 2 on Pie Lockdown option

Posted: 03 Nov 2018 18:36
by Desmanto
Wibbly wrote: What's the recommended method to re-enable the features that have been disabled with this action? Run action again with everything unticked?
Yes, exactly like that. tick to disable and untick to enable.