summaryrefslogtreecommitdiffstats
path: root/recovery.c
diff options
context:
space:
mode:
authorDoug Zongker <dougz@android.com>2009-07-16 03:10:28 +0200
committerDoug Zongker <dougz@android.com>2009-07-16 03:10:28 +0200
commit608fa02e1ac0ea11a0d3ca754f38bd76b77faa82 (patch)
tree5e7eb02fce9e783a2a149b8580e3da69d3cb6a2d /recovery.c
parentam bec02d57: skip over all-zero blocks when reading MTD partition (diff)
parentremove amend (diff)
downloadandroid_bootable_recovery-608fa02e1ac0ea11a0d3ca754f38bd76b77faa82.tar
android_bootable_recovery-608fa02e1ac0ea11a0d3ca754f38bd76b77faa82.tar.gz
android_bootable_recovery-608fa02e1ac0ea11a0d3ca754f38bd76b77faa82.tar.bz2
android_bootable_recovery-608fa02e1ac0ea11a0d3ca754f38bd76b77faa82.tar.lz
android_bootable_recovery-608fa02e1ac0ea11a0d3ca754f38bd76b77faa82.tar.xz
android_bootable_recovery-608fa02e1ac0ea11a0d3ca754f38bd76b77faa82.tar.zst
android_bootable_recovery-608fa02e1ac0ea11a0d3ca754f38bd76b77faa82.zip
Diffstat (limited to 'recovery.c')
-rw-r--r--recovery.c29
1 files changed, 1 insertions, 28 deletions
diff --git a/recovery.c b/recovery.c
index 499fda574..ed6a9c888 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"
@@ -259,23 +258,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)
{
@@ -289,7 +271,7 @@ static void
prompt_and_wait()
{
char* title[] = { "Android system recovery <"
- EXPAND(RECOVERY_API_VERSION) ">",
+ EXPAND(RECOVERY_API_VERSION) "e>",
"",
NULL };
@@ -450,15 +432,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) {