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

Commit db0f0a4d authored by Chirayu Desai's avatar Chirayu Desai Committed by Arne Coucheron
Browse files

Developer Options: launch the Development app

Change-Id: I0f798d197888ef7f40688009536040e061c410f4
parent 05ba8d53
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -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>
+11 −0
Original line number Diff line number Diff line
@@ -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"
+6 −0
Original line number Diff line number Diff line
@@ -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;

@@ -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>();

@@ -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) {