Add python prebuilts to build
Change-Id: I159b2b07962b89582f99af74e53585dc0bddcb63
diff --git a/Android.mk b/Android.mk
index bc078d4..d00f7fe 100755
--- a/Android.mk
+++ b/Android.mk
@@ -180,6 +180,7 @@
TW_EXCLUDE_TZDATA := true
TW_EXCLUDE_NANO := true
TW_EXCLUDE_BASH := true
+ TW_EXCLUDE_PYTHON := true
endif
ifeq ($(TARGET_USERIMAGES_USE_EXT4), true)
@@ -587,6 +588,9 @@
TWRP_REQUIRED_MODULES += sload.f2fs
endif
endif
+ifneq ($(TW_EXCLUDE_PYTHON),true)
+ TWRP_REQUIRED_MODULES += python3_twrp
+endif
ifeq ($(shell test $(PLATFORM_SDK_VERSION) -ge 26; echo $$?),0)
TWRP_REQUIRED_MODULES += ld.config.txt
diff --git a/twrp-functions.cpp b/twrp-functions.cpp
index 4ab6299..ddccd3e 100755
--- a/twrp-functions.cpp
+++ b/twrp-functions.cpp
@@ -1543,7 +1543,7 @@
File.close();
// Android Binary Xml start from these bytes
if(!buffer.compare(0, abx_hdr.size(), abx_hdr))
- return false; // bad format, not possible to parse
+ return false; // ABX format - requires conversion
}
return true; // good format, possible to parse
}