Merge "Set a property if seed binding is enabled." am: cc63a93fd6

Original change: https://android-review.googlesource.com/c/platform/system/vold/+/1816736

Change-Id: I80fde534da01e49298c9e7b82617befa32959414
This commit is contained in:
Keith Mok 2021-09-02 00:18:47 +00:00 committed by Automerger Merge Worker
commit d5f0a5751e

View file

@ -715,6 +715,7 @@ bool setKeyStorageBindingSeed(const std::vector<uint8_t>& seed) {
case StorageBindingInfo::State::UNINITIALIZED:
storage_binding_info.state = StorageBindingInfo::State::IN_USE;
storage_binding_info.seed = seed;
android::base::SetProperty("vold.storage_seed_bound", "1");
return true;
case StorageBindingInfo::State::IN_USE:
LOG(ERROR) << "key storage binding seed already set";