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

Commit d64181ce authored by Felipe Leme's avatar Felipe Leme
Browse files

Encapsulated access to isMainUserPermanentAdmin.

Currently, there's no API to access that info and its 2 clients
get the value directly from the framework resources, which make it
harder to "emulate" that property.

This CL encapsulates that config into
UserManagerInternal.isMainUserPermanentAdmin() and change the
existing clients to use it; a follow-up CL will change that method so
it can be emulated by a system property.

Test: atest FrameworksServicesTests:com.android.server.locksettings FrameworksServicesTests:UserManagerServiceShellCommandTest
Bug: 396232760
Flag: EXEMPT refactor

Change-Id: If894e769e986b90dce89ec7c69db95badeecfcc4
parent 974719fb
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment