busybox embedded

版权声明:本文为博主打劫来的文章!!!未经允许可以随便转载。 May you do good and not evil. May you share freely, never taking more than you give. https://blog.csdn.net/hunter___/article/details/83583553

http://zhaohongjian000.is-programmer.com/posts/34688.html

https://blog.csdn.net/sdvch/article/details/45921927

https://blog.csdn.net/kongbaidepao/article/details/72802340?utm_source=blogxgwz1

https://www.cnblogs.com/shamoguzhou/p/6233407.html

busybox.sh脚本:用于将下载的busybox-armv7l  最终push 到设备中。

进shell后,根据需要ln -s busybox ls 等等修改命令链接,根据需要,相应修改echo

#!/bin/bash
#cp busybox-armv7l busybox

#echo -e "#commenet out this line"
adb root
adb remount
adb push busybox /system/bin/
adb push busybox.sh /data
#"

echo -e "after enter shell, 
#after you enter shell 
we'v finished:
#adb push busybox /system/bin/
#adb push busybox.sh /data
you now should:
cd /data
chomd 777 busybox.sh
busybox vi busybox.sh 
comment out #echo lines 
then 
|source busybox.sh |"


echo -e "comment out this line #
cd /system/bin 
chmod 777 busybox 
rm vi ls find xargs tee tar tail ping 
ln -s busybox vi 
ln -s busybox ls 
ln -s busybox find 
ln -s busybox xargs
ln -s busybox tee 
ln -s busybox tar 
ln -s busybox tail 
ln -s busybox ping 
ls
#commenet out this line"


#echo -e "comment out this line #
adb shell
#commenet out this line"

1.download busybox 

https://busybox.net/downloads/binaries/1.28.1-defconfig-multiarch/

https://busybox.net/downloads/

cp busybox-armv7l busybox

2.push to /system/bin/

adb push busybox /system/bin/
adb root
adb remount
adb push busybox /system/bin/

3.set config

ln -s busybox ls





猜你喜欢

转载自blog.csdn.net/hunter___/article/details/83583553