Commit Graph
1992 Commits
Author SHA1 Message Date
evgeny 0db3ceea81 Recover Android media audio sessions with explicit resource ownership
Retry monitor and capture setup after invalidating failed attempts. Bind output leases and callbacks to registration identity, cancel confirmation timers, and keep hardware cleanup independent from device enumeration during call handoff.

Commit profiles only after successful storage writes, acquire mode ownership before Android side effects, and reject blocking operations on main or the control worker. Keep the app singleton backed by an isolated MediaAudioSession with a single executor.

Validation: 30 media session scenarios, 420 JVM tests, assembleDebug, core build, and full check.sh (225 tests plus proxy/burst/load) passed.
2026-10-28 00:28:42 +01:00
evgeny 68e4674290 Harden Android audio router lifecycle and route selection
Roll back failed startup, finish independent stop cleanup, invalidate stale device and Telecom callbacks, and serialize router mutations. Publish input/output targets after accepted selection and support retries of rejected requests.

Separate modern communication device selection from legacy SCO, refresh replaced descriptors, and support A2DP and USB input-only devices in per-track mode. Clarify routing and observer ownership contracts.

Validation: 45 router scenarios, 390 JVM tests, assembleDebug, core build, and full check.sh (225 tests plus proxy/burst/load) passed. Previous router fails 25 of the 30 new cases.
2026-10-27 23:53:21 +01:00
evgeny 9993be16bb Own Android incoming call alerts and notification actions
Bind notification tokens to full call IDs and call kinds, cancel actions on stop, and reject decline callbacks after ringing ends. Serialize alert state on main and recover notification channel setup after Android API failures.

Keep sound independent of wake-lock and notification failures. Remove orphaned notifications on cold start, preserve idempotent alerts during duplicate delivery and language changes, and document lifecycle contracts.

Validation: 32 new lifecycle cases, 360 JVM tests, assembleDebug, core build, and full check.sh (225 tests plus proxy/burst/load) passed.
2026-10-27 23:31:56 +01:00
evgeny 0c30dc028f Fix Android alert profiles and playback resource ownership
Configure audio attributes before MediaPlayer preparation, keep vibration independent from sound failures, and guard loop/focus cleanup against stale callbacks. Preserve ringback players on repeated phase requests.

