Add ability to modify default dialer via ADB

Add hidden action to TelecomManager

Change-Id: I698c0154f438cdaf78926f12a261cbc0eb807cd0
This commit is contained in:
Yorke Lee
2015-05-29 14:56:32 -07:00
parent 656eeb0402
commit 5cf2dde3f7

View File

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