Expand about protocol details
Some checks failed
Gitea Android APK / build (push) Failing after 1s
Gitea Smoke / smoke (push) Successful in 0s

This commit is contained in:
Codex 2026-07-06 13:01:55 +00:00
parent 0609c73d35
commit 149d675910
3 changed files with 10 additions and 7 deletions

View File

@ -180,7 +180,7 @@ In the app:
- Open the `Update` page and tap `APK` to resolve the APK from the selected - Open the `Update` page and tap `APK` to resolve the APK from the selected
update source and open it in a browser. update source and open it in a browser.
- Open the `Update` page and tap `Details` to see the installed version, - Open the `Update` page and tap `Details` to see the installed version,
selected update source, APK URL, install permission state, and a `Check selected update source, APK/Release resolver behavior, install permission
update` button. state, and a `Check update` button.
- Open the `About` page to see the app version, package name, API/protocol - Open the `About` page to see the app version, package name, API/protocol
summary, and update policy. summary, selected update source, and update policy.

View File

@ -343,11 +343,13 @@ public final class MainActivity extends Activity {
content.addView(infoBlock( content.addView(infoBlock(
"Protocol", "Protocol",
"API base: " + getServerUrl() + "\n" "API base: " + getServerUrl() + "\n"
+ "HTTP API on port 3000; terminal input/output uses the app's native socket client." + "HTTP on port 3000: /api/health, /api/sessions, session actions, kanban, messages, images.\n"
+ "WebSocket: /ws/terminal uses attach/input/resize/scroll/clear-history; /ws/events streams session and hook events."
)); ));
content.addView(infoBlock( content.addView(infoBlock(
"Update policy", "Update policy",
"The app checks only the selected update source. APK downloads are cached by version and reused after Android install permission is granted." "Selected source:\n" + prefs.getString("update_url", BuildConfig.DEFAULT_UPDATE_URL) + "\n"
+ "The app checks only this source. APK downloads are cached by version and reused after Android install permission is granted."
)); ));
content.addView(actionPanel( content.addView(actionPanel(
actionButton("Release page", view -> updateManager.openReleasePage()), actionButton("Release page", view -> updateManager.openReleasePage()),
@ -1186,7 +1188,7 @@ public final class MainActivity extends Activity {
text.append("Tap Release on the About page. The app resolves the page from the selected update source.\n"); text.append("Tap Release on the About page. The app resolves the page from the selected update source.\n");
text.append('\n'); text.append('\n');
text.append("In-app update:\n"); text.append("In-app update:\n");
text.append("Tap Update. The app checks only the selected source, downloads one APK per version, verifies SHA-256, then opens Android's installer.\n"); text.append("Tap Check now on the Update page. The app checks only the selected source, downloads one APK per version, verifies SHA-256, then opens Android's installer.\n");
text.append("Selected manifest:\n") text.append("Selected manifest:\n")
.append(prefs.getString("update_url", BuildConfig.DEFAULT_UPDATE_URL)) .append(prefs.getString("update_url", BuildConfig.DEFAULT_UPDATE_URL))
.append('\n'); .append('\n');

View File

@ -89,7 +89,8 @@ Implemented now:
- one-download-per-version APK cache, SHA-256 verification, and installer - one-download-per-version APK cache, SHA-256 verification, and installer
handoff handoff
- permission/about surfaces for unknown-app install status, notification status, - permission/about surfaces for unknown-app install status, notification status,
app version, package name, and API/protocol summary app version, package name, selected update source, and HTTP/WebSocket
API/protocol summary
## Update And Release Policy ## Update And Release Policy