Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

/cache/recovery folder in android

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?

like image 758
heysupratim Avatar asked Nov 28 '25 02:11

heysupratim


1 Answers

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

  • What are ODEX files in Android?
  • http://www.androidcentral.com/what-recovery-android-z
  • http://marakana.com/s/post/1065/updating_android_os_via_ota (AOSP)
  • http://forum.xda-developers.com/showthread.php?t=1091508
  • http://developer.android.com/reference/android/os/RecoverySystem.html (Java API)
like image 75
m-ric Avatar answered Nov 30 '25 16:11

m-ric



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!