am 8b6d5b6b: Merge "Clear binder id when determining external storage state" into mnc-dev
* commit '8b6d5b6b6ac3c363ad7aa36873dec1701d33de1e': Clear binder id when determining external storage state
This commit is contained in:
@@ -2659,8 +2659,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;
|
||||||
|
|
||||||
|
final long identity = Binder.clearCallingIdentity();
|
||||||
|
try {
|
||||||
|
reportUnmounted = !mMountServiceInternal.hasExternalStorage(
|
||||||
uid, packageName);
|
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