diff --git a/Android.mk b/Android.mk index c759b8b0..c17ddbe8 100755 --- a/Android.mk +++ b/Android.mk @@ -144,6 +144,7 @@ ifeq ($(TW_OEM_BUILD),true) 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 @@ endif 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 73399b3d..f4271958 100755 --- a/twrp-functions.cpp +++ b/twrp-functions.cpp @@ -1550,7 +1550,7 @@ bool TWFunc::Check_Xml_Format(const std::string filename) { 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 }