Add 35 alert lifecycle tests against real Kotlin sources with controlled Android API failures. Validation: 328 JVM tests, assembleDebug, core build, and full check.sh (225 tests plus proxy/burst/load) passed. Previous sources fail 32 of the 35 new cases.
2026-10-27 23:12:11 +01:00
evgeny 66d6364227 Guard Android radio configuration with worker-owned tasks 2026-10-27 22:41:30 +01:00
evgeny 5c7908e2c6 Document Android radio automatic capture and background window contracts 2026-10-27 21:58:02 +01:00
evgeny 1ddb9fd272 Recover SIM observers without losing healthy subscription state 2026-10-27 21:49:15 +01:00
evgeny 30e132b729 Compile the real SIM monitor in the Android host tests 2026-10-27 21:39:26 +01:00
evgeny de59c42dd2 Add controlled Telephony fixtures for Android SIM monitoring 2026-10-27 21:35:45 +01:00
evgeny d58edde4ba Verify Android phone state publishing and JNI restart recovery 2026-10-27 21:30:07 +01:00
evgeny 3231a5a218 Return Android phone state queue acceptance through JNI 2026-10-27 21:25:51 +01:00
evgeny 10fbe70b0e Own queued Android phone state data within the worker lifetime 2026-10-27 21:23:18 +01:00
evgeny 10d03f3709 Cover Android phone command cancellation and publication ownership 2026-10-27 21:21:52 +01:00
evgeny 77ba9ad43f Expose Android phone state posting through the C bridge API 2026-10-27 21:18:29 +01:00
evgeny 78864c202b Make proximity observation safe across failures and restarts 2026-10-27 20:57:24 +01:00
evgeny 4c3aaa330a Add a host sensor fixture for ProximityManager lifecycle checks 2026-10-27 20:54:40 +01:00
evgeny f753abe0a8 Verify CoreActivity against Android JNI and native activity modes 2026-10-27 20:44:34 +01:00
evgeny 370dfb906e Preserve pending CoreActivity intent when the native queue rejects a request 2026-10-27 20:39:19 +01:00
evgeny 63efcec24c Cover rejected activity commands at the native queue boundary 2026-10-27 20:11:15 +01:00
evgeny 99376470ed Route bridge activity requests through the worker owner 2026-10-27 20:10:00 +01:00
evgeny 57aca2496c Queue Android activity updates while holding the worker lifetime lock 2026-10-27 20:07:51 +01:00
evgeny fcb4eb6fe5 Validate CoreActivity ownership before mutations and cache completed JNI requests 2026-10-27 20:02:55 +01:00
evgeny 658e69b7d0 Add regressions for CoreActivity thread ownership and request caching 2026-10-27 19:53:53 +01:00
evgeny 6b98f73218 Verify cancelled Android workers retain callbacks and keep SQLite owned by the core 2026-10-27 19:30:29 +01:00
evgeny ec782e3d23 Keep worker callbacks atomic and verify failed shutdown preserves owners 2026-10-27 19:16:30 +01:00
evgeny 050755bd6b Run Android service shutdown off the main thread and await it before startup 2026-10-27 19:07:05 +01:00
evgeny f514ebe83e Preserve bridge callbacks until native worker shutdown succeeds 2026-10-27 18:57:36 +01:00
evgeny 27bd358389 Keep Android shutdown independent of a retiring service 2026-10-27 18:55:29 +01:00
evgeny 4c501b1999 Own Android worker threads until cleanup and join finish 2026-10-27 18:52:46 +01:00
evgeny 59c191776b Verify Android startup readiness with the main looper and native worker 2026-10-27 18:33:49 +01:00
evgeny fd9f07aca7 Wait for Android core readiness before applying settings 2026-10-27 18:27:14 +01:00
evgeny c2b234ef69 Track Android startup until native core readiness is confirmed 2026-10-27 18:20:48 +01:00
evgeny d8826a8c61 Fix the key regeneration job type in ChatViewModel 2026-10-27 18:10:09 +01:00
evgeny af2f2b3a7f Exercise Android identity regeneration through JNI on devices 2026-10-27 18:08:29 +01:00
evgeny 22b5010141 Recreate the Android core when regenerating its identity 2026-10-27 18:05:06 +01:00
evgeny 4d937e30d8 Persist Android identities atomically before updating config 2026-10-27 17:51:41 +01:00
evgeny 5fb86de76f Verify config saves survive cancellation of their submitting scope 2026-10-27 17:35:26 +01:00
evgeny f5158b2666 Verify partial node reads and reject malformed address rows 2026-10-27 17:27:04 +01:00
evgeny bc8d477df7 Build node diagnostics from one checked SQLite snapshot 2026-10-27 17:27:04 +01:00
evgeny 818cc8d325 Add node page snapshot and SQL failure regressions 2026-10-27 17:27:04 +01:00
evgeny d653b32713 Clarify settings dialog drafts, save semantics and borrowed dependencies 2026-10-27 17:27:04 +01:00
evgeny b40dd6c140 Document storage, network and database settings page contracts 2026-10-27 17:27:04 +01:00
evgeny 26d5ec6484 Distinguish optimize SQL completion from integrity check results 2026-10-27 17:27:04 +01:00
evgeny 8c10c4b1d0 Add SQLite and Qt database maintenance regression tests 2026-10-27 17:27:04 +01:00
evgeny 487dd88365 Remove unused settings test scaffolding 2026-10-27 17:27:04 +01:00
evgeny da453faa45 Cover settings string limits, snapshots and late allocation failures 2026-10-27 17:27:04 +01:00
evgeny 35d53f456a Eliminate borrowed save commands from the desktop settings dialog 2026-10-27 17:27:04 +01:00
evgeny 2d8e966e77 Remove borrowed audio settings commands and duplicated serialization 2026-10-27 17:27:04 +01:00
evgeny 69efa5f11f Transfer storage settings snapshots through the owned bridge API 2026-10-27 17:27:04 +01:00
evgeny aec4d5a6d6 Centralize owned settings and name requests in the GUI bridge 2026-10-27 17:27:04 +01:00