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
{{ message }}
This repository was archived by the owner on May 15, 2024. It is now read-only.
GH-380 Use Internal Preferences for Secure Storage consistency. (#386)
* Use Internal Preferences for Secure Storage consistency.
Save if we created key pre-M so we always use pre-M if device upgrades.
* Fix logic for pre-m key check
The logic was slightly off, I think this fixes it, but would be good to have another set of eyes...
1. We check to see if the device is pre-M (if it does _not_ have `M`, or if we already set the fact it's pre-M in the preference - aka from a previous install before an upgrade of the OS)
2. If we aren't pre-M, we can't use Symmetric Key from Keystore
3. If we make it down to using Asymmetric Key, we set the pre-M preference to `true` to persist the value for future invocations, which will make it 'stick' in the event of a pre-M to M+ OS upgrade.
* Address feedback on key naming.
* Added test for secure storage to simulate upgrade
From API < 23 to API >= 23 after storing data with an asymmetric key and then moving to a platform supporting symmetric keys.
* Ensure we always set flags when using specified keygen
0 commit comments