Record use of metadata encryption in property
Bug: 152150018
Test: Cuttlefish with and without keydirectory option
Cherry-Picked-From: 94abae03a9
Merged-In: I400873ec207cb63f0407fefc83962bb3a927e294
Change-Id: I400873ec207cb63f0407fefc83962bb3a927e294
This commit is contained in:
parent
e471d11d46
commit
7fbd8d4474
1 changed files with 5 additions and 0 deletions
|
@ -337,6 +337,11 @@ bool fscrypt_mount_metadata_encrypted(const std::string& blk_device, const std::
|
|||
|
||||
LOG(DEBUG) << "Mounting metadata-encrypted filesystem:" << mount_point;
|
||||
mount_via_fs_mgr(mount_point.c_str(), crypto_blkdev.c_str());
|
||||
|
||||
// Record that there's at least one fstab entry with metadata encryption
|
||||
if (!android::base::SetProperty("ro.crypto.metadata.enabled", "true")) {
|
||||
LOG(WARNING) << "failed to set ro.crypto.metadata.enabled"; // This isn't fatal
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue