diff options
author | Elliott Hughes <enh@google.com> | 2015-02-11 00:55:44 +0100 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2015-02-11 00:55:45 +0100 |
commit | 35efcd275f90f5ffea371bb228a14b36c50e61d3 (patch) | |
tree | 5fc39fefa4022fa75857792dd517a9a14f60256c /adb_install.cpp | |
parent | Merge "Remove dead/unused code and realign some of the comments to make it more cleaner and easier to read" (diff) | |
parent | recovery: Properly detect userdebug or eng builds (diff) | |
download | android_bootable_recovery-35efcd275f90f5ffea371bb228a14b36c50e61d3.tar android_bootable_recovery-35efcd275f90f5ffea371bb228a14b36c50e61d3.tar.gz android_bootable_recovery-35efcd275f90f5ffea371bb228a14b36c50e61d3.tar.bz2 android_bootable_recovery-35efcd275f90f5ffea371bb228a14b36c50e61d3.tar.lz android_bootable_recovery-35efcd275f90f5ffea371bb228a14b36c50e61d3.tar.xz android_bootable_recovery-35efcd275f90f5ffea371bb228a14b36c50e61d3.tar.zst android_bootable_recovery-35efcd275f90f5ffea371bb228a14b36c50e61d3.zip |
Diffstat (limited to 'adb_install.cpp')
-rw-r--r-- | adb_install.cpp | 4 |
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"); |