Android - Ipay88 got error Access denied finding property "ro.serialno"

30,853

The error is thrown later or on Android 9 devices. when we try to access Serial number of device, without application having READ_PHONE_STATE permission.

The error is thrown when serial number is read using reflection.

Apps needing the Build.serial identifier must now request the READ_PHONE_STATE permission and then use the new Build.getSerial() method added in Android 9.

Migrating Apps to Android 9

Share:
30,853
Admin
Author by

Admin

Updated on August 06, 2021

Comments

  • Admin
    Admin almost 3 years

    hello i tried to implement IPayPayment on Android,

    val checkoutIntent = Ipay.getInstance().checkout(payment,applicationContext, ResultDelegate())
    checkoutIntent.flags = Intent.FLAG_ACTIVITY_NEW_TASK
    startActivity(checkoutIntent)
    

    but i got error

    libc: Access denied finding property "ro.serialno"
    

    any solution?

  • Admin
    Admin over 4 years
    hmm i've added permission for READ_PHONE_STATE, but still same :(
  • Rahul Patil
    Rahul Patil over 4 years
    is the permission granted ?
  • Admin
    Admin over 4 years
    yup, but still same but i already solved, cause the error is deprecated read deviceId, Android O cant getDeviceId, so i change to getImei