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

Make biometric authentication more robust #83

Merged
merged 1 commit into from
Oct 22, 2024
Merged

Make biometric authentication more robust #83

merged 1 commit into from
Oct 22, 2024

Conversation

chenxiaolong
Copy link
Owner

  • Hide the entire window contents instead of just the fragment contents when unauthenticated.
  • Make invisible views unfocusable and drop all input events when unauthenticated.
  • Set FLAG_SECURE when the window loses focus to avoid having the screenshot show in the recent apps switcher.
  • Move the authentication enforcement to the base activity instead of the base fragment since the activity is what's directly attached to the window.
  • Use the top-level activity in each task to enforce authentication restrictions to allow predictive back gestures to continue to work.

* Hide the entire window contents instead of just the fragment contents
  when unauthenticated.
* Make invisible views unfocusable and drop all input events when
  unauthenticated.
* Set FLAG_SECURE when the window loses focus to avoid having the
  screenshot show in the recent apps switcher.
* Move the authentication enforcement to the base activity instead of
  the base fragment since the activity is what's directly attached to
  the window.
* Use the top-level activity in each task to enforce authentication
  restrictions to allow predictive back gestures to continue to work.

Signed-off-by: Andrew Gunnerson <accounts+github@chiller3.com>
@chenxiaolong chenxiaolong self-assigned this Oct 22, 2024
chenxiaolong added a commit that referenced this pull request Oct 22, 2024
Signed-off-by: Andrew Gunnerson <accounts+github@chiller3.com>
@chenxiaolong chenxiaolong merged commit dbde9e7 into master Oct 22, 2024
1 check passed
@chenxiaolong chenxiaolong deleted the bio-auth branch October 22, 2024 01:35
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