summaryrefslogtreecommitdiff
path: root/core/java/android/util/SparseSetArray.java
diff options
context:
space:
mode:
authorNishant Kumar Singh <nishantks@google.com>2022-04-01 12:21:19 +0000
committerNishant Kumar Singh <nishantks@google.com>2022-04-01 12:39:05 +0000
commited7a616938fc5c2bce3eb527a5b9e0e41029f5d5 (patch)
treedffa305e9cae3f7c7f370ac8e6779bb3be8ed2bc /core/java/android/util/SparseSetArray.java
parent39921c5b4aa18bc4f091a4b0b7400019a4362b27 (diff)
Replace PackageManagerInternal with PackageManager.
PackageManagerInternal in LocaleManagerService allowed any app to query for another app's existence by looking at the exception message thrown by the LocaleManager's get/set APIs. External PM, on the other hand, does package visibility filtering which restricts regular apps from querying information about other apps. Bug: 225881167 Bug: 226900861 Test: atest CtsLocaleManagerTestCases Test: atest CtsLocaleManagerHostTestCases Test: atest CtsBackupTestCases:AppLocalesBackupTest Test: atest LocaleManagerServiceTest Test: atest LocaleManagerBackupRestoreTest Test: atest SystemAppUpdateTrackerTest Test: Manually tested by flashing and verifying that the test app (PocProject) attached in the bug is not able to query app existence, and also verifying that Settings and PlayStore are able to get/set any app's locales. Also tested multi-user and work profiles. Change-Id: If00016e7afd7f6552b6c66984cc0194d1bc449b1
Diffstat (limited to 'core/java/android/util/SparseSetArray.java')
0 files changed, 0 insertions, 0 deletions