diff --git a/BoardConfig.mk b/BoardConfig.mk index 9945190..c8048e3 100644 --- a/BoardConfig.mk +++ b/BoardConfig.mk @@ -45,6 +45,7 @@ TARGET_BOARD_PLATFORM := sdm660 TARGET_BOARD_PLATFORM_GPU := qcom-adreno512 # Crypto +TW_INCLUDE_CRYPTO := true TARGET_HW_DISK_ENCRYPTION := true TARGET_CRYPTFS_HW_PATH := vendor/qcom/opensource/commonsys/cryptfs_hw @@ -74,7 +75,6 @@ TARGET_RECOVERY_QCOM_RTC_FIX := true TW_BRIGHTNESS_PATH := /sys/class/leds/lcd-backlight/brightness TW_EXCLUDE_DEFAULT_USB_INIT := true TW_EXTRA_LANGUAGES := true -TW_INCLUDE_CRYPTO := true TW_INCLUDE_NTFS_3G := true TW_IGNORE_MISC_WIPE_DATA := true TW_INPUT_BLACKLIST := "hbtp_vm" @@ -82,3 +82,5 @@ TW_SCREEN_BLANK_ON_BOOT := true TW_USE_TOOLBOX := true TWRP_INCLUDE_LOGCAT := true TARGET_USES_LOGD := true + +TARGET_SYSTEM_PROP := device/asus/X01BD/system.prop diff --git a/omni_X01BD.mk b/omni_X01BD.mk index a0e2090..03aa8f3 100644 --- a/omni_X01BD.mk +++ b/omni_X01BD.mk @@ -42,8 +42,12 @@ TARGET_VENDOR_DEVICE_NAME := X01BD PRODUCT_PROPERTY_OVERRIDES += \ ro.hardware.keystore=sdm660 \ + ro.hardware.gatekeeper=sdm660 \ sys.usb.controller=a800000.dwc3 \ sys.usb.rndis.func.name=rndis_bam \ sys.usb.rmnet.func.name=rmnet_bam -PRODUCT_BUILD_PROP_OVERRIDES += TARGET_DEVICE=X01BD PRODUCT_NAME=X01BD +PRODUCT_BUILD_PROP_OVERRIDES += \ + PRIVATE_BUILD_DESC="sdm660_64-user 9 PKQ1 1162 release-keys" + +BUILD_FINGERPRINT := asus/WW_X01BD/ASUS_X01BD_1:9/PKQ1/16.2017.1905.065-20190507:user/release-keys diff --git a/recovery.fstab b/recovery.fstab index cba0f8e..ffd2a44 100644 --- a/recovery.fstab +++ b/recovery.fstab @@ -2,22 +2,27 @@ # The filesystem that contains the filesystem checker binary (typically /system) cannot # specify MF_CHECK, and must come before any filesystems that do specify MF_CHECK -# mount point fstype device flags -/boot emmc /dev/block/bootdevice/by-name/boot -/cache ext4 /dev/block/bootdevice/by-name/cache -/data ext4 /dev/block/bootdevice/by-name/userdata flags=encryptable=footer -/misc emmc /dev/block/bootdevice/by-name/misc -/persist ext4 /dev/block/bootdevice/by-name/persist flags=display="Persist";backup=1 -/recovery emmc /dev/block/bootdevice/by-name/recovery flags=backup=1 -/system ext4 /dev/block/bootdevice/by-name/system -/system_image emmc /dev/block/bootdevice/by-name/system -/vendor ext4 /dev/block/bootdevice/by-name/vendor flags=backup=1;wipeingui -/vendor_image emmc /dev/block/bootdevice/by-name/vendor flags=backup=1 -/efs1 emmc /dev/block/bootdevice/by-name/modemst1 flags=backup=1;display=EFS -/efs2 emmc /dev/block/bootdevice/by-name/modemst2 flags=backup=1;subpartitionof=/efs1 -/efsg emmc /dev/block/bootdevice/by-name/fsg flags=backup=1;subpartitionof=/efs1 -/efsc emmc /dev/block/bootdevice/by-name/fsc flags=backup=1;subpartitionof=/efs1 +# mount point fstype device device2 flags +/boot emmc /dev/block/bootdevice/by-name/boot +/cache ext4 /dev/block/bootdevice/by-name/cache +/data ext4 /dev/block/bootdevice/by-name/userdata flags=encryptable=footer +/recovery emmc /dev/block/bootdevice/by-name/recovery flags=backup=1 +/system ext4 /dev/block/bootdevice/by-name/system +/system_image emmc /dev/block/bootdevice/by-name/system +/vendor ext4 /dev/block/bootdevice/by-name/vendor flags=display="Vendor";backup=1;wipeingui +/vendor_image emmc /dev/block/bootdevice/by-name/vendor +/firmware vfat /dev/block/bootdevice/by-name/modem flags=display="Firmware";mounttodecrypt;fsflags=ro +/misc emmc /dev/block/bootdevice/by-name/misc +/modem emmc /dev/block/bootdevice/by-name/modem flags=backup=1;display="Modem" +/bluetooth emmc /dev/block/bootdevice/by-name/bluetooth flags=backup=1;subpartitionof=/modem +/dsp emmc /dev/block/bootdevice/by-name/dsp flags=backup=1;subpartitionof=/modem +/efs1 emmc /dev/block/bootdevice/by-name/modemst1 flags=backup=1;display=EFS +/efs2 emmc /dev/block/bootdevice/by-name/modemst2 flags=backup=1;subpartitionof=/efs1 +/efsc emmc /dev/block/bootdevice/by-name/fsc flags=backup=1;subpartitionof=/efs1 +/efsg emmc /dev/block/bootdevice/by-name/fsg flags=backup=1;subpartitionof=/efs1 +/persist ext4 /dev/block/bootdevice/by-name/persist flags=display="Persist"; # Removable storage -/usb_otg vfat /dev/block/sda1 /dev/block/sda flags=fsflags=utf8;display="USB-OTG";storage;wipeingui;removable -/external_sd vfat /dev/block/mmcblk1p1 /dev/block/mmcblk1 flags=fsflags=utf8;display="SD-Card";storage;wipeingui;removable +/usb_otg vfat /dev/block/sda1 /dev/block/sda flags=fsflags=utf8;display="USB-OTG";storage;wipeingui;removable +/external_sd vfat /dev/block/mmcblk1p1 /dev/block/mmcblk1 flags=fsflags=utf8;display="SDcard";storage;wipeingui;removable + diff --git a/recovery/root/fstab.qcom b/recovery/root/fstab.qcom new file mode 100644 index 0000000..56ed07e --- /dev/null +++ b/recovery/root/fstab.qcom @@ -0,0 +1,21 @@ +# Android fstab file. +# The filesystem that contains the filesystem checker binary (typically /system) cannot +# specify MF_CHECK, and must come before any filesystems that do specify MF_CHECK + +#TODO: Add 'check' as fs_mgr_flags with data partition. +# Currently we dont have e2fsck compiled. So fs check would failed. + +# Non-A/B fstab.qcom variant +# +# Huaiqn modify by liunianliang for non-A/B system, 2018/12/10 begin +# /dev/block/bootdevice/by-name/system / ext4 ro,barrier=1,discard wait,verify +# Huaiqn modify by liunianliang for non-A/B system, 2018/12/10 end +/dev/block/bootdevice/by-name/userdata /data ext4 nosuid,nodev,barrier=1,noauto_da_alloc,discard,noatime,lazytime wait,check,forceencrypt=footer,quota,reservedsize=128M +/devices/soc/c084000.sdhci/mmc_host* /storage/sdcard1 vfat nosuid,nodev wait,voldmanaged=sdcard1:auto,encryptable=footer +/dev/block/bootdevice/by-name/misc /misc emmc defaults defaults +/dev/block/bootdevice/by-name/modem /vendor/firmware_mnt vfat ro,shortname=lower,uid=0,gid=1000,dmask=227,fmask=337,context=u:object_r:firmware_file:s0 wait +/dev/block/bootdevice/by-name/bluetooth /vendor/bt_firmware vfat ro,shortname=lower,uid=1002,gid=3002,dmask=227,fmask=337,context=u:object_r:bt_firmware_file:s0 wait +/devices/soc/a800000.ssusb/a800000.dwc3/xhci-hcd.0.auto* /storage/usbotg vfat nosuid,nodev wait,voldmanaged=usbotg:auto +/dev/block/bootdevice/by-name/dsp /vendor/dsp ext4 ro,nosuid,nodev,barrier=1 wait +/dev/block/bootdevice/by-name/cache /cache ext4 nosuid,nodev,noatime,barrier=1 wait +/dev/block/bootdevice/by-name/persist /mnt/vendor/persist ext4 noatime,nosuid,nodev,barrier=1 wait diff --git a/recovery/root/init.recovery.qcom.rc b/recovery/root/init.recovery.qcom.rc index 5f41278..d84ac38 100644 --- a/recovery/root/init.recovery.qcom.rc +++ b/recovery/root/init.recovery.qcom.rc @@ -1,60 +1,26 @@ -# Copyright (c) 2009-2012, 2014-2015, The Linux Foundation. All rights reserved. -# -# Redistribution and use in source and binary forms, with or without -# modification, are permitted provided that the following conditions are met: -# * Redistributions of source code must retain the above copyright -# notice, this list of conditions and the following disclaimer. -# * Redistributions in binary form must reproduce the above copyright -# notice, this list of conditions and the following disclaimer in the -# documentation and/or other materials provided with the distribution. -# * Neither the name of The Linux Foundation nor -# the names of its contributors may be used to endorse or promote -# products derived from this software without specific prior written -# permission. -# -# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" -# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -# IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND -# NON-INFRINGEMENT ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR -# CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, -# EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, -# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; -# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, -# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR -# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF -# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -# +on early-init + mkdir /firmware 0771 system system -on fs - wait /dev/block/platform/soc/${ro.boot.bootdevice} - symlink /dev/block/platform/soc/${ro.boot.bootdevice} /dev/block/bootdevice +on init chmod 0660 /dev/qseecom chown system drmrpc /dev/qseecom chmod 0664 /dev/ion chown system system /dev/ion - install_keyring - -# Needed to make qseecomd work in recovery - chmod 0777 /dev/qseecom - chmod 0664 /dev/ion - chown system system /dev/ion - setprop crypto.ready 0 +on fs + wait /dev/block/platform/soc/${ro.boot.bootdevice} + symlink /dev/block/platform/soc/${ro.boot.bootdevice} /dev/block/bootdevice + install_keyring + mount vfat /dev/block/bootdevice/by-name/modem /firmware ro shortname=lower uid=1000 gid=1000 dmask=227 fmask=337 + setprop crypto.ready 1 -# Separate copy needed to use /sbin/linker64 instead of /system/bin/linker64 +# separate copy needed to use /sbin/linker64 instead of /system/bin/linker64 service sbinqseecomd /sbin/qseecomd user root group root disabled seclabel u:r:recovery:s0 -service prepdecrypt /sbin/prepdecrypt.sh - oneshot - disabled - user root - group root - seclabel u:r:recovery:s0 - service hwservicemanager /sbin/hwservicemanager user root group root @@ -75,8 +41,7 @@ service keystore_auth /sbin/keystore_auth disabled seclabel u:r:recovery:s0 -# keystore is started and stopped on demand by TWRP -service keystore /sbin/keystore /tmp/misc/keystore +service keystore /sbin/keystore /data/misc/keystore user root group root drmrpc readproc disabled @@ -94,19 +59,29 @@ service keymaster-3-0 /sbin/android.hardware.keymaster@3.0-service-qti disabled seclabel u:r:recovery:s0 -on init +on boot + # Workaround for adb not coming up + setprop sys.usb.config mtp,adb setprop sys.usb.config adb - start hwservicemanager - start prepdecrypt + + # Double tap to wake + chown system system /proc/tpd_gesture + chmod 644 /proc/tpd_gesture + write /proc/tpd_gesture 1 on property:crypto.ready=0 stop sbinqseecomd stop keymaster-3-0 stop gatekeeper-1-0 + stop hwservicemanager + stop keystore stop servicemanager on property:crypto.ready=1 start sbinqseecomd + +on property:vendor.sys.listeners.registered=true + start hwservicemanager start keymaster-3-0 start gatekeeper-1-0 start servicemanager diff --git a/recovery/root/init.recovery.usb.rc b/recovery/root/init.recovery.usb.rc index 7e958f5..55ee7e7 100644 --- a/recovery/root/init.recovery.usb.rc +++ b/recovery/root/init.recovery.usb.rc @@ -1,3 +1,30 @@ +# Copyright (c) 2011-2016, The Linux Foundation. All rights reserved. +# +# Redistribution and use in source and binary forms, with or without +# modification, are permitted provided that the following conditions are met: +# * Redistributions of source code must retain the above copyright +# notice, this list of conditions and the following disclaimer. +# * Redistributions in binary form must reproduce the above copyright +# notice, this list of conditions and the following disclaimer in the +# documentation and/or other materials provided with the distribution. +# * Neither the name of The Linux Foundation nor +# the names of its contributors may be used to endorse or promote +# products derived from this software without specific prior written +# permission. +# +# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +# IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +# NON-INFRINGEMENT ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR +# CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, +# EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, +# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; +# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, +# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR +# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF +# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# + on init write /sys/class/android_usb/android0/f_midi/vendorID 18D1 diff --git a/recovery/root/sbin/android.hardware.confirmationui@1.0.so b/recovery/root/sbin/android.hardware.confirmationui@1.0.so new file mode 100644 index 0000000..a591b5b Binary files /dev/null and b/recovery/root/sbin/android.hardware.confirmationui@1.0.so differ diff --git a/recovery/root/sbin/android.hardware.gatekeeper@1.0.so b/recovery/root/sbin/android.hardware.gatekeeper@1.0.so new file mode 100644 index 0000000..fbac22d Binary files /dev/null and b/recovery/root/sbin/android.hardware.gatekeeper@1.0.so differ diff --git a/recovery/root/sbin/android.hardware.keymaster@3.0.so b/recovery/root/sbin/android.hardware.keymaster@3.0.so new file mode 100644 index 0000000..16b56b1 Binary files /dev/null and b/recovery/root/sbin/android.hardware.keymaster@3.0.so differ diff --git a/recovery/root/sbin/android.hidl.base@1.0.so b/recovery/root/sbin/android.hidl.base@1.0.so new file mode 100644 index 0000000..7fff9be Binary files /dev/null and b/recovery/root/sbin/android.hidl.base@1.0.so differ diff --git a/recovery/root/sbin/android.hidl.token@1.0.so b/recovery/root/sbin/android.hidl.token@1.0.so new file mode 100644 index 0000000..0eddfc2 Binary files /dev/null and b/recovery/root/sbin/android.hidl.token@1.0.so differ diff --git a/recovery/root/sbin/android.system.wifi.keystore@1.0.so b/recovery/root/sbin/android.system.wifi.keystore@1.0.so new file mode 100644 index 0000000..a5dd8b4 Binary files /dev/null and b/recovery/root/sbin/android.system.wifi.keystore@1.0.so differ diff --git a/recovery/root/sbin/libicuuc.so b/recovery/root/sbin/libicuuc.so new file mode 100644 index 0000000..89a0cba Binary files /dev/null and b/recovery/root/sbin/libicuuc.so differ diff --git a/recovery/root/vendor/lib64/libion.so b/recovery/root/sbin/libion.so similarity index 100% rename from recovery/root/vendor/lib64/libion.so rename to recovery/root/sbin/libion.so diff --git a/recovery/root/sbin/libxml2.so b/recovery/root/sbin/libxml2.so new file mode 100644 index 0000000..e4ee09b Binary files /dev/null and b/recovery/root/sbin/libxml2.so differ diff --git a/recovery/root/sbin/prepdecrypt.sh b/recovery/root/sbin/prepdecrypt.sh deleted file mode 100644 index fa8eac4..0000000 --- a/recovery/root/sbin/prepdecrypt.sh +++ /dev/null @@ -1,15 +0,0 @@ -#!/sbin/sh - -relink() -{ - /sbin/cp $1 ${1}_old - sed 's|/system/bin/linker64|///////sbin/linker64|' "${1}_old" > "$1" - chmod 755 $1 -} - -relink /sbin/qseecomd -relink /sbin/android.hardware.gatekeeper@1.0-service-qti -relink /sbin/android.hardware.keymaster@3.0-service-qti -relink /vendor/manifest.xml - -/sbin/setprop crypto.ready 1 diff --git a/recovery/root/sbin/qseecomd b/recovery/root/sbin/qseecomd index 601468c..f80fd67 100644 Binary files a/recovery/root/sbin/qseecomd and b/recovery/root/sbin/qseecomd differ diff --git a/recovery/root/ueventd.qcom.rc b/recovery/root/ueventd.qcom.rc index eadf219..6d303e5 100644 --- a/recovery/root/ueventd.qcom.rc +++ b/recovery/root/ueventd.qcom.rc @@ -1,136 +1,404 @@ -subsystem adf - devname uevent_devname +# Copyright (c) 2012-2015, 2017-2018, The Linux Foundation. All rights reserved. +# +# Redistribution and use in source and binary forms, with or without +# modification, are permitted provided that the following conditions are met: +# * Redistributions of source code must retain the above copyright +# notice, this list of conditions and the following disclaimer. +# * Redistributions in binary form must reproduce the above copyright +# notice, this list of conditions and the following disclaimer in the +# documentation and/or other materials provided with the distribution. +# * Neither the name of The Linux Foundation nor +# the names of its contributors may be used to endorse or promote +# products derived from this software without specific prior written +# permission. +# +# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +# IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +# NON-INFRINGEMENT ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR +# CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, +# EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, +# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; +# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, +# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR +# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF +# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# -subsystem graphics - devname uevent_devpath - dirname /dev/graphics +# Firmware directory Path +# Below macro will be read by uevent and path will +# be added to search path for firmware loading +firmware_directories /vendor/firmware_mnt/image/ -subsystem drm - devname uevent_devpath - dirname /dev/dri +# the DIAG device node is not world writable/readable. +/dev/diag 0660 system oem_2901 -subsystem oncrpc - devname uevent_devpath - dirname /dev/oncrpc +/dev/genlock 0666 system system +/dev/wlan 0660 wifi wifi +/dev/kgsl 0666 system system +/dev/kgsl-3d0 0666 system system +/dev/kgsl-2d0 0666 root root +/dev/kgsl-2d1 0666 root root +/dev/ion 0664 system system +/dev/rtc0 0660 system system +/dev/smd0 0660 system system +/dev/smd4 0660 system system +/dev/smd_cxm_qmi 0640 radio radio +/dev/smd5 0660 system system +/dev/smd6 0660 system system +/dev/smd7 0660 bluetooth bluetooth +/dev/ccid_bridge 0660 system system +/dev/ipa 0660 radio radio +/dev/wwan_ioctl 0660 radio radio +/dev/ipaNatTable 0660 radio radio +/dev/rmnet_ctrl 0660 usb usb +/dev/dpl_ctrl 0660 usb usb +/dev/ipa_odl_ctl 0660 radio radio +/dev/ipa_adpl 0660 system oem_2905 -subsystem adsp - devname uevent_devpath - dirname /dev/adsp +#permissions for CSVT +/dev/smd11 0660 radio radio -subsystem msm_camera - devname uevent_devpath - dirname /dev/msm_camera +#permsissions for BT/FM +/dev/smd2 0660 bluetooth bluetooth +/dev/smd3 0660 bluetooth bluetooth +/dev/btpower 0660 bluetooth system -subsystem input - devname uevent_devpath - dirname /dev/input +#permissions for pta +/dev/pta 0660 system system -subsystem mtd - devname uevent_devpath - dirname /dev/mtd +/dev/radio0 0640 system system +/dev/rfcomm0 0660 bluetooth bluetooth +/dev/ttyUSB0 0660 bluetooth bluetooth +/dev/smdcntl0 0640 radio radio +/dev/smdcntl1 0640 radio radio +/dev/smdcntl2 0640 radio radio +/dev/smdcntl3 0640 radio radio +/dev/smdcntl4 0640 radio radio +/dev/smdcntl5 0640 radio radio +/dev/smdcntl6 0640 radio radio +/dev/smdcntl7 0640 radio radio +/dev/smdcntl8 0640 radio radio +/dev/smdcnt_rev0 0640 radio radio +/dev/smdcnt_rev1 0640 radio radio +/dev/smdcnt_rev2 0640 radio radio +/dev/smdcnt_rev3 0640 radio radio +/dev/smdcnt_rev4 0640 radio radio +/dev/smdcnt_rev5 0640 radio radio +/dev/smdcnt_rev6 0640 radio radio +/dev/smdcnt_rev7 0640 radio radio +/dev/smdcnt_rev8 0640 radio radio +/dev/smuxctl32 0640 radio radio +/dev/sdioctl0 0640 radio radio +/dev/sdioctl1 0640 radio radio +/dev/sdioctl2 0640 radio radio +/dev/sdioctl3 0640 radio radio +/dev/sdioctl4 0640 radio radio +/dev/sdioctl5 0640 radio radio +/dev/sdioctl6 0640 radio radio +/dev/sdioctl7 0640 radio radio +/dev/sdioctl8 0640 radio radio +/dev/rmnet_mux_ctrl 0640 radio radio +/dev/hsicctl0 0640 radio radio +/dev/hsicctl1 0640 radio radio +/dev/hsicctl2 0640 radio radio +/dev/hsicctl3 0640 radio radio +/dev/hsicctl4 0640 radio radio +/dev/hsicctl5 0640 radio radio +/dev/hsicctl6 0640 radio radio +/dev/hsicctl7 0640 radio radio +/dev/hsicctl8 0640 radio radio +/dev/hsicctl9 0640 radio radio +/dev/hsicctl10 0640 radio radio +/dev/hsicctl11 0640 radio radio +/dev/hsicctl12 0640 radio radio +/dev/hsicctl13 0640 radio radio +/dev/hsicctl14 0640 radio radio +/dev/hsicctl15 0640 radio radio +/dev/hsicctl16 0640 radio radio +/dev/mhi_*_pipe_14 0640 radio radio +/dev/mhi_*_pipe_16 0640 radio radio +/dev/mhi_*_pipe_32 0640 radio radio +/dev/at_usb0 0640 radio radio +/dev/at_mdm0 0640 radio radio +/dev/video* 0660 system camera +/dev/media* 0660 system camera +/dev/v4l-subdev* 0660 system camera +/dev/qseecom 0660 system drmrpc +/dev/qce 0660 system drmrpc +/dev/smcinvoke 0660 system system +/dev/qsee_ipc_irq_spss 0660 system drmrpc +/dev/seemplog 0660 system system +/dev/pft 0660 system drmrpc +/dev/spcom 0660 system system +/dev/sp_kernel 0660 system system +/dev/sp_ssr 0660 system system +/dev/sp_keymaster 0660 system system +/dev/sec_nvm_* 0660 system system +/dev/cryptoapp 0660 system system +/dev/spdaemon_ssr 0660 system system +/dev/gemini0 0660 system camera +/dev/jpeg0 0660 system camera +/dev/jpeg1 0660 system camera +/dev/jpeg2 0660 system camera +/dev/jpeg3 0660 system camera +/dev/adsprpc-smd 0664 system system +/dev/adsprpc-smd-secure 0644 system system +/dev/system_health_monitor 0644 radio system +/dev/mdss_rotator 0664 system system -subsystem sound - devname uevent_devpath - dirname /dev/snd +/* Huaqin modify for ZQL1650-143 by wangxiang at 2018/01/23 start */ +# fingerprint +/dev/fpsdev0 0666 system system +/* Huaqin modify for ZQL1650-143 by wangxiang at 2018/01/23 end */ -# ueventd can only set permissions on device nodes and their associated -# sysfs attributes, not on arbitrary paths. -# -# format for /dev rules: devname mode uid gid -# format for /sys rules: nodename attr mode uid gid -# shortcut: "mtd@NN" expands to "/dev/mtd/mtdNN" - -/dev/null 0666 root root -/dev/zero 0666 root root -/dev/full 0666 root root -/dev/ptmx 0666 root root -/dev/tty 0666 root root -/dev/random 0666 root root -/dev/urandom 0666 root root -# Make HW RNG readable by group system to let EntropyMixer read it. -/dev/hw_random 0440 root system -/dev/ashmem 0666 root root -/dev/binder 0666 root root -/dev/hwbinder 0666 root root -/dev/vndbinder 0666 root root - -/dev/pmsg0 0222 root log - -# the msm hw3d client device node is world writable/readable. -/dev/msm_hw3dc 0666 root root - -# gpu driver for adreno200 is globally accessible -/dev/kgsl 0666 root root - -# kms driver for drm based gpu -/dev/dri/* 0666 root graphics - -# these should not be world writable -/dev/diag 0660 radio radio -/dev/diag_arm9 0660 radio radio -/dev/ttyMSM0 0600 bluetooth bluetooth -/dev/uhid 0660 uhid uhid -/dev/uinput 0660 system bluetooth -/dev/alarm 0664 system radio -/dev/rtc0 0640 system system -/dev/tty0 0660 root system -/dev/graphics/* 0660 root graphics -/dev/msm_hw3dm 0660 system graphics -/dev/input/* 0660 root input -/dev/eac 0660 root audio -/dev/cam 0660 root camera -/dev/pmem 0660 system graphics -/dev/pmem_adsp* 0660 system audio -/dev/pmem_camera* 0660 system camera -/dev/oncrpc/* 0660 root system -/dev/adsp/* 0660 system audio -/dev/snd/* 0660 system audio -/dev/mt9t013 0660 system system -/dev/msm_camera/* 0660 system system -/dev/akm8976_daemon 0640 compass system -/dev/akm8976_aot 0640 compass system -/dev/akm8973_daemon 0640 compass system -/dev/akm8973_aot 0640 compass system -/dev/bma150 0640 compass system -/dev/cm3602 0640 compass system -/dev/akm8976_pffd 0640 compass system -/dev/lightsensor 0640 system system -/dev/msm_pcm_out* 0660 system audio -/dev/msm_pcm_in* 0660 system audio -/dev/msm_pcm_ctl* 0660 system audio -/dev/msm_snd* 0660 system audio -/dev/msm_mp3* 0660 system audio -/dev/audience_a1026* 0660 system audio -/dev/tpa2018d1* 0660 system audio -/dev/msm_audpre 0660 system audio -/dev/msm_audio_ctl 0660 system audio -/dev/htc-acoustic 0660 system audio -/dev/vdec 0660 system audio -/dev/q6venc 0660 system audio -/dev/snd/dsp 0660 system audio -/dev/snd/dsp1 0660 system audio -/dev/snd/mixer 0660 system audio -/dev/smd0 0640 radio radio -/dev/qmi 0640 radio radio -/dev/qmi0 0640 radio radio -/dev/qmi1 0640 radio radio -/dev/qmi2 0640 radio radio -/dev/bus/usb/* 0660 root usb -/dev/mtp_usb 0660 root mtp -/dev/usb_accessory 0660 root usb -/dev/tun 0660 system vpn - -# CDMA radio interface MUX -/dev/ts0710mux* 0640 radio radio -/dev/ppp 0660 radio vpn - -# sysfs properties -/sys/devices/platform/trusty.* trusty_version 0440 root log -/sys/devices/virtual/input/input* enable 0660 root input -/sys/devices/virtual/input/input* poll_delay 0660 root input -/sys/devices/virtual/usb_composite/* enable 0664 root system -/sys/devices/system/cpu/cpu* cpufreq/scaling_max_freq 0664 system system -/sys/devices/system/cpu/cpu* cpufreq/scaling_min_freq 0664 system system - -# DVB API device nodes -/dev/dvb* 0660 root system +/* Huaqin add for ZQL1650-143 by wangxiang at 2018/02/09 end */ +/dev/goodix_fp 0666 system system +/* Huaqin add for ZQL1650-143 by wangxiang at 2018/02/09 end */ +/* Huaqin add for ZQL1820-42 by puqirui at 2018/08/02 start */ +/dev/focaltech_fp 0666 system system +/* Huaqin add for ZQL1820-42 by puqirui at 2018/08/02 end */ +#QDSS +/dev/byte-cntr 0660 system oem_2902 +/dev/mhi_qdss 0660 system oem_2902 +/sys/class/qdss_bridge/mhi_qdss mode 0660 system oem_2902 + +# wlan +/dev/wcnss_wlan 0660 system system +/dev/wcnss_ctrl 0660 system system +/sys/devices/soc/a000000.qcom,wcnss-wlan/net/wlan0/queues/rx-* rps_cpus 0660 system system +/sys/devices/soc/a000000.qcom,wcnss-wlan/net/p2p0/queues/rx-* rps_cpus 0660 system system +/dev/spidev0.0 0660 system audio +/dev/msm_camera/* 0660 system camera +/dev/gemini/ 0660 system camera +/dev/mercury0 0660 system camera +/dev/msm_vidc_reg 0660 system audio +/dev/msm_vidc_dec 0660 system audio +/dev/msm_vidc_dec_sec 0660 system audio +/dev/msm_vidc_enc 0660 system audio +/dev/msm_rotator 0660 system system +/dev/hw_random 0600 root root +/dev/sdsprpc-smd 0660 system system + +#permissions for audio +/dev/wcd_dsp0_control 0660 system audio +/dev/wcd-dsp-glink 0660 system audio +/dev/audio_slimslave 0660 system audio +/dev/msm_qcelp 0660 system audio +/dev/msm_evrc 0660 system audio +/dev/msm_wma 0660 system audio +/dev/msm_wmapro 0660 system audio +/dev/msm_alac 0660 system audio +/dev/msm_ape 0660 system audio +/dev/msm_amrnb 0660 system audio +/dev/msm_amrwb 0660 system audio +/dev/msm_amrwbplus 0660 system audio +/dev/msm_aac 0660 system audio +/dev/msm_multi_aac 0660 system audio +/dev/msm_aac_in 0660 system audio +/dev/msm_qcelp_in 0660 system audio +/dev/msm_evrc_in 0660 system audio +/dev/msm_amrnb_in 0660 system audio +/dev/msm_amrwb_in 0660 system audio +/dev/msm_a2dp_in 0660 system audio +/dev/msm_ac3 0660 system audio +/dev/msm_audio_cal 0660 system audio +/dev/msm_hweffects 0660 system audio +/dev/msm_cad 0660 system audio +/dev/msm_fm 0660 system audio +/dev/msm_mvs 0660 system audio +/dev/msm_pcm_lp_dec 0660 system audio +/dev/msm_preproc_ctl 0660 system audio +/dev/msm_rtac 0660 system audio +/dev/msm_voicememo 0660 system audio +/dev/ttyHSL1 0660 system system +/dev/ttyHS1 0660 system system +/dev/mdm 0660 system radio +/sys/devices/virtual/smdpkt/smdcntl* open_timeout 0664 radio radio +/dev/sdio_tty_ciq_00 0660 system system +/dev/tty_sdio_00 0660 system system +/dev/ttyGS0 0660 system system +/dev/i2c-5 0660 media media +/dev/avtimer 0660 system audio +/dev/spidev2.0 0660 system audio + +# DVB devices +/dev/dvb/adapter0/demux* 0440 media media +/dev/dvb/adapter0/dvr* 0660 media media +/dev/dvb/adapter0/video* 0660 media media + +# Broadcast devices +/dev/tsc_mux0 0660 media media +/dev/tsc_ci0 0660 media media + +# sensors +/dev/sensors 0660 system system +/sys/devices/i2c-12/12-* pollrate_ms 0664 system system +/sys/devices/f9925000.i2c/i2c-0/0-* enable 0660 input system +/sys/devices/f9925000.i2c/i2c-0/0-* poll_delay 0660 input system +/sys/devices/soc.0/78b6000.i2c/i2c-0/0-* enable 0660 input system +/sys/devices/soc.0/78b6000.i2c/i2c-0/0-* poll_delay 0660 input system +/sys/devices/soc.0/78b6000.i2c/i2c-0/0-* enable_wakeup 0660 input system +/sys/devices/soc.0/78b6000.i2c/i2c-0/0-* max_latency 0660 input system +/sys/devices/soc.0/78b6000.i2c/i2c-0/0-* flush 0660 input system +/sys/devices/soc.0/78b6000.i2c/i2c-0/0-* calibrate 0660 input system +/sys/devices/soc.0/78b5000.i2c/i2c-1/1-* enable 0660 input system +/sys/devices/soc.0/78b5000.i2c/i2c-1/1-* poll_delay 0660 input system +/sys/devices/soc.0/78b5000.i2c/i2c-1/1-* enable_wakeup 0660 input system +/sys/devices/soc.0/78b5000.i2c/i2c-1/1-* max_latency 0660 input system +/sys/devices/soc.0/78b5000.i2c/i2c-1/1-* flush 0660 input system +/sys/devices/soc.0/78b5000.i2c/i2c-1/1-* calibrate 0660 input system +/sys/devices/virtual/optical_sensors/proximity ps_adc 0660 input system +/sys/devices/virtual/optical_sensors/proximity ps_poll_delay 0660 input system +/sys/devices/virtual/optical_sensors/lightsensor ls_auto 0660 input system +/sys/devices/virtual/optical_sensors/lightsensor ls_poll_delay 0660 input system +/sys/devices/virtual/input/input* poll 0660 input system +/sys/devices/virtual/input/input* pollrate_ms 0660 input system +/sys/devices/soc/78b7000.i2c/i2c-3/3-0020/input/input* secure_touch 0440 system drmrpc +/sys/devices/soc/78b7000.i2c/i2c-3/3-0020/input/input* secure_touch_enable 0660 system drmrpc +/sys/devices/soc/78b7000.i2c/i2c-3/3-0038/input/input* secure_touch 0440 system drmrpc +/sys/devices/soc/78b7000.i2c/i2c-3/3-0038/input/input* secure_touch_enable 0660 system drmrpc +/sys/devices/soc/78b7000.i2c/i2c-3/3-004b/input/input* secure_touch 0440 system drmrpc +/sys/devices/soc/78b7000.i2c/i2c-3/3-004b/input/input* secure_touch_enable 0660 system drmrpc +/sys/devices/soc/c179000.i2c/i2c-5/5-0020/input/input* secure_touch 0440 system drmrpc +/sys/devices/soc/c179000.i2c/i2c-5/5-0020/input/input* secure_touch_enable 0660 system drmrpc +/sys/devices/platform/soc/a98000.i2c/i2c-2/2-0020/input/input* secure_touch 0440 system drmrpc +/sys/devices/platform/soc/a98000.i2c/i2c-2/2-0020/input/input* secure_touch_enable 0660 system drmrpc +/sys/devices/platform/soc/a84000.i2c/i2c-2/2-0020/input/input* secure_touch 0440 system drmrpc +/sys/devices/platform/soc/a84000.i2c/i2c-2/2-0020/input/input* secure_touch_enable 0660 system drmrpc + +# native sensors input +/sys/devices/virtual/input/input* enable_int 0660 system input +/sys/devices/virtual/input/input* gyro_op_mode 0660 system input +/sys/devices/virtual/input/input* acc_range 0660 system input +/sys/devices/virtual/input/input* acc_value 0660 system input +/sys/devices/virtual/input/input* gyro_odr 0660 system input +/sys/devices/virtual/input/input* fifo_data_sel 0660 system input +/sys/devices/virtual/input/input* fifo_watermark 0660 system input +/sys/devices/virtual/input/input* enable 0660 system input +/sys/devices/virtual/input/input* acc_odr 0660 system input +/sys/devices/virtual/input/input* temperature 0660 system input +/sys/devices/virtual/input/input* acc_op_mode 0660 system input +/sys/devices/virtual/input/input* fifo_bytecount 0660 system input +/sys/devices/virtual/input/input* gyro_range 0660 system input +/sys/devices/virtual/input/input* gyro_value 0660 system input + +# GNSS PPS Device premissions +/dev/pps* 0660 gps gps + +# laser sensor access +/sys/devices/virtual/input/input* enable_ps_sensor 0660 system input +/sys/devices/virtual/input/input* set_delay_ms 0660 system input +/sys/devices/virtual/input/input* do_flush 0660 system input + +# vm_bms +/dev/vm_bms 0660 system system +/dev/battery_data 0660 system system + +# wlan +/dev/wcnss_wlan 0660 system system +/dev/wcnss_ctrl 0660 system system +/sys/devices/soc/600000.qcom,pcie/pci0000:00/0000:00:00.0/0000:01:00.0/net/wlan0/queues/rx-* rps_cpus 0660 system system +/sys/devices/soc/600000.qcom,pcie/pci0000:00/0000:00:00.0/0000:01:00.0/net/p2p0/queues/rx-* rps_cpus 0660 system system + +# wigig +/sys/bus/pci/drivers/wil6210* 0000:01:00.0/wil6210/fst_link_loss 0660 wifi wifi +/sys/bus/pci/drivers/wil6210* 0000:01:00.0/wil6210/thermal_throttling 0660 system system +/sys/bus/pci/drivers/wil6210* 0000:01:00.0/wil6210/snr_thresh 0660 wifi wifi +/sys/bus/pci/drivers/wil6210* 0000:01:00.0/net/wigig0/queues/rx-0/rps_cpus 0660 system system +/sys/bus/pci/drivers/wil6210* 0000:01:00.0/net/wigig0/gro_flush_timeout 0660 system system +/sys/devices/virtual/net/bond0 queues/rx-0/rps_cpus 0660 system system + +#nfc permissions +/dev/nfc-nci 0660 nfc nfc +/dev/nq-nci 0660 nfc nfc +/dev/assd 0660 nfc nfc + +# UIO devices +/dev/uio0 0660 system system +/dev/uio1 0660 system system +/dev/uio2 0660 system system + +# SSR devices +/dev/subsys_* 0640 system system + +# Ultrasound device +/dev/usf1 0660 system system + +# Ramdump devices +/dev/ramdump* 0640 system system + +# Fingerprint device +/dev/qbt1000 0660 system system + +#ImproveTouch device +/dev/hbtp_input 0660 system system +/dev/hbtp_vm 0660 system system + +# Add device block for FRP +/dev/block/platform/soc/7824900.sdhci/by-name/config 0600 system system +/dev/block/platform/soc/7464900.sdhci/by-name/frp 0600 system system +/dev/block/platform/soc/624000.ufshc/by-name/frp 0600 system system +/dev/block/platform/soc/1da4000.ufshc/by-name/frp 0600 system system +/dev/block/platform/soc/c0c4000.sdhci/by-name/frp 0600 system system +/dev/block/platform/soc/1d84000.ufshc/by-name/frp 0600 system system +/dev/block/platform/soc/7c4000.sdhci/by-name/frp 0600 system system + +# This is temporary while using SD card for initial bring-up +/dev/block/platform/soc/8804000.sdhci/by-name/frp 0600 system system + +# Kmsg device +/dev/kmsg 0620 root system + +# LED class devices +/sys/class/leds/red delay_on 0640 system system +/sys/class/leds/red delay_off 0640 system system +/sys/class/leds/red breath 0640 system system +/sys/class/leds/green delay_on 0640 system system +/sys/class/leds/green delay_off 0640 system system +/sys/class/leds/green breath 0640 system system +/sys/class/leds/blue delay_on 0640 system system +/sys/class/leds/blue delay_off 0640 system system +/sys/class/leds/blue breath 0640 system system + +# NPU device +/dev/msm_npu 0644 system system + +# USB role switch +/sys/class/dual_role_usb/* data_role 0660 system system +/sys/class/dual_role_usb/* power_role 0660 system system +/sys/class/dual_role_usb/* mode 0660 system system + +#Memory Offline +/sys/devices/system/memory/memory* state 0660 system system + +# sys-fs display +/sys/class/graphics/fb* hpd 0664 system graphics +/sys/class/graphics/fb* res_info 0664 system graphics +/sys/class/graphics/fb* vendor_name 0664 system graphics +/sys/class/graphics/fb* product_description 0664 system graphics +/sys/class/graphics/fb* video_mode 0664 system graphics +/sys/class/graphics/fb* format_3d 0664 system graphics +/sys/class/graphics/fb* s3d_mode 0664 system graphics +/sys/class/graphics/fb* dynamic_fps 0664 system graphics +/sys/class/graphics/fb* msm_fb_dfps_mode 0664 system graphics +/sys/class/graphics/fb* hdr_stream 0664 system graphics +/sys/class/graphics/fb* cec/enable 0664 system graphics +/sys/class/graphics/fb* cec/logical_addr 0664 system graphics +/sys/class/graphics/fb* cec/rd_msg 0664 system graphics +/sys/class/graphics/fb* pa 0664 system graphics +/sys/class/graphics/fb* cec/wr_msg 0600 system graphics +/sys/class/graphics/fb* hdcp/tp 0664 system graphics +/sys/class/graphics/fb* hdcp2p2/min_level_change 0660 system graphics +/sys/class/graphics/fb* hdmi_audio_cb 0600 audioserver audio + +/sys/class/graphics/fb* lineptr_value 0664 system graphics +/sys/class/graphics/fb* msm_fb_persist_mode 0664 system graphics + +/sys/class/graphics/fb0 idle_time 0664 system graphics +/sys/class/graphics/fb0 dynamic_fps 0664 system graphics +/sys/class/graphics/fb0 dyn_pu 0664 system graphics +/sys/class/graphics/fb0 modes 0664 system graphics +/sys/class/graphics/fb0 mode 0664 system graphics +/sys/class/graphics/fb0 msm_cmd_autorefresh_en 0664 system graphics +/sys/class/graphics/fb0 dynamic_bitclk 0664 system graphics diff --git a/recovery/root/ueventd.rc b/recovery/root/ueventd.rc new file mode 100644 index 0000000..eadf219 --- /dev/null +++ b/recovery/root/ueventd.rc @@ -0,0 +1,136 @@ +subsystem adf + devname uevent_devname + +subsystem graphics + devname uevent_devpath + dirname /dev/graphics + +subsystem drm + devname uevent_devpath + dirname /dev/dri + +subsystem oncrpc + devname uevent_devpath + dirname /dev/oncrpc + +subsystem adsp + devname uevent_devpath + dirname /dev/adsp + +subsystem msm_camera + devname uevent_devpath + dirname /dev/msm_camera + +subsystem input + devname uevent_devpath + dirname /dev/input + +subsystem mtd + devname uevent_devpath + dirname /dev/mtd + +subsystem sound + devname uevent_devpath + dirname /dev/snd + +# ueventd can only set permissions on device nodes and their associated +# sysfs attributes, not on arbitrary paths. +# +# format for /dev rules: devname mode uid gid +# format for /sys rules: nodename attr mode uid gid +# shortcut: "mtd@NN" expands to "/dev/mtd/mtdNN" + +/dev/null 0666 root root +/dev/zero 0666 root root +/dev/full 0666 root root +/dev/ptmx 0666 root root +/dev/tty 0666 root root +/dev/random 0666 root root +/dev/urandom 0666 root root +# Make HW RNG readable by group system to let EntropyMixer read it. +/dev/hw_random 0440 root system +/dev/ashmem 0666 root root +/dev/binder 0666 root root +/dev/hwbinder 0666 root root +/dev/vndbinder 0666 root root + +/dev/pmsg0 0222 root log + +# the msm hw3d client device node is world writable/readable. +/dev/msm_hw3dc 0666 root root + +# gpu driver for adreno200 is globally accessible +/dev/kgsl 0666 root root + +# kms driver for drm based gpu +/dev/dri/* 0666 root graphics + +# these should not be world writable +/dev/diag 0660 radio radio +/dev/diag_arm9 0660 radio radio +/dev/ttyMSM0 0600 bluetooth bluetooth +/dev/uhid 0660 uhid uhid +/dev/uinput 0660 system bluetooth +/dev/alarm 0664 system radio +/dev/rtc0 0640 system system +/dev/tty0 0660 root system +/dev/graphics/* 0660 root graphics +/dev/msm_hw3dm 0660 system graphics +/dev/input/* 0660 root input +/dev/eac 0660 root audio +/dev/cam 0660 root camera +/dev/pmem 0660 system graphics +/dev/pmem_adsp* 0660 system audio +/dev/pmem_camera* 0660 system camera +/dev/oncrpc/* 0660 root system +/dev/adsp/* 0660 system audio +/dev/snd/* 0660 system audio +/dev/mt9t013 0660 system system +/dev/msm_camera/* 0660 system system +/dev/akm8976_daemon 0640 compass system +/dev/akm8976_aot 0640 compass system +/dev/akm8973_daemon 0640 compass system +/dev/akm8973_aot 0640 compass system +/dev/bma150 0640 compass system +/dev/cm3602 0640 compass system +/dev/akm8976_pffd 0640 compass system +/dev/lightsensor 0640 system system +/dev/msm_pcm_out* 0660 system audio +/dev/msm_pcm_in* 0660 system audio +/dev/msm_pcm_ctl* 0660 system audio +/dev/msm_snd* 0660 system audio +/dev/msm_mp3* 0660 system audio +/dev/audience_a1026* 0660 system audio +/dev/tpa2018d1* 0660 system audio +/dev/msm_audpre 0660 system audio +/dev/msm_audio_ctl 0660 system audio +/dev/htc-acoustic 0660 system audio +/dev/vdec 0660 system audio +/dev/q6venc 0660 system audio +/dev/snd/dsp 0660 system audio +/dev/snd/dsp1 0660 system audio +/dev/snd/mixer 0660 system audio +/dev/smd0 0640 radio radio +/dev/qmi 0640 radio radio +/dev/qmi0 0640 radio radio +/dev/qmi1 0640 radio radio +/dev/qmi2 0640 radio radio +/dev/bus/usb/* 0660 root usb +/dev/mtp_usb 0660 root mtp +/dev/usb_accessory 0660 root usb +/dev/tun 0660 system vpn + +# CDMA radio interface MUX +/dev/ts0710mux* 0640 radio radio +/dev/ppp 0660 radio vpn + +# sysfs properties +/sys/devices/platform/trusty.* trusty_version 0440 root log +/sys/devices/virtual/input/input* enable 0660 root input +/sys/devices/virtual/input/input* poll_delay 0660 root input +/sys/devices/virtual/usb_composite/* enable 0664 root system +/sys/devices/system/cpu/cpu* cpufreq/scaling_max_freq 0664 system system +/sys/devices/system/cpu/cpu* cpufreq/scaling_min_freq 0664 system system + +# DVB API device nodes +/dev/dvb* 0660 root system diff --git a/recovery/root/vendor/etc/ext_xml/manifest.xml b/recovery/root/vendor/etc/ext_xml/manifest.xml new file mode 100644 index 0000000..fe9dc8e --- /dev/null +++ b/recovery/root/vendor/etc/ext_xml/manifest.xml @@ -0,0 +1,697 @@ + + + android.hardware.audio + hwbinder + 4.0 + + IDevicesFactory + default + + + + android.hardware.audio.effect + hwbinder + 4.0 + + IEffectsFactory + default + + + + android.hardware.biometrics.fingerprint + hwbinder + 2.1 + + IBiometricsFingerprint + default + + + + android.hardware.bluetooth + hwbinder + 1.0 + + IBluetoothHci + default + + + + android.hardware.camera.provider + hwbinder + 2.4 + + ICameraProvider + legacy/0 + + + + android.hardware.cas + hwbinder + 1.0 + + IMediaCasService + default + + + + android.hardware.configstore + hwbinder + 1.1 + + ISurfaceFlingerConfigs + default + + + + android.hardware.drm + hwbinder + 1.1 + + ICryptoFactory + default + widevine + + + IDrmFactory + default + widevine + + @1.1::ICryptoFactory/clearkey + @1.1::ICryptoFactory/widevine + @1.1::IDrmFactory/clearkey + @1.1::IDrmFactory/widevine + + + android.hardware.gatekeeper + hwbinder + 1.0 + + IGatekeeper + default + + + + android.hardware.gnss + hwbinder + 1.1 + + IGnss + default + gnss_vendor + + + + android.hardware.graphics.allocator + hwbinder + 2.0 + + IAllocator + default + + + + android.hardware.graphics.composer + hwbinder + 2.1 + + IComposer + default + + + + android.hardware.graphics.mapper + passthrough + 2.0 + + IMapper + default + + + + android.hardware.health + hwbinder + 2.0 + + IHealth + default + + + + android.hardware.keymaster + hwbinder + 3.0 + + IKeymasterDevice + default + + + + android.hardware.light + hwbinder + 2.0 + + ILight + default + + + + android.hardware.media.omx + hwbinder + 1.0 + + IOmx + default + + + IOmxStore + default + + + + android.hardware.memtrack + hwbinder + 1.0 + + IMemtrack + default + + + + android.hardware.nfc + hwbinder + 1.1 + + INfc + default + + + + android.hardware.power + hwbinder + 1.1 + + IPower + default + + + + android.hardware.radio + hwbinder + 1.2 + + IRadio + slot1 + slot2 + + + ISap + slot1 + slot2 + + + + android.hardware.radio.config + hwbinder + 1.0 + + IRadioConfig + default + + + + android.hardware.renderscript + passthrough + 1.0 + + IDevice + default + + + + android.hardware.secure_element + hwbinder + 1.0 + + ISecureElement + SIM1 + SIM2 + + + + android.hardware.sensors + hwbinder + 1.0 + + ISensors + default + + + + android.hardware.soundtrigger + hwbinder + 2.1 + + ISoundTriggerHw + default + + + + android.hardware.tetheroffload.config + hwbinder + 1.0 + + IOffloadConfig + default + + + + android.hardware.tetheroffload.control + hwbinder + 1.1 + + IOffloadControl + default + + + + android.hardware.thermal + hwbinder + 1.0 + + IThermal + default + + + + android.hardware.usb + hwbinder + 1.0 + + IUsb + default + + + + android.hardware.vibrator + hwbinder + 1.0 + + IVibrator + default + + + + android.hardware.wifi + hwbinder + 1.2 + + IWifi + default + + + + android.hardware.wifi.hostapd + hwbinder + 1.0 + + IHostapd + default + + + + android.hardware.wifi.supplicant + hwbinder + 1.1 + + ISupplicant + default + + + + com.qualcomm.qti.ant + hwbinder + 1.0 + + IAntHci + default + + + + com.qualcomm.qti.bluetooth_audio + hwbinder + 1.0 + + IBluetoothAudio + default + + + + com.qualcomm.qti.dpm.api + hwbinder + 1.0 + + IdpmQmi + dpmQmiService + + + + com.qualcomm.qti.imscmservice + hwbinder + 2.1 + + IImsCmService + qti.ims.connectionmanagerservice + + + + com.qualcomm.qti.uceservice + hwbinder + 2.0 + + IUceService + com.qualcomm.qti.uceservice + + + + com.qualcomm.qti.wifidisplayhal + hwbinder + 1.0 + + IDSManager + wifidisplaydshal + + + IHDCPSession + wifidisplayhdcphal + + + + vendor.display.color + hwbinder + 1.0 + + IDisplayColor + default + + + + vendor.display.config + hwbinder + 1.2 + + IDisplayConfig + default + + + + vendor.display.postproc + hwbinder + 1.0 + + IDisplayPostproc + default + + + + vendor.focaltech.fingerprint + hwbinder + 1.0 + + IFocalFingerprintService + default + + + + vendor.goodix.hardware.fingerprint + hwbinder + 1.0 + + IGoodixBiometricsFingerprint + default + + + + vendor.nxp.nxpnfc + hwbinder + 1.0 + + INxpNfc + default + + + + vendor.qti.esepowermanager + hwbinder + 1.0 + + IEsePowerManager + default + + + + vendor.qti.gnss + hwbinder + 1.2 + + ILocHidlGnss + gnss_vendor + + + + vendor.qti.gnss + hwbinder + 2.0 + + ILocHidlGnss + gnss_vendor + + @2.0::ILocHidlGnss/gnss_vendor + + + vendor.qti.hardware.alarm + hwbinder + 1.0 + + IAlarm + default + + + + vendor.qti.hardware.data.latency + hwbinder + 1.0 + + ILinkLatency + default + + + + vendor.qti.hardware.factory + hwbinder + 1.0 + + IFactory + default + + + + vendor.qti.hardware.fm + hwbinder + 1.0 + + IFmHci + default + + + + vendor.qti.hardware.improvetouch.touchcompanion + hwbinder + 1.0 + + ITouchCompanion + TouchCompanionService + + + + vendor.qti.hardware.perf + hwbinder + 1.0 + + IPerf + default + + + + vendor.qti.hardware.qdutils_disp + hwbinder + 1.0 + + IQdutilsDisp + default + + + + vendor.qti.hardware.qteeconnector + hwbinder + 1.0 + + IAppConnector + default + + + IGPAppConnector + default + + + + vendor.qti.hardware.radio.am + hwbinder + 1.0 + + IQcRilAudio + slot1 + slot2 + + + + vendor.qti.hardware.radio.ims + hwbinder + 1.4 + + IImsRadio + imsradio0 + imsradio1 + + + + vendor.qti.hardware.radio.lpa + hwbinder + 1.0 + + IUimLpa + UimLpa0 + UimLpa1 + + + + vendor.qti.hardware.radio.qcrilhook + hwbinder + 1.0 + + IQtiOemHook + oemhook0 + oemhook1 + + + + vendor.qti.hardware.radio.qtiradio + hwbinder + 1.0 + + IQtiRadio + slot1 + slot2 + + + + vendor.qti.hardware.radio.qtiradio + hwbinder + 2.0 + + IQtiRadio + slot1 + slot2 + + + + vendor.qti.hardware.radio.uim + hwbinder + 1.1 + + IUim + Uim0 + Uim1 + + + + vendor.qti.hardware.radio.uim_remote_client + hwbinder + 1.0 + + IUimRemoteServiceClient + uimRemoteClient0 + uimRemoteClient1 + + + + vendor.qti.hardware.radio.uim_remote_server + hwbinder + 1.0 + + IUimRemoteServiceServer + uimRemoteServer0 + uimRemoteServer1 + + + + vendor.qti.hardware.tui_comm + hwbinder + 1.0 + + ITuiComm + default + + + + vendor.qti.ims.callinfo + hwbinder + 1.0 + + IService + default + + + + vendor.qti.imsrtpservice + hwbinder + 1.0 + + IRTPService + imsrtpservice + + + + vendor.lineage.power + hwbinder + 1.0 + + ILineagePower + default + + + + vendor.lineage.livedisplay + hwbinder + 2.0 + + IDisplayModes + default + + + IPictureAdjustment + default + + + + vendor.lineage.trust + hwbinder + 1.0 + + IUsbRestrict + default + + + + 28.0 + + diff --git a/recovery/root/vendor/etc/vintf/compatibility_matrix.xml b/recovery/root/vendor/etc/vintf/compatibility_matrix.xml new file mode 100644 index 0000000..8b06eef --- /dev/null +++ b/recovery/root/vendor/etc/vintf/compatibility_matrix.xml @@ -0,0 +1,58 @@ + + + android.frameworks.schedulerservice + 1.0 + + ISchedulingPolicyService + default + + + + android.frameworks.sensorservice + 1.0 + + ISensorManager + default + + + + android.hidl.allocator + 1.0 + + IAllocator + ashmem + + + + android.hidl.manager + 1.0 + + IServiceManager + default + + + + android.hidl.memory + 1.0 + + IMapper + ashmem + + + + android.hidl.token + 1.0 + + ITokenManager + default + + + + android.system.wifi.keystore + 1.0 + + IKeystore + default + + + diff --git a/recovery/root/vendor/lib64/libSecureUILib.so b/recovery/root/vendor/lib64/libSecureUILib.so new file mode 100644 index 0000000..c83edd2 Binary files /dev/null and b/recovery/root/vendor/lib64/libSecureUILib.so differ diff --git a/recovery/root/vendor/lib64/libStDrvInt.so b/recovery/root/vendor/lib64/libStDrvInt.so new file mode 100644 index 0000000..1161557 Binary files /dev/null and b/recovery/root/vendor/lib64/libStDrvInt.so differ diff --git a/recovery/root/vendor/lib64/libdrm.so b/recovery/root/vendor/lib64/libdrm.so new file mode 100644 index 0000000..54924ea Binary files /dev/null and b/recovery/root/vendor/lib64/libdrm.so differ diff --git a/recovery/root/vendor/lib64/libgptutils.so b/recovery/root/vendor/lib64/libgptutils.so deleted file mode 100644 index 1a5efe6..0000000 Binary files a/recovery/root/vendor/lib64/libgptutils.so and /dev/null differ diff --git a/recovery/root/vendor/lib64/libicuuc.so b/recovery/root/vendor/lib64/libicuuc.so deleted file mode 100644 index c4e4b68..0000000 Binary files a/recovery/root/vendor/lib64/libicuuc.so and /dev/null differ diff --git a/recovery/root/vendor/lib64/libsecureui.so b/recovery/root/vendor/lib64/libsecureui.so new file mode 100644 index 0000000..8d0a4aa Binary files /dev/null and b/recovery/root/vendor/lib64/libsecureui.so differ diff --git a/recovery/root/vendor/lib64/libsecureui_svcsock.so b/recovery/root/vendor/lib64/libsecureui_svcsock.so new file mode 100644 index 0000000..2d72aea Binary files /dev/null and b/recovery/root/vendor/lib64/libsecureui_svcsock.so differ diff --git a/recovery/root/vendor/lib64/libxml2.so b/recovery/root/vendor/lib64/libxml2.so deleted file mode 100644 index 44ea040..0000000 Binary files a/recovery/root/vendor/lib64/libxml2.so and /dev/null differ diff --git a/recovery/root/vendor/lib64/vendor.qti.hardware.tui_comm@1.0.so b/recovery/root/vendor/lib64/vendor.qti.hardware.tui_comm@1.0.so new file mode 100644 index 0000000..41d9000 Binary files /dev/null and b/recovery/root/vendor/lib64/vendor.qti.hardware.tui_comm@1.0.so differ diff --git a/recovery/root/vendor/manifest.xml b/recovery/root/vendor/manifest.xml deleted file mode 100644 index c9f81bc..0000000 --- a/recovery/root/vendor/manifest.xml +++ /dev/null @@ -1,325 +0,0 @@ - - - android.hardware.audio - hwbinder - 2.0 - - IDevicesFactory - default - - - - android.hardware.audio.effect - hwbinder - 2.0 - - IEffectsFactory - default - - - - android.hardware.biometrics.fingerprint - hwbinder - 2.1 - - IBiometricsFingerprint - default - - - - android.hardware.bluetooth - hwbinder - 1.0 - - IBluetoothHci - default - - - - android.hardware.camera.provider - hwbinder - 2.4 - - ICameraProvider - legacy/0 - - - - android.hardware.cas - hwbinder - 1.0 - - IMediaCasService - default - - - - android.hardware.configstore - hwbinder - 1.0 - - ISurfaceFlingerConfigs - default - - - - android.hardware.contexthub - hwbinder - 1.0 - - IContexthub - default - - - - android.hardware.drm - hwbinder - 1.0 - - ICryptoFactory - default - widevine - - - IDrmFactory - default - widevine - - - - android.hardware.dumpstate - hwbinder - 1.0 - - IDumpstateDevice - default - - - - android.hardware.gatekeeper - hwbinder - 1.0 - - IGatekeeper - default - - - - android.hardware.gnss - hwbinder - 1.0 - - IGnss - default - - - - android.hardware.graphics.allocator - hwbinder - 2.0 - - IAllocator - default - - - - android.hardware.graphics.composer - hwbinder - 2.1 - - IComposer - default - - - - android.hardware.graphics.mapper - passthrough - 2.0 - - IMapper - default - - - - android.hardware.keymaster - hwbinder - 3.0 - - IKeymasterDevice - default - - - - android.hardware.light - hwbinder - 2.0 - - ILight - default - - - - android.hardware.media.omx - hwbinder - 1.0 - - IOmx - default - - - IOmxStore - default - - - - android.hardware.memtrack - hwbinder - 1.0 - - IMemtrack - default - - - - android.hardware.nfc - hwbinder - 1.0 - - INfc - default - - - - android.hardware.power - hwbinder - 1.1 - - IPower - default - - - - android.hardware.radio - hwbinder - 1.1 - - IRadio - slot1 - - - ISap - slot1 - - - - android.hardware.radio.deprecated - hwbinder - 1.0 - - IOemHook - slot1 - - - - android.hardware.renderscript - passthrough - 1.0 - - IDevice - default - - - - android.hardware.sensors - hwbinder - 1.0 - - ISensors - default - - - - android.hardware.soundtrigger - hwbinder - 2.0 - - ISoundTriggerHw - default - - - - android.hardware.thermal - hwbinder - 1.1 - - IThermal - default - - - - android.hardware.usb - hwbinder - 1.1 - - IUsb - default - - - - android.hardware.vibrator - hwbinder - 1.0 - - IVibrator - default - - - - android.hardware.vr - hwbinder - 1.0 - - IVr - default - - - - android.hardware.wifi - hwbinder - 1.0 - - IWifi - default - - - - android.hardware.wifi.supplicant - hwbinder - 1.0 - - ISupplicant - default - - - - vendor.qti.atcmdfwd - hwbinder - 1.0 - - IAtCmdFwd - AtCmdFwdService - - - - vendor.qti.qcril.am - hwbinder - 1.0 - - IQcRilAudio - default - - - - 27.0 - - diff --git a/system.prop b/system.prop new file mode 100644 index 0000000..b16bcc7 --- /dev/null +++ b/system.prop @@ -0,0 +1,8 @@ +ro.build.model=ASUS_X01BD +ro.build.device=X01BD +ro.product.device=ASUS_X01BD_1 +ro.product.model=ASUS_X01BDA +ro.product.name=WW_X01BD + +ro.board.platform=sdm660 +ro.product.board=sdm660