summaryrefslogtreecommitdiffstats
path: root/twrp.cpp
diff options
context:
space:
mode:
authorEthan Yonker <dees_troy@teamw.in>2016-11-30 19:29:37 +0100
committerEthan Yonker <dees_troy@teamw.in>2016-11-30 20:19:08 +0100
commit3fdcda46629e8e7fc19e89c51350b1e6f151e05e (patch)
treec392e0fdcf8e61e5abfb88099fd8d9b1f1ff8a70 /twrp.cpp
parentFix adb shell in 7.0 tree (diff)
downloadandroid_bootable_recovery-3fdcda46629e8e7fc19e89c51350b1e6f151e05e.tar
android_bootable_recovery-3fdcda46629e8e7fc19e89c51350b1e6f151e05e.tar.gz
android_bootable_recovery-3fdcda46629e8e7fc19e89c51350b1e6f151e05e.tar.bz2
android_bootable_recovery-3fdcda46629e8e7fc19e89c51350b1e6f151e05e.tar.lz
android_bootable_recovery-3fdcda46629e8e7fc19e89c51350b1e6f151e05e.tar.xz
android_bootable_recovery-3fdcda46629e8e7fc19e89c51350b1e6f151e05e.tar.zst
android_bootable_recovery-3fdcda46629e8e7fc19e89c51350b1e6f151e05e.zip
Diffstat (limited to 'twrp.cpp')
-rw-r--r--twrp.cpp12
1 files changed, 5 insertions, 7 deletions
diff --git a/twrp.cpp b/twrp.cpp
index 816265989..3cd716f71 100644
--- a/twrp.cpp
+++ b/twrp.cpp
@@ -45,7 +45,6 @@ extern "C" {
#include "partitions.hpp"
#include "openrecoveryscript.hpp"
#include "variables.h"
-#include "twrpDU.hpp"
#ifdef TW_USE_NEW_MINADBD
#include "adb.h"
#else
@@ -64,7 +63,6 @@ extern int adb_server_main(int is_daemon, int server_port, int /* reply_fd */);
TWPartitionManager PartitionManager;
int Log_Offset;
bool datamedia;
-twrpDU du;
static void Print_Prop(const char *key, const char *name, void *cookie) {
printf("%s=%s\n", key, name);
@@ -235,19 +233,19 @@ int main(int argc, char **argv) {
} else if (*argptr == 'p') {
Shutdown = true;
} else if (*argptr == 's') {
- if (strncmp(argptr, "send_intent", strlen("send_intent") == 0)) {
+ if (strncmp(argptr, "send_intent", strlen("send_intent")) == 0) {
ptr = argptr + strlen("send_intent") + 1;
Send_Intent = *ptr;
- } else if (strncmp(argptr, "security", strlen("security") == 0)) {
+ } else if (strncmp(argptr, "security", strlen("security")) == 0) {
LOGINFO("Security update\n");
- } else if (strncmp(argptr, "sideload", strlen("sideload") == 0)) {
+ } else if (strncmp(argptr, "sideload", strlen("sideload")) == 0) {
if (!OpenRecoveryScript::Insert_ORS_Command("sideload\n"))
break;
- } else if (strncmp(argptr, "stages", strlen("stages") == 0)) {
+ } else if (strncmp(argptr, "stages", strlen("stages")) == 0) {
LOGINFO("ignoring stages command\n");
}
} else if (*argptr == 'r') {
- if (strncmp(argptr, "reason", strlen("reason") == 0)) {
+ if (strncmp(argptr, "reason", strlen("reason")) == 0) {
ptr = argptr + strlen("reason") + 1;
gui_print("%s\n", ptr);
}