华为v8什么软件了root(华为 V8)

BusyBox 是一个集成了三百多个最常用Linux命令和工具的软件。功能便捷、强大。

安装需要有root权限

查询并下载自己手机的CPU型号及对应busybox二进制文件:

c:\tmp\fastboot>adb shellshell@GiONEE_GBL7319:/ $ cat /proc/cpuinfoProcessor : AArch64 Processor rev 3 (aarch64)processor : 0BogoMIPS : 26.00Features : fp asimd aes pmull sha1 sha2 crc32CPU implementer : 0x41CPU architecture: AArch64CPU variant : 0x0CPU part : 0xd03CPU revision : 3Hardware : MT6735

AArch64:对应的是ARMv8-A架构,引入的64位指令集,向后兼容基于32位指令集。

下载ARMV8相关的busybox二进制文件:busybox-armv8l

下载地址:https://busybox.net/downloads/binaries/

对应文件:busybox-armv8l

安装方法:

adb root 以root来运行adb remount 重新以读写方式挂载系统adb push c:\tmp\busybox-armv8l /system/xbinadb shellcd /system/xbinchmod 755 busybox-armv8l 改权限./busybox-armv8l --install 安装

有些版本低,前2个命令没有,出现以下问题:error: device not found

c:\tmp\fastboot>adb shellshell@GiONEE_GBL7319:/ $ adb root* daemon not running. starting it now on port 5038 ** daemon started successfully *error: device not found1|shell@GiONEE_GBL7319:/ $ adb remounterror: device not foundc:\tmp\fastboot>adb push c:/tmp/busybox-armv8l /system/xbinadb: error: failed to copy 'c:/tmp/busybox-armv8l' to '/system/xbin/busybox-armv8l': remote Permission deniedc:/tmp/busybox-armv8l: 0 files pushed. 0.4 MB/s (131056 bytes in 0.342s)

此时可先将文件传到临时目录: /data/local/tmp ,在用移动mv命令

c:\tmp\fastboot>adb push c:/tmp/busybox-armv8l /data/local/tmpc:/tmp/busybox-armv8l: 1 file pushed. 0.4 MB/s (1148524 bytes in 3.113s)1|shell@GiONEE_GBL7319:/ $ suroot@GiONEE_GBL7319:/ # mv /data/local/tmp/busybox-armv8l /system/xbin

将/system重新挂载为可读写:(可选)

先查/system挂载对应的文件目录(device):可用如下命令

cat /proc/mountsmount

root@GiONEE_GBL7319:/system/xbin # cat /proc/mountsrootfs / rootfs rw,seclabel 0 0tmpfs /dev tmpfs rw,seclabel,nosuid,relatime,mode=755 0 0devpts /dev/pts devpts rw,seclabel,relatime,mode=600 0 0proc /proc proc rw,relatime 0 0sysfs /sys sysfs rw,seclabel,relatime 0 0selinuxfs /sys/fs/selinux selinuxfs rw,relatime 0 0none /acct cgroup rw,relatime,cpuacct 0 0none /sys/fs/cgroup tmpfs rw,seclabel,relatime,mode=750,gid=1000 0 0tmpfs /mnt/asec tmpfs rw,seclabel,relatime,mode=755,gid=1000 0 0tmpfs /mnt/obb tmpfs rw,seclabel,relatime,mode=755,gid=1000 0 0none /dev/cpuctl cgroup rw,relatime,cpu 0 0tmpfs /mnt/media_rw tmpfs rw,seclabel,relatime,mode=755,uid=1000,gid=1000 0 0tmpfs /storage/usbotg tmpfs rw,seclabel,relatime,mode=755,uid=1000,gid=1000 0 0tmpfs /storage/emulated tmpfs rw,seclabel,relatime,mode=755,uid=1023,gid=1023 0 0/dev/block/platform/mtk-msdc.0/by-name/system /system ext4 rw,seclabel,noatime,data=ordered 0 0

