diff options
author | Yorke Lee <yorkelee@google.com> | 2015-05-29 14:56:32 -0700 |
---|---|---|
committer | Yorke Lee <yorkelee@google.com> | 2015-05-29 14:56:32 -0700 |
commit | 5cf2dde3f7b2003fa832f0657b8b675ce84d77f7 (patch) | |
tree | 38aa37cc1293f4af1b5d44e1201c22806ea5e4bf /telecomm/java/android | |
parent | 656eeb0402179077f55ed1ba2accb292e0653e76 (diff) | |
download | frameworks_base-5cf2dde3f7b2003fa832f0657b8b675ce84d77f7.zip frameworks_base-5cf2dde3f7b2003fa832f0657b8b675ce84d77f7.tar.gz frameworks_base-5cf2dde3f7b2003fa832f0657b8b675ce84d77f7.tar.bz2 |
Add ability to modify default dialer via ADB
Add hidden action to TelecomManager
Change-Id: I698c0154f438cdaf78926f12a261cbc0eb807cd0
Diffstat (limited to 'telecomm/java/android')
-rw-r--r-- | telecomm/java/android/telecom/TelecomManager.java | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/telecomm/java/android/telecom/TelecomManager.java b/telecomm/java/android/telecom/TelecomManager.java index 4cf741d..07176b3 100644 --- a/telecomm/java/android/telecom/TelecomManager.java +++ b/telecomm/java/android/telecom/TelecomManager.java @@ -124,6 +124,16 @@ public class TelecomManager { "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 * explicitly enable an account before the system will use it, an app may want to send the |