Home | History | Annotate | Download | only in recovery

Lines Matching full:recovery

67 #define LAST_LOG_FILE "/cache/recovery/last_log"
69 static const char *CACHE_LOG_DIR = "/cache/recovery";
70 static const char *COMMAND_FILE = "/cache/recovery/command";
71 static const char *INTENT_FILE = "/cache/recovery/intent";
72 static const char *LOG_FILE = "/cache/recovery/log";
73 static const char *LAST_INSTALL_FILE = "/cache/recovery/last_install";
74 static const char *LOCALE_FILE = "/cache/recovery/last_locale";
77 static const char *TEMPORARY_LOG_FILE = "/tmp/recovery.log";
89 * The recovery tool communicates with the main system through /cache files.
90 * /cache/recovery/command - INPUT - command line for tool, one arg per line
91 * /cache/recovery/log - OUTPUT - combined log file from recovery run(s)
92 * /cache/recovery/intent - OUTPUT - intent that was passed in
94 * The arguments which may be supplied in the recovery.command file:
95 * --send_intent=anystring - write the text out to recovery.intent
102 * After completing, we remove /cache/recovery/command and reboot.
108 * 2. main system writes "--wipe_data" to /cache/recovery/command
109 * 3. main system reboots into recovery
110 * 4. get_args() writes BCB with "boot-recovery" and "--wipe_data"
121 * 3. main system reboots into recovery
122 * 4. get_args() writes BCB with "boot-recovery" and "--update_package=..."
133 * 8a. m_i_f_u() writes BCB with "boot-recovery" and "--wipe_cache"
139 * 8e. bootloader writes BCB with "boot-recovery" (keeping "--wipe_cache")
182 // - the bootloader control block (one per line, after "recovery")
201 boot.recovery[sizeof(boot.recovery) - 1] = '\0'; // Ensure termination
202 const char *arg = strtok(boot.recovery, "\n");
203 if (arg != NULL && !strcmp(arg, "recovery")) {
211 } else if (boot.recovery[0] != 0 && boot.recovery[0] != 255) {
212 LOGE("Bad boot message\n\"%.20s\"\n", boot.recovery);
242 // always boot into recovery after this (until finish_recovery() is called)
243 strlcpy(boot.command, "boot-recovery", sizeof(boot.command));
244 strlcpy(boot.recovery, "recovery\n", sizeof(boot.recovery));
247 strlcat(boot.recovery, (*argv)[i], sizeof(boot.recovery));
248 strlcat(boot.recovery, "\n", sizeof(boot.recovery));
257 strlcpy(boot.command, "boot-recovery", sizeof(boot.command));
258 strlcpy(boot.recovery, "recovery\n", sizeof(boot.recovery));
316 // clear the recovery command and prepare to boot a (hopefully working) system,
333 // Save the locale to cache, so if recovery is next started up
347 // Reset to normal system boot so recovery won't cycle indefinitely.
352 // Remove the command file, so recovery won't repeat indefinitely.
380 // "/cache/recovery/last*" files into memory, so we can restore
463 *(h++) = "Android system recovery <" EXPAND(RECOVERY_API_VERSION) "e>";
737 // on if the --shutdown_after flag was passed to recovery.
901 // instead of being the normal recovery binary, it turns into kind
905 // only way recovery should be run with this argument is when it
912 printf("Starting recovery (pid %d) on %s", getpid(), ctime(&start));