对应目录(device)是:/dev/block/platform/mtk-msdc.0/by-name/system

重新挂载成可读写:rw是读写,ro是只读(默认)

root@GiONEE_GBL7319:/ # mount -o remount -rw /dev/block/platform/mtk-msdc.0/by-name/system /system

或用:root@GiONEE_GBL7319:/ # mount -o remount, rw /system

修改属性:为可执行,chmod 755 /system/xbin/busybox-armv8l

126|root@GiONEE_GBL7319:/ # ls -l /system/xbin/busybox-armv8l-rw-rw-rw- shell shell 1148524 2022-01-27 22:12 busybox-armv8lroot@GiONEE_GBL7319:/ # chmod 755 /system/xbin/busybox-armv8l

安 装:./busybox-armv8l --install

127|root@GiONEE_GBL7319:/ # cd /system/xbin1|root@GiONEE_GBL7319:/system/xbin # ./busybox-armv8l --installbusybox-armv8l: /usr/bin/[: No such file or directorybusybox-armv8l: /usr/bin/[[: No such file or directorybusybox-armv8l: /sbin/acpid: Cross-device linkbusybox-armv8l: /usr/sbin/add-shell: No such file or directorybusybox-armv8l: /usr/sbin/addgroup: No such file or directorybusybox-armv8l: /usr/sbin/adduser: No such file or directorybusybox-armv8l: /sbin/adjtimex: Cross-device linkbusybox-armv8l: /bin/arch: No such file or directory ......

查看有哪些命令:直接输入busybox-armv8l

127|root@GiONEE_GBL7319:/system/xbin # busybox-armv8lBusyBox v1.31.0 (2019-06-10 15:54:51 CEST) multi-call binary.BusyBox is copyrighted by many authors between 1998-2015.Licensed under GPLv2. See source distribution for detailedcopyright notices.Usage: busybox [function [arguments]...] or: busybox --list[-full] or: busybox --show SCRIPT or: busybox --install [-s] [DIR] or: function [arguments]... BusyBox is a multi-call binary that combines many common Unix utilities into a single executable. Most people will create a link to busybox for each function they wish to use and BusyBox will act like whatever it was invoked as.Currently defined functions: [, [[, acpid, add-shell, addgroup, adduser, adjtimex, arch, arp, arping, ash, awk, base64, basename, bc, beep, blkdiscard, blkid, blockdev, bootchartd, brctl, bunzip2, bzcat, bzip2, cal, cat, chat, chattr, chgrp, chmod, chown, chpasswd, chpst, chroot, chrt, chvt, cksum, clear, cmp, comm, conspy, cp, cpio, crond, crontab, cryptpw, cttyhack, cut, date, dc, dd, deallocvt, delgroup, deluser, depmod, devmem, df, dhcprelay, diff, dirname, dmesg, dnsd, dnsdomainname, ......

用法对比:busybox + 命令

改个易记的名:

127|root@GiONEE_GBL7319:/system/xbin # cp busybox-armv8l busyboxroot@GiONEE_GBL7319:/system/xbin # ls -l-rwxr-xr-x root shell 22128 2016-08-11 21:00 BGW-rwxr-xr-x root shell 51144 2016-08-11 21:00 amigosu-rwxr-xr-x root root 1148524 2015-01-01 13:07 busybox-rwxr-xr-x shell shell 1148524 2022-01-27 22:12 busybox-armv8lroot@GiONEE_GBL7319:/system/xbin # busybox ls -ltotal 3724-rwxr-xr-x 1 0 2000 22128 Aug 11 2016 BGW-rwxr-xr-x 1 0 2000 51144 Aug 11 2016 amigosu-rwxr-xr-x 1 0 0 1148524 Jan 1 05:07 busybox-rwxr-xr-x 1 2000 2000 1148524 Jan 27 2022 busybox-armv8l