You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix KeyStoreException crash on Nexus 5 devices (MOB-11856) (#934)
* Fix KeyStoreException crash on Nexus 5 devices
- Wrap keyStore.setEntry() in try-catch to handle SecretKeyEntry not supported
- Add encryptor initialization error handling in keychain with graceful fallback
- Resolves MOB-11856 with minimal changes
* Fix KeyStoreException crash on Nexus 5 devices
- Add encryptor initialization error handling in keychain with graceful fallback
- KeyStoreException bubbles up naturally and gets handled properly
- Resolves MOB-11856 with truly minimal changes
* Add unit test for MOB-11856 KeyStore initialization failure
- Test documents expected behavior when IterableDataEncryptor initialization fails
- Verifies graceful fallback to plaintext storage continues to work
- Ensures app functionality is maintained after encryption failure
* Remove unnecessary whitespace change from IterableDataEncryptor
- Reset IterableDataEncryptor.kt to match master exactly
- Only IterableKeychain.kt and test should have changes for minimal fix
* PR Comment
* Fix test logic for encryption failure scenario
- Address reviewer feedback: test now properly simulates null data after encryption failure
- Verify that when encryption fails, existing data returns null (graceful degradation)
- Test validates the actual failure behavior, not just successful plaintext storage
---------
Co-authored-by: Akshay Ayyanchira <[email protected]>
0 commit comments