Android Studio中的signatureOrSystem保护级别(signatureOrSystem protection level in Android Studio)

编程入门 行业动态 更新时间:2024-10-26 06:37:15
Android Studio中的signatureOrSystem保护级别(signatureOrSystem protection level in Android Studio)

我是Android Studio中的新手。 我想添加一个权限:

<uses-permission android:name="android.permission.CONTROL_LOCATION_UPDATES"/>

我面临的问题是显然我的应用程序是非系统应用程序。 我读到了系统和NON系统应用程序之间的差异。 但是我没有得到任何解决方案。 我的问题是:如何通过平台签名签署应用程序? 有人可以解释一下吗? 也许解释为什么我需要这样做? 我知道我的问题可能看起来很愚蠢,但正如我所提到的,我刚刚开始使用Android Studio,所以我在这方面都很新,我需要一些像这样的愚蠢事情的帮助。

I am pretty new in Android Studio. I am trying to add a permission:

<uses-permission android:name="android.permission.CONTROL_LOCATION_UPDATES"/>

The problem I am facing is that apparently my app is NON system app. I read about the differences between system and NON system apps. However I didn't get to any solution. My question is: How to sign an app by platform signature? Can anyone explain that please? And maybe explain why do I need to do that? I know that my question might look very silly, but as I mentioned, I just started to use Android Studio so I am pretty new in all that and I need some help with silly things like this one.

最满意答案

我的问题是:如何通过平台签名签署应用程序?

构建自己的自定义Android ROM。 您将对该平台进行签名,然后您可以使用相同的签名密钥对您的应用进行签名。 当然,只有当您的应用程序在运行自定义ROM的设备上运行时,才会获得此权限。

也许解释为什么我需要这样做?

因为您尝试使用signature级别权限来控制操作系统。 大约有50,000名Android开发人员需要这样做,并且通常只与创建自己的自定义Android ROM一起使用。

IOW,引用此权限的文档 :“不供第三方应用程序使用”。

My question is: How to sign an app by platform signature?

Build your own custom Android ROM. You will sign that platform, and you can then sign your app with the same signing key. Of course, you will only get this permission when your app is running on devices that, in turn, are running your custom ROM.

And maybe explain why do I need to do that?

Because you are trying to use a signature-level permission to control the OS. Approximately 1 in 50,000 Android developers need to do this, and usually only in conjunction with creating their own custom Android ROM.

IOW, to quote the documentation for this permission: "Not for use by third-party applications".

更多推荐

本文发布于:2023-04-27 14:09:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1327212.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:级别   Studio   Android   signatureOrSystem   level

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!