Skip to content

Commit

Permalink
star: Support additional SIM state change unsol
Browse files Browse the repository at this point in the history
And adjust replies according to version
  • Loading branch information
rmcc committed Nov 5, 2012
1 parent 4c69fc1 commit f89725c
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions ril/telephony/java/com/android/internal/telephony/LGEInfineon.java
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ public void onCallStateChanged(int state, String incomingNumber) {

protected int mCallState = TelephonyManager.CALL_STATE_IDLE;

static final int RIL_REQUEST_HANG_UP_CALL = 182;
private int RIL_REQUEST_HANG_UP_CALL = 182;

@Override
public void
Expand All @@ -73,6 +73,7 @@ private static byte[] hexStringToByteArray(String s) {
}

static final int RIL_UNSOL_LGE_SIM_STATE_CHANGED = 1060;
static final int RIL_UNSOL_LGE_SIM_STATE_CHANGED_NEW = 1061;

@Override
protected void
Expand All @@ -83,7 +84,9 @@ private static byte[] hexStringToByteArray(String s) {

switch(response) {
case RIL_UNSOL_ON_USSD: ret = responseStrings(p); break;
case RIL_UNSOL_LGE_SIM_STATE_CHANGED: ret = responseVoid(p); break;
case 1080: ret = responseVoid(p); break; // RIL_UNSOL_LGE_FACTORY_READY
case RIL_UNSOL_LGE_SIM_STATE_CHANGED:
case RIL_UNSOL_LGE_SIM_STATE_CHANGED_NEW: ret = responseVoid(p); break;
default:
// Rewind the Parcel
p.setDataPosition(dataPosition);
Expand Down Expand Up @@ -114,7 +117,12 @@ private static byte[] hexStringToByteArray(String s) {
new AsyncResult (null, resp, null));
}
break;
case 1080: // RIL_UNSOL_LGE_FACTORY_READY (NG)
/* Adjust request IDs */
RIL_REQUEST_HANG_UP_CALL = 206;
break;
case RIL_UNSOL_LGE_SIM_STATE_CHANGED:
case RIL_UNSOL_LGE_SIM_STATE_CHANGED_NEW:
if (RILJ_LOGD) unsljLog(response);

if (mIccStatusChangedRegistrants != null) {
Expand Down

0 comments on commit f89725c

Please sign in to comment.