From 1c4514af8744d105bd769addd400d174853b3102 Mon Sep 17 00:00:00 2001 From: walter79 Date: Wed, 19 Feb 2014 21:04:50 +0100 Subject: [PATCH] fix signal and invalid AppType on legacy gsm http://review.evervolv.com/#/c/8552/ and http://review.evervolv.com/#/c/8551/ Tytung was the first which found this patches. And checked that only this 2 patches needed to fix gsm. http://androidforum.tytung.com/nexushd2-jellybean-cm10-2-t78-360.html#p2764 post: 377 --- src/java/com/android/internal/telephony/RIL.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/java/com/android/internal/telephony/RIL.java b/src/java/com/android/internal/telephony/RIL.java index 6859f520b0..59ec2e615a 100644 --- a/src/java/com/android/internal/telephony/RIL.java +++ b/src/java/com/android/internal/telephony/RIL.java @@ -3279,10 +3279,13 @@ public boolean needsOldRilFeature(String feature) { numApplications = IccCardStatus.CARD_MAX_APPS; } cardStatus.mApplications = new IccCardApplicationStatus[numApplications]; + oldRil = needsOldRilFeature("apptypesim"); for (int i = 0 ; i < numApplications ; i++) { appStatus = new IccCardApplicationStatus(); appStatus.app_type = appStatus.AppTypeFromRILInt(p.readInt()); + // Seems the simplest way so we dont mess up the parcel + if (oldRil) appStatus.app_type = appStatus.AppTypeFromRILInt(1); appStatus.app_state = appStatus.AppStateFromRILInt(p.readInt()); appStatus.perso_substate = appStatus.PersoSubstateFromRILInt(p.readInt()); appStatus.aid = p.readString();