I am building AOSP and I want to sign the build with my own key. There is some official doc about this process here.
But I wonder if I can simply turn around all of that process and instead do this things:
build/target/product/security
But this approach does not work. After burning the image, system apps (SystemUI, settings,..) will stop and continuously show the ANR dialog. I know this happens if system signature does not match with these apps's signature... but why?
Another question: Is using same key as shared.pk8
, media.pk8
, testkey.pk8
, ... causes any problem?
Thanks
One suggestion:
If you don't want to keep your private keys in source control together with the aosp code, you can define a path to them in your device mk:
PRODUCT_DEFAULT_DEV_CERTIFICATE := /home/my_user/release_keys_folder/releasekey
PRODUCT_VERITY_SIGNING_KEY := /home/my_user/release_keys_folder/verity
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With