Remove the OEM hook implementation and usage
Vendors and OEMs shall use HIDL extension going forward to send OEM specific message Test: Basic Telephony Sanity Bug: 34344851 Change-Id: I977004cf49f9c61b434dc2ded2effa29ace0f603
This commit is contained in:
@@ -203,16 +203,6 @@ public class PhoneStateListener {
|
||||
*/
|
||||
public static final int LISTEN_VOLTE_STATE = 0x00004000;
|
||||
|
||||
/**
|
||||
* Listen for OEM hook raw event
|
||||
*
|
||||
* @see #onOemHookRawEvent
|
||||
* @hide
|
||||
* @deprecated OEM needs a vendor-extension hal and their apps should use that instead
|
||||
*/
|
||||
@Deprecated
|
||||
public static final int LISTEN_OEM_HOOK_RAW_EVENT = 0x00008000;
|
||||
|
||||
/**
|
||||
* Listen for carrier network changes indicated by a carrier app.
|
||||
*
|
||||
@@ -359,9 +349,6 @@ public class PhoneStateListener {
|
||||
case LISTEN_DATA_ACTIVATION_STATE:
|
||||
PhoneStateListener.this.onDataActivationStateChanged((int)msg.obj);
|
||||
break;
|
||||
case LISTEN_OEM_HOOK_RAW_EVENT:
|
||||
PhoneStateListener.this.onOemHookRawEvent((byte[])msg.obj);
|
||||
break;
|
||||
case LISTEN_CARRIER_NETWORK_CHANGE:
|
||||
PhoneStateListener.this.onCarrierNetworkChange((boolean)msg.obj);
|
||||
break;
|
||||
@@ -555,16 +542,6 @@ public class PhoneStateListener {
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* Callback invoked when OEM hook raw event is received. Requires
|
||||
* the READ_PRIVILEGED_PHONE_STATE permission.
|
||||
* @param rawData is the byte array of the OEM hook raw data.
|
||||
* @hide
|
||||
*/
|
||||
public void onOemHookRawEvent(byte[] rawData) {
|
||||
// default implementation empty
|
||||
}
|
||||
|
||||
/**
|
||||
* Callback invoked when telephony has received notice from a carrier
|
||||
* app that a network action that could result in connectivity loss
|
||||
@@ -677,10 +654,6 @@ public class PhoneStateListener {
|
||||
send(LISTEN_DATA_ACTIVATION_STATE, 0, 0, activationState);
|
||||
}
|
||||
|
||||
public void onOemHookRawEvent(byte[] rawData) {
|
||||
send(LISTEN_OEM_HOOK_RAW_EVENT, 0, 0, rawData);
|
||||
}
|
||||
|
||||
public void onCarrierNetworkChange(boolean active) {
|
||||
send(LISTEN_CARRIER_NETWORK_CHANGE, 0, 0, active);
|
||||
}
|
||||
|
||||
@@ -5634,29 +5634,6 @@ public class TelephonyManager {
|
||||
return retVal;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the result and response from RIL for oem request
|
||||
*
|
||||
* @param oemReq the data is sent to ril.
|
||||
* @param oemResp the respose data from RIL.
|
||||
* @return negative value request was not handled or get error
|
||||
* 0 request was handled succesfully, but no response data
|
||||
* positive value success, data length of response
|
||||
* @hide
|
||||
* @deprecated OEM needs a vendor-extension hal and their apps should use that instead
|
||||
*/
|
||||
@Deprecated
|
||||
public int invokeOemRilRequestRaw(byte[] oemReq, byte[] oemResp) {
|
||||
try {
|
||||
ITelephony telephony = getITelephony();
|
||||
if (telephony != null)
|
||||
return telephony.invokeOemRilRequestRaw(oemReq, oemResp);
|
||||
} catch (RemoteException ex) {
|
||||
} catch (NullPointerException ex) {
|
||||
}
|
||||
return -1;
|
||||
}
|
||||
|
||||
/** @hide */
|
||||
@SystemApi
|
||||
@RequiresPermission(android.Manifest.permission.MODIFY_PHONE_STATE)
|
||||
|
||||
Reference in New Issue
Block a user