Android权限安全(5)组件的android:exported属性
2024-10-07 23:58:10
Android四大组件都有 android:exported 属性
android:exported="true" 时 表示该组件是公开的,其它组件可以访问这个组件
android:exported="false" 时表示该组件是私有的,只有自己或有相关权限的其它组件可以访问
<application
android:allowBackup="true"
android:icon="@drawable/ic_launcher"
android:label="@string/app_name"
android:theme="@style/AppTheme" >
<activity
android:name=".MainActivity"
android:exported="false"
android:label="@string/app_name" >
<intent-filter>
<action android:name="android.intent.action.MAIN" /> <category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
</application>
它的默认值;
组件在mainifest.xml中定义时,如果没有 <intent-filter> 那么就是 true
最新文章
- 如何将本地的jar包上传到maven本地仓库中
- Linux的学习日记
- Exception in thread ";main"; java.lang.UnsupportedClassVersionError: org/apache/maven/cli/MavenCli :
- oracle_空值判断
- sp_get_menu函数使用分析
- django 添加动态表格的方法
- Ubuntu Linux上安装配置Mysql
- [unity菜鸟] 笔记1 —— 函数篇
- Error occured processing XML &;#39;Cannot find class [springmvc.extention.BeanArgumentResolver]&;#39;.
- Leetcode 176. Second Highest Salary
- Nodejs之package.json介绍说明
- Eclipse目录实解
- linux 下nginx 集群CAS单点登录实现
- SDOI2014 R1做题笔记
- 在使用 Spring Boot 和 MyBatis 动态切换数据源时遇到的问题以及解决方法
- 把项目运行到本地环境及mysql配置
- asp.net mvc接收安卓post的json字符串
- flask小例
- Solidity数组
- 【Coursera】Fourth Week(1)