How to list all the files in android phone by using adb shell?
This command will show also if the file is hidden
adb shell ls -laR | grep filename
I might be wrong but "find -name __" works fine for me. (Maybe it's just my phone.) If you just want to list all files, you can try
adb shell ls -R /
You probably need the root permission though.
Edit:
As other answers suggest, use ls
with grep
like this:
adb shell ls -Ral yourDirectory | grep -i yourString
eg.
adb shell ls -Ral / | grep -i myfile
-i
is for ignore-case. and /
is the root directory.
just to add the full command:
adb shell ls -R | grep filename
this is actually a pretty fast lookup on Android
Open cmd type adb shell
then press enter.
Type ls
to view files list.