summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRoman Birg <roman@cyngn.com>2016-04-13 18:20:52 (GMT)
committerRoman Birg <roman@cyngn.com>2016-04-18 20:16:31 (GMT)
commit8263f74d7223351740df7c9e1991b35490b6bdf0 (patch)
treeecdd1f3653f304d0e6e2156d0d21d4607f3c4bc8
parente9a3f71cad9a881233a1148c4897f958d81217e0 (diff)
downloadandroid_packages_apps_Trebuchet-8263f74d7223351740df7c9e1991b35490b6bdf0.zip
android_packages_apps_Trebuchet-8263f74d7223351740df7c9e1991b35490b6bdf0.tar.gz
android_packages_apps_Trebuchet-8263f74d7223351740df7c9e1991b35490b6bdf0.tar.bz2
Trebuchet: sign when not building with test keys
Ticket: CYNGNOS-2339 Change-Id: I1b05cda4757152d3851d917b4c9888b00203256b Signed-off-by: Roman Birg <roman@cyngn.com> (cherry picked from commit bd7c086e34d7f976d2d5a4dc815cd66ef70bfe1f)
-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