summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--res/values/cm_strings.xml3
-rw-r--r--res/xml/development_prefs.xml11
-rw-r--r--src/com/android/settings/DevelopmentSettings.java6
3 files changed, 20 insertions, 0 deletions
diff --git a/res/values/cm_strings.xml b/res/values/cm_strings.xml
index 17c8213..085e686 100644
--- a/res/values/cm_strings.xml
+++ b/res/values/cm_strings.xml
@@ -25,6 +25,9 @@
<!-- [CHAR LIMIT=NONE] Device Info screen. Okay we get it, stop pressing, you already have it on -->
<string name="show_dev_already_cm">No need, you have already enabled development settings.</string>
+ <!-- Launch Dev Tools -->
+ <string name="development_tools_title">Development tools</string>
+
<!-- Setting checkbox title for root access -->
<string name="root_access">Root access</string>
<string name="root_access_warning_title">Allow root access?</string>
diff --git a/res/xml/development_prefs.xml b/res/xml/development_prefs.xml
index 22a6cbf..c69f9d5 100644
--- a/res/xml/development_prefs.xml
+++ b/res/xml/development_prefs.xml
@@ -16,6 +16,17 @@
<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android"
android:title="@string/development_settings_title">
+
+ <PreferenceScreen
+ android:key="development_tools"
+ android:title="@string/development_tools_title"
+ android:persistent="false" >
+ <intent
+ android:action="android.settings.development.LAUNCH_TOOLS"
+ android:targetPackage="com.android.development"
+ android:targetClass="com.android.development.Development" />
+ </PreferenceScreen>
+
<com.android.settings.BugreportPreference
android:key="bugreport"
android:title="@*android:string/bugreport_title"
diff --git a/src/com/android/settings/DevelopmentSettings.java b/src/com/android/settings/DevelopmentSettings.java
index 831da73..a84492e 100644
--- a/src/com/android/settings/DevelopmentSettings.java
+++ b/src/com/android/settings/DevelopmentSettings.java
@@ -174,6 +174,8 @@ public class DevelopmentSettings extends SettingsPreferenceFragment
private static final String TERMINAL_APP_PACKAGE = "com.android.terminal";
+ private static final String DEVELOPMENT_TOOLS = "development_tools";
+
private static final int RESULT_DEBUG_APP = 1000;
private static final int RESULT_MOCK_LOCATION_APP = 1001;
@@ -258,6 +260,7 @@ public class DevelopmentSettings extends SettingsPreferenceFragment
private ListPreference mRootAccess;
private Object mSelectedRootValue;
+ private PreferenceScreen mDevelopmentTools;
private final ArrayList<Preference> mAllPrefs = new ArrayList<Preference>();
@@ -420,6 +423,9 @@ public class DevelopmentSettings extends SettingsPreferenceFragment
if (!removeRootOptionsIfRequired()) {
mAllPrefs.add(mRootAccess);
}
+
+ mDevelopmentTools = (PreferenceScreen) findPreference(DEVELOPMENT_TOOLS);
+ mAllPrefs.add(mDevelopmentTools);
}
private ListPreference addListPreference(String prefKey) {