tags:

views:

19

answers:

1

I want to find out storage usage of an app. I can list file size in adb shell using ls command. But, I didn't find 'du' command in adb shell. Is there any command or tool that allows me to figure out the storage usage of a directory?

Thanks.

A: 

There's no du in /system/bin. But you can push busybox to device, and use busybox's du.

racetrack
Thanks. Do you know how to install busybox on android emulator?
Kai
Just grab the binary of busybox, push it to your device, cd to where you pushed it into, and execute something like `./busybox du`
racetrack
Thanks. I found this link too: http://benno.id.au/blog/2007/11/14/android-busybox
Kai