Android - How to use ADB to list remote directories?
Easy to do – as in any Linux system:
- Connect your device as usual
- log into it using
adb shell
- use the
ls
command to list files in the current directory, and thecd
command to change directories (i.e. walk the tree / navigate through directories)
For details on the commands, check for the corresponding Linux man pages – e.g. man ls and man cd.
Edit: If you're "afraid" of the command line, you can also use an ADB file manager (see here for examples).
For rooted device (having the su
binary):
adb shell su -c ls -R *
This will list all folders with their contents and their subfolders.