@@ -45,26 +45,26 @@ do_chroot()
45
45
46
46
check_busybox ()
47
47
{
48
- export device_architecture=$( do_shell " uname -m" )
49
- export busybox_exists=$( do_shell " if [ -d /sbin/busybox ]; then echo true; else echo false; fi" )
50
-
51
- if [ $busybox_exists = " true" ]; then
52
- echo ' Using already installed busybox'
53
- else
54
- if [ $device_architecture = x86_64 ]; then
55
- wget https://github.com/meefik/busybox/raw/master/app/src/main/assets/intel/static/bin/busybox
56
- elif [ $device_architecture = armv7l ]; then
57
- wget https://github.com/meefik/busybox/raw/master/app/src/main/assets/arm/static/bin/busybox
58
- elif [ $device_architecture = arm64 ]; then
59
- wget https://github.com/meefik/busybox/raw/master/app/src/main/assets/arm/static/bin/busybox
60
- fi
61
-
62
- adb push busybox /sbin/busybox
63
- do_shell " chmod +x /sbin/busybox"
64
- do_shell " /sbin/busybox --install /sbin/"
65
- fi
66
-
67
- rm busybox
48
+ export device_architecture=$( do_shell " uname -m" )
49
+ export busybox_exists=$( do_shell " if [ -d /sbin/busybox ]; then echo true; else echo false; fi" )
50
+
51
+ if [ $busybox_exists = " true" ]; then
52
+ echo ' Using already installed busybox'
53
+ else
54
+ if [ $device_architecture = x86_64 ]; then
55
+ wget https://github.com/meefik/busybox/raw/master/app/src/main/assets/intel/static/bin/busybox
56
+ elif [ $device_architecture = armv7l ]; then
57
+ wget https://github.com/meefik/busybox/raw/master/app/src/main/assets/arm/static/bin/busybox
58
+ elif [ $device_architecture = arm64 ]; then
59
+ wget https://github.com/meefik/busybox/raw/master/app/src/main/assets/arm/static/bin/busybox
60
+ fi
61
+
62
+ adb push busybox /sbin/busybox
63
+ do_shell " chmod +x /sbin/busybox"
64
+ do_shell " /sbin/busybox --install /sbin/"
65
+ fi
66
+
67
+ rm busybox
68
68
}
69
69
70
70
convert_android_img ()
0 commit comments