From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 From: flawedworld <38294951+flawedworld@users.noreply.github.com> Date: Tue, 6 Apr 2021 01:15:32 +0100 Subject: [PATCH] add native debugging setting --- res/values/strings.xml | 3 + res/xml/security_dashboard_settings.xml | 6 + .../NativeDebugPreferenceController.java | 106 ++++++++++++++++++ .../settings/security/SecuritySettings.java | 1 + 4 files changed, 116 insertions(+) create mode 100644 src/com/android/settings/security/NativeDebugPreferenceController.java diff --git a/res/values/strings.xml b/res/values/strings.xml index 0db3572289..0d68efa6c9 100644 --- a/res/values/strings.xml +++ b/res/values/strings.xml @@ -13116,6 +13116,9 @@ Overrides the force-dark feature to be always-on + Enable native code debugging + Generate useful logs / bug reports from crashes and permit debugging native code. + Privacy diff --git a/res/xml/security_dashboard_settings.xml b/res/xml/security_dashboard_settings.xml index 25bead6622..d6754c0932 100644 --- a/res/xml/security_dashboard_settings.xml +++ b/res/xml/security_dashboard_settings.xml @@ -63,6 +63,12 @@ android:entries="@array/auto_reboot_entries" android:entryValues="@array/auto_reboot_values" /> + +