forked from hraj9258/twrp_caihong
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
41 changed files
with
815 additions
and
111 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -24,9 +24,20 @@ PRODUCT_PACKAGES += \ | |
[email protected] \ | ||
fastbootd | ||
|
||
# Recovery libs | ||
TARGET_RECOVERY_DEVICE_MODULES += \ | ||
libion | ||
|
||
RECOVERY_LIBRARY_SOURCE_FILES += \ | ||
$(TARGET_OUT_SHARED_LIBRARIES)/libion.so | ||
|
||
# Platform | ||
PLATFORM_VERSION := 99.87.36 | ||
PLATFORM_SECURITY_PATCH := 2127-12-31 | ||
PLATFORM_VERSION_LAST_STABLE := $(PLATFORM_VERSION) | ||
VENDOR_SECURITY_PATCH := $(PLATFORM_SECURITY_PATCH) | ||
BOOT_SECURITY_PATCH := $(PLATFORM_SECURITY_PATCH) | ||
|
||
PRODUCT_PACKAGES += \ | ||
qcom_decrypt \ | ||
qcom_decrypt_fbe |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file added
BIN
+44.3 KB
recovery/root/system/bin/android.hardware.security.keymint-service-qti
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
<!-- | ||
Copyright (c) 2017 Qualcomm Technologies, Inc. | ||
All Rights Reserved. | ||
Confidential and Proprietary - Qualcomm Technologies, Inc. | ||
--> | ||
|
||
<!-- | ||
This file is configured by OEM to customize the path used by GP FS listener | ||
service to save files, and will be located in /vendor/etc on device | ||
"gp_data_path" and "gp_persist_path" are the /data and /persist partition | ||
path to save files, respectively. | ||
By default, "gp_data_path" is "/data/vendor/tzstorage/", and | ||
"gp_persist_path" is "/mnt/vendor/persist/data/". | ||
To replace with different paths, please also create folder in init.qcom.rc | ||
file and update SEAndroid policy. | ||
Take "/data/vendor/tzstorage/" as an example below, | ||
A) rootdir/etc/init.qcom.rc: | ||
# Create /data/vendor/tzstorage directory for SFS listener | ||
mkdir /data/vendor/tzstorage 0770 system system | ||
B) common/file.te: | ||
# SFS listener data file | ||
type data_tzstorage_file, file_type, data_file_type; | ||
C) common/file_contexts: | ||
/data/vendor/tzstorage(/.*)? u:object_r:data_tzstorage_file:s0 | ||
D) common/qseecomd.te: | ||
# Allow SFS to write to data partition | ||
allow tee data_tzstorage_file:dir create_dir_perms; | ||
allow tee data_tzstorage_file:file create_file_perms; | ||
"gp_whitelist_count" and "gp_whitelist_path" | ||
Some paths needs "/data/vendor/tzstorage" appended to it at the beginning | ||
as they do not have access/permissions on their own. | ||
Use gp_whitelist_count and gp_whitelist_paths entries to add more such paths. | ||
By default, we add "/data/system/users" and "/data/misc/qsee" for current use | ||
cases. | ||
To add an extra path, increment the count in gp_whitelist_count and add a new | ||
gp_whitelist_path entry. It is very critical that the count matches with the | ||
number of path entries. | ||
--> | ||
|
||
|
||
<sfs_path> | ||
<gp_data_path> /data/vendor/tzstorage/ </gp_data_path> | ||
<gp_persist_path> /mnt/vendor/persist/data/ </gp_persist_path> | ||
<gp_whitelist_count> 4 </gp_whitelist_count> | ||
<gp_whitelist_path> /data/system/users/ </gp_whitelist_path> | ||
<gp_whitelist_path> /data/misc/qsee/ </gp_whitelist_path> | ||
<gp_whitelist_path> /qwes </gp_whitelist_path> | ||
<gp_whitelist_path> /qwes/licenses </gp_whitelist_path> | ||
</sfs_path> |
13 changes: 13 additions & 0 deletions
13
recovery/root/vendor/etc/init/android.hardware.security.keymint-service-qti.rc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# Copyright (c) 2021 Qualcomm Technologies, Inc. | ||
# All Rights Reserved. | ||
# Confidential and Proprietary - Qualcomm Technologies, Inc. | ||
|
||
on property:hwservicemanager.ready=true && property:vendor.sys.listeners.registered=true | ||
start keymint-qti | ||
|
||
service keymint-qti /system/bin/android.hardware.security.keymint-service-qti | ||
user root | ||
group root | ||
setenv LD_LIBRARY_PATH /vendor/lib64:/vendor/lib:/system/lib64:/system/lib:/sbin | ||
disabled | ||
seclabel u:r:recovery:s0 |
Oops, something went wrong.