Skip to content

Commit 1a56eb8

Browse files
committed
Add explanation text to the ports config UI
1 parent 7538afa commit 1a56eb8

File tree

2 files changed

+40
-6
lines changed

2 files changed

+40
-6
lines changed

app/src/main/res/layout/ports_list.xml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,15 @@
66
android:layout_height="match_parent"
77
android:orientation="vertical">
88

9+
<TextView
10+
android:layout_width="match_parent"
11+
android:layout_height="wrap_content"
12+
android:layout_marginLeft="16dp"
13+
android:layout_marginTop="8dp"
14+
android:layout_marginRight="16dp"
15+
android:layout_marginBottom="8dp"
16+
android:text="@string/port_config_explanation" />
17+
918
<com.google.android.material.card.MaterialCardView
1019
android:layout_width="match_parent"
1120
android:layout_height="wrap_content"

app/src/main/res/values/strings.xml

Lines changed: 31 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,22 +11,41 @@
1111
<string name="connected_status">Connected</string>
1212
<string name="failed_status">Oh no!</string>
1313

14-
<string name="disconnected_details">To intercept this device, start HTTP Toolkit on your computer, and activate Android interception there via QR code or using ADB.</string>
14+
<string name="disconnected_details">
15+
To intercept this device, start HTTP Toolkit on your computer, and activate Android
16+
interception there via QR code or using ADB.
17+
</string>
1518

1619
<string name="connected_details">to %s on port %d</string>
1720
<string name="connected_tunnel_details">via ADB tunnel</string>
18-
<string name="failed_details">We couldn\'t connect to HTTP Toolkit.\n\nIs it running, and connected to the same network as this device?</string>
21+
<string name="failed_details">
22+
We couldn\'t connect to HTTP Toolkit.\n\nIs it running, and connected to the same network
23+
as this device?
24+
</string>
1925

2026
<string name="disabled_connection_status_heading">HTTPS interception disabled</string>
2127
<string name="user_connection_status_enabled_heading">User trust enabled</string>
2228
<string name="system_connection_status_disabled_heading">System trust disabled</string>
2329
<string name="system_connection_status_enabled_heading">System trust enabled</string>
2430
<string name="pre_v7_connection_status_enabled_heading">Certificate trusted</string>
2531

26-
<string name="none_connection_status_details">Your HTTP Toolkit certificate is not trusted on this device, so HTTPS traffic will only be available from apps that individually include and trust it.\n\nDisconnect and reconnect to rerun HTTPS certificate setup.</string>
27-
<string name="user_connection_status_details">HTTPS interception will only be available for apps that are configured to trust user-installed certificates (<a href="https://httptoolkit.tech/docs/guides/android#intercepting-traffic-from-your-own-android-app">How?</a>)</string>
28-
<string name="system_connection_status_details">Traffic from all intercepted applications will be available, except those using explicit certificate pinning.</string>
29-
<string name="pre_v7_connection_status_details">Traffic from all intercepted applications will be available, except those using explicit certificate pinning.</string>
32+
<string name="none_connection_status_details">
33+
Your HTTP Toolkit certificate is not trusted on this device, so HTTPS traffic will only be
34+
available from apps that individually include and trust it.\n\nDisconnect and reconnect to
35+
rerun HTTPS certificate setup.
36+
</string>
37+
<string name="user_connection_status_details">
38+
HTTPS interception will only be available for apps that are configured to trust user-installed certificates
39+
(<a href="https://httptoolkit.tech/docs/guides/android#intercepting-traffic-from-your-own-android-app">How?</a>)
40+
</string>
41+
<string name="system_connection_status_details">
42+
Traffic from all intercepted applications will
43+
be available, except those using explicit certificate pinning.
44+
</string>
45+
<string name="pre_v7_connection_status_details">
46+
Traffic from all intercepted applications will
47+
be available, except those using explicit certificate pinning.
48+
</string>
3049

3150
<string name="scan_button">Scan QR code</string>
3251
<string name="reconnect_button">Reconnect</string>
@@ -52,4 +71,10 @@
5271
<string name="few_ports">%s port%s</string>
5372
<string name="add_port_prompt">Add another port</string>
5473
<string name="reset_to_default_ports">Reset to default ports</string>
74+
<string name="port_config_explanation">
75+
HTTP Toolkit sets the device\'s HTTP proxy configuration, to capture traffic from all apps
76+
on any port, but some apps may ignore this.\n\nYou can add ports here to forcibly redirect
77+
all outgoing traffic to that port, but be careful, as this will interfere with any non-HTTP
78+
traffic on these ports.
79+
</string>
5580
</resources>

0 commit comments

Comments
 (0)