Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 8e2f15a4 authored by Olivier Gaillard's avatar Olivier Gaillard Committed by Automerger Merge Worker
Browse files

Merge "Do not collect system daemons dumps for non-system apps as this is not...

Merge "Do not collect system daemons dumps for non-system apps as this is not likely to be useful." into udc-dev am: cebff4b5

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/21586259



Change-Id: I4007792d32a8cf3fad41c233c3429662db413cf6
Signed-off-by: default avatarAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
parents 16740e74 cebff4b5
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -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 };