Initial akita device
based on 3b89a2d00ab5e110e6b01e8836ee6a7aaa6ec6e2 Bug: 249656909 Change-Id: I00dfa05d50a13e5229368ff33d5462c38f712069
This commit is contained in:
parent
1d248a4fb1
commit
f755ad1606
100 changed files with 226283 additions and 0 deletions
83
conf/init.akita.rc
Normal file
83
conf/init.akita.rc
Normal file
|
@ -0,0 +1,83 @@
|
|||
# Akita 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_akita
|
||||
|
||||
service insmod_sh_akita /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