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 124473edde..446fa056cd 100644 --- a/res/values/strings.xml +++ b/res/values/strings.xml @@ -742,6 +742,9 @@ Auto reboot Automatically reboot the device, if the phone hasn\'t been unlocked within the selected number of hours. + Enable native code debugging + Generate useful logs / bug reports from crashes and permit debugging native code. + Lock screen when trust is lost diff --git a/res/xml/security_dashboard_settings.xml b/res/xml/security_dashboard_settings.xml index d0aeb27fe5..61e2db495a 100644 --- a/res/xml/security_dashboard_settings.xml +++ b/res/xml/security_dashboard_settings.xml @@ -68,6 +68,12 @@ android:persistent="false" android:entries="@array/auto_reboot_entries" android:entryValues="@array/auto_reboot_values" /> + +