Return incorrect value of getTotalBytes (frameworks/base/services/usage/java/com/android/server/usage/StorageStatsService.java)

68 views
Skip to first unread message

weilong dong

unread,
Jul 29, 2019, 12:51:37 PM7/29/19
to android-porting
Dear Google,

Recently we meet a issue that return incorrect value of getTotalBytes when vol.disk.size is 64155025408.
After FileUtils.roundStorageSize(vol.disk.size), it will change to 128000000000.
This will lead to show incorrect capacity of SD card.

Could anyone point out why do this design for roundStorageSize?

Regards,
-Daniel.Dong
Reply all
Reply to author
Forward
0 new messages