summaryrefslogtreecommitdiffstats
path: root/recovery.c
diff options
context:
space:
mode:
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) {