/cache/recovery folder in android

borax12 picture borax12 · Jun 4, 2012 · Viewed 20.8k times · Source

What does the cache/recovery folder hold in the android filesystem? I have a single file inside it - last_log that seems to have the log infomation about the last bootup. Can somebody explain this in detail?

Answer

m-ric picture m-ric · Apr 4, 2013

/cache contains dex information about the apps installed on your device. This information is populated at the very first boot of Android. Android uncompresses each app, optimizes its launch, and save it into /cache. You should at least see one file per app with a weird name:

/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: