Limit size of cache directory

前端 未结 1 1725
庸人自扰
庸人自扰 2020-12-05 00:15

I have some questions about the cache directory in android.

  1. Does anyone knows the limit for each app\'s cache directory?

  2. Also what will hap

相关标签:
1条回答
  • 2020-12-05 01:17

    There is no per-application limit for the cache directory. While Linux has a quota subsystem built-in, it is not used by Android. Applications share the cache filesystem without any real constraints. As it fills up, the Device Storage Monitor sends out an ACTION_DEVICE_STORAGE_LOW broadcast and calls a method of the Package Manager Service that sends a "freecache" command to the Install Daemon. The installd process then walks through the cache directory deleting files without regard to the owning application or modification date until the amount of free space available is above some threshold.

    0 讨论(0)
提交回复
热议问题