Fix uninstall with keep_data flag on multi-user
When uninstalling an app on a multi-user device with the keep data flag, we end up deleting data still. Here's what seems to happen in PackageManagerService: executeDeletePackageLIF if (ps.isAnyInstalled(userIds)...) clearPackageStateAndReturn = true if (clearPackageStateAndReturn) clearPackageStateForUserLIF(...flags) destroyAppDataLIF // We unconditionally delete data disregarding // 'flags' containing KEEP_DATA We now check keep_data flag before calling destroyAppDataLIF Test: Manual testing Bug: 144828398 Change-Id: I009bd412b67000e39f189ef049400d7e00f9a892
Loading
Please register or sign in to comment