summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Andy Stadler <stadler@google.com> 2011-06-03 10:33:13 -0700
committer Android Git Automerger <android-git-automerger@android.com> 2011-06-03 10:33:13 -0700
commitdaac9dd9742c3a1eaeee339c4d21e6f2dc758923 (patch)
treed7b51acaa5dbca5316ca8185aa5f2a20586992ab
parent3699c3d7c8a450cc39fd1c3db23b64208bd43353 (diff)
parentc22d145a9f26314e23ea678e96766755268e878b (diff)
am c22d145a: am 3148557c: Merge "DO NOT MERGE Use unchecked admin lookup for getStorageEncryption()" into honeycomb-mr2
* commit 'c22d145a9f26314e23ea678e96766755268e878b': DO NOT MERGE Use unchecked admin lookup for getStorageEncryption()
-rw-r--r--services/java/com/android/server/DevicePolicyManagerService.java5
1 files changed, 2 insertions, 3 deletions
diff --git a/services/java/com/android/server/DevicePolicyManagerService.java b/services/java/com/android/server/DevicePolicyManagerService.java
index 3bd82150357d..3181a9d061b5 100644
--- a/services/java/com/android/server/DevicePolicyManagerService.java
+++ b/services/java/com/android/server/DevicePolicyManagerService.java
@@ -1925,9 +1925,8 @@ public class DevicePolicyManagerService extends IDevicePolicyManager.Stub {
// Check for permissions if a particular caller is specified
if (who != null) {
// When checking for a single caller, status is based on caller's request
- ActiveAdmin ap = getActiveAdminForCallerLocked(who,
- DeviceAdminInfo.USES_ENCRYPTED_STORAGE);
- return ap.encryptionRequested;
+ ActiveAdmin ap = getActiveAdminUncheckedLocked(who);
+ return ap != null ? ap.encryptionRequested : false;
}
// If no particular caller is specified, return the aggregate set of requests.