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

Side by Side Diff: docs/working_remotely_with_android.md

Issue 2359473002: Small fix to doc for working remotely on android. (Closed)
Patch Set: Created 4 years, 3 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Working remotely with Android 1 # Working remotely with Android
2 2
3 [TOC] 3 [TOC]
4 4
5 5
6 ## Introduction 6 ## Introduction
7 7
8 When you call /build/android/run_tests.py or 8 When you call /build/android/run_tests.py or
9 /build/android/run_instrumentation_tests.py it assumes an android device 9 /build/android/run_instrumentation_tests.py it assumes an android device
10 is attached to the local host. 10 is attached to the local host.
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
81 ``` 81 ```
82 82
83 ## Option 2: SSH Tunneling 83 ## Option 2: SSH Tunneling
84 84
85 ### Option 2a: Use a script 85 ### Option 2a: Use a script
86 86
87 Copy /tools/android/adb_remote_setup.sh to your laptop, then run it. 87 Copy /tools/android/adb_remote_setup.sh to your laptop, then run it.
88 adb_remote_setup.sh updates itself, so you only need to copy it once. 88 adb_remote_setup.sh updates itself, so you only need to copy it once.
89 89
90 ```shell 90 ```shell
91 laptop$ curl -sSf "https://chromium.googlesource.com/chromium/src.git/+/master/t ools/android/adb_remote_setup.sh?format=TEXT | base64 --decode > adb_remote_setu p.sh 91 laptop$ curl -sSf "https://chromium.googlesource.com/chromium/src.git/+/master/t ools/android/adb_remote_setup.sh?format=TEXT" | base64 --decode > adb_remote_set up.sh
92 laptop$ chmod +x adb_remote_setup.sh 92 laptop$ chmod +x adb_remote_setup.sh
93 laptop$ ./adb_remote_setup.sh <desktop_hostname> <path_to_adb_on_desktop> 93 laptop$ ./adb_remote_setup.sh <desktop_hostname> <path_to_adb_on_desktop>
94 ``` 94 ```
95 95
96 ### Option 2b: Manual tunneling 96 ### Option 2b: Manual tunneling
97 97
98 You have to make sure that ports 5037, 10000, ad 10201 are not being used on 98 You have to make sure that ports 5037, 10000, ad 10201 are not being used on
99 either your laptop or your desktop. Try the command: `netstat -nap | grep 10000` 99 either your laptop or your desktop. Try the command: `netstat -nap | grep 10000`
100 to see 100 to see
101 101
(...skipping 10 matching lines...) Expand all
112 112
113 ```shell 113 ```shell
114 laptop$ ssh -C -R 5037:localhost:5037 -R 10000:localhost:10000 -R 10201:localhos t:10201 <desktop_host_name> 114 laptop$ ssh -C -R 5037:localhost:5037 -R 10000:localhost:10000 -R 10201:localhos t:10201 <desktop_host_name>
115 ``` 115 ```
116 116
117 #### On your host machine 117 #### On your host machine
118 118
119 ```shell 119 ```shell
120 desktop$ python build/android/run_instrumentation_tests.py -I --test-apk Content ShellTest -vvv 120 desktop$ python build/android/run_instrumentation_tests.py -I --test-apk Content ShellTest -vvv
121 ``` 121 ```
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698