How to search a file with adb.exe?

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.


find doesn't work for me on my device. Doesn't seem to be installed!

However this sort of works for me:

adb shell

(then in shell)

ls -laR | grep filename_you_want

Hope this helps.


As findand grep are not installed on devices I use, I am using the following:

adb shell ls -R / >tree.txt

After that I'm able to search in the file tree.txt on my pc using whatever software I like (for example notepad++ or grep).

Tags:

Android

Adb