Skip to content

fix: declare USE_BIOMETRIC, so the screen-code prompt can open - #84

Merged
crazeydave merged 1 commit into
mainfrom
fix/screen-lock-permission
Oct 28, 2026
Merged

crazeydave merged 1 commit into
mainfrom
fix/screen-lock-permission

Conversation

@crazeydave

Copy link
Copy Markdown
Contributor

Administration and Settings could not be opened at all from 1.12.0. The screen-code prompt is Android's BiometricPrompt, which needs USE_BIOMETRIC even when it asks only for the PIN, pattern or password. Without it the prompt threw:

Java.Lang.SecurityException: Must have USE_BIOMETRIC permission

…the gate treated that as refused, and the tap did nothing.

  • The manifest now declares USE_BIOMETRIC (a normal permission, granted at install).
  • When the prompt cannot be shown, the gate now says so in an alert instead of failing silently.
  • A second tap while the prompt is up no longer starts another prompt (the log showed three in 30 ms).

Checked on the TB330FU: the permission is granted, and tapping Settings brings up the BiometricPrompt window.

Administration and Settings could not be opened at all from 1.12.0: the
screen-code prompt is Android's BiometricPrompt, which needs USE_BIOMETRIC
even when it asks only for the PIN, pattern or password. Without it the
prompt threw a SecurityException, the gate treated that as refused, and the
tap did nothing. The manifest now declares it (granted at install).

The gate also says so when the prompt cannot be shown, instead of failing
silently, and a second tap while the prompt is up no longer starts another.

Checked on the TB330FU: tapping Settings brings up the prompt.
@crazeydave
crazeydave merged commit fcd04f7 into main Oct 28, 2026
8 checks passed
@crazeydave
crazeydave deleted the fix/screen-lock-permission branch October 28, 2026 14:13
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