- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我需要解析应用程序的 AndroidManifest.xml 以找出客户端应用程序需要拥有哪些权限才能与该应用程序通信。根据 android developer guidelines application标签和组件(Activity、Service、Provider、Receiver)标签的android:permission属性中提到的权限应该由客户端应用程序拥有。这种用法的一个示例(AndroidManifest.xml 摘录)是
<application android:permission="android.permission.INTERNET">
...
</application>
在上述示例中,客户端应用程序应拥有 android.permission.INTERNET 才能与该应用程序通信。
我的问题是,这个权限信息是在标签的属性中提到的。因此,我理解(我可能是错的)不可能拥有多个许可在这里提及。但是应用程序/组件很可能期望客户端应用程序/组件拥有不止一个这样的权限。例如,在上述情况下,应用程序可能期望客户端应用程序同时拥有 android.permission.INTERNET 和 android.permission.ACCESS_WIFI_STATE 权限。但似乎没有空间在 AndroidManifest.xml 中指定它。
请告诉我是否可以强制客户端应用程序拥有多个权限。
最佳答案
Hence I understand (I might be wrong) it is not possible to have more than one permission to be mentioned here
正确。
But there seems to be no room to specify this in the AndroidManifest.xml.
正确。
I have a requirement to parse the AndroidManifest.xml of an app to find out what permissions a client app need to possess in order to communicate with this app
从技术上讲,这是不可能的,因为应用可以在运行时检查权限(例如,通过 calling checkCallingPermission()
)。
关于android - android :permisson 中的多个权限,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18420994/
我需要解析应用程序的 AndroidManifest.xml 以找出客户端应用程序需要拥有哪些权限才能与该应用程序通信。根据 android developer guidelines applicat
我的系统是“win7”,我想删除文件“workspace”。 file.remove("c:\\workspace") # [1] FALSE # Warning message: # In file
我们有一个 Swing 应用程序,它通过 Java Web Start 下载并在本地机器上运行。但是在自动启动下载的 JNLP 文件后发生错误: Application Blocked by Secu
我写了一个程序,将一个名为a.exe的文件复制到C:/Windows/,然后用PyInstaller将它打包成exe,并将exe文件重命名为a.exe。当我运行 exe 文件时,它输出 IOError
我实际上在 MOSS 2007 项目中工作,我必须通过业务数据目录中的应用程序从外部数据源 (WebService) 导入数据。应用程序定义是使用 BDC Meta Man 创建的,并成功导入到业务数
问候各位修补匠! 我的问题是什么? 简而言之,用户 toto 不能“获得”一个 cronjob,即使权限看起来不错。更准确地说: $> kubectl get cronjob/test -n my_n
我是一名优秀的程序员,十分优秀!