OSDN Git Service

aapt no longer needed for signing APKs
authorAlex Klyubin <klyubin@google.com>
Thu, 15 Dec 2016 20:51:25 +0000 (12:51 -0800)
committerAlex Klyubin <klyubin@google.com>
Fri, 16 Dec 2016 00:37:21 +0000 (16:37 -0800)
signapk now auto-detects the APK's minSdkVersion, removing the need to
run aapt dump badging during APK signing.

Test: make clean && make
Change-Id: Ifc74292a9900443d053e437b50b540c8d0b33dbd

core/prebuilt_internal.mk

index d9f9ea8..10512ff 100644 (file)
@@ -299,7 +299,7 @@ embedded_prebuilt_jni_libs := 'lib/*.so'
 endif
 $(built_module): PRIVATE_EMBEDDED_JNI_LIBS := $(embedded_prebuilt_jni_libs)
 
-$(built_module) : $(my_prebuilt_src_file) | $(ZIPALIGN) $(SIGNAPK_JAR) $(AAPT)
+$(built_module) : $(my_prebuilt_src_file) | $(ZIPALIGN) $(SIGNAPK_JAR)
        $(transform-prebuilt-to-target)
        $(uncompress-shared-libs)
 ifdef LOCAL_DEX_PREOPT
@@ -346,7 +346,7 @@ my_src_dir := $(LOCAL_PATH)/$(my_src_dir)
 $(built_apk_splits) : $(LOCAL_CERTIFICATE).pk8 $(LOCAL_CERTIFICATE).x509.pem
 $(built_apk_splits) : PRIVATE_PRIVATE_KEY := $(LOCAL_CERTIFICATE).pk8
 $(built_apk_splits) : PRIVATE_CERTIFICATE := $(LOCAL_CERTIFICATE).x509.pem
-$(built_apk_splits) : $(built_module_path)/%.apk : $(my_src_dir)/%.apk | $(AAPT)
+$(built_apk_splits) : $(built_module_path)/%.apk : $(my_src_dir)/%.apk
        $(copy-file-to-new-target)
        $(sign-package)