ソースを参照

refactor: [12/n] Remove hack for IMEI filler character

Peter Cai 2 年 前
コミット
b305e1a2d6

+ 1 - 3
libs/lpac-jni/src/main/java/net/typeblog/lpac_jni/impl/LocalProfileAssistantImpl.kt

@@ -38,9 +38,7 @@ class LocalProfileAssistantImpl(
     }
     }
 
 
     override fun downloadProfile(smdp: String, matchingId: String, imei: String, callback: ProfileDownloadCallback): Boolean {
     override fun downloadProfile(smdp: String, matchingId: String, imei: String, callback: ProfileDownloadCallback): Boolean {
-        // See SGP.22, check digit of IMEI needs a "F" filler
-        // TODO: Do this in lpac-jni or lpac itself?
-        return LpacJni.downloadProfile(contextHandle, smdp, matchingId, imei + "F", callback) == 0
+        return LpacJni.downloadProfile(contextHandle, smdp, matchingId, imei, callback) == 0
     }
     }
 
 
     override fun setNickname(iccid: String, nickname: String): Boolean {
     override fun setNickname(iccid: String, nickname: String): Boolean {

+ 1 - 1
libs/lpac-jni/src/main/jni/lpac

@@ -1 +1 @@
-Subproject commit 67b0ab857a37f92f8c73656fae9a11838aa9db43
+Subproject commit dd568c3e0ef6128e273582d92a355977de2bbeb2