summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Jim Miller <jaggies@google.com> 2016-05-24 22:20:09 +0000
committer android-build-merger <android-build-merger@google.com> 2016-05-24 22:20:09 +0000
commitf950ec9b1adeea9eea2fa323164030cdae07ee26 (patch)
treea03248a9b8e6df6ca7c6cdc15aeef7977cac6963
parent7298186769395978045ed2d35252cdf7f644d85b (diff)
parent89e3f2ba98ea6d69b1846e996c4c279a9b20c4e9 (diff)
Merge "Fix missing permission check when saving pattern/password" into mnc-dev am: 45c77d951a am: 9bf8474c27
am: 89e3f2ba98 * commit '89e3f2ba98ea6d69b1846e996c4c279a9b20c4e9': Fix missing permission check when saving pattern/password Change-Id: Ice157c9ee86cf29380766d3ec266cb57594a5868
-rw-r--r--services/core/java/com/android/server/LockSettingsService.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/services/core/java/com/android/server/LockSettingsService.java b/services/core/java/com/android/server/LockSettingsService.java
index 45e7b5eb83d5..f1678d26e119 100644
--- a/services/core/java/com/android/server/LockSettingsService.java
+++ b/services/core/java/com/android/server/LockSettingsService.java
@@ -428,6 +428,7 @@ public class LockSettingsService extends ILockSettings.Stub {
@Override
public void setLockPattern(String pattern, String savedCredential, int userId)
throws RemoteException {
+ checkWritePermission(userId);
byte[] currentHandle = getCurrentHandle(userId);
if (pattern == null) {
@@ -456,6 +457,7 @@ public class LockSettingsService extends ILockSettings.Stub {
@Override
public void setLockPassword(String password, String savedCredential, int userId)
throws RemoteException {
+ checkWritePermission(userId);
byte[] currentHandle = getCurrentHandle(userId);
if (password == null) {