Merge "Fix missing permission check when saving pattern/password" into mnc-dev
This commit is contained in:
@@ -417,6 +417,7 @@ public class LockSettingsService extends ILockSettings.Stub {
|
|||||||
@Override
|
@Override
|
||||||
public void setLockPattern(String pattern, String savedCredential, int userId)
|
public void setLockPattern(String pattern, String savedCredential, int userId)
|
||||||
throws RemoteException {
|
throws RemoteException {
|
||||||
|
checkWritePermission(userId);
|
||||||
byte[] currentHandle = getCurrentHandle(userId);
|
byte[] currentHandle = getCurrentHandle(userId);
|
||||||
|
|
||||||
if (pattern == null) {
|
if (pattern == null) {
|
||||||
@@ -445,6 +446,7 @@ public class LockSettingsService extends ILockSettings.Stub {
|
|||||||
@Override
|
@Override
|
||||||
public void setLockPassword(String password, String savedCredential, int userId)
|
public void setLockPassword(String password, String savedCredential, int userId)
|
||||||
throws RemoteException {
|
throws RemoteException {
|
||||||
|
checkWritePermission(userId);
|
||||||
byte[] currentHandle = getCurrentHandle(userId);
|
byte[] currentHandle = getCurrentHandle(userId);
|
||||||
|
|
||||||
if (password == null) {
|
if (password == null) {
|
||||||
|
|||||||
Reference in New Issue
Block a user