Home | History | Annotate | Download | only in recovery

Lines Matching refs:recovery

63 #define LAST_LOG_FILE "/cache/recovery/last_log"
65 static const char *CACHE_LOG_DIR = "/cache/recovery";
66 static const char *COMMAND_FILE = "/cache/recovery/command";
67 static const char *INTENT_FILE = "/cache/recovery/intent";
68 static const char *LOG_FILE = "/cache/recovery/log";
69 static const char *LAST_INSTALL_FILE = "/cache/recovery/last_install";
70 static const char *LOCALE_FILE = "/cache/recovery/last_locale";
73 static const char *TEMPORARY_LOG_FILE = "/tmp/recovery.log";
83 * The recovery tool communicates with the main system through /cache files.
84 * /cache/recovery/command - INPUT - command line for tool, one arg per line
85 * /cache/recovery/log - OUTPUT - combined log file from recovery run(s)
86 * /cache/recovery/intent - OUTPUT - intent that was passed in
88 * The arguments which may be supplied in the recovery.command file:
89 * --send_intent=anystring - write the text out to recovery.intent
96 * After completing, we remove /cache/recovery/command and reboot.
102 * 2. main system writes "--wipe_data" to /cache/recovery/command
103 * 3. main system reboots into recovery
104 * 4. get_args() writes BCB with "boot-recovery" and "--wipe_data"
115 * 3. main system reboots into recovery
116 * 4. get_args() writes BCB with "boot-recovery" and "--update_package=..."
127 * 8a. m_i_f_u() writes BCB with "boot-recovery" and "--wipe_cache"
133 * 8e. bootloader writes BCB with "boot-recovery" (keeping "--wipe_cache")
170 // - the bootloader control block (one per line, after "recovery")
189 boot.recovery[sizeof(boot.recovery) - 1] = '\0'; // Ensure termination
190 const char *arg = strtok(boot.recovery, "\n");
191 if (arg != NULL && !strcmp(arg, "recovery")) {
199 } else if (boot.recovery[0] != 0 && boot.recovery[0] != 255) {
200 LOGE("Bad boot message\n\"%.20s\"\n", boot.recovery);
230 // always boot into recovery after this (until finish_recovery() is called)
231 strlcpy(boot.command, "boot-recovery", sizeof(boot.command));
232 strlcpy(boot.recovery, "recovery\n", sizeof(boot.recovery));
235 strlcat(boot.recovery, (*argv)[i], sizeof(boot.recovery));
236 strlcat(boot.recovery, "\n", sizeof(boot.recovery));
245 strlcpy(boot.command, "boot-recovery", sizeof(boot.command));
246 strlcpy(boot.recovery, "recovery\n", sizeof(boot.recovery));
304 // clear the recovery command and prepare to boot a (hopefully working) system,
321 // Save the locale to cache, so if recovery is next started up
335 // Reset to normal system boot so recovery won't cycle indefinitely.
340 // Remove the command file, so recovery won't repeat indefinitely.
368 // "/cache/recovery/last*" files into memory, so we can restore
541 *(h++) = "Android system recovery <" EXPAND(RECOVERY_API_VERSION) "e>";
930 // instead of being the normal recovery binary, it turns into kind
934 // only way recovery should be run with this argument is when it
941 printf("Starting recovery on %s", ctime(&start));