mirror of
https://github.com/Divested-Mobile/DivestOS-Build.git
synced 2024-12-27 00:19:26 -05:00
082bc48c32
https://review.lineageos.org/q/topic:P_asb_2022-05 https://review.lineageos.org/q/topic:P_asb_2022-06 https://review.lineageos.org/q/topic:P_asb_2022-07 https://review.lineageos.org/q/topic:P_asb_2022-08 https://review.lineageos.org/q/topic:P_asb_2022-09 https://review.lineageos.org/q/topic:P_asb_2022-10 https://review.lineageos.org/q/topic:P_asb_2022-11 https://review.lineageos.org/q/topic:P_asb_2022-12 https://review.lineageos.org/q/topic:P_asb_2023-01 https://review.lineageos.org/q/topic:P_asb_2023-02 https://review.lineageos.org/q/topic:P_asb_2023-03 https://review.lineageos.org/q/topic:P_asb_2023-04 https://review.lineageos.org/q/topic:P_asb_2023-05 https://review.lineageos.org/q/topic:P_asb_2023-06 https://review.lineageos.org/q/topic:P_asb_2023-07 accounted for via manifest change: https://review.lineageos.org/c/LineageOS/android_external_freetype/+/361250 https://review.lineageos.org/q/topic:P_asb_2023-08 accounted for via manifest change: https://review.lineageos.org/c/LineageOS/android_external_freetype/+/364606 accounted for via patches: https://review.lineageos.org/c/LineageOS/android_system_ca-certificates/+/365328 https://review.lineageos.org/q/topic:P_asb_2023-09 https://review.lineageos.org/q/topic:P_asb_2023-10 https://review.lineageos.org/q/topic:P_asb_2023-11 accounted for via patches: https://review.lineageos.org/c/LineageOS/android_system_ca-certificates/+/374916 https://review.lineageos.org/q/topic:P_asb_2023-12 https://review.lineageos.org/q/topic:P_asb_2024-01 https://review.lineageos.org/q/topic:P_asb_2024-02 https://review.lineageos.org/q/topic:P_asb_2024-03 https://review.lineageos.org/q/topic:P_asb_2024-04 Signed-off-by: Tavi <tavi@divested.dev>
39 lines
1.9 KiB
Diff
39 lines
1.9 KiB
Diff
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
|
From: Oli Lan <olilan@google.com>
|
|
Date: Tue, 19 Jul 2022 10:45:22 +0000
|
|
Subject: [PATCH] Revert "RESTRICT AUTOMERGE Prevent non-admin users from
|
|
deleting system apps."
|
|
|
|
This reverts commit 4005549db2fa7e1524fc0dbbe22c774fb00b6cb3.
|
|
|
|
Reason for revert: Regression, DELETE_SYSTEM_APP flag no longer works
|
|
|
|
Change-Id: I7386d1ba3d61b95836b85c52214c83b216c478e8
|
|
(cherry picked from commit 49d8f9325a8d103497632097010899f87f403faa)
|
|
Merged-In: I7386d1ba3d61b95836b85c52214c83b216c478e8
|
|
---
|
|
.../com/android/server/pm/PackageManagerService.java | 10 ----------
|
|
1 file changed, 10 deletions(-)
|
|
|
|
diff --git a/services/core/java/com/android/server/pm/PackageManagerService.java b/services/core/java/com/android/server/pm/PackageManagerService.java
|
|
index e8532ce4edd3..dc44fe17722d 100644
|
|
--- a/services/core/java/com/android/server/pm/PackageManagerService.java
|
|
+++ b/services/core/java/com/android/server/pm/PackageManagerService.java
|
|
@@ -18476,16 +18476,6 @@ public class PackageManagerService extends IPackageManager.Stub
|
|
return PackageManager.DELETE_FAILED_INTERNAL_ERROR;
|
|
}
|
|
|
|
- if (isSystemApp(uninstalledPs)) {
|
|
- UserInfo userInfo = sUserManager.getUserInfo(userId);
|
|
- if (userInfo == null || !userInfo.isAdmin()) {
|
|
- Slog.w(TAG, "Not removing package " + packageName
|
|
- + " as only admin user may downgrade system apps");
|
|
- EventLog.writeEvent(0x534e4554, "170646036", -1, packageName);
|
|
- return PackageManager.DELETE_FAILED_USER_RESTRICTED;
|
|
- }
|
|
- }
|
|
-
|
|
// Static shared libs can be declared by any package, so let us not
|
|
// allow removing a package if it provides a lib others depend on.
|
|
pkg = mPackages.get(packageName);
|