File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -47,25 +47,24 @@ check_busybox()
4747{
4848 export device_architecture=$( do_shell " uname -m" )
4949 export busybox_exists=$( do_shell " if [ -d /sbin/busybox ]; then echo true; else echo false; fi" )
50- mkdir busybox
5150
5251 if [ $busybox_exists = " true" ]; then
5352 echo ' Using already installed busybox'
5453 else
5554 if [ $device_architecture = x86_64 ]; then
56- wget https://github.com/meefik/busybox/raw/master/app/src/main/assets/intel/static/bin/busybox -O busybox/busybox
55+ wget https://github.com/meefik/busybox/raw/master/app/src/main/assets/intel/static/bin/busybox
5756 elif [ $device_architecture = armv7l ]; then
58- wget https://github.com/meefik/busybox/raw/master/app/src/main/assets/arm/static/bin/busybox -O busybox/busybox
57+ wget https://github.com/meefik/busybox/raw/master/app/src/main/assets/arm/static/bin/busybox
5958 elif [ $device_architecture = arm64 ]; then
60- wget https://github.com/meefik/busybox/raw/master/app/src/main/assets/arm/static/bin/busybox -O busybox/busybox
59+ wget https://github.com/meefik/busybox/raw/master/app/src/main/assets/arm/static/bin/busybox
6160 fi
6261
63- adb push busybox/busybox /sbin/busybox
62+ adb push busybox /sbin/busybox
6463 do_shell " chmod +x /sbin/busybox"
6564 do_shell " /sbin/busybox --install"
6665 fi
6766
68- rm busybox -r
67+ rm busybox
6968}
7069
7170convert_android_img ()
You can’t perform that action at this time.
0 commit comments