Merge "Revert "Don't enforce this API - it's not sensitive"" into nyc-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
fc0810b4d4
@@ -2648,6 +2648,9 @@ class MountService extends IMountService.Stub
|
|||||||
*/
|
*/
|
||||||
@Override
|
@Override
|
||||||
public int getPasswordType() {
|
public int getPasswordType() {
|
||||||
|
mContext.enforceCallingOrSelfPermission(Manifest.permission.STORAGE_INTERNAL,
|
||||||
|
"no permission to access the crypt keeper");
|
||||||
|
|
||||||
waitForReady();
|
waitForReady();
|
||||||
|
|
||||||
final NativeDaemonEvent event;
|
final NativeDaemonEvent event;
|
||||||
|
|||||||
@@ -1395,7 +1395,12 @@ public class DevicePolicyManagerService extends IDevicePolicyManager.Stub {
|
|||||||
}
|
}
|
||||||
|
|
||||||
boolean storageManagerIsNonDefaultBlockEncrypted() {
|
boolean storageManagerIsNonDefaultBlockEncrypted() {
|
||||||
return StorageManager.isNonDefaultBlockEncrypted();
|
long identity = Binder.clearCallingIdentity();
|
||||||
|
try {
|
||||||
|
return StorageManager.isNonDefaultBlockEncrypted();
|
||||||
|
} finally {
|
||||||
|
Binder.restoreCallingIdentity(identity);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
boolean storageManagerIsEncrypted() {
|
boolean storageManagerIsEncrypted() {
|
||||||
|
|||||||
Reference in New Issue
Block a user