aboutsummaryrefslogtreecommitdiffstats
path: root/cm/lib
diff options
context:
space:
mode:
authorAdnan Begovic <adnan@cyngn.com>2015-07-14 13:42:41 -0700
committerAdnan Begovic <adnan@cyngn.com>2015-07-14 13:42:41 -0700
commitc9295fb9ccf13bee66e14277b82d793a773e7fab (patch)
tree7af505aec906b4caaf8d2cbedab55cc572396215 /cm/lib
parentf9ec3a4da3b3c14b03df04e1ddc3b7a54fd7ea8a (diff)
downloadvendor_cmsdk-c9295fb9ccf13bee66e14277b82d793a773e7fab.zip
vendor_cmsdk-c9295fb9ccf13bee66e14277b82d793a773e7fab.tar.gz
vendor_cmsdk-c9295fb9ccf13bee66e14277b82d793a773e7fab.tar.bz2
cmsdk: Clear calling identity when resetAll is called.
Change-Id: Id39eb18165d12a792c141dc44840a122d509dece
Diffstat (limited to 'cm/lib')
-rw-r--r--cm/lib/main/java/org/cyanogenmod/platform/internal/ProfileManagerService.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/cm/lib/main/java/org/cyanogenmod/platform/internal/ProfileManagerService.java b/cm/lib/main/java/org/cyanogenmod/platform/internal/ProfileManagerService.java
index a533963..8b8bf4c 100644
--- a/cm/lib/main/java/org/cyanogenmod/platform/internal/ProfileManagerService.java
+++ b/cm/lib/main/java/org/cyanogenmod/platform/internal/ProfileManagerService.java
@@ -159,8 +159,10 @@ public class ProfileManagerService extends SystemService {
@Override
public void resetAll() {
+ long token = clearCallingIdentity();
enforceChangePermissions();
initialize(true);
+ restoreCallingIdentity(token);
}
@Override