Merge "Improve doc for DPM.generateKeyPair" into rvc-dev

This commit is contained in:
TreeHugger Robot
2020-03-16 12:12:53 +00:00
committed by Android (Google) Code Review

View File

@@ -5215,6 +5215,10 @@ public class DevicePolicyManager {
* <p>Because this method might take several seconds to complete, it should only be called from
* a worker thread. This method returns {@code null} when called from the main thread.
*
* <p>This method is not thread-safe, calling it from multiple threads at the same time will
* result in undefined behavior. If the calling thread is interrupted while the invocation is
* in-flight, it will eventually terminate and return {@code null}.
*
* <p>Note: If the provided {@code alias} is of an existing alias, all former grants that apps
* have been given to access the key and certificates associated with this alias will be
* revoked.