Fix fingerprint on Honor View 10

This commit is contained in:
Pierre-Hugues Husson 2019-11-30 20:38:41 +01:00
parent 7a6d88a308
commit dc8484b74f
4 changed files with 28 additions and 0 deletions

View File

@ -2,3 +2,5 @@ TARGET_SYSTEM_PROP := device/phh/treble/system.prop $(TARGET_SYSTEM_PROP)
BOARD_BLUETOOTH_BDROID_BUILDCFG_INCLUDE_DIR := device/phh/treble/bluetooth BOARD_BLUETOOTH_BDROID_BUILDCFG_INCLUDE_DIR := device/phh/treble/bluetooth
TARGET_EXFAT_DRIVER := exfat TARGET_EXFAT_DRIVER := exfat
DEVICE_FRAMEWORK_MANIFEST_FILE := device/phh/treble/framework_manifest.xml DEVICE_FRAMEWORK_MANIFEST_FILE := device/phh/treble/framework_manifest.xml
BOARD_ROOT_EXTRA_FOLDERS += sec_storage

View File

@ -425,3 +425,16 @@ if [ -f /system/phh/secure ];then
resetprop ro.adb.secure 1 resetprop ro.adb.secure 1
setprop ctl.restart adbd setprop ctl.restart adbd
fi fi
if getprop ro.boot.boot_devices |grep -v , |grep -qE .;then
ln -s /dev/block/platform/$(getprop ro.boot.boot_devices) /dev/block/bootdevice
fi
if [ -c /dev/dsm ];then
chown system:system /dev/dsm
chmod 0660 /dev/dsm
mkdir -p /data/sec_storage_data
chown system:system /data/sec_storage_data
chcon u:object_r:teecd_data_file_system:s0 /data/sec_storage_data
mount /data/sec_storage_data /sec_storage
fi

View File

@ -6,3 +6,6 @@
/system/bin/fsck\.exfat u:object_r:fsck_exec:s0 /system/bin/fsck\.exfat u:object_r:fsck_exec:s0
/system/bin/fsck\.ntfs u:object_r:fsck_exec:s0 /system/bin/fsck\.ntfs u:object_r:fsck_exec:s0
/sec_storage(/.*)? u:object_r:teecd_data_file:s0
/dev/dsm u:object_r:dmd_device:s0

View File

@ -1 +1,11 @@
allow ueventd proc:file r_file_perms; allow ueventd proc:file r_file_perms;
type teecd_data_file, file_type;
type dmd_device, file_type;
allow hal_fingerprint_server dmd_device:chr_file rw_file_perms;
allow hal_fingerprint_server sysfs:file rw_file_perms;
type oeminfo_nvm, domain;
type oeminfo_nvm_device, file_type;
allowxperm oeminfo_nvm oeminfo_nvm_device:blk_file ioctl { 0x1260 };
allow ueventd dmd_device:chr_file create_file_perms;