Expose removable property in EuiccService
This commit is contained in:
parent
14b1352b8a
commit
ac2d2415ab
|
@ -52,7 +52,8 @@ class OpenEuiccService : EuiccService() {
|
||||||
}
|
}
|
||||||
|
|
||||||
override fun onGetEuiccProfileInfoList(slotId: Int): GetEuiccProfileInfoListResult? {
|
override fun onGetEuiccProfileInfoList(slotId: Int): GetEuiccProfileInfoListResult? {
|
||||||
val profiles = (findChannel(slotId) ?: return null).lpa.profiles.filter {
|
val channel = findChannel(slotId) ?: return null
|
||||||
|
val profiles = channel.lpa.profiles.filter {
|
||||||
it.profileClass != LocalProfileInfo.Clazz.Testing
|
it.profileClass != LocalProfileInfo.Clazz.Testing
|
||||||
}.map {
|
}.map {
|
||||||
EuiccProfileInfo.Builder(it.iccidLittleEndian).apply {
|
EuiccProfileInfo.Builder(it.iccidLittleEndian).apply {
|
||||||
|
@ -75,8 +76,7 @@ class OpenEuiccService : EuiccService() {
|
||||||
}.build()
|
}.build()
|
||||||
}
|
}
|
||||||
|
|
||||||
// TODO: Does isRemovable matter? Will Android even query us for removable SIMs?
|
return GetEuiccProfileInfoListResult(RESULT_OK, profiles.toTypedArray(), channel.removable)
|
||||||
return GetEuiccProfileInfoListResult(RESULT_OK, profiles.toTypedArray(), false)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
override fun onGetEuiccInfo(slotId: Int): EuiccInfo {
|
override fun onGetEuiccInfo(slotId: Int): EuiccInfo {
|
||||||
|
|
Loading…
Reference in a new issue