Explorar o código

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 <[email protected]>
Paul Keith %!s(int64=8) %!d(string=hai) anos
pai
achega
2d7e0eb47c
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  1. 2 1
      build/meta/com/google/android/update-binary

+ 2 - 1
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"