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

Unified Diff: web_page_replay_go/README.md

Issue 2997573003: [wpr-go] Add support install test root CA on Android (Closed)
Patch Set: roll binary Created 3 years, 4 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 side-by-side diff with in-line comments
Download patch
Index: web_page_replay_go/README.md
diff --git a/web_page_replay_go/README.md b/web_page_replay_go/README.md
index d3f9824c01d8feeabad758ef8a0dd5befbf4630f..d4e74da99fdb565ceb911bb3f40977a3de56e627 100644
--- a/web_page_replay_go/README.md
+++ b/web_page_replay_go/README.md
@@ -53,19 +53,41 @@ export GOPATH=/path/to/web_page_replay_go:"$HOME/go"
load the page
+## Running on Android
+
+You will need a Linux host machine and an android device.
+
+* Set up reverse port forwarding
+
+```
+adb reverse tcp:8080 tcp:8080
+adb reverse tcp:8081 tcp:8081
+```
+
+* Set up command line arguments
+
+```
+build/android/adb_chrome_public_command_line '--host-resolver-rules="MAP *:80 127.0.0.1:8080,MAP *:443 127.0.0.1:8081,EXCLUDE localhost"'
+```
+
+* Run wpr.go as usual on the linux machine
+
### Installing test root CA
WebPageReplay uses self signed certificates for Https requests. To make Chrome
trust these certificates, you can install a test certificate authority as a
local trust anchor. **Note:** Please do this with care because installing the
test root CA compromises your machine. This is currently only supported on
-Linux.
+Linux and Android.
-Installing the test CA
+Installing the test CA. Specify a `--android_device_id` if you'd like to install
+the root CA on an android device.
```
go run src/wpr.go installroot
```
-Uninstall the test CA
+Uninstall the test CA. Specify a `--android_device_id` if you'd like to remove
+the root CA from an android device.
+
```
go run src/wpr.go removeroot
```
« no previous file with comments | « telemetry/telemetry/internal/binary_dependencies.json ('k') | web_page_replay_go/src/webpagereplay/adb_cert_installer.go » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698