Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e0781332 authored by Rubin Xu's avatar Rubin Xu
Browse files

Add missing clearCallingIdentity

Bug: 30728557
Change-Id: Ie978b63cd60ae419d5e3171918badad3a89fcca0
parent fc1df068
Loading
Loading
Loading
Loading
+13 −8
Original line number Diff line number Diff line
@@ -860,6 +860,8 @@ public class TrustManagerService extends SystemService {
        @Override
        public void setDeviceLockedForUser(int userId, boolean locked) {
            enforceReportPermission();
            final long identity = Binder.clearCallingIdentity();
            try {
                if (mLockPatternUtils.isSeparateProfileChallengeEnabled(userId)) {
                    synchronized (mDeviceLockedForUser) {
                        mDeviceLockedForUser.put(userId, locked);
@@ -871,6 +873,9 @@ public class TrustManagerService extends SystemService {
                        }
                    }
                }
            } finally {
                Binder.restoreCallingIdentity(identity);
            }
        }

        @Override