面对Google报告的错误(Android 9):
Fatal Exception: java.lang.RuntimeException
Unable to start activity: java.lang.SecurityException: Permission Denial:
broadcast from android asks to run as user -1 but is calling from user 0; this
requires android.permission.INTERACT_ACROSS_USERS_FULL or
android.permission.INTERACT_ACROSS_USERS
无法重现,也找不到任何线索。
什么会导致这种情况?有什么帮助吗?
Thanks.
在您的清单中添加此 android:protectionLevel="signature" 。
欲了解更多详情,您可以查看许可元素 https://developer.android.com/guide/topics/manifest/permission-element.html
Like:
<permission android:name="android.permission.INTERACT_ACROSS_USERS_FULL" android:protectionLevel="signature"/>
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)