summaryrefslogtreecommitdiffstats
path: root/telephony
diff options
context:
space:
mode:
authorAmit Mahajan <amitmahajan@google.com>2014-07-24 17:32:37 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2014-07-24 15:35:58 +0000
commit0bf65d2d71d20d8e3e0bd24be4bd97bb208ef443 (patch)
treeca79b0a83c857909e39c14a92cf25f5eebe361ea /telephony
parentb59555ca743118c45103c0c11aedeefb8893f0f0 (diff)
parent3099c831441e861328cd4965011c854e060ce56a (diff)
downloadframeworks_base-0bf65d2d71d20d8e3e0bd24be4bd97bb208ef443.zip
frameworks_base-0bf65d2d71d20d8e3e0bd24be4bd97bb208ef443.tar.gz
frameworks_base-0bf65d2d71d20d8e3e0bd24be4bd97bb208ef443.tar.bz2
Merge "Add API invokeOemRilRequestRaw" into lmp-dev
Diffstat (limited to 'telephony')
-rw-r--r--telephony/java/android/telephony/TelephonyManager.java19
-rw-r--r--telephony/java/com/android/internal/telephony/ITelephony.aidl11
2 files changed, 30 insertions, 0 deletions
diff --git a/telephony/java/android/telephony/TelephonyManager.java b/telephony/java/android/telephony/TelephonyManager.java
index 39bbf72..35568cf 100644
--- a/telephony/java/android/telephony/TelephonyManager.java
+++ b/telephony/java/android/telephony/TelephonyManager.java
@@ -3322,4 +3322,23 @@ public class TelephonyManager {
}
return false;
}
+
+ /**
+ * 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
+ */
+ public int invokeOemRilRequestRaw(byte[] oemReq, byte[] oemResp) {
+ try {
+ return getITelephony().invokeOemRilRequestRaw(oemReq, oemResp);
+ } catch (RemoteException ex) {
+ } catch (NullPointerException ex) {
+ }
+ return -1;
+ }
}
diff --git a/telephony/java/com/android/internal/telephony/ITelephony.aidl b/telephony/java/com/android/internal/telephony/ITelephony.aidl
index 8c37e3d..886de40 100644
--- a/telephony/java/com/android/internal/telephony/ITelephony.aidl
+++ b/telephony/java/com/android/internal/telephony/ITelephony.aidl
@@ -737,5 +737,16 @@ interface ITelephony {
* @return true if the operation was executed correctly.
*/
boolean setOperatorBrandOverride(String iccId, String brand);
+
+ /**
+ * 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
+ */
+ int invokeOemRilRequestRaw(in byte[] oemReq, out byte[] oemResp);
}