Android - 有没有办法让 platform.pk8 和 platform.x509.pem 与 rom 签名?

标签 android x509certificate platform

我只是好奇是否有办法获得 platform.pk8platform.x509.pem 用于对 Android 设备内的 rom 进行签名。

我的目标只是开发系统应用程序来测试和使用我自己的设备来达到我想要的目的。


对于那些不熟悉创建系统 apk 的人: signing an apk with system signature [没有生根]

最佳答案

没有。

至少,如果构建 ROM 的人知道他们在做什么,则不会。

来自 the docs (强调我的):

Each key comes in two files: the certificate, which has the extension .x509.pem, and the private key, which has the extension .pk8. The private key should be kept secret and is needed to sign a package. The key may itself be protected by a password. The certificate, in contrast, contains only the public half of the key, so it can be distributed widely. It is used to verify a package has been signed by the corresponding private key.

如果您的设备有一个可解锁的引导加载程序,您可以使用您自己创建的 key 对构建和刷新您自己的 ROM。这样,您将拥有用于系统应用的平台私钥。

关于Android - 有没有办法让 platform.pk8 和 platform.x509.pem 与 rom 签名?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32135272/

相关文章:

android - 无法在 XML 文件中使用注释

android - 如何在 TextView 中制作所有 3 种类型的链接

c# - 我如何在 bouncyCaSTLe 中执行此操作(获取已安装的证书)?

java - 在 Java 中使用 StringTokenizer 分割路径 平台无关

product - 如何列出信任平台中的所有产品?

Android 作业调度程序不会在重启时保留

android - 试图理解 Bitmap.Config.ARBG_8888

X.509 安全 Web 服务的 Java 客户端

objective-c - 将 SecKeyRef 非对称 key 对作为证书保存到磁盘

python - platform.python_version_tuple() 的返回值是什么意思