Merge "Clear binder id when determining external storage state" into mnc-dev
This commit is contained in:
@@ -2602,8 +2602,15 @@ class MountService extends IMountService.Stub
|
|||||||
boolean foundPrimary = false;
|
boolean foundPrimary = false;
|
||||||
|
|
||||||
final int userId = UserHandle.getUserId(uid);
|
final int userId = UserHandle.getUserId(uid);
|
||||||
final boolean reportUnmounted = !mMountServiceInternal.hasExternalStorage(
|
final boolean reportUnmounted;
|
||||||
uid, packageName);
|
|
||||||
|
final long identity = Binder.clearCallingIdentity();
|
||||||
|
try {
|
||||||
|
reportUnmounted = !mMountServiceInternal.hasExternalStorage(
|
||||||
|
uid, packageName);
|
||||||
|
} finally {
|
||||||
|
Binder.restoreCallingIdentity(identity);
|
||||||
|
}
|
||||||
|
|
||||||
synchronized (mLock) {
|
synchronized (mLock) {
|
||||||
for (int i = 0; i < mVolumes.size(); i++) {
|
for (int i = 0; i < mVolumes.size(); i++) {
|
||||||
|
|||||||
Reference in New Issue
Block a user