java.lang.SecurityException: Not allowed to bind to service Intent

银联支付部分机型调起异常

E/AndroidRuntime: FATAL EXCEPTION: SEServiceHandlerThread
java.lang.SecurityException: Not allowed to bind to service Intent { act=org.simalliance.openmobileapi.service.ISmartcardService pkg=org.simalliance.openmobileapi.service }
at android.app.ContextImpl.bindServiceCommon(ContextImpl.java:1856)
at android.app.ContextImpl.bindService(ContextImpl.java:1820)
at android.content.ContextWrapper.bindService(ContextWrapper.java:539)
at org.simalliance.openmobileapi.SEService$SEServiceHandler.handleMessage(SEService.java:478)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:135)
at android.os.HandlerThread.run(HandlerThread.java:61)

解决方案添加该权限

<uses-permission android:name="org.simalliance.openmobileapi.SMARTCARD" />
最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容