如何使用adb在android中安装busybox [英] how to install busybox in android using adb

查看:116
本文介绍了如何使用adb在android中安装busybox的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试在Android模拟器上安装busybox.

I am trying to install busybox on an android emulator.

我下载并编译了busybox,并在我的PC上安装了busybox二进制文件.

I downloaded and compiled busybox and have the busybox binary on my pc.

然后我做了 adb push busybox/data/local/tmp

然后使用 adb shell ,然后使用 #cd/data/local/tmp ,然后使用 #chmod 777 busybox ,然后尝试使用#./busybox --install 表示找不到busybox命令.

then did adb shell, then #cd /data/local/tmp , then #chmod 777 busybox, then tried #./busybox --install it says busybox command not found.

我还将文件复制到了/system/busybox .但是 ./busybox --install 表示未找到 busybox命令.

I also copied the file to /system/busybox. but ./busybox --install says busybox command not found.

推荐答案

首先要做 adb push busybox/data/local/busybox 将busybox复制到android手机系统中然后通过执行 adb shell 进入android shell.通过键入 su 获取超级用户从您的Android手机授予超级用户请求然后返回外壳并输入

First do adb push busybox /data/local/busybox to copy the busybox into the android phone system then go to the android shell by doing adb shell. Get the superuser by typing su from you android phone grant superuser request then back to the shell and type

cd /data/local
chmod 755 busybox
./busybox
mount -o remount,rw -t yaffs2 /dev/block/mtdblock4 /system
mkdir /system/xbin
cp /data/local/busybox /system/xbin
cd /system/xbin
busybox --install .
mount -o ro,remount -t yaffs2 /dev/block/mtdblock4 /system
sync
reboot

注意:/dev/block/mtdblock4可能不是每个设备或仿真器上的/system分区.最好先在shell中执行不带参数的'mount'命令,然后查看将哪个设备或分区挂载为/system.

Note: /dev/block/mtdblock4 may not be the /system partition on every device or emulator. It's best to execute the 'mount' command without parameters first in the shell, and look which device or partition is mounted as /system.

这篇关于如何使用adb在android中安装busybox的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