summaryrefslogtreecommitdiff
path: root/api/api_test.go
diff options
context:
space:
mode:
author Ivan Chiang <chiangi@google.com> 2024-08-02 16:14:53 +0000
committer Ivan Chiang <chiangi@google.com> 2024-08-05 07:57:57 +0000
commitcb5aa6495171fe6ea66de6fecb4752cb528d7ea3 (patch)
tree490a2d5052e554f25cc22ca0d6029daba7439ed6 /api/api_test.go
parentaa96091053edb7c0a6eb6168899e643657d98439 (diff)
[PM] Use callingUid instead of binder#getCallingUid for uninstall
When the system checks whether the caller can uninstall an app silently, we should use callingUid to instead of the callingUid from the Binder. Because the archive caller calls uninstall method in the handler of PackageManagerService. The callingUid from the Binder is system server at this time. Flag: EXEMPT bugfix Bug: 352325525 Test: atest UninstallationViaIntentActionDeleteTest Test: atest UninstallationViaIntentActionUninstallPackageTest Test: atest UninstallationViaPackageInstallerApiTest Test: atest UninstallTest Test: atest PackageInstallerArchiveTest Test: atest ArchiveTest Test: manual. call requestArchive in a system app that is granted DELETE_PACKAGES. The user confirm dialog pops up. Test: manual. Settings can restore and archive apps. Change-Id: I3e95fa7690a69ca379fa4c108012ecfec841a9c8
Diffstat (limited to 'api/api_test.go')
0 files changed, 0 insertions, 0 deletions