Skip to content

Commit 65a4518

Browse files
heisinbugrcstar6696
authored andcommitted
clover: add device specific cryptfs_hw
since it's nuked in common tree Change-Id: I284b9d3335abff4be56ad28c66b5dd67bf126550
1 parent edc9a09 commit 65a4518

File tree

3 files changed

+21
-1
lines changed

3 files changed

+21
-1
lines changed

BoardConfig.mk

+6-1
Original file line numberDiff line numberDiff line change
@@ -26,13 +26,18 @@ include device/xiaomi/sdm660-common/BoardConfigCommon.mk
2626
# Device Path
2727
DEVICE_PATH := device/xiaomi/clover
2828

29+
# Crypto
30+
TARGET_HW_DISK_ENCRYPTION := true
31+
2932
# DT2W
3033
TARGET_TAP_TO_WAKE_NODE := "/proc/touchscreen/enable_dt2w"
3134

3235
# Kernel
3336
TARGET_KERNEL_SOURCE := kernel/xiaomi/clover
3437
TARGET_KERNEL_CONFIG := clover-perf_defconfig
35-
TW_USE_TOOLBOX := true
38+
39+
# Manifest
40+
DEVICE_MANIFEST_FILE += $(DEVICE_PATH)/manifest.xml
3641

3742
# Platform
3843
BOARD_VENDOR_PLATFORM := xiaomi-sdm660

device.mk

+4
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,10 @@ TARGET_SCREEN_WIDTH := 1200
4040
# Device properties
4141
$(call inherit-product, $(DEVICE_PATH)/device_prop.mk)
4242

43+
# HW crypto
44+
PRODUCT_PACKAGES += \
45+
46+
4347
# Media
4448
PRODUCT_COPY_FILES += \
4549
$(DEVICE_PATH)/configs/media/media_profiles_V1_0.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_profiles_V1_0.xml

manifest.xml

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<manifest version="1.0" type="device" target-level="2">
2+
<hal format="hidl">
3+
<name>vendor.qti.hardware.cryptfshw</name>
4+
<transport>hwbinder</transport>
5+
<version>1.0</version>
6+
<interface>
7+
<name>ICryptfsHw</name>
8+
<instance>default</instance>
9+
</interface>
10+
</hal>
11+
</manifest>

0 commit comments

Comments
 (0)