• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Apps The bug issue!

If you don't already know which files are open (or you want to trackdown a leak) and you have access to a rooted device with busybox, you can run the "lsof" (list open file descriptors) command from "adb shell" or a terminal emulator application (you need to run it as root).

This command will list all the files which the sdcard process has open:
Code:
lsof | grep ^sdcard

And this command will count the number of file descriptors the sdcard process has open:
Code:
lsof | grep ^sdcard -c

On my Nexus 7 (with a few apps running in the background) the sdcard process only has 23 open files.
 
Upvote 0

BEST TECH IN 2023

We've been tracking upcoming products and ranking the best tech since 2007. Thanks for trusting our opinion: we get rewarded through affiliate links that earn us a commission and we invite you to learn more about us.

Smartphones