Skip to content

Commit

Permalink
Set a property if seed binding is enabled.
Browse files Browse the repository at this point in the history
For vehicle binding seed atest

Bug: 157501579
Test: atest vehicle-binding-seed-sh

Merged-In: Ie1dad1735193ce722ec036e38f826a6b90e94526
Change-Id: Ie1dad1735193ce722ec036e38f826a6b90e94526
  • Loading branch information
ek9852 committed Sep 2, 2021
1 parent 466e30d commit 143b0df
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions KeyStorage.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -709,6 +709,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";
Expand Down

0 comments on commit 143b0df

Please sign in to comment.