Add optional app lock behind biometric or device credential
Implements a full app lock (issue #1313) gating Aurora Store behind the device biometric or, where unavailable, the screen-lock credential (PIN/pattern/password) so it also works on TVs and older phones. - AppLockManager: process-scoped, in-memory lock state so a cold start is always locked, with a short background grace timeout to avoid re-prompting during the install dialog or the biometric sheet itself. - AppLockAuthenticator: BiometricPrompt wrapper using BIOMETRIC_STRONG | DEVICE_CREDENTIAL on API 30+ and setDeviceCredentialAllowed on older releases, plus an enrollment check. - ComposeActivity (now a FragmentActivity) gates content via a three-state machine (AUTHENTICATING/LOCKED/UNLOCKED); the authenticating state shows a blank surface behind the prompt so dismissing it never flashes the lock card. Re-locks on return past the timeout and sets FLAG_SECURE while locked. - Toggle lives on a dedicated Security preference screen, reached from Settings like the other preference entries.
This commit is contained in:
@@ -179,6 +179,16 @@
|
||||
<string name="installer_root_unavailable">No root access. Grant it or change the installer.</string>
|
||||
<string name="installer_shizuku_unavailable">Shizuku is not installed or set up properly.</string>
|
||||
<string name="installer_fallback_session">Chosen installer is unavailable, using the default installer instead.</string>
|
||||
|
||||
<!-- Security -->
|
||||
<string name="title_security">Security</string>
|
||||
<string name="app_lock_title">App lock</string>
|
||||
<string name="app_lock_summary">Require biometric or screen-lock authentication to open Aurora Store.</string>
|
||||
<string name="app_lock_no_credential">Set up a screen lock (PIN, pattern, password or biometric) on your device first.</string>
|
||||
<string name="app_lock_locked_message">Authentication is required to access Aurora Store</string>
|
||||
<string name="app_lock_unlock">Unlock</string>
|
||||
<string name="app_lock_prompt_title">Unlock Aurora Store</string>
|
||||
<string name="app_lock_prompt_subtitle">Enter phone screen lock pattern, PIN, password or fingerprint</string>
|
||||
<string name="installer_service_available">"Aurora Services is available and ready to install."</string>
|
||||
<string name="installer_service_unavailable">Install Aurora Services 1.0.9 or above, or change the installer.</string>
|
||||
<string name="installer_service_misconfigured">Set up Aurora Services and grant all permissions first.</string>
|
||||
|
||||
Reference in New Issue
Block a user