Home » Android » java – Android – Ipay88 got error Access denied finding property "ro.serialno"-Exceptionshub

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

Posted by: admin February 26, 2020 Leave a comment

Questions:

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?

How to&Answers:

The error is thrown 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. [Android link here|[https://developer.android.com/about/versions/pie/android-9.0-migration]]