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

Commit 5cf2dde3 authored by Yorke Lee's avatar Yorke Lee
Browse files

Add ability to modify default dialer via ADB

Add hidden action to TelecomManager

Change-Id: I698c0154f438cdaf78926f12a261cbc0eb807cd0
parent 656eeb04
Loading
Loading
Loading
Loading
+10 −0
Original line number Diff line number Diff line
@@ -123,6 +123,16 @@ public class TelecomManager {
    public static final String ACTION_CHANGE_DEFAULT_DIALER =
            "android.telecom.action.CHANGE_DEFAULT_DIALER";

    /**
     * Privileged version of {@link #ACTION_CHANGE_DEFAULT_DIALER} that doesn't require
     * confirmation from the user via the dialog.
     *
     * Requires permission: {@link android.Manifest.permission#MODIFY_PHONE_STATE}
     * @hide
     */
    public static final String ACTION_CHANGE_DEFAULT_DIALER_PRIVILEGED =
            "android.telecom.action.CHANGE_DEFAULT_DIALER_PRIVILEGED";

    /**
     * Activity action: Opens the settings screen where a user can enable and disable which
     * {@link PhoneAccount}s are allows to make and receive calls. Because a user must