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

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

My goal is nothing more than the development of system applications for testing and using my own devices for my desired purpose.


For those who are not familiar with the creation of the system apks: signing apk with the signature system [without turning]

+6
source share
1 answer

No.

At least if the person building the ROM knows what they are doing.

From the documents (my attention):

Each key comes in two files: a certificate that has the extension .x509.pem and a private key that has the extension .pk8. The private key must be kept secret and is required to sign the package. the key can itself be password protected. The certificate, in contrast, contains only the open half of the key, so this can be widely distributed. It is used to verify that the package has been signed with the corresponding private key.

If your device has an unlockable bootloader, you can create and run your own ROM using a pair of keys that you created yourself. Thus, you will have the private key of the platform for your system application.

+3
source

All Articles