android / android/security-samples
Meizu crashed when using AndroidKeyStore
- Dominant language
- Kotlin
- Stars
- 1k
- Forks
- 450
- PR merge metrics
- No merged PRs in 30d
Description
There are crashes in some Meizu phones, such as M5 note, PRO 7 Plus and so on. The system version is Android 7.0. The log is:
`Fatal Exception: java.util.concurrent.TimeoutException: android.security.keystore.AndroidKeyStoreAuthenticatedAESCipherSpi$GCM$NoPadding.finalize() timed out after 20 seconds
at android.os.BinderProxy.transactNative(Binder.java)
at android.os.BinderProxy.transact(Binder.java:515)
at android.security.IKeystoreService$Stub$Proxy.abort(IKeystoreService.java:1302)
at android.security.KeyStore.abort(KeyStore.java:520)
at android.security.keystore.AndroidKeyStoreCipherSpiBase.finalize(AndroidKeyStoreCipherSpiBase.java:680)
at android.security.keystore.AndroidKeyStoreAuthenticatedAESCipherSpi$GCM$NoPadding.finalize(AndroidKeyStoreAuthenticatedAESCipherSpi.java:223)
at java.lang.Daemons$FinalizerDaemon.doFinalize(Daemons.java:232)
at java.lang.Daemons$FinalizerDaemon.run(Daemons.java:210)
at java.lang.Thread.run(Thread.java:818)`
How to fix it?
Contributor guide
Research direction
Start with the AndroidKeyStoreAuthenticatedAESCipherSpi$GCM$NoPadding.finalize() stack entry and the KeyStore.abort call shown in the report. Reproduce the crash on the listed Meizu Android 7.0 devices, determine the affected operation, and verify that the resulting change prevents the timeout without breaking AndroidKeyStore behavior.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- android
- Domain
- mobile-dev, security
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100