Not getting correct value of Storage Volume(Internal)
问题 I want total internal space available in Phone but in this code getInternalFreeSpace returns correct value but getInternalStorageSpace doesn't return exact available space because of not counting ANDROID OS Size. Like my phone has 64GB but this code returns 51.6GB. The Only missing is 12.40 GB i.e. ANDROID OS size, 51.6GB + 12.40 = 64.00 fun getInternalStorageSpace(): Float{ val statsFs = StatFs(Environment.getDataDirectory().absolutePath) val sizeKB = statsFs.blockCountLong.toFloat() *