Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 24c77395 authored by Colin Cross's avatar Colin Cross
Browse files

Enforce LOCAL_CERTIFICATE is set in soong_app_prebuilt.mk

Missing LOCAL_CERTIFICATE produces an apkcerts.txt file that
has no key for the APK, which confuses the signing tools.
Enforce that it is set.

Bug: 147765187
Test: m apkcerts-list
Change-Id: I1299505d193deba5956954e5d9b6e4c727456b9c
parent 2899e487
Loading
Loading
Loading
Loading
+3 −0
Original line number Original line Diff line number Diff line
@@ -139,6 +139,9 @@ my_prebuilt_jni_libs :=
my_2nd_arch_prefix :=
my_2nd_arch_prefix :=


PACKAGES := $(PACKAGES) $(LOCAL_MODULE)
PACKAGES := $(PACKAGES) $(LOCAL_MODULE)
ifndef LOCAL_CERTIFICATE
  $(call pretty-error,LOCAL_CERTIFICATE must be set for soong_app_prebuilt.mk)
endif
ifeq ($(LOCAL_CERTIFICATE),PRESIGNED)
ifeq ($(LOCAL_CERTIFICATE),PRESIGNED)
  # The magic string "PRESIGNED" means this package is already checked
  # The magic string "PRESIGNED" means this package is already checked
  # signed with its release key.
  # signed with its release key.