Unix/Linux contains "find" command for searching files, but I do not know which command in android can be used to search for a file. Please give me an example.
I used adb shell "ls -lR [ top-level-dir ]/[ varying number of */ ]/[ known part of filename ]> to find a glob pattern that matches the file, then started putting subdirs in the pattern - if the glob doesn't match, try the next subdir. It looked something like this: /lib/libSmth*.
Open a command window in the folder by holding shift and right-clicking in an empty spot in the folder and selecting "Open command prompt/PowerShell here" in the menu. Then you can start using ADB — connect your phone and try . ADB devices to see if it's working. A list with attached devices should show up.
You may not find find
and grep
on all devices, so probably your safe bet is
$ adb shell ls -lR | grep filename_you_want
on Linux/OSX, or
> adb shell ls -lR | find "filename_you_want"
on Windows.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With