在android系统/缓存/文件夹恢复

问题描述:

这是什么在Android文件系统缓存/恢复文件夹持有?我有里面一个单一的文件 - last_log ,似乎对最后启动的日志信息来源。有人能详细解释一下吗?

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?

/缓存 包含安装在设备上的应用DEX信息。该信息在Android系统的第一启动填充。 Android的uncom presses每个应用程序,优化其推出,并将其保存到 /缓存。你至少应该看到每个应用程序一个文件有一个奇怪的名字:

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


  • 擦拭/数据

  • 擦拭/缓存,

  • 安装更新软件包

某些文件包含如果你问这样的恢复工具将执行命令。例如,当您选择恢复出厂设置您的设备上进入恢复模式。这样做的时候,在Android的 /恢复写一些命令到一个文件,要求系统在恢复模式重新启动。当执行恢复程序,它读取文件并执行书面的命令。在这种情况下,(恢复出厂设置),它会删除 /数据 /缓存并重新启动。

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)