Building an Android APK with same certificate as the system

后端 未结 1 1718
伪装坚强ぢ
伪装坚强ぢ 2021-01-07 13:59

I\'m trying to make a system app work. Here\'s what I have:

An OEM OMAP platform with full 4.4.2 source code. I\'ve built the system and loaded on my platform using

相关标签:
1条回答
  • 2021-01-07 14:20

    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.

    0 讨论(0)
提交回复
热议问题