From 96895cae3e6cb083ecbaffb6d0d88abc8de14852 Mon Sep 17 00:00:00 2001 From: Esteban Talavera Date: Wed, 16 Mar 2016 12:00:40 +0000 Subject: [PATCH] Clarified documentation as requested by API review Bug: 27532433 Change-Id: I5fada6c0a4636528393308d5ce098cd0398e5ff5 --- core/java/android/app/admin/DevicePolicyManager.java | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/core/java/android/app/admin/DevicePolicyManager.java b/core/java/android/app/admin/DevicePolicyManager.java index 5285d52099d90..ac9c573111f63 100644 --- a/core/java/android/app/admin/DevicePolicyManager.java +++ b/core/java/android/app/admin/DevicePolicyManager.java @@ -3917,9 +3917,12 @@ public class DevicePolicyManager { } /** - * Returns {@code true} if the calling package has been granted permission via - * {@link #setApplicationRestrictionsManagingPackage} to manage application - * restrictions for the calling user. + * Called by any application to find out whether it has been granted permission via + * {@link #setApplicationRestrictionsManagingPackage} to manage application restrictions + * for the calling user. + * + *

This is done by comparing the calling Linux uid with the uid of the package specified by + * that method. */ public boolean isCallerApplicationRestrictionsManagingPackage() { if (mService != null) {