1
0
mirror of git://f0xx.org/android_cast synced 2026-07-29 02:59:00 +03:00
Files
android_cast/docs/REMOTE_ACCESS_IMPL.md
2026-06-03 06:50:57 +02:00

1.4 KiB
Raw Blame History

Remote access — implementation notes (v1 WireGuard)

See the full proposal: 20260602_REVERSE_SSH_proposals_summary.md.

Table of contents

Documentation index: README.md


App (developer settings)

  • Dropdown: Disabled | WireGuard | RSSH (greyed — not selectable)
  • Pref key: dev_remote_access_mode (AppPreferences)
  • Disabled: stops RemoteAccessService, tears down VPN, POST type:ra + status:disable
  • WireGuard: foreground poll 17 min → RemoteAccessService → BE heartbeat.php

BE

  • Migration: sql/migrations/007_remote_access.sql
  • Repository: src/RemoteAccessRepository.php
  • Device API: public/api/heartbeat.php (type: ra)
  • Admin API: public/api/remote_access.php
  • UI: ?view=remote_access (nav + hub card)
  • RBAC: remote_access_view, remote_access_operate, remote_access_admin

WireGuard third-party

bash scripts/init-wireguard-submodule.sh

Optional :tunnel module from third-party/wireguard-android. Without it, WireGuardTunnelBridge uses RemoteAccessVpnService (TUN fallback).

Tests

./gradlew :app:testDebugUnitTest
bash examples/crash_reporter/backend/scripts/test_remote_access_api.sh