diff --git a/10-systems/hardware/s10e-navi-node.md b/10-systems/hardware/s10e-navi-node.md index 1512589..75c0060 100644 --- a/10-systems/hardware/s10e-navi-node.md +++ b/10-systems/hardware/s10e-navi-node.md @@ -20,8 +20,10 @@ control does not require the screen. **2026-10-07: телефон временно передан владельцу как замена разбитому -личному смартфону (до покупки нового).** SIM lifecell (слот 1, LTE, -voice/SMS/data IN_SERVICE, номер +380939126548) остаётся в телефоне. +личному смартфону (до покупки нового).** SIM расклад изменён: в S10e теперь +личная SIM владельца (+380632912932, lifecell, слот 1, LOADED), узловая SIM +Navi (+380939126548) переехала в Motorola — см. moto-g54-navi-node.md. +Telegram владельца активен на S10e — узловые скрипты не трогать. Узел продолжает работать: adb по Wi-Fi (192.168.1.22:5555) и Termux SSH доступны, пока телефон в домашней Wi-Fi-сети. Изменения под повседневное использование (см. ниже) откатываются при возврате в режим узла. @@ -73,7 +75,7 @@ - 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 +- Mobile channel: теперь на Motorola (узловая SIM переехала туда) — SMS read/send via adb (`content://sms`), mobile data as backup uplink - Candidate workloads: IP Webcam (camera), Telegram command channel, Syncthing, notification filter → push ## Recovery diff --git a/90-maintenance/pending-changes/20261007175557-7ac2d068.json b/90-maintenance/pending-changes/20261007175557-7ac2d068.json new file mode 100644 index 0000000..7a6d799 --- /dev/null +++ b/90-maintenance/pending-changes/20261007175557-7ac2d068.json @@ -0,0 +1,19 @@ +{ + "id": "20261007175557-7ac2d068", + "kind": "doc", + "target": "10-systems/hardware/s10e-navi-node.md", + "summary": "S10e: SIM владельца в слоте 1, узловая SIM переехала в Motorola, TG владельца активен — не трогать узловые скрипты", + "reason": "SIM расклад изменился: в S10e теперь личная SIM владельца (+380632912932), узловая SIM Navi переехала в Motorola; Telegram владельца активен на S10e", + "payload": { + "content": "---\ntitle: S10e Navi Node\ntype: hardware\npurpose: Remotely controlled Android node for Navi\nowner: gmikcon\nstatus: active\nconfidence: \"100\"\nlast_reviewed: 2026-10-07\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**2026-10-07: телефон временно передан владельцу как замена разбитому\nличному смартфону (до покупки нового).** SIM расклад изменён: в S10e теперь\nличная SIM владельца (+380632912932, lifecell, слот 1, LOADED), узловая SIM\nNavi (+380939126548) переехала в Motorola — см. moto-g54-navi-node.md.\nTelegram владельца активен на S10e — узловые скрипты не трогать.\nУзел продолжает работать: adb по Wi-Fi (192.168.1.22:5555) и Termux SSH\nдоступны, пока телефон в домашней Wi-Fi-сети. Изменения под повседневное\nиспользование (см. ниже) откатываются при возврате в режим узла.\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). PIN: 7485\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## Changes for owner daily use (2026-10-07, revert on node return)\n- screen_brightness 10 → 120 (manual mode kept)\n- ui_night_mode 2 → 0 (`cmd uimode night no`)\n- screen_off_timeout 600000 → 120000\n- stay_on_while_plugged_in 7 → 0\n- Ringer mode VIBRATE → NORMAL (via Settings UI «Звуки и вибрация» → «Звук»; `settings put global mode_ringer` и `cmd audio set-ringer-mode` НЕ работают — AudioService держит состояние, менять только через UI)\n- protect_battery уже 0 (лимит 85% снят ранее)\n- Тап-координаты для adb input tap — в РЕАЛЬНОМ разрешении 1080x2400 (скриншоты 485x1024, пересчитывать ×2.227/×2.344)\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## Text input — ADBKeyboard (Cyrillic/Unicode)\n- Installed `com.android.adbkeyboard` (ADBKeyboard.apk, 17 KB, from github.com/senzhk/ADBKeyBoard; copy on gprint `~/pixel3a-work/apks/ADBKeyboard.apk`). adb `input text` cannot type Cyrillic — this IME is the workaround.\n- Activate: `adb shell ime enable com.android.adbkeyboard/.AdbIME && adb shell ime set com.android.adbkeyboard/.AdbIME`\n- Type Unicode: `adb shell am broadcast -a ADB_INPUT_B64 --es msg \"$(printf '%s' 'текст' | base64 -w0)\"` — base64 variant is REQUIRED: plain `ADB_INPUT_TEXT` silently drops long/emoji/unicode strings\n- Restore owner keyboard: `adb shell ime set com.google.android.inputmethod.latin/com.android.inputmethod.latin.LatinIME` (full class ID — short `...latin/.LatinIME` fails with \"Unknown input method\")\n- Verified end-to-end 2026-09-29: Telegram search «Любимая» → opened chat «Любимая*» → typed and SENT a message from the phone (delivered, 20:30). Telegram search field tap: (849,197); message field tap: (520,2149); send button tap: (1049,2003) at 1080x2400.\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- Mobile channel: теперь на Motorola (узловая SIM переехала туда) — SMS read/send via adb (`content://sms`), mobile data as backup uplink\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-10-07T17:55:57Z", + "updated_at": "2026-10-07T17:55:58Z", + "applied_at": "2026-10-07T17:55:58Z", + "validation": { + "status": "ok", + "issue_count": 0, + "issues": [] + } +}