Add python prebuilts to build
Change-Id: I159b2b07962b89582f99af74e53585dc0bddcb63
(cherry picked from commit 1ef40fc330e88059ac6b53199ab0033c9ad380a8)
diff --git a/Android.mk b/Android.mk
index c759b8b..c17ddbe 100755
--- a/Android.mk
+++ b/Android.mk
@@ -144,6 +144,7 @@
TW_EXCLUDE_TZDATA := true
TW_EXCLUDE_NANO := true
TW_EXCLUDE_BASH := true
+ TW_EXCLUDE_PYTHON := true
endif
ifeq ($(AB_OTA_UPDATER),true)
@@ -557,6 +558,9 @@
ifneq ($(TW_LOAD_VENDOR_MODULES),)
TWRP_REQUIRED_MODULES += libmodprobe
endif
+ifneq ($(TW_EXCLUDE_PYTHON),true)
+ TWRP_REQUIRED_MODULES += python3_twrp
+endif
TWRP_REQUIRED_MODULES += file_contexts_text
diff --git a/twrp-functions.cpp b/twrp-functions.cpp
index 73399b3..f427195 100755
--- a/twrp-functions.cpp
+++ b/twrp-functions.cpp
@@ -1550,7 +1550,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
}