Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(531)

Side by Side Diff: build/android/pylib/restart_adbd.sh

Issue 304053002: A kinder, gentler adbd restart (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 #!/system/bin/sh
2
3 # Copyright 2014 The Chromium Authors. All rights reserved.
4 # Use of this source code is governed by a BSD-style license that can be
5 # found in the LICENSE file.
6
7 # Android shell script to restart adbd on the device. This has to be run
8 # atomically as a shell script because stopping adbd prevents further commands
9 # from running (even if called in the same adb shell).
10
11 trap '' HUP
12 trap '' TERM
13 trap '' PIPE
14
15 function restart() {
16 stop adbd
17 start adbd
18 }
19
20 restart &
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698