获取及QUOT;签名" permissionlevel在Android [英] Acquire "signature" permissionlevel on Android

查看:303
本文介绍了获取及QUOT;签名" permissionlevel在Android的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我建立一个Android应用程序,我需要许可的一​​个定义是:

I'm building an Android app, and one of the permission I need is defined as:

android:protectionLevel="signature|system|development"

我如何得到签名的保护水平?我需要以某种方式签署我的应用程序?

How do I get the signature protection level? Do I need to sign my application somehow?

我需要与OEM签合同如何? (三星\\ HTC \\ LG)?

Do I need to sign it with OEM ? (Samsung\HTC\LG)?

推荐答案

签名意味着,要能够获得对资源的访问,您的应用程序必须与签署同样的证书许可的持有人。如果这不是你的应用程序你试图连接到,那么你基本上是出于运气。如果是这样的系统之一,那么你的运气甚至更多,这是记录在这里的

signature means that to be able to get access to the resource, your app have to be signed with the same certificate that the holder of the permission. If this is not your app you are trying to connect to, then you basically are out of luck. If that's system one then you are out of luck even more, This is documented here:

签名

一个权限只有系统补助,如果
  请求应用程序与相同的证书签署
  应用程序中声明的权限。如果证书匹配,
  系统自动授予的权限,并且不通知
  用户或者询问用户的明确同意。

A permission that the system grants only if the requesting application is signed with the same certificate as the application that declared the permission. If the certificates match, the system automatically grants the permission without notifying the user or asking for the user's explicit approval.

修改

我试着通过我的程序读取logcat的文件。这需要
  允许android.permission.READ_LOGS

Im trying to read logcat file through my application. this requires the permission android.permission.READ_LOGS

您不能访问不是由您的应用程序创建的股票ROM上的日志。这是引进出于安全考虑,所以就没有意义了,让你得到它只是因为你需要它。如果你建立自己的ROM,那么你就可以拥有它,但你应该已经知道这一点。

You cannot access logs on stock ROM that are not created by your application. That's introduced for security reasons, so would not make sense to let you get it just because you need it. If you build own ROM, then you can have it, but then you should know this already.

这篇关于获取及QUOT;签名" permissionlevel在Android的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