busybox在安卓设备中的使用
busybox下载:
https://busybox.net/downloads/binaries/1.35.0-i686-linux-musl/
busybox使用:
➜ Desktop adb push /Users/xxx/Desktop/busybox1 /sdcard
/Users/xxx/Desktop/busybox1: 1 file pushed, 0 skipped. 109.4 MB/s (1061344 bytes in 0.009s)
➜ Desktop adb shell
cmi:/ $ su
cmi:/ # cd sdcard
cmi:/sdcard # ls -la busybox1
-rw-rw---- 1 root everybody 1061344 2022-02-18 12:00 busybox1
cmi:/sdcard # su chmod 755 busybox1
cmi:/storage/emulated/0 # su ./busy
busybox busybox1
cmi:/storage/emulated/0 # su ./busybox1 -h
MagiskSU
Usage: su [options] [-] [user [argument...]]
Options:
-c, --command COMMAND pass COMMAND to the invoked shell
-h, --help display this help message and exit
-, -l, --login pretend the shell to be a login shell
-m, -p,
--preserve-environment preserve the entire environment
-s, --shell SHELL use SHELL instead of the default /system/bin/sh
-v, --version display version number and exit
-V display version code and exit
-mm, -M,
--mount-master force run in the global mount namespace
cmi:/storage/emulated/0 #