Skip to content

Harden service startup for Android 14+ boot restrictions - #5

Merged
hatsch merged 2 commits into
mainfrom
feature/service-startup-hardening
Feb 3, 2026
Merged

hatsch merged 2 commits into
mainfrom
feature/service-startup-hardening

Conversation

@hatsch

@hatsch hatsch commented Feb 3, 2026

Copy link
Copy Markdown
Owner
  • Catch ForegroundServiceStartNotAllowedException, SecurityException, and IllegalStateException when starting foreground services
  • Show notification when service fails to start at boot, tapping opens app which automatically restarts the service via onResume
  • Dismiss failure notification when service starts successfully
  • Add service alert notification channel and localized strings
  • Update CLAUDE.md with translations workflow note
  • Update README.md with local model import feature

hatsch and others added 2 commits February 3, 2026 08:42
- Catch ForegroundServiceStartNotAllowedException, SecurityException,
  and IllegalStateException when starting foreground services
- Show notification when service fails to start at boot, tapping opens
  app which automatically restarts the service via onResume
- Dismiss failure notification when service starts successfully
- Add service alert notification channel and localized strings
- Update CLAUDE.md with translations workflow note
- Update README.md with local model import feature

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
On Android 13+, POST_NOTIFICATIONS is a runtime permission. Request it
when user enables floating mic or folder monitor to ensure the "tap to
start" notification can be shown after boot.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@hatsch
hatsch merged commit 932caff into main Feb 3, 2026
2 checks passed
@hatsch
hatsch deleted the feature/service-startup-hardening branch February 4, 2026 19:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant