Clarified documentation as requested by API review

Bug: 27532433
Change-Id: I5fada6c0a4636528393308d5ce098cd0398e5ff5
This commit is contained in:
Esteban Talavera
2016-03-16 12:00:40 +00:00
parent c14893bf5a
commit 96895cae3e

View File

@@ -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.
*
* <p>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) {