Merge "Fix some nits while reading the code"
This commit is contained in:
committed by
Android (Google) Code Review
commit
478b6caa48
@@ -426,7 +426,7 @@ public class RecoverableKeyStoreLoader {
|
||||
* Imports keys.
|
||||
*
|
||||
* @param sessionId Id for recovery session, same as in
|
||||
* {@link #startRecoverySession(String, byte[], byte[], byte[], List)} on}.
|
||||
* {@link #startRecoverySession(String, byte[], byte[], byte[], List)}.
|
||||
* @param recoveryKeyBlob Recovery blob encrypted by symmetric key generated for this session.
|
||||
* @param applicationKeys Application keys. Key material can be decrypted using recoveryKeyBlob
|
||||
* and session. KeyStore only uses package names from the application info in {@link
|
||||
|
||||
@@ -2026,8 +2026,9 @@ public class LockSettingsService extends ILockSettings.Stub {
|
||||
}
|
||||
|
||||
@Override
|
||||
public Map<String, byte[]> recoverKeys(@NonNull String sessionId, @NonNull byte[] recoveryKeyBlob,
|
||||
@NonNull List<KeyEntryRecoveryData> applicationKeys, @UserIdInt int userId)
|
||||
public Map<String, byte[]> recoverKeys(@NonNull String sessionId,
|
||||
@NonNull byte[] recoveryKeyBlob, @NonNull List<KeyEntryRecoveryData> applicationKeys,
|
||||
@UserIdInt int userId)
|
||||
throws RemoteException {
|
||||
return mRecoverableKeyStoreManager.recoverKeys(
|
||||
sessionId, recoveryKeyBlob, applicationKeys, userId);
|
||||
|
||||
@@ -88,7 +88,8 @@ public class PlatformKeyManager {
|
||||
*
|
||||
* @hide
|
||||
*/
|
||||
public static PlatformKeyManager getInstance(Context context, RecoverableKeyStoreDb database, int userId)
|
||||
public static PlatformKeyManager getInstance(Context context, RecoverableKeyStoreDb database,
|
||||
int userId)
|
||||
throws KeyStoreException, NoSuchAlgorithmException, InsecureUserException {
|
||||
context = context.getApplicationContext();
|
||||
PlatformKeyManager keyManager = new PlatformKeyManager(
|
||||
|
||||
@@ -590,6 +590,7 @@ public class RecoverableKeyStoreDb {
|
||||
*
|
||||
* @hide
|
||||
*/
|
||||
@Nullable
|
||||
public Long getServerParameters(int userId, int uid) {
|
||||
SQLiteDatabase db = mKeyStoreDbHelper.getReadableDatabase();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user