From 394a0c13609fea402eb7228df5345055ec1e21a5 Mon Sep 17 00:00:00 2001 From: Patrick Baumann Date: Tue, 4 Apr 2023 15:51:03 +0000 Subject: [PATCH] Referring to manifest attribute for updateowner Bug: 271298593 Test: N/A Change-Id: I72996d88558af4cf6edf47bbb19f7e05439608d5 --- core/java/android/content/pm/PackageInstaller.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/core/java/android/content/pm/PackageInstaller.java b/core/java/android/content/pm/PackageInstaller.java index cb988dfdb2039..30fd77ca467c8 100644 --- a/core/java/android/content/pm/PackageInstaller.java +++ b/core/java/android/content/pm/PackageInstaller.java @@ -2991,6 +2991,10 @@ public class PackageInstaller { * The update ownership enforcement can only be enabled on initial installation. Set * this to {@code true} on package update is a no-op. * + * Apps may opt themselves out of update ownership by setting the + * android:alllowUpdateOwnership + * attribute in their manifest to false. + * * Note: To enable the update ownership enforcement, the installer must have the * {@link android.Manifest.permission#ENFORCE_UPDATE_OWNERSHIP ENFORCE_UPDATE_OWNERSHIP} * permission.