Commit b7a0e214 authored by Ricardo Cerqueira's avatar Ricardo Cerqueira
Browse files

ril: Convert the qualcomm card-swap states into standard ones

parent 9308180c
......@@ -162,7 +162,14 @@ public class LgeLteRIL extends RIL implements CommandsInterface {
IccCardApplicationStatus ca;
IccCardStatus status = new IccCardStatus();
status.setCardState(p.readInt());
int cardState = p.readInt();
/* Standard stack doesn't recognize REMOVED and SIM_DETECT_INSERTED,
* so convert them to ABSENT and PRESENT to trigger the hot-swapping
* check */
if (cardState > 2) {
cardState -= 3;
}
status.setCardState(cardState);
status.setUniversalPinState(p.readInt());
status.mGsmUmtsSubscriptionAppIndex = p.readInt();
status.mCdmaSubscriptionAppIndex = p.readInt();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment