diff options
author | Adnan Begovic <adnan@cyngn.com> | 2015-07-14 13:42:41 -0700 |
---|---|---|
committer | Adnan Begovic <adnan@cyngn.com> | 2015-07-14 13:42:41 -0700 |
commit | c9295fb9ccf13bee66e14277b82d793a773e7fab (patch) | |
tree | 7af505aec906b4caaf8d2cbedab55cc572396215 /cm/lib | |
parent | f9ec3a4da3b3c14b03df04e1ddc3b7a54fd7ea8a (diff) | |
download | vendor_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.java | 2 |
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 |