Application signing keys when doing OEM platform build

1,233 views
Skip to first unread message

Subodh Nijsure

unread,
Nov 9, 2013, 2:28:44 PM11/9/13
to android-...@googlegroups.com
[ Is there a mailing list related to OEM build ? ]

I am building ROM for a dedicated hardware platform which runs
Android. On this platform we run our applications and also we will
allow some third party partner applications to be installed (not via
google play).

I have signed applications before using the company keys etc. But I am
struggling to find location where I should copy these keys so all APKs
on our platforms are signed by company keys during the ASOP build
process?

I don't want to do kludge like find all apks and resign them post
build before system.img is packaged etc.

Also if I want our ROM to contain public keys for our partners where
should those keys be copied so they show up in the rom at proper
place.

-Subodh

dmitriy moskvitin

unread,
Nov 10, 2013, 8:37:20 AM11/10/13
to android-...@googlegroups.com

Glenn Kasten

unread,
Nov 10, 2013, 11:47:52 AM11/10/13
to android-...@googlegroups.com

Two lists for OEMs are android-porting and android-compatibility.
android-building is also helpful if you start from an AOSP-supported build target.

shridutt kothari

unread,
Nov 11, 2013, 4:57:56 AM11/11/13
to android-...@googlegroups.com
Hi Subodh,


On Sunday, November 10, 2013 12:58:44 AM UTC+5:30, Subodh Nijsure wrote:
[ Is there a mailing list related to OEM build ? ] 
I am building ROM for a dedicated hardware platform which runs
Android. On this platform we run our applications and also we will
allow some third party partner applications to be installed (not via
google play).

I have signed applications before using the company keys etc. But I am
struggling to find location where I should copy these keys so all APKs
on our platforms are signed by company keys during the ASOP build
process?
see  /build/target/product/security/README and create / replace your keys with AOSP keys at "/build/target/product/security/"

I don't want to do kludge like find all apks and resign them post
build before system.img is packaged etc.
And thus your all apps will be signed by appropriate keys at the time of AOSP build process.

Also if I want our ROM to contain public keys for our partners where
should those keys be copied so they show up in the rom at proper
place.
 keeping your keys in "/build/target/product/security/" will make it copied in ROM, as it is automatically done by some script probably /build/core/Makefile.
 there is some code like this:
	@echo "DumpPublicKey: $@ <= $(PRIVATE_OTA_PUBLIC_KEYS) $(extra_keys)"
	@rm -rf $@
	@mkdir -p $(dir $@)
which performs that.

-Subodh

Thanks,
Shridutt Kothari 
Impetus Infotech Ltd
Reply all
Reply to author
Forward
0 new messages