summaryrefslogtreecommitdiff
path: root/libs/androidfw/ApkParsing.cpp
diff options
context:
space:
mode:
author Santiago Seifert <aquilescanta@google.com> 2023-01-04 17:30:07 +0000
committer Santiago Seifert <aquilescanta@google.com> 2023-01-04 17:34:15 +0000
commitc5944b179e2fc98aa5fca114ccc49276b0b9566c (patch)
treecd77a09ade688b9551052cd2f14b89fb9876a926 /libs/androidfw/ApkParsing.cpp
parentb7a1333b896e54dd893e3a87f3606d1bb5b85b73 (diff)
Enforce MEDIA_CONTENT_CONTROL in verifyPackageName
Also rename verifyPackageName to verifyPackageExists, which probably reflects behavior a bit better. Before this change, an app can use a direct binder call to ask the system whether a package is installed without having any permissions. Since the method now requires MEDIA_CONTENT_CONTROL, we don't need enforceMediaContentControlPermission anymore. Bug: 205124386 Test: atest MediaRouter2HostSideTest CtsMediaBetterTogetherTestCases Change-Id: I66723a00cf8b22b40aa0cd680a7dbe4bb71fddb6
Diffstat (limited to 'libs/androidfw/ApkParsing.cpp')
0 files changed, 0 insertions, 0 deletions