Android - Is there a way to get platform.pk8 and platform.x509.pem the rom signed with?

ε祈祈猫儿з 提交于 2021-02-07 13:01:14

问题


I was just curious if there is a way to get platform.pk8 and platform.x509.pem which are used to sign the rom inside the Android device.

My aim is no more than developing system applications for testing and using my self-owned devices on my desired purpose.


For those who are not familiar with creating system apks: signing an apk with system signature [WITHOUT ROOTING]


回答1:


No.

At least, not if the person building the ROM knows what they're doing.

From the docs (emphasis mine):

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.

If your device has an unlockable boot loader, you could build and flash your own ROM, using a key pair that you created yourself. That way, you'll have the platform private key to use for your system app.



来源:https://stackoverflow.com/questions/32135272/android-is-there-a-way-to-get-platform-pk8-and-platform-x509-pem-the-rom-signe

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!