问题
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?
回答1:
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]]
来源:https://stackoverflow.com/questions/60277516/android-ipay88-got-error-access-denied-finding-property-ro-serialno