summaryrefslogtreecommitdiffstats
path: root/Android.mk
diff options
context:
space:
mode:
authorRoman Birg <roman@cyngn.com>2016-04-13 18:20:52 (GMT)
committerGerrit Code Review <gerrit@cyanogenmod.org>2016-04-18 20:12:21 (GMT)
commitbd7c086e34d7f976d2d5a4dc815cd66ef70bfe1f (patch)
tree43c1811572f01577bfd757ffb22757dd15f32376 /Android.mk
parent8c11bd83e1e450b25243e4b0826135d7dafad872 (diff)
downloadandroid_packages_apps_Trebuchet-bd7c086e34d7f976d2d5a4dc815cd66ef70bfe1f.zip
android_packages_apps_Trebuchet-bd7c086e34d7f976d2d5a4dc815cd66ef70bfe1f.tar.gz
android_packages_apps_Trebuchet-bd7c086e34d7f976d2d5a4dc815cd66ef70bfe1f.tar.bz2
Trebuchet: sign when not building with test keys
Ticket: CYNGNOS-2339 Change-Id: I1b05cda4757152d3851d917b4c9888b00203256b Signed-off-by: Roman Birg <roman@cyngn.com>
Diffstat (limited to 'Android.mk')
-rw-r--r--Android.mk6
1 files changed, 5 insertions, 1 deletions
diff --git a/Android.mk b/Android.mk
index ce21c35..5ef85b4 100644
--- a/Android.mk
+++ b/Android.mk
@@ -48,7 +48,11 @@ LOCAL_AAPT_FLAGS := \
#LOCAL_SDK_VERSION := current
LOCAL_PACKAGE_NAME := Trebuchet
LOCAL_PRIVILEGED_MODULE := true
-#LOCAL_CERTIFICATE := shared
+
+# Sign the package when not using test-keys
+ifneq ($(DEFAULT_SYSTEM_DEV_CERTIFICATE),build/target/product/security/testkey)
+LOCAL_CERTIFICATE := cyngn-app
+endif
LOCAL_AAPT_FLAGS += --rename-manifest-package com.cyanogenmod.trebuchet