Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 Loading... | |
| 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 "http://src.chromium.org/svn/trunk/src/tools/android/adb_remote_set up.sh" > adb_remote_setup.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_setu p.sh |
|
Timur Iskhodzhanov
2015/12/29 05:13:27
nit: probably closing quote is missing
| |
| 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 Loading... | |
| 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 ``` |
| OLD | NEW |