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

你离开我真会死。 提交于 2021-02-05 08:10:28

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!