2022-04-11 11:23:57 -04:00
|
|
|
#
|
|
|
|
# Copyright (C) 2022 The LineageOS Project
|
|
|
|
#
|
|
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
#
|
|
|
|
|
2019-07-11 09:32:52 -04:00
|
|
|
on early-boot
|
|
|
|
# SSR
|
|
|
|
write /sys/bus/msm_subsys/devices/subsys0/restart_level RELATED
|
|
|
|
write /sys/bus/msm_subsys/devices/subsys1/restart_level RELATED
|
|
|
|
write /sys/bus/msm_subsys/devices/subsys2/restart_level RELATED
|
|
|
|
write /sys/bus/msm_subsys/devices/subsys3/restart_level RELATED
|
|
|
|
write /sys/bus/msm_subsys/devices/subsys4/restart_level RELATED
|
|
|
|
write /sys/bus/msm_subsys/devices/subsys5/restart_level RELATED
|
|
|
|
write /sys/bus/msm_subsys/devices/subsys6/restart_level RELATED
|
|
|
|
write /sys/bus/msm_subsys/devices/subsys7/restart_level RELATED
|
|
|
|
write /sys/bus/msm_subsys/devices/subsys8/restart_level RELATED
|
|
|
|
write /sys/bus/msm_subsys/devices/subsys9/restart_level RELATED
|
|
|
|
write /sys/bus/msm_subsys/devices/subsys10/restart_level RELATED
|
|
|
|
write /sys/bus/msm_subsys/devices/subsys11/restart_level RELATED
|
|
|
|
|
2022-04-11 11:23:57 -04:00
|
|
|
on boot
|
|
|
|
# Display
|
|
|
|
chown system system /dev/oplus_display
|
|
|
|
chown system system /sys/kernel/oplus_display/dimlayer_bl_en
|
|
|
|
chown system system /sys/kernel/oplus_display/dynamic_osc_clock
|
|
|
|
chown system system /sys/kernel/oplus_display/hbm
|
|
|
|
chown system system /sys/kernel/oplus_display/notify_fppress
|
|
|
|
chown system system /sys/kernel/oplus_display/panel_serial_number
|
2022-04-11 11:44:39 -04:00
|
|
|
|
|
|
|
# Sensors
|
|
|
|
chown system system /sys/devices/platform/soc/soc:sensor_fb/adsp_notify
|
|
|
|
|
2022-04-12 09:00:37 -04:00
|
|
|
on property:ro.boot.prjname=*
|
|
|
|
# Display
|
|
|
|
setprop ro.separate.soft ${ro.boot.prjname}
|
|
|
|
|
2022-04-13 11:07:11 -04:00
|
|
|
on property:sys.boot_completed=1
|
|
|
|
# Display
|
|
|
|
copy /vendor/etc/Oppo_QC_LTM_Commercial_SM8250_2020_01_15.pfm /mnt/vendor/persist/data/pfm/licenses/1000-1000-no-exp-1186717196.pfm
|
|
|
|
chmod 0600 /mnt/vendor/persist/data/pfm/licenses/1000-1000-no-exp-1186717196.pfm
|
|
|
|
chown system system /mnt/vendor/persist/data/pfm/licenses/1000-1000-no-exp-1186717196.pfm
|
|
|
|
|
2022-04-11 14:41:43 -04:00
|
|
|
on property:sys.usb.config=adb && property:sys.usb.configfs=1
|
|
|
|
write /config/usb_gadget/g1/idVendor 0x22D9
|
|
|
|
write /config/usb_gadget/g1/idProduct 0x2769
|
|
|
|
|
|
|
|
on property:sys.usb.config=mass_storage && property:sys.usb.configfs=1
|
|
|
|
write /config/usb_gadget/g1/idVendor 0x22D9
|
|
|
|
write /config/usb_gadget/g1/idProduct 0x2768
|
|
|
|
|
|
|
|
on property:sys.usb.config=mtp && property:sys.usb.configfs=1
|
|
|
|
write /config/usb_gadget/g1/idVendor 0x22D9
|
|
|
|
write /config/usb_gadget/g1/idProduct 0x2764
|
|
|
|
|
|
|
|
on property:sys.usb.config=mtp,adb && property:sys.usb.configfs=1
|
|
|
|
write /config/usb_gadget/g1/idVendor 0x22D9
|
|
|
|
write /config/usb_gadget/g1/idProduct 0x2765
|
|
|
|
|
|
|
|
on property:sys.usb.config=ptp && property:sys.usb.configfs=1
|
|
|
|
write /config/usb_gadget/g1/idVendor 0x22D9
|
|
|
|
write /config/usb_gadget/g1/idProduct 0x2771
|
|
|
|
|
|
|
|
on property:sys.usb.config=ptp,adb && property:sys.usb.configfs=1
|
|
|
|
write /config/usb_gadget/g1/idVendor 0x22D9
|
|
|
|
write /config/usb_gadget/g1/idProduct 0x2772
|
|
|
|
|
|
|
|
on property:sys.usb.config=rndis,none && property:sys.usb.configfs=1
|
|
|
|
write /config/usb_gadget/g1/idVendor 0x22D9
|
|
|
|
write /config/usb_gadget/g1/idProduct 0x276A
|
|
|
|
|
|
|
|
on property:sys.usb.config=rndis,serial_cdev,diag && property:sys.usb.configfs=1
|
|
|
|
write /config/usb_gadget/g1/idVendor 0x22D9
|
|
|
|
write /config/usb_gadget/g1/idProduct 0x2783
|
|
|
|
|
|
|
|
on property:sys.usb.ffs.ready=1 && property:sys.usb.config=diag,adb && property:sys.usb.configfs=1
|
|
|
|
write /config/usb_gadget/g1/idVendor 0x22D9
|
|
|
|
write /config/usb_gadget/g1/idProduct 0x276C
|
|
|
|
|
|
|
|
on property:sys.usb.ffs.ready=1 && property:sys.usb.config=diag,diag_mdm,adb && property:sys.usb.configfs=1
|
|
|
|
write /config/usb_gadget/g1/idVendor 0x22D9
|
|
|
|
write /config/usb_gadget/g1/idProduct 0x276E
|
|
|
|
|
|
|
|
on property:sys.usb.ffs.ready=1 && property:sys.usb.config=mass_storage,adb && property:sys.usb.configfs=1
|
|
|
|
write /config/usb_gadget/g1/idVendor 0x22D9
|
|
|
|
write /config/usb_gadget/g1/idProduct 0x2767
|
|
|
|
|
|
|
|
on property:sys.usb.ffs.ready=1 && property:sys.usb.config=rndis,diag,adb && property:sys.usb.configfs=1
|
|
|
|
write /config/usb_gadget/g1/idVendor 0x22D9
|
|
|
|
write /config/usb_gadget/g1/idProduct 0x2775
|
|
|
|
|
|
|
|
on property:sys.usb.ffs.ready=1 && property:sys.usb.config=rndis,none,adb && property:sys.usb.configfs=1
|
|
|
|
write /config/usb_gadget/g1/idVendor 0x22D9
|
|
|
|
write /config/usb_gadget/g1/idProduct 0x2766
|
|
|
|
|
2022-04-11 11:44:39 -04:00
|
|
|
service oplus_sensor_fb /odm/bin/oplus_sensor_fb
|
|
|
|
user system
|
|
|
|
group system
|
|
|
|
class late_start
|
|
|
|
oneshot
|