Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Telephony: Added STK proactive commands support for emulator

  • Loading branch information...
commit 9bb3a12da69633cfdb0857909e06bd94dc5d8766 1 parent ce59463
Siddartha Pothapragada authored
Showing with 17 additions and 0 deletions.
  1. +17 −0 reference-ril/reference-ril.c
View
17 reference-ril/reference-ril.c
@@ -2253,6 +2253,23 @@ static void onUnsolicited (const char *s, const char *sms_pdu)
#ifdef WORKAROUND_FAKE_CGEV
RIL_requestTimedCallback (onDataCallListChanged, NULL, NULL); //TODO use new function
#endif /* WORKAROUND_FAKE_CGEV */
+ } else if(strStartsWith(s,"+CUSATP:")) {
+ char *pStkPdu = 0;
+ line = strdup(s);
+ err = at_tok_start(&line);
+ if (err < 0) {
+ LOGE("Error %d \t %s\n ", err, line);
+ }
+ err = at_tok_nextstr(&line, &pStkPdu);
+ if (err < 0) {
+ LOGE("Error: %d \t %s\n ", err, line);
+ }
+ ALOGI("STK Command PDU : %s \n", pStkPdu);
+ if(NULL != pStkPdu) {
+ RIL_onUnsolicitedResponse (RIL_UNSOL_STK_PROACTIVE_COMMAND,
+ pStkPdu, strlen(pStkPdu));
+ }
+ free(line);
} else if (strStartsWith(s,"+CREG:")
|| strStartsWith(s,"+CGREG:")
) {
Please sign in to comment.
Something went wrong with that request. Please try again.