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

Commit 5e677425 authored by Filip Gruszczynski's avatar Filip Gruszczynski Committed by Android (Google) Code Review
Browse files

Merge "Allow specifying packages for which we don't report crashes and anrs."

parents b4f4dc4e 3a939da9
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -2417,4 +2417,8 @@
             2 - 1 snap target: 1:1
    -->
    <integer name="config_dockedStackDividerSnapMode">0</integer>

    <!-- List of comma separated package names for which we the system will not show crash, ANR,
         etc. dialogs. -->
    <string translatable="false" name="config_appsNotReportingCrashes"></string>
</resources>
+1 −0
Original line number Diff line number Diff line
@@ -575,6 +575,7 @@
  <java-symbol type="string" name="config_ntpServer" />
  <java-symbol type="string" name="config_useragentprofile_url" />
  <java-symbol type="string" name="config_wifi_p2p_device_type" />
  <java-symbol type="string" name="config_appsNotReportingCrashes" />
  <java-symbol type="string" name="contentServiceSync" />
  <java-symbol type="string" name="contentServiceSyncNotificationTitle" />
  <java-symbol type="string" name="contentServiceTooManyDeletesNotificationDesc" />
+11 −0
Original line number Diff line number Diff line
@@ -12252,6 +12252,17 @@ public final class ActivityManagerService extends ActivityManagerNative
                    com.android.internal.R.dimen.thumbnail_height);
            mDefaultPinnedStackBounds = Rect.unflattenFromString(res.getString(
                    com.android.internal.R.string.config_defaultPictureInPictureBounds));
            final String appsNotReportingCrashes = res.getString(
                    com.android.internal.R.string.config_appsNotReportingCrashes);
            if (appsNotReportingCrashes != null) {
                final String[] split = appsNotReportingCrashes.split(",");
                if (split.length > 0) {
                    mAppsNotReportingCrashes = new ArraySet<>();
                    for (int i = 0; i < split.length; i++) {
                        mAppsNotReportingCrashes.add(split[i]);
                    }
                }
            }
        }
    }