summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRoman Birg <roman@cyngn.com>2016-07-25 17:32:21 (GMT)
committerGerrit Code Review <gerrit@cyanogenmod.org>2016-08-11 23:19:29 (GMT)
commit2087f64e6f5d9b3b06b1426274d7aa48b147a4e9 (patch)
treecdeaa5aba7f45801b9a23753607774e92cb87153
parent1127d85c37dcba3fd02ab5596225a50749467da3 (diff)
downloadandroid_packages_services_CMAudioService-2087f64e6f5d9b3b06b1426274d7aa48b147a4e9.zip
android_packages_services_CMAudioService-2087f64e6f5d9b3b06b1426274d7aa48b147a4e9.tar.gz
android_packages_services_CMAudioService-2087f64e6f5d9b3b06b1426274d7aa48b147a4e9.tar.bz2
CMAudioService: sign with private keys if available
If not building with test keys, sign the app. Change-Id: Ib3cf832cb60c600fe491a3e925c728a8e1d3dc4e Signed-off-by: Roman Birg <roman@cyngn.com>
-rw-r--r--Android.mk5
1 files changed, 5 insertions, 0 deletions
diff --git a/Android.mk b/Android.mk
index 7c20d7a..f5e30bc 100644
--- a/Android.mk
+++ b/Android.mk
@@ -33,6 +33,11 @@ LOCAL_JNI_SHARED_LIBRARIES := libcmaudio_jni
LOCAL_PRIVILEGED_MODULE := true
+# Sign the package when not using test-keys
+ifneq ($(DEFAULT_SYSTEM_DEV_CERTIFICATE),build/target/product/security/testkey)
+LOCAL_CERTIFICATE := cyngn-priv-app
+endif
+
include $(BUILD_PACKAGE)
ifeq ($(strip $(LOCAL_PACKAGE_OVERRIDES)),)