device_google_pantah/conf/init.pantah.rc
Sayanna Chandula 1f98950323 thermal: enable thermal engine for evt1.0 devices
New version of thermal engine (Powerlink v2) uses ODPM data for
thermal mitigation. But proto devices does not support ODPM.
Currently we have disabled thermal mitigation for all A0 based
devices through a separate config, thermal_info_config_A0.json.
This change restricts using separate thermal config  only for the
proto devices and uses thermal_info_config.json for the rest.
Fix a format issue with qi-quiet sensor definition.

Bug: 196478280
Test: Build and boot on device. Check thermal config
Signed-off-by: Sayanna Chandula <sayanna@google.com>
Change-Id: I0922e935cafe118f3437335e2a72b87aae6f6009
2022-04-25 18:20:58 +00:00

110 lines
4.2 KiB
Text

# Cheetah/Panther specific init.rc
on init
# NFC streset tool name
setprop persist.vendor.nfc.streset libstreset21
setprop persist.vendor.se.streset libstreset21
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_pantah
service insmod_sh_pantah /vendor/bin/init.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
service wpa_supplicant /vendor/bin/hw/wpa_supplicant \
-O/data/vendor/wifi/wpa/sockets -puse_p2p_group_interface=1p2p_device=1 \
-m/vendor/etc/wifi/p2p_supplicant.conf \
-g@android:wpa_wlan0 -dd
interface aidl android.hardware.wifi.supplicant.ISupplicant/default
socket wpa_wlan0 dgram 660 wifi wifi
class main
disabled
oneshot
# 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
# SecureElement eSE2 cts mode
on property:persist.vendor.se.ese2.mode=ctsmode
write /sys/class/st33spi/st33spi/st33spi_state 33
on init && property:ro.boot.hw.soc.rev=0
setprop vendor.powerhal.config powerhint-a0.json
on property:ro.boot.hardware.revision=PROTO1.0
setprop vendor.thermal.config "thermal_info_config_proto.json"
on property:ro.boot.hardware.revision=PROTO1.1
setprop vendor.thermal.config "thermal_info_config_proto.json"
# 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