summaryrefslogtreecommitdiffstats
path: root/adb_install.cpp
diff options
context:
space:
mode:
authorElliott Hughes <enh@google.com>2015-02-11 01:20:53 +0100
committerElliott Hughes <enh@google.com>2015-02-11 01:20:53 +0100
commitdcbf4fc571236bf5aa5286294b3c727be725db70 (patch)
tree05f42afb7d801d2ff3c6b7a3ac0e05949f710b69 /adb_install.cpp
parentam 99e084ca: Merge "Remove dead/unused code and realign some of the comments to make it more cleaner and easier to read" (diff)
parentMerge "recovery: Properly detect userdebug or eng builds" (diff)
downloadandroid_bootable_recovery-dcbf4fc571236bf5aa5286294b3c727be725db70.tar
android_bootable_recovery-dcbf4fc571236bf5aa5286294b3c727be725db70.tar.gz
android_bootable_recovery-dcbf4fc571236bf5aa5286294b3c727be725db70.tar.bz2
android_bootable_recovery-dcbf4fc571236bf5aa5286294b3c727be725db70.tar.lz
android_bootable_recovery-dcbf4fc571236bf5aa5286294b3c727be725db70.tar.xz
android_bootable_recovery-dcbf4fc571236bf5aa5286294b3c727be725db70.tar.zst
android_bootable_recovery-dcbf4fc571236bf5aa5286294b3c727be725db70.zip
Diffstat (limited to 'adb_install.cpp')
-rw-r--r--adb_install.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/adb_install.cpp b/adb_install.cpp
index be3b9a063..e3289608f 100644
--- a/adb_install.cpp
+++ b/adb_install.cpp
@@ -61,9 +61,7 @@ stop_adbd() {
static void
maybe_restart_adbd() {
- char value[PROPERTY_VALUE_MAX+1];
- int len = property_get("ro.debuggable", value, NULL);
- if (len == 1 && value[0] == '1') {
+ if (is_ro_debuggable()) {
ui->Print("Restarting adbd...\n");
set_usb_driver(true);
property_set("ctl.start", "adbd");