summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Oli Lan <olilan@google.com> 2022-03-30 18:49:55 +0000
committer Android (Google) Code Review <android-gerrit@google.com> 2022-03-30 18:49:55 +0000
commita2f1acf33ee922aa118ad637d035bcb7b5e5ba1c (patch)
treef0db3914aa6652c580bd991ff0432234426fd757
parent9270d9fd53e62ffd9bcc7438aa035e3897e3a576 (diff)
parentdad53327b851e43fbdc45ecf16c4b1c846c662be (diff)
Merge "Add security net logging for guest uninstall of updates." into tm-dev
-rw-r--r--services/core/java/com/android/server/pm/DeletePackageHelper.java1
1 files changed, 1 insertions, 0 deletions
diff --git a/services/core/java/com/android/server/pm/DeletePackageHelper.java b/services/core/java/com/android/server/pm/DeletePackageHelper.java
index dc4dd12b3a18..7dae22a44cc5 100644
--- a/services/core/java/com/android/server/pm/DeletePackageHelper.java
+++ b/services/core/java/com/android/server/pm/DeletePackageHelper.java
@@ -167,6 +167,7 @@ final class DeletePackageHelper {
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;
}
}