I’m using:
File path = Environment.getDataDirectory();
StatFs stat = new StatFs(path.getPath());
long blockSize = stat.getBlockSize();
long totalBlocks = stat.getBlockCount();
return totalBlocks * blockSize;
to get total internal device memory.
problem is it doesn’t count the emmc storage. any suggestions on how to get it?
This will give you the total size of the emmc