android_device_oneplus_sm81.../rootdir/etc/vendor.oem_ftm.rc

59 lines
1.5 KiB
Plaintext

on post-fs-data
chmod 0666 /dev/block/sda4
chmod 0666 /dev/param
service wcnss-service-f /system/bin/wcnss_service -f
class main
user root
group system wifi radio
oneshot
disabled
service factory /vendor/bin/factory
class late_start
disabled
service ftm_power_config /vendor/bin/sh /vendor/etc/init/hw/ftm_power_config.sh
class late_start
user root
disabled
oneshot
on oem_ftm
chmod 0666 /sys/module/sysctl/parameters/oem_en_chg_prk_lv
chmod 0666 /sys/class/drm/card0-DSI-1/panel_serial_number_AT
chown system system /vendor/bin/factory
chmod 0755 /vendor/bin/factory
chown system system /vendor/bin/ptt_socket_app
chmod 0755 /vendor/bin/ptt_socket_app
on property:ro.vendor.factory.mode=ftm
start qcamerasvr
start qcom-sh
start self-init
start qmuxd
start factory
start ftm_power_config
start ril-daemon
start cnss-daemon
write /sys/class/power_supply/battery/charging_enabled 0
on property:ro.vendor.factory.mode=wlan
start qcom-sh
start self-init
start qmuxd
start ptt_ffbm
start ftm_power_config
start ril-daemon
start cnss-daemon
write /sys/class/power_supply/battery/charging_enabled 0
on property:ro.vendor.factory.mode=rf
start qcom-sh
start self-init
start qcom-c_main-sh
start ftm_power_config
start cnss-daemon
start vendor.mdm_launcher
write /sys/class/power_supply/battery/charging_enabled 0