Repository navigation
Gravity Well v3.1.1 — Android Keepalive Service Stability Fix
Gravity Well v3.1.1
A patch release fixing an Android foreground-service race condition that could crash the app when resuming an archived session from 0 active sessions.
Bug Fixes
- Android Keepalive Foreground Service (
GravityWellKeepaliveService):- Added a synchronized lifecycle state machine preventing
Context.stopService()from being invoked while astartForegroundService()call is still in flight (which previously causedRemoteServiceException$ForegroundServiceDidNotStartInTimeException). - Deferred stops requested during startup until
onStartCommand()satisfies Android's foreground promotion contract (ServiceCompat.startForeground()), then cleanly callsstopSelf(startId). - Coalesced rapid
startOrUpdate()bursts and eliminated redundantstopService()calls when already stopped.
- Added a synchronized lifecycle state machine preventing
- Session Resume Cache & Watch Sync (
ShellViewModel):- Cleared
isArchivedwhen asession_startedWebSocket event arrives for a resumed session. - Scoped
browserWatchJobkeepalive syncing to(sessionId, isLive, status)transitions (distinctUntilChanged) so UI-only state changes don't spam service updates.
- Cleared
Assets
gravity-well-v3.1.1.apk— Release Android APK (us.snakepit.gravitywell,versionCode = 9, Android 8.0 / API 26+, R8 minified).gravity-well-v3.1.1.apk.sha256— SHA-256 checksum.