Skip to content

The ultimate harness for coding agents and beyond. All your agents. All your machines. One command center. Start with code, then follow your curiosity and build across disciplines: CAD, circuits, robots, games and music.

feat(mobile): link the privacy policy from Settings ▸ About

tony3195ad7a2b15
diff --git a/mobile/RELEASE.md b/mobile/RELEASE.md
index 9a6c8f632..2db8336d5 100644
--- a/mobile/RELEASE.md
+++ b/mobile/RELEASE.md
@@ -217,7 +217,7 @@ terminal,tmux,ssh,claude,codex,cursor,coding,agent,developer,remote,shell,devops
| --- | --- |
| Support URL | `https://www.autonomous.ai/harness` |
| Marketing URL | `https://www.autonomous.ai/harness` |
-| Privacy Policy URL | **required — use the real Autonomous policy URL; there is none in this repo to copy** |
+| Privacy Policy URL | `https://www.autonomous.ai/privacy` — the address every Harness listing names, and the one Settings ▸ About ▸ Privacy Policy opens (`lib/phone/privacy_policy.dart`) |
**What's New** — leave empty for 1.0.0; it is only shown for updates.
@@ -325,7 +325,8 @@ team's password manager.**
1. **Create app** (Play Console ▸ *Create app*): name `OpenHarness`, default language, *App*, *Free*.
2. **App content** — Play will not publish anything to production while one of these is open:
- - *Privacy policy*: required (the app asks for the camera and microphone). Same URL as iOS.
+ - *Privacy policy*: required (the app asks for the camera and microphone). Same URL as iOS:
+ `https://www.autonomous.ai/privacy`.
- *App access*: sign-in is required → give the demo account from the iOS review notes, and keep a
machine paired to it online, for the same reason as [App Review notes](#app-review-notes--the-part-that-gets-10-rejected).
- *Ads*: no. *Content rating*: fill the questionnaire (a utility, no user-generated content shown
diff --git a/mobile/lib/phone/privacy_policy.dart b/mobile/lib/phone/privacy_policy.dart
new file mode 100644
index 000000000..b7f61720d
--- /dev/null
+++ b/mobile/lib/phone/privacy_policy.dart
@@ -0,0 +1,34 @@
+import 'package:flutter/material.dart';
+import 'package:url_launcher/url_launcher.dart';
+
+/// Autonomous's privacy policy: the one address every listing of Harness names for it — the MCP
+/// bundle's `privacy_policies` (cli/packages/harness-mcp/mcpb/manifest.json) and the directory
+/// submissions (docs/research/2026-10-11-listing-submissions.md, "use the same words everywhere").
+///
+/// ⚠️ **In the app because the stores ask for it there, not only beside the listing.** App Store
+/// guideline 5.1.1(i) wants the policy "within the app in an easily accessible manner", and Play's
+/// App content form asks for the same address (`mobile/RELEASE.md`). Settings ▸ About is where it is.
+const kPrivacyPolicyUrl = 'https://www.autonomous.ai/privacy';
+
+/// How the policy is opened: the system's in-app browser (Safari's sheet, a Custom Tab), the way
+/// connectors open their sign-in pages, so Back is the way home. A field only so a test can see
+/// what is opened without a browser.
+@visibleForTesting
+Future<bool> Function(Uri url) openPrivacyPolicyUrl = (url) =>
+ launchUrl(url, mode: LaunchMode.inAppBrowserView);
+
+/// Settings ▸ About ▸ Privacy Policy: opens the policy, and says so when no browser would — the
+/// connectors' words for the same failure.
+Future<void> openPrivacyPolicy(BuildContext context) async {
+ final messenger = ScaffoldMessenger.maybeOf(context);
+ var opened = false;
+ try {
+ opened = await openPrivacyPolicyUrl(Uri.parse(kPrivacyPolicyUrl));
+ } catch (_) {
+ // A platform that refused outright: the same answer as one that said no.
+ }
+ if (opened) return;
+ messenger?.showSnackBar(
+ const SnackBar(content: Text('Could not open the browser.')),
+ );
+}
diff --git a/mobile/lib/phone/settings_page.dart b/mobile/lib/phone/settings_page.dart
index ecdb815fc..e4182b08c 100644
--- a/mobile/lib/phone/settings_page.dart
+++ b/mobile/lib/phone/settings_page.dart
@@ -31,6 +31,7 @@ import 'phone_name_store.dart';
import 'phone_sheet.dart';
import 'settings_row.dart';
import 'privacy_page.dart';
+import 'privacy_policy.dart';
import 'welcome/how_it_works.dart';
import 'welcome/focus_hints.dart';
import 'tty_controls.dart';
@@ -295,7 +296,17 @@ class _Body extends StatelessWidget {
],
),
const SettingsCaption('About'),
- SettingsGroup(children: const [_VersionRow(), _BuildRow()]),
+ SettingsGroup(
+ children: [
+ const _VersionRow(),
+ const _BuildRow(),
+ // The stores want the policy reachable from inside the app — see [kPrivacyPolicyUrl].
+ SettingsRow(
+ title: 'Privacy Policy',
+ onTap: () => unawaited(openPrivacyPolicy(context)),
+ ),
+ ],
+ ),
],
);
diff --git a/mobile/test/phone_edge/settings_behavior_test.dart b/mobile/test/phone_edge/settings_behavior_test.dart
index a3f6d5831..b7b428e0a 100644
--- a/mobile/test/phone_edge/settings_behavior_test.dart
+++ b/mobile/test/phone_edge/settings_behavior_test.dart
@@ -4,6 +4,7 @@ import 'package:harness_mobile/core/models.dart';
import 'package:harness_mobile/demo/sample_mode.dart';
import 'package:harness_mobile/measurement/product_measurement.dart';
import 'package:harness_mobile/phone/machines_tab.dart';
+import 'package:harness_mobile/phone/privacy_policy.dart';
import 'package:harness_mobile/phone/settings_page.dart';
import 'package:harness_mobile/phone/welcome/how_it_works.dart';
import 'package:harness_mobile/state/app_state.dart';
@@ -108,6 +109,54 @@ void main() {
await close(tester, app);
});
+ group('About ▸ Privacy Policy', () {
+ /// The policy's opener, recording what it is asked to open and answering [opens].
+ List<Uri> opening({Future<bool> Function()? opens}) {
+ final asked = <Uri>[];
+ final before = openPrivacyPolicyUrl;
+ addTearDown(() => openPrivacyPolicyUrl = before);
+ openPrivacyPolicyUrl = (url) {
+ asked.add(url);
+ return opens?.call() ?? Future.value(true);
+ };
+ return asked;
+ }
+
+ Future<void> tapPolicy(WidgetTester tester) async {
+ await tapInView(tester, find.text('Privacy Policy'));
+ await frames(tester);
+ }
+
+ // App Store 5.1.1(i): the policy reachable from inside the app, not only beside its listing.
+ testWidgets('opens Autonomous\'s policy, the address every listing names', (
+ tester,
+ ) async {
+ final asked = opening();
+ final app = await openSettings(tester);
+
+ await tapPolicy(tester);
+
+ expect(asked, [Uri.parse('https://www.autonomous.ai/privacy')]);
+ expect(find.text('Could not open the browser.'), findsNothing);
+ await close(tester, app);
+ });
+
+ for (final (name, opens) in <(String, Future<bool> Function())>[
+ ('declines', () => Future.value(false)),
+ ('throws', () => Future<bool>.error(StateError('no browser'))),
+ ]) {
+ testWidgets('a browser that $name is said', (tester) async {
+ opening(opens: opens);
+ final app = await openSettings(tester);
+
+ await tapPolicy(tester);
+
+ expect(find.text('Could not open the browser.'), findsOneWidget);
+ await close(tester, app);
+ });
+ }
+ });
+
testWidgets('Computers and How Harness works open their pages', (
tester,
) async {