From 608493c07c3a771563291a04b982a4c812b167ae Mon Sep 17 00:00:00 2001 From: Captain Throwback Date: Sat, 28 May 2022 20:55:20 -0400 Subject: [PATCH] Add python prebuilts to build Change-Id: I159b2b07962b89582f99af74e53585dc0bddcb63 (cherry picked from commit 1ef40fc330e88059ac6b53199ab0033c9ad380a8) --- Android.mk | 4 ++++ twrp-functions.cpp | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) 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 }