Cache counted twice?

37 views
Skip to first unread message

Ricardo “Rudxain” Fernández Serrata

unread,
Mar 20, 2023, 12:51:32 AM3/20/23
to Automate
Is this a Samsung Galaxy bug, or an Android bug?

When using the "is App Installed? block", "data" includes "cache", forcing me to subtract cache from data.

The settings app in older Galaxy devices had a bug that caused the "Total" to also count the cache twice, but they fixed it in OneUI.

Henrik "The Developer" Lindqvist

unread,
Mar 20, 2023, 8:56:23 AM3/20/23
to Automate
Its doesn't seem to be an Automate bug. No where is data added to cache size, but it do add up usage from both install location and internal storage, if they differ.

Android version?

Ricardo “Rudxain” Fernández Serrata

unread,
Mar 21, 2023, 1:16:40 PM3/21/23
to Automate
My main device is SM-A315G, Android 12, OneUI 4.1.

On this system, the Settings app UI shows correct sizes.

I suspect this is a Samsung problem, because (IIRC) the Xperia Z5 didn't have this issue (I only tested the Settings UI, not the Android API)

Henrik "The Developer" Lindqvist

unread,
Mar 21, 2023, 1:53:16 PM3/21/23
to Automate
Do the block report the same sizes as Settings app?

Ricardo “Rudxain” Fernández Serrata

unread,
Mar 21, 2023, 2:41:03 PM3/21/23
to Automate
On my main device, the "Data" size doesn't match. But "Code" and "Cache do match.

On the SM-J327VPP (Galaxy J3 Mission, Android 8.1), all sizes match (because of the bug)

I haven't described the whole bug. I'll clarify now:

The J3 Mission shows incorrect "Data" and "Total" sizes, because "Data" is actually "data_without_cache + cache" (I noticed this, because everytime I clear-cache any app, the "Data" decreases the same amount that was cleared). The "Total" is calculated like so `code + data + cache` (but since `data = data_without_cache + cache`, then `total = code + data_without_cache + 2*cache`)

IIRC, the J2 Prime also has the same issue as the J3M

Ricardo “Rudxain” Fernández Serrata

unread,
Mar 21, 2023, 3:06:13 PM3/21/23
to Automate
Wait, actually, the J2P has the same issue as A31. The Settings app on the J2P uses MiB units, but says it's MB (I noticed because sizeFormat says "49.2 MB" but Settings says "46.92 MB")
Reply all
Reply to author
Forward
0 new messages