summaryrefslogtreecommitdiffstats
path: root/recovery.c
diff options
context:
space:
mode:
authorDoug Zongker <dougz@android.com>2009-07-15 01:31:56 +0200
committerDoug Zongker <dougz@android.com>2009-07-15 01:58:42 +0200
commit64893ccc09b25ac31bc6a17f5c7f43c7fa789576 (patch)
treea56912e18b608b123f1c4454293d2b2aa36fa96a /recovery.c
parentskip over all-zero blocks when reading MTD partition (diff)
downloadandroid_bootable_recovery-64893ccc09b25ac31bc6a17f5c7f43c7fa789576.tar
android_bootable_recovery-64893ccc09b25ac31bc6a17f5c7f43c7fa789576.tar.gz
android_bootable_recovery-64893ccc09b25ac31bc6a17f5c7f43c7fa789576.tar.bz2
android_bootable_recovery-64893ccc09b25ac31bc6a17f5c7f43c7fa789576.tar.lz
android_bootable_recovery-64893ccc09b25ac31bc6a17f5c7f43c7fa789576.tar.xz
android_bootable_recovery-64893ccc09b25ac31bc6a17f5c7f43c7fa789576.tar.zst
android_bootable_recovery-64893ccc09b25ac31bc6a17f5c7f43c7fa789576.zip
Diffstat (limited to '')
-rw-r--r--recovery.c29
1 files changed, 1 insertions, 28 deletions
diff --git a/recovery.c b/recovery.c
index 5ccd38f2c..0408abf92 100644
--- a/recovery.c
+++ b/recovery.c
@@ -29,7 +29,6 @@
#include <unistd.h>
#include "bootloader.h"
-#include "commands.h"
#include "common.h"
#include "cutils/properties.h"
#include "firmware.h"
@@ -258,23 +257,6 @@ finish_recovery(const char *send_intent)
sync(); // For good measure.
}
-#define TEST_AMEND 0
-#if TEST_AMEND
-static void
-test_amend()
-{
- extern int test_symtab(void);
- extern int test_cmd_fn(void);
- int ret;
- LOGD("Testing symtab...\n");
- ret = test_symtab();
- LOGD(" returned %d\n", ret);
- LOGD("Testing cmd_fn...\n");
- ret = test_cmd_fn();
- LOGD(" returned %d\n", ret);
-}
-#endif // TEST_AMEND
-
static int
erase_root(const char *root)
{
@@ -288,7 +270,7 @@ static void
prompt_and_wait()
{
char* headers[] = { "Android system recovery <"
- EXPAND(RECOVERY_API_VERSION) ">",
+ EXPAND(RECOVERY_API_VERSION) "e>",
"",
"Use trackball to highlight;",
"click to select.",
@@ -445,15 +427,6 @@ main(int argc, char **argv)
property_list(print_property, NULL);
fprintf(stderr, "\n");
-#if TEST_AMEND
- test_amend();
-#endif
-
- RecoveryCommandContext ctx = { NULL };
- if (register_update_commands(&ctx)) {
- LOGE("Can't install update commands\n");
- }
-
int status = INSTALL_SUCCESS;
if (update_package != NULL) {