diff options
| author | 2024-08-05 16:04:00 -0700 | |
|---|---|---|
| committer | 2024-08-06 14:40:31 -0700 | |
| commit | 681174193bc22490ce8925a24bc3c0fb99aee754 (patch) | |
| tree | 7ee9930bdb4d83d1ba9595d234d5eb9fb72d5ffa /libs/androidfw/StringPool.cpp | |
| parent | aa97cd9d2de38cf9223dac6ff259848e30114a6e (diff) | |
[pm] prevent changing sharedUserId after uninstall -k
ag/24750500 introduced a way to bypass the changing sharedUserId check
by using "-k" to uninstall a previously installed app. This CL fixes
that by shifting the check from fields of the old AndroidPackage object
to the fields of PackageSetting and SharedUserSetting.
BUG: 355334582
Test: manually by repeating the steps in the bug with an test app
Test: atest CtsSharedUserMigrationTestCases
FLAG: EXEMPT bug fix
Change-Id: Id53d632ea3d056c3bb5d293b32fa7e67c6076bfe
Diffstat (limited to 'libs/androidfw/StringPool.cpp')
0 files changed, 0 insertions, 0 deletions