Prevent ACTION_FACTORY_RESET from resetting device in a non-system user
If ACTION_FACTORY_RESET was sent from a non-system user, remove the user/profile, UserManager#removeUser correctly handles the case when a restriction is set to not remove the profile/user by the admin. Test: atest MasterClearReceiverTest Test: manual testing Bug: 175300681 Change-Id: Iea99e22534c9b6c1464321984b80c7406c62b86c
Loading
Please register or sign in to comment