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

Commit 1908551c authored by Jason Chiu's avatar Jason Chiu Committed by Android (Google) Code Review
Browse files

Merge "[Safer intents] System" into main

parents 15ff73e8 d89fd594
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -152,7 +152,8 @@
        <Preference
            android:key="demo_mode"
            android:title="@string/demo_mode">
            <intent android:action="com.android.settings.action.DEMO_MODE" />
            <intent android:action="com.android.settings.action.DEMO_MODE"
                    android:targetPackage="com.android.systemui"/>
        </Preference>

        <Preference
+1 −1
Original line number Diff line number Diff line
@@ -195,7 +195,7 @@ public class GraphicsDriverEnableAngleAsSystemDriverController

    @VisibleForTesting
    void rebootDevice(Context context) {
        final Intent intent = new Intent(Intent.ACTION_REBOOT);
        final Intent intent = new Intent(Intent.ACTION_REBOOT).setPackage("android");
        context.startActivity(intent);
    }

+2 −1
Original line number Diff line number Diff line
@@ -181,7 +181,8 @@ public class SystemNavigationGestureSettings extends RadioButtonPickerFragment i

        if (KEY_SYSTEM_NAV_GESTURAL.equals(info.getKey())) {
            pref.setExtraWidgetOnClickListener((v) -> startActivity(new Intent(
                    GestureNavigationSettingsFragment.GESTURE_NAVIGATION_SETTINGS)));
                    GestureNavigationSettingsFragment.GESTURE_NAVIGATION_SETTINGS)
                    .setPackage(getContext().getPackageName())));
        }

        if ((KEY_SYSTEM_NAV_2BUTTONS.equals(info.getKey())