From c5ac15a3e11c03951e269b243674858411204b67 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Antonio=20Mari=CC=81n=20Cerezuela?= Date: Mon, 27 May 2013 11:36:36 +0200 Subject: Telephony API extension v2 Added new AndroidManifest permission: android.permission.READ_PRECISE_PHONE_STATE Added the following PhoneStateListeners and corresponding broadcast intents: onPreciseCallStateChanged(PreciseCallState callState); onPreciseDataConnectionStateChanged(PreciseDataConnectionState dataConnectionState); broadcastPreciseCallStateChanged(int ringingCallState, int foregroundCallState, int backgroundCallState, int disconnectCause, int preciseDisconnectCause) broadcastPreciseDataConnectionStateChanged(int state, int networkType, String apnType, String apn, String reason, LinkProperties linkProperties, String failCause) Added TelephonyManager intent actions with their extras and constants: public static final String ACTION_PRECISE_CALL_STATE_CHANGED = "android.intent.action.PRECISE_CALL_STATE"; public static final String ACTION_PRECISE_DATA_CONNECTION_STATE_CHANGED = "android.intent.action.PRECISE_DATA_CONNECTION_STATE_CHANGED"; public static final int PRECISE_CALL_STATE_* Moved public static final int DISCONNECT_CAUSE_* from PreciseCallState.java to a new class DisconnectCause.java Moved public static final int PRECISE_DISCONNECT_CAUSE_* from PreciseCallState.java to a new class PreciseDisconnectCause.java Change-Id: If3b88c679507c529b746046c4a17cf6d9974bd09 --- core/res/AndroidManifest.xml | 8 ++++++++ core/res/res/values/strings.xml | 8 ++++++++ 2 files changed, 16 insertions(+) (limited to 'core/res') diff --git a/core/res/AndroidManifest.xml b/core/res/AndroidManifest.xml index b198937..8355928 100644 --- a/core/res/AndroidManifest.xml +++ b/core/res/AndroidManifest.xml @@ -1088,6 +1088,14 @@ android:label="@string/permlab_readPhoneState" android:description="@string/permdesc_readPhoneState" /> + + + + read precise phone states + + Allows the app to access the precise + phone states. This permission allows the app to determine the real + call status, whether a call is active or in the background, call fails, + precise data connection status and data connection fails. + + prevent tablet from sleeping prevent phone from sleeping -- cgit v1.1