From 1cb048e2e82daf288468fe1b95ef86e5595914a7 Mon Sep 17 00:00:00 2001 From: Pranav-Talmale Date: Tue, 12 Jul 2022 19:11:28 +0100 Subject: [PATCH] hiphi: Let qcom common decryption tree handle decryption Signed-off-by: 7Soldier --- BoardConfig.mk | 1 + device.mk | 5 +++++ recovery/root/init.recovery.qcom.rc | 2 ++ 3 files changed, 8 insertions(+) diff --git a/BoardConfig.mk b/BoardConfig.mk index 52d345e..b74fc7e 100644 --- a/BoardConfig.mk +++ b/BoardConfig.mk @@ -117,6 +117,7 @@ PLATFORM_VERSION_LAST_STABLE := $(PLATFORM_VERSION) TW_INCLUDE_CRYPTO := true TW_INCLUDE_CRYPTO_FBE := true TW_INCLUDE_FBE_METADATA_DECRYPT := true +BOARD_USES_QCOM_FBE_DECRYPTION := true TW_USE_FSCRYPT_POLICY := 2 # TWRP Configuration diff --git a/device.mk b/device.mk index f39d0b5..e7a339c 100644 --- a/device.mk +++ b/device.mk @@ -45,6 +45,11 @@ PRODUCT_PACKAGES += \ update_verifier \ update_engine_sideload +# Crypto +PRODUCT_PACKAGES += \ + qcom_decrypt \ + qcom_decrypt_fbe + # Dynamic partitions PRODUCT_USE_DYNAMIC_PARTITIONS := true diff --git a/recovery/root/init.recovery.qcom.rc b/recovery/root/init.recovery.qcom.rc index 6f9997b..7055cb6 100644 --- a/recovery/root/init.recovery.qcom.rc +++ b/recovery/root/init.recovery.qcom.rc @@ -25,6 +25,8 @@ # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. # +import /init.recovery.qcom_decrypt.rc + on early-init start set_permissive