vold_decrypt: only include patch_level functions with libresetprop
The functions use the Property_Override function from libresetprop, so don't include if libresetprop isn't included in build Change-Id: I5eb210f17fea908ec35cb223e4a55066419f55dc
This commit is contained in:
committed by
captainthrowback
parent
7007c999f9
commit
740d852518
@@ -780,6 +780,7 @@ void Set_Needed_Properties(void) {
|
||||
property_set("vendor.sys.listeners.registered", "false");
|
||||
}
|
||||
|
||||
#ifdef TW_INCLUDE_LIBRESETPROP // Patch_Level_Overrides
|
||||
void Update_Patch_Level(void) {
|
||||
// On Oreo and above, keymaster requires Android version & patch level to match installed system
|
||||
string sdkverstr = TWFunc::System_Property_Get("ro.build.version.sdk");
|
||||
@@ -901,6 +902,7 @@ void Revert_Patch_Level(void) {
|
||||
return;
|
||||
}
|
||||
}
|
||||
#endif // Patch_Level_Overrides
|
||||
|
||||
static unsigned int get_blkdev_size(int fd) {
|
||||
unsigned long nr_sec;
|
||||
|
||||
Reference in New Issue
Block a user