Commit 912f244
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 <ayyanchira.akshay@gmail.com>1 parent a5fc414 commit 912f244
File tree
2 files changed
+61
-3
lines changed- iterableapi/src
- main/java/com/iterable/iterableapi
- test/java/com/iterable/iterableapi
2 files changed
+61
-3
lines changedLines changed: 9 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
41 | | - | |
| 41 | + | |
42 | 42 | | |
43 | 43 | | |
44 | | - | |
45 | | - | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
46 | 52 | | |
47 | 53 | | |
48 | 54 | | |
| |||
Lines changed: 52 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
370 | 370 | | |
371 | 371 | | |
372 | 372 | | |
| 373 | + | |
| 374 | + | |
| 375 | + | |
| 376 | + | |
| 377 | + | |
| 378 | + | |
| 379 | + | |
| 380 | + | |
| 381 | + | |
| 382 | + | |
| 383 | + | |
| 384 | + | |
| 385 | + | |
| 386 | + | |
| 387 | + | |
| 388 | + | |
| 389 | + | |
| 390 | + | |
| 391 | + | |
| 392 | + | |
| 393 | + | |
| 394 | + | |
| 395 | + | |
| 396 | + | |
| 397 | + | |
| 398 | + | |
| 399 | + | |
| 400 | + | |
| 401 | + | |
| 402 | + | |
| 403 | + | |
| 404 | + | |
| 405 | + | |
| 406 | + | |
| 407 | + | |
| 408 | + | |
| 409 | + | |
| 410 | + | |
| 411 | + | |
| 412 | + | |
| 413 | + | |
| 414 | + | |
| 415 | + | |
| 416 | + | |
| 417 | + | |
| 418 | + | |
| 419 | + | |
| 420 | + | |
| 421 | + | |
| 422 | + | |
| 423 | + | |
| 424 | + | |
373 | 425 | | |
0 commit comments