Skip to content
This repository has been archived by the owner on Dec 27, 2023. It is now read-only.

Commit

Permalink
Clean up.
Browse files Browse the repository at this point in the history
TODO: Fix Decryption.
  • Loading branch information
cd-Crypton committed Dec 7, 2022
1 parent 5c5efe2 commit 3b61166
Show file tree
Hide file tree
Showing 22 changed files with 4 additions and 15 deletions.
13 changes: 2 additions & 11 deletions BoardConfig.mk
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ TARGET_2ND_CPU_VARIANT_RUNTIME := cortex-a55
TARGET_NO_BOOTLOADER := true

# Assert
TARGET_OTA_ASSERT_DEVICE := cannon,cannong
TARGET_OTA_ASSERT_DEVICE := cannon,cannong,cannong_global

# File System
BOARD_HAS_LARGE_FILESYSTEM := true
Expand Down Expand Up @@ -101,16 +101,10 @@ TARGET_VENDOR_PROP := $(DEVICE_PATH)/vendor.prop

# Additional binaries & libraries needed for recovery
TARGET_RECOVERY_DEVICE_MODULES += \
libkeymaster4 \
libkeymaster4support \
libpuresoftkeymasterdevice \
ashmemd_aidl_interface-cpp \
libashmemd_client

TW_RECOVERY_ADDITIONAL_RELINK_LIBRARY_FILES += \
$(TARGET_OUT_SHARED_LIBRARIES)/libkeymaster4.so \
$(TARGET_OUT_SHARED_LIBRARIES)/libkeymaster4support.so \
$(TARGET_OUT_SHARED_LIBRARIES)/libpuresoftkeymasterdevice.so \
$(TARGET_OUT_SHARED_LIBRARIES)/ashmemd_aidl_interface-cpp.so \
$(TARGET_OUT_SHARED_LIBRARIES)/libashmemd_client.so

Expand All @@ -121,13 +115,10 @@ PLATFORM_VERSION := 99.87.36

# TWRP Configuration
TW_THEME := portrait_hdpi
#TW_Y_OFFSET := 100
#TW_H_OFFSET := -100
RECOVERY_SDCARD_ON_DATA := true
TW_INCLUDE_RESETPROP := true
TW_INCLUDE_CRYPTO := true
TW_INCLUDE_CRYPTO_FBE := true
TW_INCLUDE_FBE_METADATA_DECRYPT := true
TW_EXCLUDE_DEFAULT_USB_INIT := true
TW_EXTRA_LANGUAGES := true
TW_INCLUDE_NTFS_3G := true
Expand All @@ -137,7 +128,7 @@ TW_DEFAULT_BRIGHTNESS := 900
TW_SCREEN_BLANK_ON_BOOT := true
TW_INCLUDE_FUSE_EXFAT := true
TW_INCLUDE_FASTBOOTD := true
TW_USE_FSCRYPT_POLICY := 2
TW_USE_FSCRYPT_POLICY := 1
BOARD_SUPPRESS_SECURE_ERASE := true
TARGET_USES_MKE2FS := true
TARGET_SUPPORTS_64_BIT_APPS := false
Expand Down
4 changes: 2 additions & 2 deletions recovery/root/system/etc/recovery.fstab
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
/product ext4 product flags=display=product;logical

# Other Partitions
/dev/block/by-name/metadata /metadata ext4 noatime,nosuid,nodev,discard wait,check,formattable,wrappedkey
/dev/block/by-name/userdata /data f2fs noatime,nosuid,nodev,discard,noflush_merge,fsync_mode=nobarrier,reserve_root=134217,resgid=1065,inlinecrypt wait,check,formattable,quota,resize,fileencryption=aes-256-xts:aes-256-cts:v1+inlinecrypt_optimized+wrappedkey_v0,keydirectory=/metadata/vold/metadata_encryption,metadata_encryption=aes-256-xts:wrappedkey_v0
/dev/block/by-name/metadata /metadata ext4 noatime,nosuid,nodev,discard wait,check,formattable
/dev/block/by-name/userdata /data f2fs noatime,nosuid,nodev,discard,noflush_merge,fsync_mode=nobarrier,reserve_root=134217,resgid=1065,inlinecrypt wait,check,formattable,quota,resize,checkpoint=fs,fileencryption=aes-256-xts:aes-256-cts:v1
/dev/block/by-name/cache /cache ext4 noatime,nosuid,nodev,noauto_da_alloc,discard wait,check,formattable
/dev/block/by-name/misc /misc emmc flags=display=misc
Binary file not shown.
Binary file removed recovery/root/system/lib64/libashmemd_client.so
Binary file not shown.
Binary file removed recovery/root/system/lib64/libkeymaster4.so
Binary file not shown.
Binary file removed recovery/root/system/lib64/libkeymaster4support.so
Binary file not shown.
Binary file not shown.
Binary file not shown.
File renamed without changes.
Binary file added recovery/root/vendor/lib64/libkeymaster4.so
Binary file not shown.
Binary file not shown.
2 changes: 0 additions & 2 deletions vendor.prop
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
# Crypto
ro.crypto.dm_default_key.options_format.version=1
ro.crypto.volume.filenames_mode=aes-256-cts
ro.crypto.volume.metadata.method=dm-default-key

# Hardware
ro.hardware.kmsetkey=beanpod
Expand Down

0 comments on commit 3b61166

Please sign in to comment.