How can I get Android file system size in bytes from adb shell?

If I run the df command from the android shell, I get the sizes of all file systems in human readable numbers. It seems that the command is not accepting any parameters (e.g. -something ).

I want to get the exact file system size (in bytes).

I know that I can get dimensions by creating an application that uses statfs. Is there any other way to do this (via command)?

+5
source share
1 answer

Yes, if busybox is installed. (And if not, you can ask the user to install it.)

you can use

 busybox df -B 1 

to get the report in bytes.

+3
source

Source: https://habr.com/ru/post/1207744/


All Articles