Building an Android APK with same certificate as the system

僤鯓⒐⒋嵵緔 提交于 2019-12-01 01:54:26
Burak Day

Check signing system apk.

Optionally:

You need to create a keystore file by using keytool-importkeypair which you can find here.

Go into the: build/target/product/security/ directory in your platform source tree (source codes related to your Android version and vendor).

You will find platform.pk8 and platform.x509.pem files.

Create keystore file by using this example command:

keytool-importkeypair -k ~/.android/debug.keystore -p android -pk8 platform.pk8 -cert platform.x509.pem -alias platform

You can use this keystore file to sign your apk which will have system permissions afterwards.

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