summaryrefslogtreecommitdiffstats
path: root/adb_install.cpp
diff options
context:
space:
mode:
authorElliott Hughes <enh@google.com>2015-02-10 23:46:14 +0100
committerElliott Hughes <enh@google.com>2015-02-10 23:46:14 +0100
commitf14af80a1418acdc0ae6fea3da0285a357d57182 (patch)
tree5fc39fefa4022fa75857792dd517a9a14f60256c /adb_install.cpp
parentMerge "Remove dead/unused code and realign some of the comments to make it more cleaner and easier to read" (diff)
downloadandroid_bootable_recovery-f14af80a1418acdc0ae6fea3da0285a357d57182.tar
android_bootable_recovery-f14af80a1418acdc0ae6fea3da0285a357d57182.tar.gz
android_bootable_recovery-f14af80a1418acdc0ae6fea3da0285a357d57182.tar.bz2
android_bootable_recovery-f14af80a1418acdc0ae6fea3da0285a357d57182.tar.lz
android_bootable_recovery-f14af80a1418acdc0ae6fea3da0285a357d57182.tar.xz
android_bootable_recovery-f14af80a1418acdc0ae6fea3da0285a357d57182.tar.zst
android_bootable_recovery-f14af80a1418acdc0ae6fea3da0285a357d57182.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");