summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTao Bao <tbao@google.com>2016-12-10 21:50:16 +0100
committerGerrit Code Review <noreply-gerritcodereview@google.com>2016-12-10 21:50:16 +0100
commit594dc4f5be6effa97f1a2b87879790f1f7e65970 (patch)
tree2df7e68f3a719c63936c21bca858a8a76077a957
parentMerge "write_bootloader_message(<options>) should not reset stage field." (diff)
parentrecovery: Remove obsolete code that supports "CACHE:foo" format. (diff)
downloadandroid_bootable_recovery-594dc4f5be6effa97f1a2b87879790f1f7e65970.tar
android_bootable_recovery-594dc4f5be6effa97f1a2b87879790f1f7e65970.tar.gz
android_bootable_recovery-594dc4f5be6effa97f1a2b87879790f1f7e65970.tar.bz2
android_bootable_recovery-594dc4f5be6effa97f1a2b87879790f1f7e65970.tar.lz
android_bootable_recovery-594dc4f5be6effa97f1a2b87879790f1f7e65970.tar.xz
android_bootable_recovery-594dc4f5be6effa97f1a2b87879790f1f7e65970.tar.zst
android_bootable_recovery-594dc4f5be6effa97f1a2b87879790f1f7e65970.zip
-rw-r--r--recovery.cpp22
1 files changed, 1 insertions, 21 deletions
diff --git a/recovery.cpp b/recovery.cpp
index e16f28c72..e777c46cd 100644
--- a/recovery.cpp
+++ b/recovery.cpp
@@ -1525,27 +1525,7 @@ int main(int argc, char **argv) {
for (const auto& arg : args) {
printf(" \"%s\"", arg.c_str());
}
- printf("\n");
-
- if (update_package) {
- // For backwards compatibility on the cache partition only, if
- // we're given an old 'root' path "CACHE:foo", change it to
- // "/cache/foo".
- if (strncmp(update_package, "CACHE:", 6) == 0) {
- int len = strlen(update_package) + 10;
- char* modified_path = (char*)malloc(len);
- if (modified_path) {
- strlcpy(modified_path, "/cache/", len);
- strlcat(modified_path, update_package+6, len);
- printf("(replacing path \"%s\" with \"%s\")\n",
- update_package, modified_path);
- update_package = modified_path;
- }
- else
- printf("modified_path allocation failed\n");
- }
- }
- printf("\n");
+ printf("\n\n");
property_list(print_property, NULL);
printf("\n");