diff options
Diffstat (limited to 'META-INF')
-rwxr-xr-x | META-INF/com/google/android/update-binary | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/META-INF/com/google/android/update-binary b/META-INF/com/google/android/update-binary index 2f3b4c7..610c9b6 100755 --- a/META-INF/com/google/android/update-binary +++ b/META-INF/com/google/android/update-binary @@ -71,6 +71,17 @@ unzip -o "$ZIPFILE"; if [ $? != 0 -o ! "$(ls tools)" ]; then abort "Unzip failed. Aborting..."; fi; +for arch32 in x86 arm; do + if [ -d $home/tools/$arch32 ]; then + bb=$home/tools/$arch32/busybox; + chmod 755 $bb; + $bb >/dev/null 2>&1; + if [ $? == 0 ]; then + $bb mv -f $home/tools/$arch32/* $home/tools; + break; + fi; + fi; +done; bb=$home/tools/busybox; chmod 755 $bb; $bb chmod -R 755 tools bin; |