我只是好奇是否有办法获得 platform.pk8 和 platform.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/