diff options
| author | 2022-05-05 19:24:10 +0100 | |
|---|---|---|
| committer | 2022-05-10 10:09:13 +0000 | |
| commit | 91edfc163b98bb81760429aeb11ddb204f961dc4 (patch) | |
| tree | 05e6a259591f2dd7ac4a167a7a2714990b3b23af /libs/androidfw/StringPool.cpp | |
| parent | 9d1cf05c83e20cddf58a9a47ee4ccab372bf4650 (diff) | |
Allow profile owners to protect packages.
Changed how protected packages are stored in package manager:
* previously they were stored in a map from DO package into
a list of protected packages. This isn't expressive enough
to allow POs: the same PO package on different users may
protect different packages.
* now they are stored in a map from userId into a list of
protected packages. In case when the DO sets the policy
the userId will be UserHandle.USER_ALL, otherwise it will
be the calling user.
Bug: 218639412
Test: atest UserControlDisabledPackagesTest
Change-Id: I2d1d33acad035610c8db365f69b7a15faa03a2d5
Merged-In: I2d1d33acad035610c8db365f69b7a15faa03a2d5
Diffstat (limited to 'libs/androidfw/StringPool.cpp')
0 files changed, 0 insertions, 0 deletions