Rework is_metadata_wrappedkey_is_supported
Change-Id: Ia3c266bb32e31354375b633c4801e486f664539a
This commit is contained in:
@@ -230,7 +230,7 @@ bool is_wrapped_key_supported_external() {
|
||||
return false;
|
||||
}
|
||||
|
||||
bool is_metadata_wrapped_key_supported() {
|
||||
bool is_metadata_wrapped_key_supported_common(const std::string& mount_point) {
|
||||
LOG(DEBUG) << "Determining metadata wrapped-key support for " << mount_point;
|
||||
std::string wrapped_key_supported = android::base::GetProperty("fbe.metadata.wrappedkey", "false");
|
||||
LOG(DEBUG) << "fbe.metadata.wrappedkey = " << wrapped_key_supported;
|
||||
@@ -242,6 +242,10 @@ bool is_metadata_wrapped_key_supported() {
|
||||
}
|
||||
}
|
||||
|
||||
bool is_metadata_wrapped_key_supported() {
|
||||
return is_metadata_wrapped_key_supported_common(METADATA_MNT_POINT);
|
||||
}
|
||||
|
||||
static bool read_and_install_user_ce_key(userid_t user_id,
|
||||
const android::vold::KeyAuthentication& auth) {
|
||||
if (s_ce_key_raw_refs.count(user_id) != 0) return true;
|
||||
|
||||
Reference in New Issue
Block a user