summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGiulio Cervera <giulio.cervera@cyanogenmod.org>2013-02-20 17:25:14 +0100
committerGiulio Cervera <giulio.cervera@cyanogenmod.org>2013-02-20 17:25:17 +0100
commit1e7f0dffb8bf8db3cd0ead362e1a934885182200 (patch)
tree24b6b642e20a24433804e078ac7e3b0b34edd98a
parent95dbfaf134fcea7005a38d0e482e1c595d0050f9 (diff)
downloadframeworks_opt_telephony-1e7f0dffb8bf8db3cd0ead362e1a934885182200.zip
frameworks_opt_telephony-1e7f0dffb8bf8db3cd0ead362e1a934885182200.tar.gz
frameworks_opt_telephony-1e7f0dffb8bf8db3cd0ead362e1a934885182200.tar.bz2
QualcommSharedRIL: allow skipping pin/puk count
Change-Id: If2f046b7cfdec887fc9390a46c999c6acd763505
-rw-r--r--src/java/com/android/internal/telephony/QualcommSharedRIL.java10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/java/com/android/internal/telephony/QualcommSharedRIL.java b/src/java/com/android/internal/telephony/QualcommSharedRIL.java
index 16a912b..db22133 100644
--- a/src/java/com/android/internal/telephony/QualcommSharedRIL.java
+++ b/src/java/com/android/internal/telephony/QualcommSharedRIL.java
@@ -179,10 +179,12 @@ public class QualcommSharedRIL extends RIL implements CommandsInterface {
ca.pin1_replaced = p.readInt();
ca.pin1 = ca.PinStateFromRILInt(p.readInt());
ca.pin2 = ca.PinStateFromRILInt(p.readInt());
- p.readInt(); //remaining_count_pin1
- p.readInt(); //remaining_count_puk1
- p.readInt(); //remaining_count_pin2
- p.readInt(); //remaining_count_puk2
+ if (!needsOldRilFeature("skippinpukcount")) {
+ p.readInt(); //remaining_count_pin1
+ p.readInt(); //remaining_count_puk1
+ p.readInt(); //remaining_count_pin2
+ p.readInt(); //remaining_count_puk2
+ }
status.mApplications[i] = ca;
}
int appIndex = -1;