summaryrefslogtreecommitdiff
path: root/libs/androidfw/ZipFileRO.cpp
diff options
context:
space:
mode:
author Sumedh Sen <sumedhsen@google.com> 2023-09-27 00:11:45 +0000
committer Sumedh Sen <sumedhsen@google.com> 2023-09-27 00:11:47 +0000
commit01e938eb16a1a3ada5670cb7a844d2c054de0cce (patch)
tree121679df014d2475683fd326a9bd0316d7b6ae92 /libs/androidfw/ZipFileRO.cpp
parent4e7c629bcffe1c2ab7b1c072d5c6021b99e75fb3 (diff)
Skip setting installedState to false for apps on adoptable storage
If an adoptable storage is being unmounted, apps are marked for uninstallation with DELETE_KEEP_DATA flag. As such, if an uninstall request comes with DELETE_KEEP_DATA flag, check if the package was installed on adoptable storage and if yes, skip setting installed state explicitly. Bug: 300267830 Test: atest android.content.pm.cts.PackageManagerTest#testUninstallWithKeepData Test: atest CtsAdoptableHostTestCases Change-Id: Ie3a4b7334a460c1b84901d3f320e4af3defa8873
Diffstat (limited to 'libs/androidfw/ZipFileRO.cpp')
0 files changed, 0 insertions, 0 deletions