سؤال

In my Android ROM I've generated my own signing keys and also added an additional key (defined in system/external/sepolicy/keys.conf) that I would like to sign certain applications with. However, I don't know how to do just that? Everything seems to get signed with the Platform key by default, so not sure how to specify the key. Is this something I need to do in the makefile or post ROM build?

Thanks!

هل كانت مفيدة؟

المحلول

Solution turned out to be very simple. Simply specify the signing key in the Android.mk for the application by using the LOCAL_CERTIFICATE tag.

LOCAL_CERTIFICATE := my_key
مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top