默认adb shell find . -name 文件名这样查找文件位置无法使用,如下。
记录下两种方法。
1、adb shell 进入
ls -R / | grep 文件名
效果如下:
2、通过 busybox 查找文件
1)首先下载 BusyBox,下载地址为 Index of /downloads/binaries,记得选择对应设备架构的版本。adb shell cat /proc/cpuinfo
2)adb push 本地路径/busybox-armv8l sdcard/busybox
将文件推送至设备中。
3)adb shell 进入
我这里的设备是执行过 root 和 remount 过的,否则可能在 push 后执行 chmod 755 busybox 赋予权限