Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix binding to external authenticator app on Android 14+ #1707

Merged
merged 1 commit into from
Apr 22, 2024

Conversation

lisa-bella97
Copy link
Contributor

External authenticator apps may need to start background activities (for example, to allow users enter a pin code), but starting from Android 14, if the app bound to the service is targeting Android 14 or higher, it no longer allows the app that has the service to start a background activity by default. We need to add flag BIND_ALLOW_ACTIVITY_STARTS to allow the external authenticator app to start background activities.

See docs: https://developer.android.com/guide/components/activities/background-starts#exceptions

External authenticator apps may need to start background
activities (for example, to allow users enter a pin code), but
starting from Android 14, if the app bound to the service is
targeting Android 14 or higher, it no longer allows the app that
has the service to start a background activity by default. We
need to add flag BIND_ALLOW_ACTIVITY_STARTS to allow the
external authenticator app to start background activities.
@schwabe schwabe merged commit 4473ad1 into schwabe:master Apr 22, 2024
3 checks passed
@schwabe
Copy link
Owner

schwabe commented Apr 22, 2024

Thanks for finding and fixing this!

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.

2 participants