Initialize device folder
from: 858c0f08e332220d80a9eef8ddcd39ef4d5296ee with updated device path Bug: 248399843 Change-Id: I215a40a4f4719d5432e87401f4a3214c5189ba20
This commit is contained in:
parent
74165f8951
commit
fd0859e694
202 changed files with 842057 additions and 2 deletions
83
conf/init.shiba.rc
Normal file
83
conf/init.shiba.rc
Normal file
|
@ -0,0 +1,83 @@
|
|||
# Shiba specific init.rc
|
||||
import /vendor/etc/init/hw/init.zuma.rc
|
||||
|
||||
on init && property:ro.vendor.factory=1
|
||||
import /vendor/etc/init/hw/init.factory.rc
|
||||
|
||||
on early-boot
|
||||
# Wait for insmod_sh to finish all common modules
|
||||
wait_for_prop vendor.common.modules.ready 1
|
||||
start insmod_sh_shiba
|
||||
|
||||
service insmod_sh_shiba /vendor/bin/insmod.sh /vendor/etc/init.insmod.${ro.hardware}.cfg
|
||||
class main
|
||||
user root
|
||||
group root system
|
||||
disabled
|
||||
oneshot
|
||||
|
||||
on property:vendor.mfgapi.touchpanel.permission=1
|
||||
chmod 0600 /sys/devices/virtual/sec/tsp/cmd
|
||||
chown system system /sys/devices/virtual/sec/tsp/cmd
|
||||
|
||||
# Fingerprint
|
||||
on post-fs-data
|
||||
chown system system /dev/goodix_fp
|
||||
exec_background - system shell -- /vendor/bin/trusty_apploader /vendor/firmware/g7.app
|
||||
|
||||
# Overrides fingerprint antispoof if following persist sysprops are set
|
||||
on boot && property:ro.build.type=userdebug && \
|
||||
property:persist.vendor.fingerprint.disable.fake.override=0
|
||||
setprop vendor.fingerprint.disable.fake ${persist.vendor.fingerprint.disable.fake.override}
|
||||
|
||||
on boot && property:ro.build.type=userdebug && \
|
||||
property:persist.vendor.fingerprint.disable.fake.override=1
|
||||
setprop vendor.fingerprint.disable.fake ${persist.vendor.fingerprint.disable.fake.override}
|
||||
|
||||
on boot && property:ro.build.type=userdebug && \
|
||||
property:persist.vendor.fingerprint.disable.fake.override=100
|
||||
setprop vendor.fingerprint.disable.fake ${persist.vendor.fingerprint.disable.fake.override}
|
||||
|
||||
# WiFi
|
||||
on post-fs-data
|
||||
setprop wifi.direct.interface p2p-dev-wlan0
|
||||
setprop wifi.aware.interface aware_nmi0
|
||||
|
||||
# Speaker amp permission
|
||||
chmod 644 /mnt/vendor/persist/audio/speaker.cal
|
||||
|
||||
# Allow secure_element group to read / write ST33 SPI state
|
||||
chown secure_element secure_element /sys/class/st33spi/st33spi/st33spi_state
|
||||
chmod 0660 /sys/class/st33spi/st33spi/st33spi_state
|
||||
|
||||
# NFC
|
||||
on property:ro.boot.hardware.revision=PROTO1.0
|
||||
setprop persist.vendor.nfc.config_file_name libnfc-hal-st-proto1.conf
|
||||
|
||||
on property:ro.boot.hardware.revision=PROTO1.1
|
||||
setprop persist.vendor.nfc.config_file_name libnfc-hal-st-proto1.conf
|
||||
|
||||
# Bluetooth
|
||||
on post-fs-data
|
||||
chown bluetooth system /proc/bluetooth/timesync
|
||||
|
||||
# Touch
|
||||
on property:vendor.device.modules.ready=1
|
||||
chown system system /proc/focaltech_touch/Channel_Num
|
||||
chown system system /proc/focaltech_touch/FW_Version
|
||||
chown system system /proc/focaltech_touch/INT_PIN
|
||||
chown system system /proc/focaltech_touch/force_active
|
||||
chown system system /proc/focaltech_touch/Reset_Pin
|
||||
chown system system /proc/focaltech_touch/fw_grip
|
||||
chown system system /proc/focaltech_touch/fw_palm
|
||||
chown system system /proc/focaltech_touch/heatmap_onoff
|
||||
chown system system /proc/focaltech_touch/mf_mode
|
||||
chown system system /proc/focaltech_touch/selftest/Baseline
|
||||
chown system system /proc/focaltech_touch/selftest/Noise
|
||||
chown system system /proc/focaltech_touch/selftest/Panel_Differ
|
||||
chown system system /proc/focaltech_touch/selftest/Rawdata
|
||||
chown system system /proc/focaltech_touch/selftest/Rawdata_Uniformity
|
||||
chown system system /proc/focaltech_touch/selftest/Scap_CB
|
||||
chown system system /proc/focaltech_touch/selftest/Scap_Rawdata
|
||||
chown system system /proc/focaltech_touch/selftest/Short
|
||||
chown system system /proc/focaltech_touch/selftest/Strength
|
Loading…
Add table
Add a link
Reference in a new issue