From decf995c5956e6f64f858d1c4e51a3f3b9829a51 Mon Sep 17 00:00:00 2001 From: Doug Zongker Date: Tue, 15 Dec 2009 17:27:49 -0800 Subject: [PATCH] map -e with no cert to PRESIGNED Needed for backwards compatibility with scripts that use -e. --- tools/releasetools/sign_target_files_apks | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tools/releasetools/sign_target_files_apks b/tools/releasetools/sign_target_files_apks index 4ec9347099..91e03f454a 100755 --- a/tools/releasetools/sign_target_files_apks +++ b/tools/releasetools/sign_target_files_apks @@ -91,6 +91,8 @@ def GetApkCerts(tf_zip): # apply all the -e options, overriding anything in the file for apk, cert in OPTIONS.extra_apks.iteritems(): + if not cert: + cert = "PRESIGNED" certmap[apk] = OPTIONS.key_map.get(cert, cert) return certmap