Loading res/values/cm_strings.xml +3 −0 Original line number Diff line number Diff line Loading @@ -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> Loading res/xml/development_prefs.xml +11 −0 Original line number Diff line number Diff line Loading @@ -17,6 +17,17 @@ <PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android" xmlns:settings="http://schemas.android.com/apk/res/com.android.settings" 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" Loading src/com/android/settings/DevelopmentSettings.java +6 −0 Original line number Diff line number Diff line Loading @@ -217,6 +217,8 @@ public class DevelopmentSettings extends RestrictedSettingsFragment private static final String OTA_DISABLE_AUTOMATIC_UPDATE_KEY = "ota_disable_automatic_update"; 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; Loading Loading @@ -313,6 +315,7 @@ public class DevelopmentSettings extends RestrictedSettingsFragment private ListPreference mRootAccess; private Object mSelectedRootValue; private PreferenceScreen mDevelopmentTools; private final ArrayList<Preference> mAllPrefs = new ArrayList<Preference>(); Loading Loading @@ -527,6 +530,9 @@ public class DevelopmentSettings extends RestrictedSettingsFragment if (!removeRootOptionsIfRequired()) { mAllPrefs.add(mRootAccess); } mDevelopmentTools = (PreferenceScreen) findPreference(DEVELOPMENT_TOOLS); mAllPrefs.add(mDevelopmentTools); } private ListPreference addListPreference(String prefKey) { Loading Loading
res/values/cm_strings.xml +3 −0 Original line number Diff line number Diff line Loading @@ -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> Loading
res/xml/development_prefs.xml +11 −0 Original line number Diff line number Diff line Loading @@ -17,6 +17,17 @@ <PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android" xmlns:settings="http://schemas.android.com/apk/res/com.android.settings" 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" Loading
src/com/android/settings/DevelopmentSettings.java +6 −0 Original line number Diff line number Diff line Loading @@ -217,6 +217,8 @@ public class DevelopmentSettings extends RestrictedSettingsFragment private static final String OTA_DISABLE_AUTOMATIC_UPDATE_KEY = "ota_disable_automatic_update"; 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; Loading Loading @@ -313,6 +315,7 @@ public class DevelopmentSettings extends RestrictedSettingsFragment private ListPreference mRootAccess; private Object mSelectedRootValue; private PreferenceScreen mDevelopmentTools; private final ArrayList<Preference> mAllPrefs = new ArrayList<Preference>(); Loading Loading @@ -527,6 +530,9 @@ public class DevelopmentSettings extends RestrictedSettingsFragment if (!removeRootOptionsIfRequired()) { mAllPrefs.add(mRootAccess); } mDevelopmentTools = (PreferenceScreen) findPreference(DEVELOPMENT_TOOLS); mAllPrefs.add(mDevelopmentTools); } private ListPreference addListPreference(String prefKey) { Loading