Fix fingerprint on Honor View 10

This commit is contained in:
Pierre-Hugues Husson 2019-11-30 20:38:41 +01:00
parent d7b17ebf53
commit 07632a8291
4 changed files with 25 additions and 2 deletions

View File

@ -3,4 +3,4 @@ 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 += bt_firmware BOARD_ROOT_EXTRA_FOLDERS += bt_firmware sec_storage

View File

@ -448,5 +448,17 @@ for abi in "" 64;do
fi fi
done done
setprop ro.product.first_api_level "$vndk" setprop ro.product.first_api_level "$vndk"
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

@ -10,3 +10,5 @@
/bt_firmware(/.*)? u:object_r:bt_firmware_file:s0 /bt_firmware(/.*)? u:object_r:bt_firmware_file:s0
/sec_storage(/.*)? u:object_r:teecd_data_file:s0
/dev/dsm u:object_r:dmd_device:s0

View File

@ -1,2 +1,11 @@
allow ueventd proc:file r_file_perms; allow ueventd proc:file r_file_perms;
permissive ueventd; permissive ueventd;
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 };