OSDN Git Service

Fail KeySyncTask if the PlatformKey can't be used to decrypt
authorRobert Berry <robertberry@google.com>
Mon, 22 Jan 2018 21:59:30 +0000 (21:59 +0000)
committerRobert Berry <robertberry@google.com>
Mon, 22 Jan 2018 21:59:30 +0000 (21:59 +0000)
commit26cbb6b039a7d20531fbd37005f05fe4268062bc
treefdfafe291c6c85e80cc1a65b2289735431cf1705
parent6e97afc157c2a49ad9f3416ba2146cc45ec82708
Fail KeySyncTask if the PlatformKey can't be used to decrypt

Currently just uploads an empty set of keys, and thinks the key sync
was successful. (i.e., does not sync again afterwards.)

Bug: 72299798
Test: adb shell am instrument -w -e package
com.android.server.locksettings.recoverablekeystore
com.android.frameworks.servicestests/android.support.test.runner.AndroidJUnitRunner

Change-Id: I7342f93bd205777688a737d6e1ec8c1ab5b5f7a5
services/core/java/com/android/server/locksettings/recoverablekeystore/KeySyncTask.java
services/core/java/com/android/server/locksettings/recoverablekeystore/WrappedKey.java