summaryrefslogtreecommitdiff
path: root/tools/aapt2/java/JavaClassGenerator_test.cpp
diff options
context:
space:
mode:
authorRobert Berry <robertberry@google.com>2017-12-19 10:44:56 +0000
committerRobert Berry <robertberry@google.com>2017-12-20 13:41:49 +0000
commita244b2ed034d778b5cb1a42755b209850b31c7b2 (patch)
tree75cd7becc2a1ea6a399ab903a2af2170fdbf53fb /tools/aapt2/java/JavaClassGenerator_test.cpp
parent1824f66c1c9b5446106c59035282de59ee6d0134 (diff)
Use RecoverableKeyStoreDb in RecoverableKeyGenerator
This removes the layer of abstraction provided by RecoverableKeyStorage, as it doesn't seem particularly useful, given how easy it is to just use the real classes in tests. This also hooks up actually saving to the database. I've modified the class so that you can have a single instance for generating keys and just pass the 'uid' through, rather than having to create a new instance per uid. I think this will simplify its use. Also it no longer returns the key handle. As you can just get it out of the AndroidKeyStore yourself, it doesn't seem useful to have the method also do that. Test: adb shell am instrument -w -e package com.android.server.locksettings.recoverablekeystore com.android.frameworks.servicestests/android.support.test.runner.AndroidJUnitRunner Change-Id: Ice144a84690150648cbb5da64c8a4cecc2576349
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions