Skip to content
Commit a0c10672 authored by kholoud mohamed's avatar kholoud mohamed Committed by Kholoud Mohamed
Browse files

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
parent f0b85630
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