There are three files in the cache partition, which can be used as the communication channels between the main system and recovery tool. These three files are:
- /cache/recovery/command: This is a file for input parameters from the recovery point of view. There is one command per line in this file. The arguments that may be supplied in the file are:
- -send_intent=anystring: The main system may use this command to send a message back to itself after recovery exit
- -update_package=path : This command specifies a path to install an OTA package file
- -wipe_data: This command tells recovery to erase user data (and cache), and then reboot
- -wipe_cache: This command tells recovery to wipe cache (but not user data), then reboot
- -set_encrypted_filesystem=on|off ...