fix: simlink detect
This commit is contained in:
parent
fd40cdd6ad
commit
87f50b5487
1 changed files with 2 additions and 3 deletions
|
@ -2,11 +2,10 @@ package im.angry.openeuicc.vendored
|
|||
|
||||
import net.typeblog.lpac_jni.Version
|
||||
|
||||
private val prefix = Regex("^89044045(84|21)67274948\\d+") // SIMLink EID prefix
|
||||
private val prefix = Regex("^89044045(84|21)67274948") // SIMLink EID prefix
|
||||
|
||||
fun getSIMLinkVersion(eid: String, version: Version?): String? {
|
||||
if (version == null) return null
|
||||
if (!prefix.matches(eid)) return null
|
||||
if (version == null || prefix.find(eid, 0) == null) return null
|
||||
return when {
|
||||
// @formatter:off
|
||||
version >= Version(36, 7, 2) -> "v2"
|
||||
|
|
Loading…
Add table
Reference in a new issue