Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 922c54c4 authored by Alejandro Nijamkin's avatar Alejandro Nijamkin
Browse files

[flexiglass] FRP support.

When FRP (factory reset protection) is active, System UI shouldn't be
visible, avoiding security holes and letting the setup wizard prompt the
new user of the device to enter the credentials of the previous user.

To achieve this in Flexiglass, we simply observe the
isFactoryResetProtectionActive state and make sure that, if it's true,
the visibility of the entire scene container is false.

Fix: 322197941
Test: manually made sure that SysUI is completely gone and cannot be
interacted with when I hard-coded
DeviceProvisionedController.isFrpActive to return true.
Test: I WASN'T ABLE TO actually trigger FRP to fully test the feature
despite multiple device factory resets
Flag: ACONFIG com.android.systemui.scene_container DEVELOPMENT

Change-Id: I043507704ccb6ab9f4b828aef74a43c37c21bf53
parent b997300a
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment