Pixel 2 on Pie Lockdown option

Post your feature requets for new triggers, conditions, actions and other improvements.

Moderator: Martin

Locked
Wibbly
Posts: 418
Joined: 17 Mar 2014 09:02

Pixel 2 on Pie Lockdown option

Post by Wibbly » 19 Oct 2018 12:28

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...
Last edited by Wibbly on 20 Oct 2018 18:06, edited 2 times in total.

User avatar
Desmanto
Posts: 2709
Joined: 21 Jul 2017 17:50

Re: Pixe 2 on Pie Lockdown option

Post by Desmanto » 20 Oct 2018 11:02

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.
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.

Wibbly
Posts: 418
Joined: 17 Mar 2014 09:02

Re: Pixe 2 on Pie Lockdown option

Post by Wibbly » 20 Oct 2018 11:51

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 12704 times

User avatar
Desmanto
Posts: 2709
Joined: 21 Jul 2017 17:50

Re: Pixel 2 on Pie Lockdown option

Post by Desmanto » 21 Oct 2018 18:13

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.
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.

Wibbly
Posts: 418
Joined: 17 Mar 2014 09:02

Re: Pixe 2 on Pie Lockdown option

Post by Wibbly » 02 Nov 2018 13:39

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?

User avatar
Desmanto
Posts: 2709
Joined: 21 Jul 2017 17:50

Re: Pixel 2 on Pie Lockdown option

Post by Desmanto » 03 Nov 2018 18:36

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.
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.

Locked