Keystore 2.0 SPI: Make Recoverable keystore tolerate the Keystore 2.0 SPI

This patch adds support for using the Legacy Keystore provider when the
Keystore 2.0 provider is installed. This is the first step
towards the transition to Keystore 2.0.

Installation of the new provider can be triggered by setting the
platform property ro.android.security.keystore2.enable=true.

Bug: 171305545
Test: None
Change-Id: I3825f40558b4c25cb64caa25c0029cea76333c44
2 files changed