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

Skip to content
Commit 51f3320a authored by Adam Bookatz's avatar Adam Bookatz
Browse files

Introduce UserProperties class

Introduces a UserProperties class, which holds (potentially dynamic)
information about each user, where the (default) values depend on the
user type.
This can usually be used instead of
isManagedProfile() calls, giving fine-grained information, rather than
course-grained queries about the user type.

The system copies this object before delivering it to any callers,
filtering the properties by the permissions held by the caller.

The object can be parsed from XML, which is used for both persisting a
user's properties to disk, as well as for reading in the default
properties for each user type.

Bug: 235065648
Bug: 237399048
Bug: 170249807
Bug: 234439331

Test: atest UserManagerServiceUserPropertiesTest
Test: atest android.multiuser.cts.UserManagerTest
Test: atest com.android.server.pm.UserManagerTest
Test: atest UserManagerServiceUserTypeTest

Change-Id: If37480abafa784ce197b482103b6537a60fe2653
parent 1c3c9487
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