OSDN Git Service

Fix bug where PlatformKeyManager did not save generation ID
authorRobert Berry <robertberry@google.com>
Tue, 2 Jan 2018 12:17:31 +0000 (12:17 +0000)
committerRobert Berry <robertberry@google.com>
Tue, 2 Jan 2018 14:30:40 +0000 (14:30 +0000)
commitb811553c4c6661599fa30910a49b8b54279e12be
tree456e3dbfd337cc100be03af1696e2504e06b8886
parentdc4cb146315240441fc8d9c05fe8dd63370a7c57
Fix bug where PlatformKeyManager did not save generation ID

This caused a new platform key to be repeatedly generated. Also fix an issue
where you had to have the RECOVER_KEYSTORE permission to check the status of
your own keys. This does not make sense.

Test: adb shell am instrument -w -e package com.android.server.locksettings.recoverablekeystore com.android.frameworks.servicestests/android.support.test.runner.AndroidJUnitRunner
Change-Id: I51aa4e1fe1a96b79bb9b6ae249d29311808134f1
services/core/java/com/android/server/locksettings/recoverablekeystore/PlatformKeyManager.java
services/core/java/com/android/server/locksettings/recoverablekeystore/RecoverableKeyStoreManager.java
services/tests/servicestests/src/com/android/server/locksettings/recoverablekeystore/PlatformKeyManagerTest.java