Set a property if seed binding is enabled.

For vehicle binding seed atest

Bug: 157501579
Test: atest vehicle-binding-seed-sh
Change-Id: Ie1dad1735193ce722ec036e38f826a6b90e94526
This commit is contained in:
Keith Mok 2021-09-01 18:37:48 +00:00
parent 407b2c2386
commit e8600253ac

View file

@ -712,6 +712,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";