diff options
author | navabi@google.com <navabi@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-07-11 00:56:40 +0000 |
---|---|---|
committer | navabi@google.com <navabi@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-07-11 00:56:40 +0000 |
commit | d95c19ddfd499fa2e94772b33c82acf495be0e23 (patch) | |
tree | 2e0e862f80432c18b4add0b7232f4d90eb49dc00 /tools/android | |
parent | 5e2bef762f00889fc2c7825d65b5e544c28eff33 (diff) | |
download | chromium_src-d95c19ddfd499fa2e94772b33c82acf495be0e23.zip chromium_src-d95c19ddfd499fa2e94772b33c82acf495be0e23.tar.gz chromium_src-d95c19ddfd499fa2e94772b33c82acf495be0e23.tar.bz2 |
Go back to rebooting the phone on disconnect.
We changed the adb reboot on disconnect script, to reconnect on disconnect (i.e.
instead of rebooting the device, the script would restart adbd on the device).
Unfortunately, without 'adb root' the 'su' command to stop adbd gets stuck. To
not require 'adb root', we are going back to reboot on disconnect (i.e. 'su -c
reboot' works).
NOTRY=True
BUG=256353
Review URL: https://chromiumcodereview.appspot.com/18453006
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@210993 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'tools/android')
-rw-r--r-- | tools/android/adb_reboot/adb_reboot.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/tools/android/adb_reboot/adb_reboot.c b/tools/android/adb_reboot/adb_reboot.c index a8115fc..48c5cbe 100644 --- a/tools/android/adb_reboot/adb_reboot.c +++ b/tools/android/adb_reboot/adb_reboot.c @@ -35,9 +35,7 @@ int main(int argc, char ** argv) { time(&ct); if (ct - ft.st_mtime > 120) { /* File was not touched for some time. */ - system("su -c stop adbd"); - system("sleep 2"); - system("su -c start adbd"); + system("su -c reboot"); } } |