From ed974bb87ab099e5168768b3381dcdf80d83f3c8 Mon Sep 17 00:00:00 2001 From: HashBang Date: Sat, 30 Jan 2016 14:20:09 -0500 Subject: allow flashing sparse images if the image has the right magic bytes to be a sparse image, use simg2img to flash the image create a rule to make a fully dynamic simg2img which results in a much smaller increase in gzip ramdisk size (2KB vs 40KB) Change-Id: I1b0f6bc127da46103888b1154a9bddd8ac02c01d --- Android.mk | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'Android.mk') diff --git a/Android.mk b/Android.mk index 52c2907de..0a5692c85 100644 --- a/Android.mk +++ b/Android.mk @@ -99,6 +99,7 @@ LOCAL_C_INCLUDES += \ system/vold \ system/extras/ext4_utils \ system/core/adb \ + system/core/libsparse LOCAL_C_INCLUDES += bionic external/openssl/include $(LOCAL_PATH)/libmincrypt/includes ifeq ($(shell test $(PLATFORM_SDK_VERSION) -lt 23; echo $$?),0) @@ -351,7 +352,8 @@ LOCAL_ADDITIONAL_DEPENDENCIES := \ fsck.fat \ fatlabel \ mkfs.fat \ - permissive.sh + permissive.sh \ + simg2img_twrp ifneq ($(TARGET_ARCH), arm64) ifneq ($(TARGET_ARCH), x86_64) @@ -586,6 +588,7 @@ include $(commands_recovery_local_path)/injecttwrp/Android.mk \ $(commands_recovery_local_path)/dosfstools/Android.mk \ $(commands_recovery_local_path)/etc/Android.mk \ $(commands_recovery_local_path)/toybox/Android.mk \ + $(commands_recovery_local_path)/simg2img/Android.mk \ $(commands_recovery_local_path)/libpixelflinger/Android.mk ifeq ($(TW_INCLUDE_CRYPTO), true) -- cgit v1.2.3