OLD | NEW |
1 #!/bin/bash | 1 #!/bin/bash |
2 # Copyright 2014 The Chromium Authors. All rights reserved. | 2 # Copyright 2014 The Chromium Authors. All rights reserved. |
3 # Use of this source code is governed by a BSD-style license that can be | 3 # Use of this source code is governed by a BSD-style license that can be |
4 # found in the LICENSE file. | 4 # found in the LICENSE file. |
5 | 5 |
6 # URL from which the latest version of this script can be downloaded. | 6 # URL from which the latest version of this script can be downloaded. |
7 script_url="http://src.chromium.org/svn/trunk/src/tools/android/adb_remote_setup
.sh" | 7 script_url="http://src.chromium.org/svn/trunk/src/tools/android/adb_remote_setup
.sh" |
8 | 8 |
9 # Replaces this file with the latest version of the script and runs it. | 9 # Replaces this file with the latest version of the script and runs it. |
10 update-self() { | 10 update-self() { |
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
77 # Kill the adb server on the remote host. | 77 # Kill the adb server on the remote host. |
78 ssh "$remote_host" "$remote_adb kill-server" | 78 ssh "$remote_host" "$remote_adb kill-server" |
79 | 79 |
80 # Start the adb server locally. | 80 # Start the adb server locally. |
81 adb start-server | 81 adb start-server |
82 | 82 |
83 # Forward various ports from the remote host to the local host: | 83 # Forward various ports from the remote host to the local host: |
84 # 5037: adb | 84 # 5037: adb |
85 # 8001: http server | 85 # 8001: http server |
86 # 9031: sync server | 86 # 9031: sync server |
| 87 # 9041: search by image server |
| 88 # 9051: policy server |
87 # 10000: net unittests | 89 # 10000: net unittests |
88 # 10201: net unittests | 90 # 10201: net unittests |
89 ssh -C \ | 91 ssh -C \ |
90 -R 5037:localhost:5037 \ | 92 -R 5037:localhost:5037 \ |
91 -L 8001:localhost:8001 \ | 93 -L 8001:localhost:8001 \ |
92 -L 9031:localhost:9031 \ | 94 -L 9031:localhost:9031 \ |
| 95 -L 9041:localhost:9041 \ |
| 96 -L 9051:localhost:9051 \ |
93 -R 10000:localhost:10000 \ | 97 -R 10000:localhost:10000 \ |
94 -R 10201:localhost:10201 \ | 98 -R 10201:localhost:10201 \ |
95 "$remote_host" | 99 "$remote_host" |
OLD | NEW |