Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 985a272e authored by Amit Mahajan's avatar Amit Mahajan Committed by Android Git Automerger
Browse files

am 929867ba: am 8d569bbf: Merge "Add API invokeOemRilRequestRaw" into lmp-dev

* commit '929867ba487deb63de862b0fe51077c5beeab063':
  Add API invokeOemRilRequestRaw
parents ca0c744b 615cb601
Loading
Loading
Loading
Loading
+19 −0
Original line number Diff line number Diff line
@@ -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;
    }
}
+11 −0
Original line number Diff line number Diff line
@@ -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);
}