summaryrefslogtreecommitdiff
path: root/libs/androidfw/ZipUtils.cpp
diff options
context:
space:
mode:
author Sumedh Sen <sumedhsen@google.com> 2025-01-06 17:44:44 -0800
committer Sumedh Sen <sumedhsen@google.com> 2025-01-08 11:48:56 -0800
commitff21533e7386987fe668e9d4cee20dc2d6b99add (patch)
tree41a354a90ef0da90a2b4058b5107b5f85c1c52ac /libs/androidfw/ZipUtils.cpp
parentd6b3bdf805b44d7d1b27be92d252d600b2e241a2 (diff)
Look for the installer in all users if DELETE_ALL_USERS is requested
If a caller passes the DELETE_ALL_USERS flag, search for the installer app in every user, since the uninstall request may initiate from a user where the package is not installed. For example, if an app is installed only on user10, and a caller on user0 is initiating the uninstall (to uninstall from all users), looking for for the installer package* only on the initiating user (i.e user 0) will lead to an exception. Thus, loop through all users to find the installer (*) We search for the installer to determine if the caller pkg is also the installer pkg, to allow silent uninstall Bug: 384544054 Test: TBD Flag: EXEMPT. Bug fix only Change-Id: Ibc893fbf32bcef0601cf57cb798f582635ab00c7
Diffstat (limited to 'libs/androidfw/ZipUtils.cpp')
0 files changed, 0 insertions, 0 deletions