0

I shared app's release sha-256 key and package name with eSim creating vendor, he added to profile metadata, but

fun checkCarrierPrivileges(): Boolean {
    val telephonyManager =
        context.getSystemService(Context.TELEPHONY_SERVICE) as TelephonyManager
    val isCarrier = telephonyManager.hasCarrierPrivileges()
    return if (isCarrier) {
        Log.i(EsimHandler.TAG_ESIM, context.getString(R.string.ready_carrier_privileges))
        true
    } else {
        Log.i(
            EsimHandler.TAG_ESIM,
            context.getString(R.string.no_carrier_privileges_detected)
        )
        false
    }
}

code returns false

when I have manualy added LPA code that vendor gave me to samsung S21, I saw metadata on Logcat, package name and SHA-256 is included in it

UPDATE: set up eSim was working on release mode, i have checked it using flutter run --release but after i published app to play store set up eSim is not working resultCode is EMBEDDED_SUBSCRIPTION_RESULT_ERROR and logCat says Caller does not have carrier privilege in metadata.

3
  • same error! help devs
    – FlipNovid
    Commented Jul 20, 2023 at 16:11
  • 1
    @FlipNovid do you have any news about it Commented Aug 29, 2023 at 12:50
  • hi @AbrorEsonov any luck from this?
    – Luc Le
    Commented Oct 31, 2023 at 3:29

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.