Android 14 uses “nonsensical” logic to calculate space usage on smartphones


Facepalm: While embedded storage in modern smartphones has grown considerably, the software side of things still tends to make weird or outright incorrect calculations about available space. This issue also affects the upcoming Android release, as well as most third-party reskinned versions of the OS.

Old and current versions of Android are affected by a peculiar bug in the way the OS calculates storage space usage on mobile devices. Android specialist Mishaal Rahman, who discovered the issue earlier this year, noted that even in the upcoming Android 14 release, the way Android calculates the storage space taken up by the OS “system” files remains completely flawed.

The way Google’s operating system calculates “system” files is utterly illogical, as explained Twitter/X. When new files are added to a smartphone’s integrated storage, Android categorizes them as part of the “system” folder if they can’t be placed in other categories like images, videos, documents, and so on. In simpler terms, Rahman pointed out that Android calculates the “system” component by merely subtracting the storage attributed to everything else from the total storage space that’s currently in use.

Even user-created files that reside in the /data/media directory, which are unlikely to be system files at all, are classified by Android as part of the “system.” Rahman showcased the bug by executing a shell command to generate a 3GB file filled with random data. Following the file’s creation, the “System” category increased by 3GB.

Besides incorrectly reporting the available space, the bug also impacts how the “Files” file explorer app calculates storage, likely because it employs the same flawed logic as the OS. Third-party “reskinned” versions of Android are also affected by the bug, with one notable exception: Samsung’s One UI 6, according to Rahman, provides an accurate report of how files consume space on a mobile device.

بخونید:  آخرین SSD PCIe 4.0 Sabrent برای Steam Deck عالی است

Furthermore, as the journalist explained, Android has another issue with storage space reporting. Google employs the “gibibyte” unit for storage calculations, which equals 1024^3 bytes. In contrast, OEM manufacturers advertise storage capacity in “gigabytes,” which equals 1000^3 bytes after the International Electrotechnical Commission (IEC) officially adopted the new prefix standards in 1998.

“Gibibytes” is the correct definition for representing the space that’s actually available on a storage unit, but it can mislead users about the space their phone’s manufacturer advertised. Rahman pointed out that this issue persists in Android 14, potentially leading users to unnecessarily perform factory reset procedures in an attempt to reclaim additional space that never actually existed.





منبع