Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ea495f26 authored by Chirayu Desai's avatar Chirayu Desai Committed by Michael Bestas
Browse files

Settings: Launch the development tools

Change-Id: I0f798d197888ef7f40688009536040e061c410f4
parent 0d3a19a3
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -16,6 +16,9 @@
     limitations under the License.
-->
<resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
    <!-- Launch Dev Tools -->
    <string name="development_tools_title">Development tools</string>

    <!-- Whether the keyguard will directly show the password entry -->
    <string name="lock_directly_show_password">Directly show password entry</string>
    <string name="lock_directly_show_password_summary">Skip the swipe to unlock screen and immediately begin password entry</string>
@@ -38,5 +41,4 @@
    <string name="adb_over_network">ADB over network</string>
    <string name="adb_over_network_summary">Enable TCP/IP debugging over network interfaces (Wi\u2011Fi, USB networks). This setting is reset on reboot</string>
    <string name="adb_over_network_warning">WARNING: When ADB over network is enabled, your phone is open for intrusions on all connected networks!\n\nOnly use this feature when you are connected on trusted networks.\n\nDo you really want to enable this function?</string>

</resources>
+11 −0
Original line number Diff line number Diff line
@@ -18,6 +18,17 @@
        xmlns:settings="http://schemas.android.com/apk/res/com.android.settings"
        android:key="development_prefs_screen"
        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"
+7 −0
Original line number Diff line number Diff line
@@ -247,6 +247,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;

@@ -351,6 +353,8 @@ public class DevelopmentSettings extends RestrictedSettingsFragment

    private SwitchPreference mColorTemperaturePreference;

    private PreferenceScreen mDevelopmentTools;

    private final ArrayList<Preference> mAllPrefs = new ArrayList<>();

    private final ArrayList<SwitchPreference> mResetSwitchPrefs = new ArrayList<>();
@@ -601,6 +605,9 @@ public class DevelopmentSettings extends RestrictedSettingsFragment
            mColorTemperaturePreference = null;
        }

        mDevelopmentTools = (PreferenceScreen) findPreference(DEVELOPMENT_TOOLS);
        mAllPrefs.add(mDevelopmentTools);

        addDashboardCategoryPreferences();
    }