Android – adb shell (查找文件 find )

默认adb shell find . -name 文件名这样查找文件位置无法使用,如下。

Android - adb shell (查找文件 find )

记录下两种方法。

1、adb shell 进入

ls -R / | grep 文件名

效果如下:

Android - adb shell (查找文件 find )

2、通过 busybox 查找文件

1)首先下载 BusyBox,下载地址为 Index of /downloads/binaries,记得选择对应设备架构的版本。adb shell cat /proc/cpuinfo

Android - adb shell (查找文件 find )

Android - adb shell (查找文件 find )2)adb push 本地路径/busybox-armv8l sdcard/busybox

将文件推送至设备中。

3)adb shell 进入

Android - adb shell (查找文件 find )

我这里的设备是执行过 root 和 remount 过的,否则可能在 push 后执行 chmod 755 busybox 赋予权限

本文来自网络,不代表协通编程立场,如若转载,请注明出处:https://net2asp.com/f267adcd11.html