android中的/cache/recovery文件夹

bor*_*x12 3 android caching recovery

android 文件系统中的缓存/恢复文件夹是什么?我里面有一个文件 -last_log似乎有关于上次启动的日志信息。有人可以详细解释一下吗?

m-r*_*ric 6

/cache包含有关您设备上安装的应用程序的 dex 信息。此信息在 Android 首次启动时填充。Android 解压缩每个应用程序,优化其启动,并将其保存到/cache. 每个应用程序至少应该看到一个名称奇怪的文件:

/recovery contains files needed to boot in recovery mode. Recovery mode is a special boot mode that allow you to (not limited):

  • wipe /data,
  • wipe /cache,
  • install an update package

Some files contain commands that the recovery tool would execute if you ask so. For example, recovery mode is entered when you select factory reset on your device. When doing so, Android writes some commands to a file in /recovery and asks the system to reboot in recovery mode. When recovery program is being executed, it reads the file and executes the commands written. In this case (factory reset), it would erase /data and /cache and reboot.

Those links might be interesting to you: