9.4 ADB Find Files on the Device

20200214

Make a connection to the remote Android shell:

adb shell

The perform a search using find”

lynx:/ $ find / -name '*.mp3' 2>/dev/null

The output will be something like:

./system/media/audio/notifications/NETPHONEMESSAGEALERT.mp3
./system/media/audio/ringtones/Globeringtone.mp3
./system/media/audio/ringtones/NETPHONERINGTONE.mp3
./system/csc/GLB/system/media/audio/ringtones/Globeringtone.mp3
...
./storage/8912-4FA8/Music/...
...

There will be areas on the phone that are not accessible. The redirection of stderr to the null device ignores messages that report the lack of permissions.



Your donation will support ongoing availability and give you access to the PDF version of this book. Desktop Survival Guides include Data Science, GNU/Linux, and MLHub. Books available on Amazon include Data Mining with Rattle and Essentials of Data Science. Popular open source software includes rattle, wajig, and mlhub. Hosted by Togaware, a pioneer of free and open source software since 1984. Copyright © 1995-2022 Graham.Williams@togaware.com Creative Commons Attribution-ShareAlike 4.0