summaryrefslogtreecommitdiff
path: root/tools/aapt2/java/JavaClassGenerator_test.cpp
diff options
context:
space:
mode:
authorRobert Berry <robertberry@google.com>2018-03-26 14:41:30 +0100
committerRobert Berry <robertberry@google.com>2018-03-26 20:32:16 +0100
commit5a1acefb88a991819c6423ba931a3990491f5b3d (patch)
tree37cb3c2b0ef63c05d1ef1c97e5e9cfb3982746d4 /tools/aapt2/java/JavaClassGenerator_test.cpp
parent54419ca2bb2646c9f9aa61b4f90616ebc9bc5d27 (diff)
Fix setRecoverySecretTypes to not always set snapshot pending
Only updates should set snapshot pending. Setting the secret types for the first time should not set snapshot pending. If it did, then just initializing the recovery agent would cause a snapshot to be made, even if it contained no keys. Also, setting the secret types to the same value as it was previously should not set snapshot pending, for the exact same reason. If the secret types were to change, however, for some reason, then a new snapshot must be made, as it may have additional or fewer layers of protection. Bug: 74949975 Test: runtest frameworks-services -p \ com.android.server.locksettings.recoverablekeystore Change-Id: Ib29d56d5c46e730d9ed457f2d516f84ecb9e53b8
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions