diff options
author | Mohammad Samiul Islam <samiul@google.com> | 2019-05-07 20:28:00 +0100 |
---|---|---|
committer | Mohammad Samiul Islam <samiul@google.com> | 2019-05-09 13:02:06 +0100 |
commit | 6b7ad94b508876b57b709b88f497c582c997ea45 (patch) | |
tree | 3c0d764fc9f1f1171c2f1b0e53820b79866caf08 /tools/aapt2/java/JavaClassGenerator_test.cpp | |
parent | 39789e86f766a16b6e0398dec963e96d280dac21 (diff) |
Return null from PackageManagerService.getInstallerPackageName for apex
When installing an apex, installerPackageName is not stored anywhere.
The main purpose of installerPackageName is to signal whether or not
the package can be uninstalled silently. If uninstaller is not same as
the original installer, we prompt the user for confirmation. Null means
"no installer" and therefore is a safe default.
Bug: 123920130
Test: manual testing
$adb install -i com.android.shell foo.apex
$adb reboot
$adb shell pm list packages -i --apex-only
observe that installer is listed as null for foo.apex
Change-Id: Ic4637a47aebf9fd5df07d2b1e481be12e2763e30
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions