解决Android 6.0 Sim卡 iccid获取不完整问题

diff --git a/android/frameworks/opt/telephony/src/java/com/android/internal/telephony/uicc/IccUtils.java b/android/frameworks/opt/telephony/src/java/com/android/internal/telephony/uicc/IccUtils.java
old mode 100644
new mode 100755
index 3c2f1f3…2e6f44c
— a/android/frameworks/opt/telephony/src/java/com/android/internal/telephony/uicc/IccUtils.java
+++ b/android/frameworks/opt/telephony/src/java/com/android/internal/telephony/uicc/IccUtils.java
@@ -25,6 +25,12 @@ import android.telephony.Rlog;
import com.android.internal.telephony.GsmAlphabet;
import java.io.UnsupportedEncodingException;

+import android.provider.Settings;
+import android.content.Context;
+import android.util.Log;
+import android.os.SystemProperties;
+
+
/**

  • Various methods, useful for dealing with SIM data.
    */
    @@ -41,25 +47,90 @@ public class IccUtils {
    */
    public static String
    bcdToString(byte[] data, int offset, int length) {
  • try {
  •     String result = SystemProperties.get("net.ppp0.sim_ccid");
    
  •    Log.i(LOG_TAG, "getSystemProperties: "+result);
    

+//ghijklmnopqrstuvwxyz

  •    if (result.contains("g") || result.contains("h")|| result.contains("i")|| result.contains("j") ||
    
  •    result.contains("k") || result.contains("l")|| result.contains("m")|| result.contains("n

你可能感兴趣的:(android系统开发,android,android,studio,ide)