From 8357714419518ec83e665af897ea31331e1e69ae Mon Sep 17 00:00:00 2001 From: Jackal Guo Date: Tue, 31 Jan 2023 11:25:23 +0800 Subject: [PATCH] Address the feedbacks from API review Revise the documentation to address the review feedback. Bug: 266094920 Test: build Change-Id: I10c8fe62899b421319de0de1ca24059563c2d9a3 --- core/java/android/content/pm/PackageManager.java | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/core/java/android/content/pm/PackageManager.java b/core/java/android/content/pm/PackageManager.java index 09b68e22b85ee..3c9b9be636228 100644 --- a/core/java/android/content/pm/PackageManager.java +++ b/core/java/android/content/pm/PackageManager.java @@ -10923,10 +10923,13 @@ public abstract class PackageManager { /** * Attempt to relinquish the update ownership of the given package. Only the current - * update owner of the given package can use this API or a SecurityException will be - * thrown. + * update owner of the given package can use this API. * * @param targetPackage The installed package whose update owner will be changed. + * @throws IllegalArgumentException if the given package is invalid. + * @throws SecurityException if you are not the current update owner of the given package. + * + * @see PackageInstaller.SessionParams#setRequestUpdateOwnership */ public void relinquishUpdateOwnership(@NonNull String targetPackage) { throw new UnsupportedOperationException(