Merge "Bugreport Manager service clear binder identity"
This commit is contained in:
@@ -79,7 +79,12 @@ class BugreportManagerServiceImpl extends IDumpstate.Stub {
|
||||
Preconditions.checkNotNull(bugreportFd);
|
||||
Preconditions.checkNotNull(listener);
|
||||
validateBugreportMode(bugreportMode);
|
||||
ensureIsPrimaryUser();
|
||||
final long identity = Binder.clearCallingIdentity();
|
||||
try {
|
||||
ensureIsPrimaryUser();
|
||||
} finally {
|
||||
Binder.restoreCallingIdentity(identity);
|
||||
}
|
||||
|
||||
int callingUid = Binder.getCallingUid();
|
||||
mAppOps.checkPackage(callingUid, callingPackage);
|
||||
|
||||
Reference in New Issue
Block a user