AndroidManifest.xml中的android:exported属性

来源:互联网 发布:当前非涉密网络是 编辑:程序博客网 时间:2024/06/05 09:15

PermissionDenial: opening xxx ....  that is notexported from uid 10036

在AndroidManifest.xml 中 android:exported 属性:

这个属性用于指示该activity或Service是否能被其他程序应用组件调用或跟它交互;

取值为(true | false),如果设置成true,则能够被调用或交互,否则不能;

设置为false时,只有同一个应用程序的组件或带有相同用户ID的应用程序才能启动或绑定该服务。

添加到相应的activity或Service属性中;exported=”true”/ exported=”false” 。

0 0
原创粉丝点击