Affected Component
API Key Management
What happened?
- API keys are deleted (silently).
- Likely we were never able to add any API key without having a screen lock!
Steps to reproduce
- (Android 13, 14, 15 only)
- Have a screen lock PIN/Pattern.
- Add an API key,
- Remove the phone's secure screen lock.
- Force-stop SwiftSlate / reboot.
- Reopen it
- Bug:
- API keys are deleted.
- Likely we were never able to add any API key without a screen lock.
Fix is a single API version check in KeyManager:
#142
Provider (if relevant)
Not applicable
Device & Android version
Android 12.0
Additional context
Android's own documentation specifically warns that Android 12–14 have a platform bug with this flag: if the user has no secure lock screen, unlocked-device-required keys can fail to generate/use; removing the secure lock screen can also delete those keys:
Android Docs (Google)
Affected Component
API Key Management
What happened?
Steps to reproduce
Fix is a single API version check in KeyManager:
#142
Provider (if relevant)
Not applicable
Device & Android version
Android 12.0
Additional context
Android's own documentation specifically warns that Android 12–14 have a platform bug with this flag: if the user has no secure lock screen, unlocked-device-required keys can fail to generate/use; removing the secure lock screen can also delete those keys:
Android Docs (Google)