mirror of
https://github.com/Monkopedia/rouse-context.git
synced 2026-11-29 11:13:05 +00:00
Three root causes prevented the wake flow test from passing: 1. TunnelForegroundService and FcmReceiver were not declared in the work module's AndroidManifest.xml, so Android couldn't find or start them. 2. ADB broadcasts to FirebaseInstanceIdReceiver require the C2DM sender permission, which the ADB shell (uid 2000) lacks. Added a debug-only TestWakeReceiver that starts TunnelForegroundService without requiring any sender permission. 3. The relay URL was hardcoded to wss:// but the test relay runs without TLS. Added configurable relay.scheme build property (defaults to wss, tests pass ws). The relay now injects a test DeviceIdentity when running without TLS so /ws accepts connections. Added cleartext network security config for debug builds. Also fixed: TunnelForegroundService now catches connection errors instead of crashing, and installApk() auto-uninstalls on signature mismatch. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| src/test/kotlin/com/rousecontext/device | ||
| build.gradle.kts | ||