summaryrefslogtreecommitdiffstats
path: root/uncrypt
diff options
context:
space:
mode:
authorTao Bao <tbao@google.com>2016-02-23 02:33:14 +0100
committerTao Bao <tbao@google.com>2016-02-23 02:33:41 +0100
commit5b3b373a4938b8359bb55c62057fc5771e689add (patch)
treed42b65c602377a7c152473114f99e01e10441b50 /uncrypt
parentFix verifier test base testdata directory after merge conflict (diff)
downloadandroid_bootable_recovery-5b3b373a4938b8359bb55c62057fc5771e689add.tar
android_bootable_recovery-5b3b373a4938b8359bb55c62057fc5771e689add.tar.gz
android_bootable_recovery-5b3b373a4938b8359bb55c62057fc5771e689add.tar.bz2
android_bootable_recovery-5b3b373a4938b8359bb55c62057fc5771e689add.tar.lz
android_bootable_recovery-5b3b373a4938b8359bb55c62057fc5771e689add.tar.xz
android_bootable_recovery-5b3b373a4938b8359bb55c62057fc5771e689add.tar.zst
android_bootable_recovery-5b3b373a4938b8359bb55c62057fc5771e689add.zip
Diffstat (limited to '')
-rw-r--r--uncrypt/uncrypt.cpp14
-rw-r--r--uncrypt/uncrypt.rc7
2 files changed, 2 insertions, 19 deletions
diff --git a/uncrypt/uncrypt.cpp b/uncrypt/uncrypt.cpp
index 705744eb6..2a32108a3 100644
--- a/uncrypt/uncrypt.cpp
+++ b/uncrypt/uncrypt.cpp
@@ -406,15 +406,6 @@ static int write_bootloader_message(const bootloader_message* in) {
return 0;
}
-static void reboot_to_recovery() {
- ALOGI("rebooting to recovery");
- property_set("sys.powerctl", "reboot,recovery");
- while (true) {
- pause();
- }
- ALOGE("reboot didn't succeed?");
-}
-
static int uncrypt(const char* input_path, const char* map_file, int status_fd) {
ALOGI("update package is \"%s\"", input_path);
@@ -543,7 +534,6 @@ static int read_bcb() {
static void usage(const char* exename) {
fprintf(stderr, "Usage of %s:\n", exename);
fprintf(stderr, "%s [<package_path> <map_file>] Uncrypt ota package.\n", exename);
- fprintf(stderr, "%s --reboot Clear BCB data and reboot to recovery.\n", exename);
fprintf(stderr, "%s --clear-bcb Clear BCB data in misc partition.\n", exename);
fprintf(stderr, "%s --setup-bcb Setup BCB data by command file.\n", exename);
fprintf(stderr, "%s --read-bcb Read BCB data from misc partition.\n", exename);
@@ -551,9 +541,7 @@ static void usage(const char* exename) {
int main(int argc, char** argv) {
if (argc == 2) {
- if (strcmp(argv[1], "--reboot") == 0) {
- reboot_to_recovery();
- } else if (strcmp(argv[1], "--clear-bcb") == 0) {
+ if (strcmp(argv[1], "--clear-bcb") == 0) {
return clear_bcb(STATUS_FILE);
} else if (strcmp(argv[1], "--setup-bcb") == 0) {
return setup_bcb(COMMAND_FILE, STATUS_FILE);
diff --git a/uncrypt/uncrypt.rc b/uncrypt/uncrypt.rc
index b07c1dada..d5d803b9f 100644
--- a/uncrypt/uncrypt.rc
+++ b/uncrypt/uncrypt.rc
@@ -3,11 +3,6 @@ service uncrypt /system/bin/uncrypt
disabled
oneshot
-service pre-recovery /system/bin/uncrypt --reboot
- class main
- disabled
- oneshot
-
service setup-bcb /system/bin/uncrypt --setup-bcb
class main
disabled
@@ -16,4 +11,4 @@ service setup-bcb /system/bin/uncrypt --setup-bcb
service clear-bcb /system/bin/uncrypt --clear-bcb
class main
disabled
- oneshot \ No newline at end of file
+ oneshot