diff --git a/10-systems/hardware/s10e-navi-node.md b/10-systems/hardware/s10e-navi-node.md index 0e09c8d..8d92763 100644 --- a/10-systems/hardware/s10e-navi-node.md +++ b/10-systems/hardware/s10e-navi-node.md @@ -16,8 +16,8 @@ Samsung Galaxy S10e (SM-G970F, codename beyond0lte, serial RF8MA0TYJMF, Android 12 / SDK 31, One UI) repurposed as a permanently connected Android execution node for Navi. Physically connected via USB to gprint -(192.168.1.131, port 1-3), powered from USB. Screen turns off after 60s -(AMOLED burn-in protection); control does not require the screen. +(192.168.1.131, port 1-3), powered from USB. Screen turns off after 10 min; +control does not require the screen. ## Network / access - Wi-Fi: 192.168.1.22 (home-lan), adb tcpip 5555 enabled — reachable over the network without USB @@ -27,15 +27,31 @@ - screencap returns 0 bytes on the secure lockscreen (Samsung FLAG_SECURE) — capture only when unlocked ## Applied settings (2026-09-29) -- stay_on_while_plugged_in=0, screen_off_timeout=60000 +- stay_on_while_plugged_in=7, screen_off_timeout=600000 (raised from 60s during Termux work) - protect_battery=1 (Samsung charge limit 85% for 24/7 USB power; verify after first day: level should settle ~85%) - wifi_sleep_policy=2 (Wi-Fi never sleeps) - Phantom process killer disabled (Termux-friendly) - Night mode on, brightness 10 (manual), screensaver off +## Termux (v0.118.1, pre-installed 2024 by owner) +- Packages present: com.termux, com.termux.api, com.termux.widget, com.termux.tasker; installed via pkg: openssh, python 3.14.6, termux-api +- **SSH**: port 8022, key auth. Key on gprint: `~/.ssh/s10e_key` (ed25519, comment gprint-navi). Connect: `ssh -i ~/.ssh/s10e_key -p 8022 navi@192.168.1.22` (user navi = u0_a439). Works even with the phone screen locked. +- authorized_keys contains both the gprint key and the owner's old key (u0_a439@localhost) — do not overwrite +- Storage: READ/WRITE_EXTERNAL_STORAGE granted via `pm grant` (adb) +- **sshd is NOT autostarted**: after a phone reboot, open Termux and run `sshd` (via s10e.sh screen input, or set up Termux:Boot / RUN_COMMAND intent later) +- Gotcha: after `pkg install openssh`, the OLD sshd process keeps listening and resets connections (kex_exchange_identification: Connection reset) — kill the sshd PID and run `sshd` again; host keys via `ssh-keygen -A` +- termux-api verified: termux-battery-status (health GOOD, PLUGGED_USB), termux-tts-speak +- Owner's old Termux history (ssh to 192.168.68.x eserv/bserv/gprint, iperf3) — old network, left untouched + +## Notifications +- **Read**: `adb shell dumpsys notification --noredact` — all active notifications (pkg/title/text). `termux-notification-list` hangs (Termux:API IPC) — do not use. +- **Watcher**: systemd `notif-watcher.service` on gprint (active, enabled) — 10s poll, new notifications appended to `~/pixel3a-work/notif.log` (format `ts|pkg|title|text`), dedup state in `notif.state` +- **Post (test/control)**: `adb shell "cmd notification post -S bigtext -t 'Title' tag 'text'"` — posts as com.android.shell; watcher catches it within ~15s (verified end-to-end) +- Ideas: filter important (Telegram/SMS) → push to owner; dismiss by tag via `cmd notification dismiss` + ## Planned - SIM card (owner plan): mobile channel for the node — SMS read/send via adb (`content://sms`), mobile data as backup uplink, emergency reachability when LAN/WAN is down -- Candidate workloads: Termux (SSH/cron/bots), IP Webcam (camera), Telegram command channel, Syncthing +- Candidate workloads: IP Webcam (camera), Telegram command channel, Syncthing, notification filter → push ## Recovery - TWRP beyond0lte 3.7.0_9-2 at `gprint:/home/gprint/twrp-beyond0lte.img` (sha256 verified) diff --git a/90-maintenance/pending-changes/20260929165538-3933b022.json b/90-maintenance/pending-changes/20260929165538-3933b022.json new file mode 100644 index 0000000..0c3c8bc --- /dev/null +++ b/90-maintenance/pending-changes/20260929165538-3933b022.json @@ -0,0 +1,19 @@ +{ + "id": "20260929165538-3933b022", + "kind": "doc", + "target": "10-systems/hardware/s10e-navi-node.md", + "summary": "S10e node doc: add Termux (SSH 8022, packages, sshd gotchas) and notifications (dumpsys read, notif-watcher, test-post) sections; fix settings values", + "reason": "Termux configured (SSH 8022, packages, storage grants, sshd gotchas) and notifications pipeline (dumpsys read + notif-watcher.service + cmd notification post) verified live on 2026-09-29; screen timeout corrected to 600000, stay_on_while_plugged_in=7. Source: live adb/ssh session.", + "payload": { + "content": "---\ntitle: S10e Navi Node\ntype: hardware\npurpose: Remotely controlled Android node for Navi\nowner: gmikcon\nstatus: active\nconfidence: 100\nlast_reviewed: 2026-09-29\nreview_interval: 90d\nsource_of_truth: adb-verified\n---\n\n# Samsung Galaxy S10e — Navi Android node\n\n## Overview\nSamsung Galaxy S10e (SM-G970F, codename beyond0lte, serial RF8MA0TYJMF,\nAndroid 12 / SDK 31, One UI) repurposed as a permanently connected Android\nexecution node for Navi. Physically connected via USB to gprint\n(192.168.1.131, port 1-3), powered from USB. Screen turns off after 10 min;\ncontrol does not require the screen.\n\n## Network / access\n- Wi-Fi: 192.168.1.22 (home-lan), adb tcpip 5555 enabled — reachable over the network without USB\n- adb: authorized from gprint keys (USB serial RF8MA0TYJMF + 192.168.1.22:5555)\n- Control entrypoint: `gprint:~/pixel3a-work/s10e.sh`; from the Navi host: `~/pixel3a/s10e-remote.sh` (sshpass wrapper)\n- PIN: stored in `gprint:~/pixel3a-work/.pin` (chmod 600); unlock automation verified (wake → swipe up → input PIN → enter)\n- screencap returns 0 bytes on the secure lockscreen (Samsung FLAG_SECURE) — capture only when unlocked\n\n## Applied settings (2026-09-29)\n- stay_on_while_plugged_in=7, screen_off_timeout=600000 (raised from 60s during Termux work)\n- protect_battery=1 (Samsung charge limit 85% for 24/7 USB power; verify after first day: level should settle ~85%)\n- wifi_sleep_policy=2 (Wi-Fi never sleeps)\n- Phantom process killer disabled (Termux-friendly)\n- Night mode on, brightness 10 (manual), screensaver off\n\n## Termux (v0.118.1, pre-installed 2024 by owner)\n- Packages present: com.termux, com.termux.api, com.termux.widget, com.termux.tasker; installed via pkg: openssh, python 3.14.6, termux-api\n- **SSH**: port 8022, key auth. Key on gprint: `~/.ssh/s10e_key` (ed25519, comment gprint-navi). Connect: `ssh -i ~/.ssh/s10e_key -p 8022 navi@192.168.1.22` (user navi = u0_a439). Works even with the phone screen locked.\n- authorized_keys contains both the gprint key and the owner's old key (u0_a439@localhost) — do not overwrite\n- Storage: READ/WRITE_EXTERNAL_STORAGE granted via `pm grant` (adb)\n- **sshd is NOT autostarted**: after a phone reboot, open Termux and run `sshd` (via s10e.sh screen input, or set up Termux:Boot / RUN_COMMAND intent later)\n- Gotcha: after `pkg install openssh`, the OLD sshd process keeps listening and resets connections (kex_exchange_identification: Connection reset) — kill the sshd PID and run `sshd` again; host keys via `ssh-keygen -A`\n- termux-api verified: termux-battery-status (health GOOD, PLUGGED_USB), termux-tts-speak\n- Owner's old Termux history (ssh to 192.168.68.x eserv/bserv/gprint, iperf3) — old network, left untouched\n\n## Notifications\n- **Read**: `adb shell dumpsys notification --noredact` — all active notifications (pkg/title/text). `termux-notification-list` hangs (Termux:API IPC) — do not use.\n- **Watcher**: systemd `notif-watcher.service` on gprint (active, enabled) — 10s poll, new notifications appended to `~/pixel3a-work/notif.log` (format `ts|pkg|title|text`), dedup state in `notif.state`\n- **Post (test/control)**: `adb shell \"cmd notification post -S bigtext -t 'Title' tag 'text'\"` — posts as com.android.shell; watcher catches it within ~15s (verified end-to-end)\n- Ideas: filter important (Telegram/SMS) → push to owner; dismiss by tag via `cmd notification dismiss`\n\n## Planned\n- SIM card (owner plan): mobile channel for the node — SMS read/send via adb (`content://sms`), mobile data as backup uplink, emergency reachability when LAN/WAN is down\n- Candidate workloads: IP Webcam (camera), Telegram command channel, Syncthing, notification filter → push\n\n## Recovery\n- TWRP beyond0lte 3.7.0_9-2 at `gprint:/home/gprint/twrp-beyond0lte.img` (sha256 verified)\n- Keepalive service auto-recovers adb after a phone reboot (re-enables tcpip via USB)" + }, + "status": "applied", + "created_at": "2026-09-29T16:55:38Z", + "updated_at": "2026-09-29T16:55:40Z", + "applied_at": "2026-09-29T16:55:40Z", + "validation": { + "status": "ok", + "issue_count": 0, + "issues": [] + } +}