Do not collect system daemons dumps for non-system apps as this is not likely to be useful.
Change-Id: Ia22b6f36402509cd851861f00b136a2bc660c94f Bug: 254634348 Test: unit tests
This commit is contained in:
@@ -459,7 +459,10 @@ class ProcessErrorStateRecord {
|
||||
// don't dump native PIDs for background ANRs unless
|
||||
// it is the process of interest
|
||||
String[] nativeProcs = null;
|
||||
if (isSilentAnr || onlyDumpSelf) {
|
||||
boolean isSystemApp = mApp.info.isSystemApp() || mApp.info.isSystemExt();
|
||||
// Do not collect system daemons dumps as this is not likely to be useful
|
||||
// for non-system apps.
|
||||
if (!isSystemApp || isSilentAnr || onlyDumpSelf) {
|
||||
for (int i = 0; i < NATIVE_STACKS_OF_INTEREST.length; i++) {
|
||||
if (NATIVE_STACKS_OF_INTEREST[i].equals(mApp.processName)) {
|
||||
nativeProcs = new String[] { mApp.processName };
|
||||
|
||||
Reference in New Issue
Block a user