summaryrefslogtreecommitdiffstats
path: root/res
diff options
context:
space:
mode:
authorAdrian DC <radian.dc@gmail.com>2016-08-05 09:11:44 +0200
committerSteve Kondik <shade@chemlab.org>2016-08-11 10:25:49 -0700
commit830a8464a067c022227344c95738bfe9e53fc526 (patch)
tree6e9fd11ae1f158864315df75118f9811ab8613f8 /res
parentd47d2e4ff6972e262139f368a108ce8ac0b6577d (diff)
downloadpackages_apps_Settings-830a8464a067c022227344c95738bfe9e53fc526.zip
packages_apps_Settings-830a8464a067c022227344c95738bfe9e53fc526.tar.gz
packages_apps_Settings-830a8464a067c022227344c95738bfe9e53fc526.tar.bz2
Settings: Root appops access in developer settings
* Allow users to directly access the root app settings, as the feature is mostly unknown and often a reason for users to try using alternatives to CM root * Use the appops extra intent to link the su tab, introduced in I79d963ecbadc624dc45a398387a348691318b6be Change-Id: Ia5bc9d56fb11700b19d73336fad13c0a936091ff Signed-off-by: Adrian DC <radian.dc@gmail.com>
Diffstat (limited to 'res')
-rw-r--r--res/values/cm_strings.xml4
-rw-r--r--res/xml/development_prefs.xml5
2 files changed, 9 insertions, 0 deletions
diff --git a/res/values/cm_strings.xml b/res/values/cm_strings.xml
index d05ce40..7f7b290 100644
--- a/res/values/cm_strings.xml
+++ b/res/values/cm_strings.xml
@@ -41,6 +41,10 @@
<string name="root_access_adb">ADB only</string>
<string name="root_access_all">Apps and ADB</string>
+ <!-- Preference link for root appops -->
+ <string name="root_appops_title">Manage root accesses</string>
+ <string name="root_appops_summary">View and control the root rules</string>
+
<!-- NFC PreferenceCategory title -->
<string name="nfc_title_category">NFC</string>
diff --git a/res/xml/development_prefs.xml b/res/xml/development_prefs.xml
index a332ee5..c95cfb8 100644
--- a/res/xml/development_prefs.xml
+++ b/res/xml/development_prefs.xml
@@ -84,6 +84,11 @@
android:title="@string/root_access"
android:persistent="false" />
+ <Preference
+ android:key="root_appops"
+ android:title="@string/root_appops_title"
+ android:summary="@string/root_appops_summary" />
+
<SwitchPreference
android:key="update_recovery"
android:title="@string/update_recovery_title"