Merge "fs_mgr: use __ANDROID_API_Q__ instead of pre_gki_level" am: 9b6922b5df
Original change: https://android-review.googlesource.com/c/platform/system/core/+/1394890 Change-Id: If9f3833dfec2f29d436fd535d64404281a93d82e
This commit is contained in:
commit
f79287b5cc
1 changed files with 1 additions and 2 deletions
|
|
@ -1113,10 +1113,9 @@ class CheckpointManager {
|
||||||
// metadata-encrypted device with smaller blocks, we must not change this for
|
// metadata-encrypted device with smaller blocks, we must not change this for
|
||||||
// devices shipped with Q or earlier unless they explicitly selected dm-default-key
|
// devices shipped with Q or earlier unless they explicitly selected dm-default-key
|
||||||
// v2
|
// v2
|
||||||
constexpr unsigned int pre_gki_level = __ANDROID_API_Q__;
|
|
||||||
unsigned int options_format_version = android::base::GetUintProperty<unsigned int>(
|
unsigned int options_format_version = android::base::GetUintProperty<unsigned int>(
|
||||||
"ro.crypto.dm_default_key.options_format.version",
|
"ro.crypto.dm_default_key.options_format.version",
|
||||||
(android::fscrypt::GetFirstApiLevel() <= pre_gki_level ? 1 : 2));
|
(android::fscrypt::GetFirstApiLevel() <= __ANDROID_API_Q__ ? 1 : 2));
|
||||||
if (options_format_version > 1) {
|
if (options_format_version > 1) {
|
||||||
bowTarget->SetBlockSize(4096);
|
bowTarget->SetBlockSize(4096);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue