summaryrefslogtreecommitdiffstats
path: root/adb/adb.h
diff options
context:
space:
mode:
authorTom Marshall <tdm@cyngn.com>2014-11-26 13:48:46 -0800
committerSteve Kondik <steve@cyngn.com>2015-10-17 17:47:21 -0700
commit607422153bdcde6ac99ffc3458cc5148900328a8 (patch)
tree9b2359dc8be986ca28cfb2ae4b98ecce7a319c7b /adb/adb.h
parent5eda792697e07cb541d1f4a960fb37a160048572 (diff)
downloadsystem_core-607422153bdcde6ac99ffc3458cc5148900328a8.zip
system_core-607422153bdcde6ac99ffc3458cc5148900328a8.tar.gz
system_core-607422153bdcde6ac99ffc3458cc5148900328a8.tar.bz2
adb: Look for bu in /sbin when in recovery mode
* Restore global variable recovery_mode. This is set based on the commandline parameter --banner. * Use recovery_mode to select path to 'bu' binary for both backup and restore services. Change-Id: Ie4c945d00601514d7f16357bae10ff7f232633e1
Diffstat (limited to 'adb/adb.h')
-rw-r--r--adb/adb.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/adb/adb.h b/adb/adb.h
index 98cc4ca..1155cd3 100644
--- a/adb/adb.h
+++ b/adb/adb.h
@@ -339,6 +339,8 @@ int adb_commandline(int argc, const char **argv);
int connection_state(atransport *t);
+extern int recovery_mode;
+
#define CS_ANY -1
#define CS_OFFLINE 0
#define CS_BOOTLOADER 1