Clear enabled/disabled components when uninstalled
Persisting component enabled/disabled state even if a single user is uninstalled is counter intuitive to developers. This CL clears it for a user when an app is uninstalled on a user with app data cleared. Bug: 269407126 Test: Manually install a non-system app and enable/disable components for all users. $ adb uninstall --user 0 com.example.app Test: Manually install a non-system app and enable/disable components for all users. $ adb uninstall -k --user 0 com.example.app Test: Manually install a system app and enable/disable components for all users. $ adb uninstall --user 0 com.example.app Test: Manually install an updated system app and enable/disable components for all users. $ adb uninstall --user all com.example.app (cherry picked from https://partner-android-review.googlesource.com/q/commit:c0f18445d05d7afc0338bd0a4ae36fbd51e8e96a) Merged-In: I5265ffabf44d44e81e791e6b4c1433afe3b1a145 Change-Id: I5265ffabf44d44e81e791e6b4c1433afe3b1a145 NOTE FOR REVIEWERS - errors occurred while applying the patch. PLEASE REVIEW CAREFULLY. Errors: Error applying patch in services/core/java/com/android/server/pm/DeletePackageHelper.java, hunk HunkHeader[437,7->438,7]: Hunk cannot be applied Original patch: From c0f18445d05d7afc0338bd0a4ae36fbd51e8e96a Mon Sep 17 00:00:00 2001 From: Jeongsik Mun <jeongsik.mun@samsung.corp-partner.google.com> Date: Tue, 05 Sep 2023 10:37:52 +0900 Subject: [PATCH] Clear enabled/disabled components when uninstalled Persisting component enabled/disabled state even if a single user is uninstalled is counter intuitive to developers. This CL clears it for a user when an app is uninstalled on a user with app data cleared. Bug: 269407126 Test: Manually install a non-system app and enable/disable components for all users. $ adb uninstall --user 0 com.example.app Test: Manually install a non-system app and enable/disable components for all users. $ adb uninstall -k --user 0 com.example.app Test: Manually install a system app and enable/disable components for all users. $ adb uninstall --user 0 com.example.app Test: Manually install an updated system app and enable/disable components for all users. $ adb uninstall --user all com.example.app Change-Id: I3f79436fcdb60b8e44d157c5d65756d000bbffa8
Loading
Please register or sign in to comment