Merge "Avoid error message when destroying key w/o secdiscardable file" am: dc262c27f0
am: 60c71b9950
am: 2ef1832ac4
Original change: https://android-review.googlesource.com/c/platform/system/vold/+/2470460 Change-Id: I9a0edebc0100cd56077e95ff5adb3f40d7b5129f Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
commit
10f3d7ec32
1 changed files with 4 additions and 1 deletions
|
@ -658,8 +658,11 @@ bool destroyKey(const std::string& dir) {
|
|||
kSecdiscardPath,
|
||||
"--",
|
||||
dir + "/" + kFn_encrypted_key,
|
||||
dir + "/" + kFn_secdiscardable,
|
||||
};
|
||||
auto secdiscardable = dir + "/" + kFn_secdiscardable;
|
||||
if (pathExists(secdiscardable)) {
|
||||
secdiscard_cmd.push_back(secdiscardable);
|
||||
}
|
||||
// Try each thing, even if previous things failed.
|
||||
|
||||
for (auto& fn : {kFn_keymaster_key_blob, kFn_keymaster_key_blob_upgraded}) {
|
||||
|
|
Loading…
Reference in a new issue