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:
- Delete default android test-keys which are located at
build/target/product/security
- put my keys (which are generated using official instructions at here) in that folder with same names. (Assume one key for all of shared,media,...)
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