diff options
author | Jim Miller <jaggies@google.com> | 2013-11-08 13:25:36 -0800 |
---|---|---|
committer | Jim Miller <jaggies@google.com> | 2013-11-08 14:08:10 -0800 |
commit | 505329b21b743c6e74e0d1b14bea78a22f7b4145 (patch) | |
tree | de6e2e814ab04e443f1f95afcc4447fc8aad8e3b /services/java | |
parent | b6d3c1cecadb50263c2682a89f9f0b2936bfcd19 (diff) | |
download | frameworks_base-505329b21b743c6e74e0d1b14bea78a22f7b4145.zip frameworks_base-505329b21b743c6e74e0d1b14bea78a22f7b4145.tar.gz frameworks_base-505329b21b743c6e74e0d1b14bea78a22f7b4145.tar.bz2 |
Restore permission check in keyguard.
Fixes bug 11584685
Change-Id: I80621f5608505bdc365930e0276c297c0d5bff67
Diffstat (limited to 'services/java')
-rw-r--r-- | services/java/com/android/server/LockSettingsService.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/services/java/com/android/server/LockSettingsService.java b/services/java/com/android/server/LockSettingsService.java index cd746cf..35e7afa 100644 --- a/services/java/com/android/server/LockSettingsService.java +++ b/services/java/com/android/server/LockSettingsService.java @@ -154,11 +154,11 @@ public class LockSettingsService extends ILockSettings.Stub { } private final void checkWritePermission(int userId) { - mContext.checkCallingOrSelfPermission(PERMISSION); + mContext.enforceCallingOrSelfPermission(PERMISSION, "LockSettingsWrite"); } private final void checkPasswordReadPermission(int userId) { - mContext.checkCallingOrSelfPermission(PERMISSION); + mContext.enforceCallingOrSelfPermission(PERMISSION, "LockSettingsRead"); } private final void checkReadPermission(String requestedKey, int userId) { |