From 2d7e0eb47c015f4855e575f589c6c7b076f99280 Mon Sep 17 00:00:00 2001 From: Paul Keith Date: Fri, 5 May 2017 22:10:45 -0500 Subject: [PATCH] update-binary: Fix compat with different unzip tools * For some bizarre reason, the unzip util included with lineage recovery doesn't work with the system/* wildcard for unzip, so just extract the entire zip and remove the META-INF folder from /tmp manually Change-Id: Id11e18d7fef0c78b10f7060a10274ea0e958ea84 Signed-off-by: Paul Keith --- build/meta/com/google/android/update-binary | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/build/meta/com/google/android/update-binary b/build/meta/com/google/android/update-binary index fffa165..6110033 100644 --- a/build/meta/com/google/android/update-binary +++ b/build/meta/com/google/android/update-binary @@ -58,7 +58,8 @@ MEM=`cat /proc/meminfo | head -1 | sed 's/[^0-9]*//g'` ui_print "Extracting files" cd /tmp -unzip -o "$ZIP" system/* +unzip -o "$ZIP" +exec_util "rm -rf META-INF" cd system if [ "$MEM" -lt "$LOWMEM" ]; then ui_print "Low RAM device detected, removing Google SuW"