diff options
| author | Andrew Sapperstein <asapperstein@google.com> | 2017-12-20 15:17:33 -0800 |
|---|---|---|
| committer | Andrew Sapperstein <asapperstein@google.com> | 2018-01-17 15:44:33 -0800 |
| commit | 43643aeed151da5c92817298a04b2b32c3aba338 (patch) | |
| tree | edf6cee4e2acc073ef0d2b8b7156960f5f8690fa /core/java | |
| parent | 6ca845ae0bf9ecd15ef5dc92a87fb8a99af18449 (diff) | |
Ignore first crash dialog.
By default, no longer show the crash dialog the first time an app
crashes. Instead, only multiple crashes will show by default.
Add Settings.Global and Settings.Secure flags to toggle this behavior.
Settings.Secure value is controlled via a setting in developer options.
Ensure Settings.Secure is backed up but Global value is not.
Bug: 63703353, 70640329
Test: SettingsBackupTest, manual crashing with a test app
Change-Id: Ib0a66cabdf60aad5e60eded9bfb96e3126bf032f
Diffstat (limited to 'core/java')
| -rw-r--r-- | core/java/android/provider/Settings.java | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/core/java/android/provider/Settings.java b/core/java/android/provider/Settings.java index 24e56c0598b2..396c897c7047 100644 --- a/core/java/android/provider/Settings.java +++ b/core/java/android/provider/Settings.java @@ -6562,6 +6562,14 @@ public final class Settings { public static final String ANR_SHOW_BACKGROUND = "anr_show_background"; /** + * If nonzero, crashes in foreground processes will bring up a dialog. + * Otherwise, the process will be silently killed. + * @hide + */ + public static final String SHOW_FIRST_CRASH_DIALOG_DEV_OPTION = + "show_first_crash_dialog_dev_option"; + + /** * The {@link ComponentName} string of the service to be used as the voice recognition * service. * @@ -7398,6 +7406,7 @@ public final class Settings { SCREENSAVER_ACTIVATE_ON_DOCK, SCREENSAVER_ACTIVATE_ON_SLEEP, LOCKDOWN_IN_POWER_MENU, + SHOW_FIRST_CRASH_DIALOG_DEV_OPTION, }; /** @hide */ @@ -11316,6 +11325,13 @@ public final class Settings { */ public static final String ENABLE_SMART_REPLIES_IN_NOTIFICATIONS = "enable_smart_replies_in_notifications"; + + /** + * If nonzero, crashes in foreground processes will bring up a dialog. + * Otherwise, the process will be silently killed. + * @hide + */ + public static final String SHOW_FIRST_CRASH_DIALOG = "show_first_crash_dialog"; } /** |
