From 8defec445f631df32241432abb10db428308297d Mon Sep 17 00:00:00 2001 From: Felka Chang Date: Mon, 10 Aug 2020 18:10:11 +0800 Subject: [PATCH] Update INSTALL_FAILED_REPLACE_COULDNT_DELETE's comment To make the comment of INSTALL_FAILED_REPLACE_COULDNT_DELETE easy to be understood by the developers. INSTALL_FAILED_REPLACE_COULDNT_DELETE is used to express the situation that the new package replace the system package neither with DELETE_SYSTEM_APP flag nor delete application for users. Fixes: 149890172 Test: m docs Change-Id: I57fe81845c81376cfa61224dd37579ade2223fa1 --- core/java/android/content/pm/PackageManager.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/java/android/content/pm/PackageManager.java b/core/java/android/content/pm/PackageManager.java index da8d15af92b84..0cdaa7ed03151 100644 --- a/core/java/android/content/pm/PackageManager.java +++ b/core/java/android/content/pm/PackageManager.java @@ -1164,7 +1164,8 @@ public abstract class PackageManager { /** * Installation return code: this is passed in the {@link PackageInstaller#EXTRA_LEGACY_STATUS} - * if the new package uses a shared library that is not available. + * when the package being replaced is a system app and the caller didn't provide the + * {@link #DELETE_SYSTEM_APP} flag. * * @hide */