Monitor device storage directly in /data/data
The DeviceStorageMonitorService watches over /data, and when things get full, starts deleting app cached files. The app caches are actually under /data/data, which on DINC is its own mount. This means the monitor did not notice when app cache grew too big, as it only saw the size of /data proper. This patch makes the monitor look at /data/data instead. For DINC, this means it can properly manage app cache, but it won't notice if the upper /data partition is getting full. That's not as common as /data/data filling up though. For the Samsung devices that mount a /datadata and then symlink to /data/data, it should also work, as statfs dereferences links first. For all other devices with only /data, reading statfs on /data/data still yields the total/free sizes of the /data partition. (cherry picked from commit fc99763a) Change-Id: I85ed6486c1085c4de2f5a7e825709f01d8cc8cba
Loading
Please register or sign in to comment