Compare commits
1 commit
24ff369911
...
038d924a99
Author | SHA1 | Date | |
---|---|---|---|
038d924a99 |
1 changed files with 3 additions and 3 deletions
|
@ -2,10 +2,11 @@ package net.typeblog.lpac_jni
|
|||
|
||||
import android.util.Patterns
|
||||
|
||||
// example address in GSMA SGP.26, some chips use addresses like this
|
||||
@Suppress("SpellCheckingInspection")
|
||||
val invalidDPAddresses = setOf(
|
||||
"testrootsmds.example.com",
|
||||
"testrootsmds.gsma.com",
|
||||
"testrootsmds.example.com",
|
||||
)
|
||||
|
||||
class EuiccConfiguredAddresses(defaultDPAddress: String?, rootDSAddress: String?) {
|
||||
|
@ -24,6 +25,5 @@ private fun isInvalidDPAddress(address: String?): Boolean {
|
|||
private fun isInvalidDSAddress(address: String?): Boolean {
|
||||
if (address.isNullOrBlank()) return true
|
||||
if (address in invalidDPAddresses) return true
|
||||
if (Patterns.DOMAIN_NAME.matcher(address).matches()) return false
|
||||
return false
|
||||
return !Patterns.DOMAIN_NAME.matcher(address).matches()
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue