diff options
| author | 2023-09-21 00:32:27 +0000 | |
|---|---|---|
| committer | 2023-09-21 16:31:00 +0000 | |
| commit | 15a0bb3e4fb14e4927710ca6289df40d94c23536 (patch) | |
| tree | 8e856c560221bc05134b133dd1f047bef926202e /libs/androidfw/FileStream.cpp | |
| parent | 7bee98d7ebd630e45f0c3ab1ea53b7533bfafb94 (diff) | |
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
Diffstat (limited to 'libs/androidfw/FileStream.cpp')
0 files changed, 0 insertions, 0 deletions