summaryrefslogtreecommitdiff
path: root/core/java/android/util/SparseArrayMap.java
diff options
context:
space:
mode:
authorFelka Chang <felkachang@google.com>2021-08-15 23:46:52 +0800
committerFelka Chang <felkachang@google.com>2021-08-16 14:31:48 +0800
commit33025c4514964bc4018ee82d8c51db43a368cc71 (patch)
treef2334cd7d112e5db7bd5f2c0f62896e3f1ae78f9 /core/java/android/util/SparseArrayMap.java
parent6d094d30444e7bde9bf7d5da13e3cb957a9b0574 (diff)
Fix fail verification without cleaning child session data
When a multipackage session is verified to fail, destroyInternal() is only called for the parent session. However, the child session doesn't call destroyInternal(). It makes the child session data occupy the storage space. The device user can't get the storage space back except to execute factory reset or root the device. This patch calls destroyInternal() for all of child sessions if the verification failed. This patch also creates a new test that needs a rooted device. The test verifies that the child session stage dir is cleaned. * using "dumpsys package" to get stage dir * using "su root" to check the stage dir exist or not so it needs a rooted device Test: TID="PackageManagerServiceHostTests"; \ TC="com.android.server.pm.test.PackageInstallerSessionTest"; \ atest "${TID}:${TC}" Fix: 196522826 Change-Id: Ice257df8dd541c7ca732279ddf0353e6fde83e64
Diffstat (limited to 'core/java/android/util/SparseArrayMap.java')
0 files changed, 0 insertions, 0 deletions