Merge "Update KeyChain.createInstallIntent documentation" into rvc-dev am: 0bada478b6

Change-Id: I7e928aaf76b026995927e2df16e301a0d45781e5
This commit is contained in:
TreeHugger Robot
2020-05-20 14:53:19 +00:00
committed by Automerger Merge Worker

View File

@@ -369,6 +369,13 @@ public final class KeyChain {
* {@link Activity#RESULT_OK} will be returned if a credential was
* successfully installed, otherwise {@link
* Activity#RESULT_CANCELED} will be returned.
*
* <p>Starting from {@link android.os.Build.VERSION_CODES#R}, the intent returned by this
* method cannot be used for installing CA certificates. Since CA certificates can only be
* installed via Settings, the app should provide the user with a file containing the
* CA certificate. One way to do this would be to use the {@link android.provider.MediaStore}
* API to write the certificate to the {@link android.provider.MediaStore.Downloads}
* collection.
*/
@NonNull
public static Intent createInstallIntent() {