Merge "Dump the FUSE daemons stacks during ANRs" into rvc-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
076eb948c0
@@ -335,6 +335,8 @@ class StorageManagerService extends IStorageManager.Stub
|
|||||||
Manifest.permission.WRITE_EXTERNAL_STORAGE
|
Manifest.permission.WRITE_EXTERNAL_STORAGE
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@Nullable public static String sMediaStoreAuthorityProcessName;
|
||||||
|
|
||||||
private final AtomicFile mSettingsFile;
|
private final AtomicFile mSettingsFile;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -1840,6 +1842,7 @@ class StorageManagerService extends IStorageManager.Stub
|
|||||||
UserHandle.getUserId(UserHandle.USER_SYSTEM));
|
UserHandle.getUserId(UserHandle.USER_SYSTEM));
|
||||||
if (provider != null) {
|
if (provider != null) {
|
||||||
mMediaStoreAuthorityAppId = UserHandle.getAppId(provider.applicationInfo.uid);
|
mMediaStoreAuthorityAppId = UserHandle.getAppId(provider.applicationInfo.uid);
|
||||||
|
sMediaStoreAuthorityProcessName = provider.applicationInfo.processName;
|
||||||
}
|
}
|
||||||
|
|
||||||
provider = mPmInternal.resolveContentProvider(
|
provider = mPmInternal.resolveContentProvider(
|
||||||
|
|||||||
@@ -362,7 +362,8 @@ public class Watchdog extends Thread {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private static boolean isInterestingJavaProcess(String processName) {
|
private static boolean isInterestingJavaProcess(String processName) {
|
||||||
return processName.equals("com.android.phone");
|
return processName.equals(StorageManagerService.sMediaStoreAuthorityProcessName)
|
||||||
|
|| processName.equals("com.android.phone");
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user