From 78f806198f85ca37abb617235c89abaca7d1c19c Mon Sep 17 00:00:00 2001 From: Nikita Ioffe Date: Mon, 20 Apr 2020 22:21:49 +0100 Subject: [PATCH] Introduce ro.crypto.uses_fs_ioc_add_encryption_key property Bug: 154327249 Test: adb shell getprop ro.crypto.uses_fs_ioc_add_encryption_key Test: adb bugreport && checked content contains new property Change-Id: I562df49deffdccdb2cfd657130fc05b24d40a6a6 --- KeyUtil.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/KeyUtil.cpp b/KeyUtil.cpp index 3359699..acc42db 100644 --- a/KeyUtil.cpp +++ b/KeyUtil.cpp @@ -27,6 +27,7 @@ #include #include +#include #include #include @@ -87,6 +88,7 @@ bool isFsKeyringSupported(void) { } LOG(DEBUG) << "Detected support for FS_IOC_ADD_ENCRYPTION_KEY"; supported = true; + android::base::SetProperty("ro.crypto.uses_fs_ioc_add_encryption_key", "true"); } // There's no need to check for FS_IOC_REMOVE_ENCRYPTION_KEY, since it's // guaranteed to be available if FS_IOC_ADD_ENCRYPTION_KEY is. There's