sm7250-common: Update init scripts from OnePlusNordCE OxygenOS 11.0.4.4

This commit is contained in:
KakatkarAkshay
2021-07-18 20:36:09 +05:30
parent 70e9d3f059
commit 981ad16ac0
19 changed files with 1281 additions and 570 deletions

View File

@@ -1,7 +1,11 @@
#!/system/bin/sh
echo "ftm_power_config start" >> /dev/kmsg
bootmode=`getprop ro.vendor.factory.mode`
target=`getprop ro.board.platform`
/vendor/bin/sh /vendor/bin/init.qcom.post_boot.sh
echo s2idle > /sys/power/mem_sleep
sleep 5
echo 0 > /sys/devices/system/cpu/cpu4/online
echo 0 > /sys/devices/system/cpu/cpu5/online
@@ -11,8 +15,14 @@ echo 0 > /sys/devices/system/cpu/cpu7/online
sleep 10
echo 0 > /sys/devices/system/cpu/cpu3/online
echo 0 > /sys/devices/system/cpu/cpu2/online
echo 518400 > /sys/devices/system/cpu/cpufreq/policy0/scaling_min_freq
echo 883200 > /sys/devices/system/cpu/cpufreq/policy0/scaling_max_freq
if [ "$target" == "lito" ]; then
echo 614400 > /sys/devices/system/cpu/cpufreq/policy0/scaling_min_freq
echo 1075200 > /sys/devices/system/cpu/cpufreq/policy0/scaling_max_freq
else
echo 518400 > /sys/devices/system/cpu/cpufreq/policy0/scaling_min_freq
echo 883200 > /sys/devices/system/cpu/cpufreq/policy0/scaling_max_freq
fi
echo "ftm_power_config ftrace config start" >> /dev/kmsg
echo 0 > /sys/kernel/debug/tracing/tracing_on
@@ -41,4 +51,3 @@ echo 0 > /sys/kernel/debug/tracing/tracing_on && cat /sys/kernel/debug/tracing/t
echo 0 > /sys/module/lpm_levels/parameters/sleep_disabled
baseband=`getprop ro.baseband`
echo "ftm_power_config done baseband=$baseband" >> /dev/kmsg

2
rootdir/etc/init.cust.rc Normal file
View File

@@ -0,0 +1,2 @@
on property:ro.boot.product.hardware.sku=9
setprop persist.radio.multisim.config ssss

View File

@@ -40,7 +40,6 @@ on property:persist.vendor.oem.dump=1 && property:persist.vendor.oem.ssrdump=0
write /proc/restart_level_all 1
write /proc/sys/kernel/printk "4 6 1 7"
setprop persist.vendor.oem.pmsg.enable 1
write /sys/class/sdx5x_rf_cable/rf_cable/oem_dump 1
on property:persist.vendor.oem.dump=0 && property:persist.vendor.oem.ssrdump=0
write /sys/module/msm_poweroff/parameters/download_mode 1
@@ -50,7 +49,6 @@ on property:persist.vendor.oem.dump=0 && property:persist.vendor.oem.ssrdump=0
write /proc/restart_level_all 0
write /proc/sys/kernel/printk "1 6 1 7"
setprop persist.vendor.oem.pmsg.enable 0
write /sys/class/sdx5x_rf_cable/rf_cable/oem_dump 0
on property:persist.vendor.oem.dump=0 && property:persist.vendor.oem.ssrdump=1
write /sys/module/msm_poweroff/parameters/download_mode 1
@@ -60,7 +58,6 @@ on property:persist.vendor.oem.dump=0 && property:persist.vendor.oem.ssrdump=1
write /proc/restart_level_all 0
write /proc/sys/kernel/printk "4 6 1 7"
setprop persist.vendor.oem.pmsg.enable 0
write /sys/class/sdx5x_rf_cable/rf_cable/oem_dump 0
on property:persist.vendor.oem.twice.modemdump=1

View File

@@ -1,73 +0,0 @@
##################################################################################
### VENDOR_EDIT, OEM All rights reserved.
###
### File: - init.oem.minidump.sdx55m.rc
###
### ------------------------------- Revision History: ----------------------------
### <author> <data> <version> <desc>
### kimmy.yang@oneplus.com 2020/04/22 v1 provide the permission
### kimmy.yang@oneplus.com 2020/08/05 v1.2 Add new ELF for CR upgraded
### ------------------------------------------------------------------------------
##################################################################################
################################## Trigger Point Begin ###########################################
on fs
mkdir /mnt/vendor/modemdump 0771 system system
wait /dev/block/bootdevice/by-name/modemdump
mount ext4 /dev/block/bootdevice/by-name/modemdump /mnt/vendor/modemdump noatime nosuid nodev barrier=1
chown root system /mnt/vendor/modemdump
chmod 0771 /mnt/vendor/modemdump
mkdir /mnt/vendor/modemdump/SDX55M 0770
chown root system /mnt/vendor/modemdump/SDX55M
restorecon_recursive /mnt/vendor/modemdump
on property:vendor.sys.mount.modemdump=1
mount ext4 /dev/block/bootdevice/by-name/modemdump /mnt/vendor/modemdump noatime nosuid nodev barrier=1
on property:vendor.sys.mount.modemdump=0
umount /mnt/vendor/modemdump
exec /system/bin/e2fsck -y /dev/block/bootdevice/by-name/modemdump
write /dev/kmsg "umount modemdump success"
write /sys/module/esoc_mdm_4x/parameters/mdm_umount_state 1
on property:persist.sys.oem.minidump_chmod=1
chmod 0770 /mnt/vendor/modemdump/SDX55M
chmod 0660 /mnt/vendor/modemdump/SDX55M/load.cmm
chmod 0660 /mnt/vendor/modemdump/SDX55M/md_AMSS_HEAP_0.BIN
chmod 0660 /mnt/vendor/modemdump/SDX55M/md_GEN_DUMP_0.BIN
chmod 0660 /mnt/vendor/modemdump/SDX55M/md_GEN_DUMP_1.BIN
chmod 0660 /mnt/vendor/modemdump/SDX55M/md_GEN_DUMP_10.BIN
chmod 0660 /mnt/vendor/modemdump/SDX55M/md_GEN_DUMP_11.BIN
chmod 0660 /mnt/vendor/modemdump/SDX55M/md_GEN_DUMP_12.BIN
chmod 0660 /mnt/vendor/modemdump/SDX55M/md_GEN_DUMP_2.BIN
chmod 0660 /mnt/vendor/modemdump/SDX55M/md_GEN_DUMP_3.BIN
chmod 0660 /mnt/vendor/modemdump/SDX55M/md_GEN_DUMP_4.BIN
chmod 0660 /mnt/vendor/modemdump/SDX55M/md_GEN_DUMP_5.BIN
chmod 0660 /mnt/vendor/modemdump/SDX55M/md_GEN_DUMP_6.BIN
chmod 0660 /mnt/vendor/modemdump/SDX55M/md_GEN_DUMP_7.BIN
chmod 0660 /mnt/vendor/modemdump/SDX55M/md_GEN_DUMP_8.BIN
chmod 0660 /mnt/vendor/modemdump/SDX55M/md_GEN_DUMP_9.BIN
chmod 0660 /mnt/vendor/modemdump/SDX55M/md_INT_HEAP_0.BIN
chmod 0660 /mnt/vendor/modemdump/SDX55M/md_INT_HEAP_1.BIN
chmod 0660 /mnt/vendor/modemdump/SDX55M/md_MDMP_LOG.BIN
chmod 0660 /mnt/vendor/modemdump/SDX55M/md_MDMP_LOG1.BIN
chmod 0660 /mnt/vendor/modemdump/SDX55M/md_MPSS_HEAP_0.BIN
chmod 0660 /mnt/vendor/modemdump/SDX55M/md_MPSS_HEAP_1.BIN
chmod 0660 /mnt/vendor/modemdump/SDX55M/md_MPSS_INT_HEA.BIN
chmod 0660 /mnt/vendor/modemdump/SDX55M/md_MPSS_VAR_TAB.BIN
chmod 0660 /mnt/vendor/modemdump/SDX55M/md_mss_key_aes.BIN
chmod 0660 /mnt/vendor/modemdump/SDX55M/md_mss_key_iv.BIN
chmod 0660 /mnt/vendor/modemdump/SDX55M/md_mss_key_mac.BIN
chmod 0660 /mnt/vendor/modemdump/SDX55M/md_PBUS_LOG.BIN
chmod 0660 /mnt/vendor/modemdump/SDX55M/md_PMIC_PON.BIN
chmod 0660 /mnt/vendor/modemdump/SDX55M/md_PMON_HIS.BIN
chmod 0660 /mnt/vendor/modemdump/SDX55M/md_QSH_MDUMP.BIN
chmod 0660 /mnt/vendor/modemdump/SDX55M/md_RST_STAT.BIN
chmod 0660 /mnt/vendor/modemdump/SDX55M/md_SHRDIMEM.BIN
chmod 0660 /mnt/vendor/modemdump/SDX55M/md_SMEM_VER.BIN
chmod 0660 /mnt/vendor/modemdump/SDX55M/md_SMEMINFO.BIN
chmod 0660 /mnt/vendor/modemdump/SDX55M/md_TZ_DIAG.BIN
chmod 0660 /mnt/vendor/modemdump/SDX55M/md_mss_compr_ar.BIN
setprop persist.sys.oem.minidump_chmod 0

View File

@@ -12,6 +12,8 @@
#Load WLAN driver
import /vendor/etc/init/hw/init.cust.rc
#ethan.peng@Connectivity,2020/12/29,close uicc since orange
import /vendor/etc/init/hw/init.uicc.rc
on property:wlan.driver.status=ok
start load_wlan_driver
@@ -29,7 +31,6 @@ on charger
#@bsp, 2019/08/22 Add dash charging
service dashd /vendor/bin/dashd
class core
critical
seclabel u:r:dashd:s0
group root system
@@ -42,8 +43,6 @@ service wlchgd /vendor/bin/wlchgd
on fs
mount ext4 /dev/block/bootdevice/by-name/op1 /mnt/vendor/op1 ro barrier=1 discard context=u:object_r:op1_file:s0
mount ext4 /dev/block/bootdevice/by-name/op2 /mnt/vendor/op2 noatime nosuid nodev barrier=1
chown system system /mnt/vendor/op2
#yankelong add
chown system system /sys/class/leds/vibrator/haptic_audio_ai_input
chown system system /sys/class/leds/vibrator/haptic_audio_tp_input
@@ -108,8 +107,13 @@ on fs
write /sys/devices/platform/soc/a94000.i2c/i2c-4/4-0048/tp_fw_update 0
write /sys/devices/platform/soc/984000.i2c/i2c-4/4-005d/tp_fw_update 0
write /sys/devices/platform/soc/984000.i2c/i2c-4/4-0048/tp_fw_update 0
write /sys/devices/platform/soc/a94000.i2c/i2c-4/4-005d/tp_fw_update 0
write /sys/devices/platform/soc/880000.i2c/i2c-0/0-0038/tp_fw_update 0
write /sys/devices/platform/soc/880000.spi/spi_master/spi0/spi0.0/tp_fw_update 0
#add for n200
write /sys/devices/platform/soc/4a80000.spi/spi_master/spi0/spi0.0/tp_fw_update 0
#add for tp debug log
#add for tp debug log & to set node gesture_enable
chown system system /proc/touchpanel/tp_debug_log
chown system system /proc/touchpanel/gesture_enable
chown system system /proc/touchpanel/gesture_switch
@@ -117,6 +121,9 @@ on fs
chown system system /proc/touchpanel/tp_switch_dead_zone
chown system system /proc/touchpanel/tp_switch_corner_dead_l_zone
chown system system /proc/touchpanel/tp_switch_corner_dead_p_zone
chown system system /proc/touchpanel/touch_apk
chown system system /proc/touchpanel/get_device_temperature
chown system system /proc/touchpanel/get_ic_firmware_version
# /* add for wireless charge */
chown system system /proc/wireless/enable_tx
chown system system /proc/wireless/enable_rx
@@ -129,7 +136,12 @@ on fs
chown system system /proc/wireless/fast_skin_threld
chown system system /proc/enhance_dash
#ifdef VENDOR_EDIT
# rayboo.lin@bsp, 2020/09/09 add for simCard holder detect
chmod 0666 /proc/simholder/sim_holder_detect
chown system system /proc/simholder/sim_holder_detect
#uma.mahesh@Imaging 2020/4/8 add for factory item
chown system system /sys/class/leds/led:torch_0/brightness
chmod 666 /sys/class/leds/led:torch_0/brightness
@@ -159,24 +171,40 @@ on fs
chmod 666 /sys/kernel/tof_control/app0/app0_get_distance
chown system system /sys/kernel/tof_control/app0/app0_read_peak_crosstalk
chmod 666 /sys/kernel/tof_control/app0/app0_read_peak_crosstalk
chown system system /sys/kernel/tof_control/app0/period
chmod 666 /sys/kernel/tof_control/app0/period
chown system system /sys/kernel/tof_control/app0/iterations
chmod 666 /sys/kernel/tof_control/app0/iterations
chown system system /sys/kernel/tof_control/app0/alg_setting
chmod 666 /sys/kernel/tof_control/app0/alg_setting
chown system system /sys/kernel/tof_control/app0/app0_clk_iterations
chmod 666 /sys/kernel/tof_control/app0/app0_clk_iterations
chown system system /sys/kernel/tof_control/chip_enable
chmod 666 /sys/kernel/tof_control/chip_enable
chown system system /sys/kernel/tof_control/app0/app0_clk_trim_set
chmod 666 /sys/kernel/tof_control/app0/app0_clk_trim_set
chown system system /sys/kernel/tof_control/app0/app0_apply_fac_calib
chmod 666 /sys/kernel/tof_control/app0/app0_apply_fac_calib
chown system system /sys/kernel/tof_control/driver_debug
chmod 666 /sys/kernel/tof_control/driver_debug
#add for ois debug
chown system system /sys/kernel/ois_control/dump_registers
chmod 666 /sys/kernel/ois_control/dump_registers
#endif
# Power@bsp, 2020/2/27, add for thermal
chown system system /dev/msm_thermal
chown system system /dev/skin_thermal
chown system system /dev/modem_skin_thermal
chown system system /dev/mmw0_thermal
chown system system /dev/mmw1_thermal
chown system system /dev/mmw2_thermal
chown system system /dev/modem_skin_therm
chown system system /dev/mmw0_therm
chown system system /dev/mmw1_therm
chown system system /dev/mmw2_therm
chmod 0664 /dev/msm_thermal
chmod 0664 /dev/skin_thermal
chmod 0664 /dev/modem_skin_thermal
chmod 0664 /dev/mmw0_thermal
chmod 0664 /dev/mmw1_thermal
chmod 0664 /dev/mmw2_thermal
chmod 0664 /dev/modem_skin_therm
chmod 0664 /dev/mmw0_therm
chmod 0664 /dev/mmw1_therm
chmod 0664 /dev/mmw2_therm
#ifdef VENDOR_EDIT
#if OP_FEATURE_MM_ADSP_MINIDUMP == 1
@@ -190,6 +218,35 @@ on fs
chmod 0666 /sys/class/drm/card0-DSI-1/hbm_brightness
chmod 0666 /sys/class/backlight/panel0-backlight/brightness
#endif
# display add 2018/10/19 @lichao_display
chmod 0666 /sys/class/drm/card0-DSI-1/SRGB
chmod 0666 /sys/class/drm/card0-DSI-1/DCI_P3
chmod 0666 /sys/class/drm/card0-DSI-1/aod
chmod 0666 /sys/class/drm/card0-DSI-1/night_mode
chmod 0666 /sys/class/drm/card0-DSI-1/panel_serial_number
chmod 0666 /sys/class/drm/card0-DSI-1/cabc
chmod 0666 /sys/class/drm/card0-DSI-1/oplus_shutdownflag
chmod 0666 /sys/class/drm/card0-DSI-1/oneplus_mode
chmod 0666 /sys/class/drm/card0-DSI-1/adaption_mode
chmod 0666 /sys/class/drm/card0-DSI-1/notify_fppress
chmod 0666 /sys/class/drm/card0-DSI-1/dim_alpha
chmod 0666 /sys/class/drm/card0-DSI-1/notify_dim
chmod 0666 /sys/class/drm/card0-DSI-1/force_screenfp
chmod 0666 /sys/class/drm/card0-DSI-1/native_display_p3_mode
chmod 0666 /sys/class/drm/card0-DSI-1/native_display_wide_color_mode
chmod 0666 /sys/class/drm/card0-DSI-1/native_display_srgb_color_mode
chmod 0666 /sys/devices/platform/soc/soc:qcom,dsi-display-primary/dynamic_dsi_clock
chown radio radio /sys/devices/platform/soc/soc:qcom,dsi-display-primary/dynamic_dsi_clock
chown radio radio /proc/force_reset
chmod 0666 /sys/class/drm/card0-DSI-1/native_display_loading_effect_mode
chmod 0666 /sys/class/drm/card0-DSI-1/native_display_customer_srgb_mode
chmod 0666 /sys/class/drm/card0-DSI-1/native_display_customer_p3_mode
chmod 0666 /sys/class/drm/card0-DSI-1/dimlayer_bl_en
chmod 0666 /sys/class/drm/card0-DSI-1/dither_en
chmod 0666 /sys/class/drm/card0-DSI-1/oplus_msd_aod
chmod 0666 /sys/class/drm/card0-DSI-1/osc_mode
chown radio radio /sys/class/drm/card0-DSI-1/osc_mode
# ken.lin@ASTI, 2019/6/21, add for fsc
chown system system /sys/module/fsc/parameters/enable
@@ -205,16 +262,27 @@ on boot
chmod 0664 sys/devices/platform/soc/soc:goodix_fp/screen_state
chown system system sys/devices/platform/soc/soc:goodix_fp/screen_state
chmod 0666 /dev/qseecom
# access permission for egis
chown system system /dev/esfp0
chmod 0666 /dev/esfp0
# access permission for egis navigation
chmod 0666 /sys/devices/platform/egis_input/navigation_event
chmod 0666 /sys/devices/platform/egis_input/navigation_enable
chown system system /sys/devices/platform/egis_input/navigation_event
chown system system /sys/devices/platform/egis_input/navigation_enable
#endif
setprop ro.nfc.port "I2C"
chmod 0666 /dev/pn553
chown nfc nfc /dev/pn553
chmod 0666 /dev/p73
chown secure_element secure_element /dev/p73
#Leo@BSP 2020/04/17 add for qsee_log tz_log
chmod 0666 /proc/tzdbg/qsee_log
chmod 0666 /proc/tzdbg/tz_log
chmod 0666 /proc/tzdbg/log
#Norman@Connectivity 2020/04/24 add for default country code
setprop ro.boot.wificountrycode 00
#Brandon@Conn 2020/07/24 add for default uicc support
setprop persist.vendor.radio.uicc_se_enabled true
#martin.li@BSP, 2019/12/03,support for EngineeringMode tool start
chown system system /proc/rf_cable_config
chown system system /proc/rf_factory_mode
@@ -224,6 +292,19 @@ on boot
write /proc/sys/net/ipv4/tcp_mtu_probing 1
#endif /*VENDOR_EDIT*/
#ifdef VENDOR_EDIT
#tempest.chen@BSP 2020/12/07 add for light sensor and ultrasound proximity
chmod 666 /dev/input/event1
chmod 666 /dev/input/event2
chmod 666 /dev/input/event8
chmod 666 /dev/input/event10
#endif /*VENDOR_EDIT*/
#ifdef VENDOR_EDIT
#niku.huang@SYSTEM, 2020/12/30, Add for enable round corner
setprop vendor.display.disable_rounded_corner 0
#endif /*VENDOR_EDIT*/
on init
setprop vendor.boot.verifiedbootstate ${ro.boot.verifiedbootstate}
setprop vendor.boot.hw_version ${ro.boot.hw_version}
@@ -257,22 +338,14 @@ on post-fs
chown system system /proc/skin_temp_thrd/fastchg_lcdoff_thd
chown system system /proc/skin_temp_thrd/norchg_thd
chown system system /proc/skin_temp_thrd/norchg_lcdoff_thd
chmod 0444 /sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_cur_freq
chmod 0444 /sys/devices/system/cpu/cpu1/cpufreq/cpuinfo_cur_freq
chmod 0444 /sys/devices/system/cpu/cpu2/cpufreq/cpuinfo_cur_freq
chmod 0444 /sys/devices/system/cpu/cpu3/cpufreq/cpuinfo_cur_freq
chmod 0444 /sys/devices/system/cpu/cpu4/cpufreq/cpuinfo_cur_freq
chmod 0444 /sys/devices/system/cpu/cpu5/cpufreq/cpuinfo_cur_freq
chmod 0444 /sys/devices/system/cpu/cpu6/cpufreq/cpuinfo_cur_freq
chmod 0444 /sys/devices/system/cpu/cpu7/cpufreq/cpuinfo_cur_freq
#ifdef VENDOR_EDIT
#brandon.zeng@Conn,2020/05/08. add for nfc pnscr tool
chown system system /system/xbin/nfc_trasmit_start.sh
chmod 0777 /system/xbin/nfc_trasmit_start.sh
chown system system /system/xbin/nfc_trasmit_stop.sh
chmod 0777 /system/xbin/nfc_trasmit_stop.sh
chown system system system/xbin/pnscr
chmod 0777 system/xbin/pnscr
chown system system /vendor/bin/nfc_trasmit_start.sh
chmod 0777 /vendor/bin/nfc_trasmit_start.sh
chown system system /vendor/bin/nfc_trasmit_stop.sh
chmod 0777 /vendor/bin/nfc_trasmit_stop.sh
chown system system vendor/bin/pnscr
chmod 0777 vendor/bin/pnscr
#endif
#ifdef VENDOR_EDIT
@@ -282,6 +355,8 @@ on post-fs
chown wifi wifi /mnt/vendor/persist/qca6390/wlan_mac.bin
copy /vendor/etc/wifi/qca6390/WCNSS_qcom_cfg.ini /mnt/vendor/persist/qca6390/WCNSS_qcom_cfg.ini
chown wifi wifi /mnt/vendor/persist/qca6390/WCNSS_qcom_cfg.ini
# /*create a empty file for wifi single point calibration*/
mkdir /mnt/vendor/persist/copy 0770 wifi wifi
# /* create a empty file for wifi hal to write qca6490 mac address */
write /mnt/vendor/persist/wlan_mac.bin ""
chown wifi wifi /mnt/vendor/persist/wlan_mac.bin
@@ -357,17 +432,32 @@ on post-fs-data
chown system system /sys/module/tpd/parameters/tpd_dynamic
chown system system /sys/module/fuse/parameters/shortcircuit
chown system system /sys/module/fuse/parameters/sct_mode
# Jacky.Ho@OPTI 2020/09/23 add for [OSP-8617]
chown system system /sys/module/houston/parameters/game_fps_pid
chown system system /sys/module/houston/parameters/game_info
# fps stabilizer
chown system system /sys/module/houston/parameters/efps_max
chown system system /sys/module/houston/parameters/fps_boost_strategy
chown system system /sys/module/houston/parameters/egl_buf
chown system system /sys/module/houston/parameters/ht_online_config_update
# rock.lin@OPTI [OPTI-191] for power consumption
chown system system /sys/module/cpufreq_bouncing/parameters/enable
chown system system /sys/module/cpufreq_bouncing/parameters/config
# Jacky.Ho@OPTI 2020/09/30 add for [OPTI-85]
chown system system /sys/module/tpp/parameters/tpp_on
chown system system /sys/module/tpp/parameters/strategy
# Ted.Lin@ASTI 2019/06/12 add for CONFIG_CONTROL_CENTER
chown system system /dev/cc_ctl
chown system system /proc/cc_ctl
#endif /* VENDOR_EDIT */
# rock.lin@OPTI 2020/06/11 add for CONFIG_RATP
chown system system /sys/module/ratp/parameters/ratp_enable
#ifdef VENDOR_EDIT
# TomCheng@Core ,2020/06/22, HDCP provision key feature
mkdir /mnt/vendor/persist/hdcp/media_dump 0770 mediaex mediadrm
@@ -389,6 +479,35 @@ on post-fs-data
mkdir /data/vendor/ramdump/adsp 0770 system system
# endif
# kimmy.yang@NETWORK, 20201223, add for SM8350 (SoC)
mkdir /data/vendor/ramdump/modem 0770 system system
#ifdef VENDOR_EDIT online ISP tuning
mkdir /data/vendor/camera_update 0777 camera camera
write /data/vendor/camera_update/reservetuningbin0 ""
write /data/vendor/camera_update/reservetuningbin1 ""
write /data/vendor/camera_update/reservetuningbin2 ""
write /data/vendor/camera_update/reservetuningbin3 ""
write /data/vendor/camera_update/reservetuningbin4 ""
write /data/vendor/camera_update/reservetuningbin5 ""
write /data/vendor/camera_update/reservetuningbin6 ""
chmod 0666 /data/vendor/camera_update/reservetuningbin0
chmod 0666 /data/vendor/camera_update/reservetuningbin1
chmod 0666 /data/vendor/camera_update/reservetuningbin2
chmod 0666 /data/vendor/camera_update/reservetuningbin3
chmod 0666 /data/vendor/camera_update/reservetuningbin4
chmod 0666 /data/vendor/camera_update/reservetuningbin5
chmod 0666 /data/vendor/camera_update/reservetuningbin6
#endif
# for battery charging off is call_state_change
# jinguozhi@wt.network,20210207,add for battery charging off is call_state_change
on property:persist.sys.chgdisabled=1
write /sys/class/power_supply/battery/call_mode 1
on property:persist.sys.chgdisabled=0
write /sys/class/power_supply/battery/call_mode 0
# add for SMT test enters WLAN FTM test in non-signaling
service wififtmserver /vendor/bin/sh vendor/bin/wifi_ftm
class late_start
@@ -397,20 +516,32 @@ service wififtmserver /vendor/bin/sh vendor/bin/wifi_ftm
disabled
oneshot
# ted.lin@OPTU [OPTI-191] add for qcom boost config
on property:vendor.post_boot.parsed=1
chown system system /sys/devices/system/cpu/cpu0/cpufreq/schedutil/target_loads
chown system system /sys/devices/system/cpu/cpu4/cpufreq/schedutil/target_loads
chown system system /sys/devices/system/cpu/cpu7/cpufreq/schedutil/target_loads
chown system system /sys/devices/system/cpu/cpu7/core_ctl/busy_up_thres
chown system system /sys/devices/system/cpu/cpu7/core_ctl/busy_down_thres
on property:vendor.wlan.ftm.up=1
start wififtmserver
on property:persist.vendor.oem.wifi.chain=1
copy /vendor/etc/wifi/WCNSS_qcom_cfg_setchain.ini /mnt/vendor/persist/qca6390/WCNSS_qcom_cfg.ini
copy /vendor/etc/wifi/WCNSS_qcom_cfg_setchain.ini /mnt/vendor/persist/WCNSS_qcom_cfg.ini
start service_setChain
on property:persist.vendor.oem.wifi.chain=2
copy /vendor/etc/wifi/WCNSS_qcom_cfg_setchain.ini /mnt/vendor/persist/qca6390/WCNSS_qcom_cfg.ini
copy /vendor/etc/wifi/WCNSS_qcom_cfg_setchain.ini /mnt/vendor/persist/WCNSS_qcom_cfg.ini
start service_setChain
on property:persist.vendor.oem.wifi.chain=0
copy /vendor/etc/wifi/qca6390/WCNSS_qcom_cfg.ini /mnt/vendor/persist/qca6390/WCNSS_qcom_cfg.ini
copy /vendor/etc/wifi/WCNSS_qcom_cfg.ini /mnt/vendor/persist/WCNSS_qcom_cfg.ini
start service_setChain
on property:persist.vendor.oem.wifi.chain=3
copy /vendor/etc/wifi/WCNSS_qcom_cfg_roam.ini /mnt/vendor/persist/qca6390/WCNSS_qcom_cfg.ini
copy /vendor/etc/wifi/WCNSS_qcom_cfg_roam.ini /mnt/vendor/persist/WCNSS_qcom_cfg.ini
service service_setChain /vendor/bin/sh /vendor/bin/wifi_setChain ${persist.vendor.oem.wifi.chain}
class main
user root
@@ -440,13 +571,6 @@ on init
# alex.huang@Connectivity, 2020/04/29, Porting *#8019# function
#ifdef VENDOR_EDIT
service wifisocket /system_ext/bin/diag_system_socket_log -a 181.157.1.200 -p 2500 -r 10000 -c 1
user root
group root system oem_2901
disabled
oneshot
seclabel u:r:logserver:s0
service wifisocket-mdm /system_ext/bin/diag_system_socket_log -a 181.157.1.200 -p 2500 -r 10000 -c 2
user root
group root system oem_2901
@@ -454,13 +578,6 @@ service wifisocket-mdm /system_ext/bin/diag_system_socket_log -a 181.157.1.200 -
oneshot
seclabel u:r:logserver:s0
service wifisocket-stop /system_ext/bin/diag_system_socket_log -k
user root
group root system oem_2901
disabled
oneshot
seclabel u:r:logserver:s0
service wifisocket-mdm-stop /system_ext/bin/diag_system_socket_log -k
user root
group root system oem_2901
@@ -475,14 +592,6 @@ service oemsysd /vendor/bin/oem-system-daemon
disabled
seclabel u:r:ftmdaemon:s0
on property:vendor.service.wifi.socket.enable=1
start oemsysd
start wifisocket
on property:vendor.service.wifi.socket.enable=0
stop oemsysd
start wifisocket-stop
on property:vendor.service.wifi.socket.mdm.enable=1
start oemsysd
start wifisocket-mdm
@@ -490,6 +599,64 @@ on property:vendor.service.wifi.socket.mdm.enable=1
on property:vendor.service.wifi.socket.mdm.enable=0
stop oemsysd
start wifisocket-mdm-stop
service wifisocket /vendor/bin/diag_socket_log -a 181.157.1.200 -p 2500 -r 10000 -c 1
user root
group root system oem_2901
disabled
oneshot
service wifisocket-stop /vendor/bin/diag_socket_log -k
user root
group root system oem_2901
disabled
oneshot
on property:vendor.service.wifi.socket.enable=1
start oemsysd
on property:vendor.service.wifi.socket.enable=0
stop oemsysd
service wifisocket-lahaina /vendor/bin/diag_socket_log -a 181.157.1.200 -p 2500 -r 10000 -c 1
user root
group root system oem_2901
disabled
oneshot
service wifisocket-lahaina-stop /vendor/bin/diag_socket_log -k
user root
group root system oem_2901
disabled
oneshot
on property:vendor.service.wifi.socket.lahaina.enable=0
stop oemsysd
on property:vendor.service.wifi.socket.lahaina.enable=1
start oemsysd
service wifisocket-nord /system_ext/bin/diag_system_socket_log -a 181.157.1.200 -p 2500 -r 10000 -c 1
user root
group root system oem_2901
disabled
oneshot
seclabel u:r:logserver:s0
service wifisocket-nord-stop /system_ext/bin/diag_system_socket_log -k
user root
group root system oem_2901
disabled
oneshot
seclabel u:r:logserver:s0
on property:vendor.service.wifi.socket.nord.enable=1
start oemsysd
start wifisocket-nord
on property:vendor.service.wifi.socket.nord.enable=0
stop oemsysd
start wifisocket-nord-stop
#endif
service ftmdaemon /system/vendor/bin/ftmdaemon -n
@@ -559,6 +726,19 @@ service rmalikey /system/bin/rm -r /mnt/vendor/op2/.lii
disabled
oneshot
seclabel u:r:vold:s0
service chownalikey /system/bin/chown -R system.system /mnt/vendor/op2/.lii
class core
user root
group root
disabled
oneshot
seclabel u:r:vold:s0
#len.nie@bsp, 2020/11/04. add for dump fingerprint data
on property:gf.debug.dump_path=*
mkdir /sdcard/Android/data/gf_file 0755 system ext_data_rw
#endif
# ken.lin@ASTI, 2019/6/21, add for memplus
@@ -578,30 +758,30 @@ on property:persist.sys.memplus.direct_swappiness=*
#ifdef VENDOR_EDIT
#brandon.zeng@Conn,2020/05/08. add for nfc pnscr tool
service nfctransmitstart /system/bin/sh /system/xbin/nfc_trasmit_start.sh
service nfctransmitstart /vendor/bin/sh /vendor/bin/nfc_trasmit_start.sh
class late_start
user nfc
group nfc
disabled
oneshot
service nfctransmitstop /system/bin/sh /system/xbin/nfc_trasmit_stop.sh
service nfctransmitstop /vendor/bin/sh /vendor/bin/nfc_trasmit_stop.sh
class late_start
user nfc
group nfc
disabled
oneshot
on property:nfc.transmit.start=1
on property:vendor.nfc.transmit.start=1
start nfctransmitstart
on property:nfc.transmit.start=0
on property:vendor.nfc.transmit.start=0
stop nfctransmitstart
on property:nfc.transmit.stop=1
on property:vendor.nfc.transmit.stop=1
start nfctransmitstop
on property:nfc.transmit.stop=0
on property:vendor.nfc.transmit.stop=0
stop nfctransmitstop
#endif
@@ -656,8 +836,17 @@ on property:sys.boot_completed=1
#@bsp Add OTG switch
on property:persist.sys.oem.otg_support=true
write /sys/class/power_supply/usb/otg_switch 1
write /sys/class/oplus_chg/usb/otg_switch 1
on property:persist.sys.oem.otg_support=false
write /sys/class/power_supply/usb/otg_switch 0
write /sys/class/oplus_chg/usb/otg_switch 0
#endif
#ifdef VENDOR_EDIT
on property:persist.vendor.oem.wechat_cameraon=1
write /sys/class/oplus_chg/common/camera_on 1
on property:persist.vendor.oem.wechat_cameraon=0
write /sys/class/oplus_chg/common/camera_on 0
#endif
on property:vendor.sys.op.game=1
@@ -792,6 +981,12 @@ service rmdpshdcp2 /system/bin/rm /mnt/vendor/op2/DPS_hdcp2
seclabel u:r:vold:s0
#endif
on property:vendor.sys.op.disable_ufstw=1
write /sys/devices/platform/soc/1d84000.ufshc/ufstw_lu0/tw_enable 0
on property:vendor.sys.op.disable_ufstw=0
write /sys/devices/platform/soc/1d84000.ufshc/ufstw_lu0/tw_enable 1
service filebuilderd /system_ext/bin/filebuilderd
class core
user root
@@ -828,6 +1023,118 @@ service KmInstallKeybox20809 /vendor/bin/KmInstallKeybox /mnt/vendor/op2/.lii/ke
oneshot
seclabel u:r:keybox_oem:s0
# ifdef VENDOR_EDIT
# yanamadala.ragini@SYSTEM, 2018/7/23, [AVICII-2558] Add for keymaster key
service KmInstallKeybox20801 /vendor/bin/KmInstallKeybox /mnt/vendor/op2/.lii/keyboxes_ciphered.xml Nord_Key_Attest_00 true
class core
setenv LD_LIBRARY_PATH /vendor/lib64/hw
user system
group root
disabled
oneshot
seclabel u:r:keybox_oem:s0
# yanamadala.ragini@SYSTEM, 2020/11/30, [AN-977] Add for keymaster key
service KmInstallKeybox20828 /vendor/bin/KmInstallKeybox /mnt/vendor/op2/.lii/keyboxes_ciphered.xml OnePlus9R_Key_Attest_0 true
class core
setenv LD_LIBRARY_PATH /vendor/lib64/hw
user system
group root
disabled
oneshot
seclabel u:r:keybox_oem:s0
# endif
# v-huanouyang@SYSTEM, 2020/10/22 [TFS-20170] Update Google key box for check on Lemonadev
service KmInstallKeyboxLemonadev /vendor/bin/KmInstallKeybox /mnt/vendor/op2/.lii/keyboxes_ciphered.xml OnePlus9VZW_Key_Attest_0 true
class core
setenv LD_LIBRARY_PATH /vendor/lib64/hw
user system
group root
disabled
oneshot
seclabel u:r:keybox_oem:s0
# v-huanouyang@SYSTEM, 2020/10/22 [TFS-20170] Update Google key box for check on Lemonadet
service KmInstallKeyboxLemonadet /vendor/bin/KmInstallKeybox /mnt/vendor/op2/.lii/keyboxes_ciphered.xml OnePlus9TMO_Key_Attest_0 true
class core
setenv LD_LIBRARY_PATH /vendor/lib64/hw
user system
group root
disabled
oneshot
seclabel u:r:keybox_oem:s0
# v-huanouyang@SYSTEM, 2020/10/22 [TFS-20170] Update Google key box for check on Lemonade
service KmInstallKeyboxLemonade /vendor/bin/KmInstallKeybox /mnt/vendor/op2/.lii/keyboxes_ciphered.xml OnePlus9_Key_Attest_0 true
class core
setenv LD_LIBRARY_PATH /vendor/lib64/hw
user system
group root
disabled
oneshot
seclabel u:r:keybox_oem:s0
# v-huanouyang@SYSTEM, 2020/10/22 [TFS-20170] Update Google key box for check on Lemonadep
service KmInstallKeyboxLemonadep /vendor/bin/KmInstallKeybox /mnt/vendor/op2/.lii/keyboxes_ciphered.xml OnePlus9Pro_Key_Attest_0 true
class core
setenv LD_LIBRARY_PATH /vendor/lib64/hw
user system
group root
disabled
oneshot
seclabel u:r:keybox_oem:s0
# v-huanouyang@SYSTEM, 2020/10/22 [TFS-20170] Update Google key box for check on Lemonadept
service KmInstallKeyboxLemonadept /vendor/bin/KmInstallKeybox /mnt/vendor/op2/.lii/keyboxes_ciphered.xml OnePlus9ProTMO_Key_Attest_0 true
class core
setenv LD_LIBRARY_PATH /vendor/lib64/hw
user system
group root
disabled
oneshot
seclabel u:r:keybox_oem:s0
# braden.liu@SYSTEM, 2021/01/05 Update Google key box for check on Dre
service KmInstallKeyboxDre8t /vendor/bin/KmInstallKeybox /mnt/vendor/op2/.lii/keyboxes_ciphered.xml OnePlusN200TMO_Key_Attest_0 true
class core
setenv LD_LIBRARY_PATH /vendor/lib64/hw
user system
group root
disabled
oneshot
seclabel u:r:keybox_oem:s0
# braden.liu@SYSTEM, 2021/01/05 Update Google key box for check on Dre
service KmInstallKeyboxDre8m /vendor/bin/KmInstallKeybox /mnt/vendor/op2/.lii/keyboxes_ciphered.xml OnePlusN200METRO_Key_Attest_0 true
class core
setenv LD_LIBRARY_PATH /vendor/lib64/hw
user system
group root
disabled
oneshot
seclabel u:r:keybox_oem:s0
# braden.liu@SYSTEM, 2021/01/05 Update Google key box for check on Dre
service KmInstallKeyboxDre9 /vendor/bin/KmInstallKeybox /mnt/vendor/op2/.lii/keyboxes_ciphered.xml OnePlusN200_Key_Attest_0 true
class core
setenv LD_LIBRARY_PATH /vendor/lib64/hw
user system
group root
disabled
oneshot
seclabel u:r:keybox_oem:s0
# dongbin@WT_ODM_SYSTEM, 2021/01/27 Update Google key box for check on ebba
service KmInstallKeybox20813 /vendor/bin/KmInstallKeybox /mnt/vendor/op2/.lii/keyboxes_ciphered.xml OnePlusNordCE_Key_Attest_00 true
class core
setenv LD_LIBRARY_PATH /vendor/lib64/hw
user system
group root
disabled
oneshot
seclabel u:r:keybox_oem:s0
service keyboxxml /system/bin/mv /sdcard/.lii /mnt/vendor/op2/
class core
user root
@@ -856,13 +1163,27 @@ service chmodkeyboxxmldir /system/bin/chmod 777 -R /mnt/vendor/op2/.lii
#alden.zhang@OPTI, 2020/7/18. [OSP-8064], add for IOLIMIT
on property:persist.sys.iolimiter.enable=true
write /proc/iolimit_enable 1
write /sys/module/oneplus_healthinfo/parameters/ohm_action_ctrl Y
chown system system /sys/module/oneplus_healthinfo
chown system system /sys/module/oneplus_healthinfo/parameters
chown system system /sys/module/oneplus_healthinfo/parameters/ohm_iowait_h_ms
chown system system /sys/module/oneplus_healthinfo/parameters/ohm_iowait_l_ms
chown system system /sys/module/oneplus_healthinfo/parameters/ohm_read_thresh
chown system system /sys/module/oneplus_healthinfo/parameters/ohm_write_thresh
chown system system /sys/module/oneplus_healthinfo/parameters/ohm_sample_time
chown system system /sys/module/oneplus_healthinfo/parameters/ohm_action_ctrl
chown system system /proc/iolimit_enable
write /sys/module/oneplus_healthinfo/parameters/ohm_action_ctrl Y
chown system system /sys/module/oneplus_healthinfo
chown system system /sys/module/oneplus_healthinfo/parameters
chown system system /sys/module/oneplus_healthinfo/parameters/ohm_iowait_h_ms
chown system system /sys/module/oneplus_healthinfo/parameters/ohm_iowait_l_ms
chown system system /sys/module/oneplus_healthinfo/parameters/ohm_read_thresh
chown system system /sys/module/oneplus_healthinfo/parameters/ohm_write_thresh
chown system system /sys/module/oneplus_healthinfo/parameters/ohm_sample_time
chown system system /sys/module/oneplus_healthinfo/parameters/ohm_action_ctrl
chown system system /proc/iolimit_enable
#huangwen.chen#OPTI, 2020/9/16, [OPTI-43], add for zram writeback
on property:persist.vendor.oem.dump=0
setprop persist.vendor.zwriteback.backup 0
on property:persist.vendor.oem.dump=1
setprop persist.vendor.zwriteback.backup 1
#ifdef ODM_WT_EDIT Kai.Cao@ODM_WT.NW.SIM,BILLIE8-6704, 2020/07/13,Support single and dual card solutions
on property:ro.boot.rf_version=0 && property:ro.boot.project_codename=billie8
setprop persist.radio.multisim.config "ssss"
on property:ro.boot.rf_version=0 && property:ro.boot.project_codename=billie8t
setprop persist.radio.multisim.config "ssss"
#endif

View File

@@ -1,37 +0,0 @@
##################################################################################
### VENDOR_EDIT, OEM All rights reserved.
###
### File: - init.oem.sec.rc
### Author: tomcheng
### all oem sec triger & init are here
### ------------------------------- Revision History: ----------------------------
### <author> <data> <version> <desc>
### ------------------------------------------------------------------------------
### tomcheng@core 2020-08-17 Workaround for ISTRACKING-73861
##################################################################################
on post-fs
rm /mnt/vendor/op2/sec/enroll/1/dmesg.txt
rm /mnt/vendor/op2/sec/enroll/2/dmesg.txt
rm /mnt/vendor/op2/sec/enroll/3/dmesg.txt
rm /mnt/vendor/op2/sec/enroll/4/dmesg.txt
rm /mnt/vendor/op2/sec/enroll/1/logcat.txt
rm /mnt/vendor/op2/sec/enroll/2/logcat.txt
rm /mnt/vendor/op2/sec/enroll/3/logcat.txt
rm /mnt/vendor/op2/sec/enroll/4/logcat.txt
rm /mnt/vendor/op2/sec/pass/1/dmesg.txt
rm /mnt/vendor/op2/sec/pass/2/dmesg.txt
rm /mnt/vendor/op2/sec/pass/3/dmesg.txt
rm /mnt/vendor/op2/sec/pass/4/dmesg.txt
rm /mnt/vendor/op2/sec/pass/1/logcat.txt
rm /mnt/vendor/op2/sec/pass/2/logcat.txt
rm /mnt/vendor/op2/sec/pass/3/logcat.txt
rm /mnt/vendor/op2/sec/pass/4/logcat.txt
rm /mnt/vendor/op2/sec/fail/1/dmesg.txt
rm /mnt/vendor/op2/sec/fail/2/dmesg.txt
rm /mnt/vendor/op2/sec/fail/3/dmesg.txt
rm /mnt/vendor/op2/sec/fail/4/dmesg.txt
rm /mnt/vendor/op2/sec/fail/1/logcat.txt
rm /mnt/vendor/op2/sec/fail/2/logcat.txt
rm /mnt/vendor/op2/sec/fail/3/logcat.txt
rm /mnt/vendor/op2/sec/fail/4/logcat.txt

View File

@@ -34,6 +34,7 @@ import /vendor/etc/init/hw/init.oem.sec.rc
import /vendor/etc/init/hw/init.qcom.usb.rc
import /vendor/etc/init/hw/init.target.rc
import /vendor/etc/init/hw/init.qcom.factory.rc
import /vendor/etc/init/hw/init.qcom.test.rc
on early-init
mount debugfs debugfs /sys/kernel/debug
@@ -60,6 +61,9 @@ on early-init
chown system graphics /sys/kernel/debug/sync/sw_sync
chmod 0666 /sys/kernel/debug/sync/sw_sync
#Disable UFS clock scaling
write /sys/bus/platform/devices/1d84000.ufshc/clkscale_enable 0
chown root system /dev/kmsg
chmod 0620 /dev/kmsg
# Load WIGIG platform driver
@@ -90,11 +94,28 @@ on early-boot
write /sys/devices/virtual/npu/msm_npu/boot 1
write /sys/devices/virtual/cvp/cvp/boot 1
exec u:r:vendor_qti_init_shell:s0 -- /vendor/bin/init.qcom.early_boot.sh
exec u:r:vendor_qti_init_shell:s0 -- /vendor/bin/init.qti.can.sh
setprop ro.sf.lcd_density ${vendor.display.lcd_density}
chown system system /mnt/vendor/persist/data/pfm/licenses
chmod 0775 /mnt/vendor/persist/data/pfm/licenses
on property:sys.boot_completed=1
copy /vendor/etc/OnePlus_QC_LTM_Commercial_SM7225_2021_03_24.pfm /mnt/vendor/persist/data/pfm/licenses/OnePlus_QC_LTM_Commercial_SM7225_2021_03_24.pfm
chmod 0600 /mnt/vendor/persist/data/pfm/licenses/OnePlus_QC_LTM_Commercial_SM7225_2021_03_24.pfm
chown system system /mnt/vendor/persist/data/pfm/licenses/OnePlus_QC_LTM_Commercial_SM7225_2021_03_24.pfm
chown system system /mnt/vendor/persist/data/pfm/licenses/store_0
chmod 0664 /mnt/vendor/persist/data/pfm/licenses/store_0
chown system system /mnt/vendor/persist/data/pfm/licenses/store_1
chmod 0664 /mnt/vendor/persist/data/pfm/licenses/store_1
chown system system /mnt/vendor/persist/data/pfm/licenses/store_2
chmod 0664 /mnt/vendor/persist/data/pfm/licenses/store_2
chown system system /mnt/vendor/persist/data/pfm/licenses/store_3
chmod 0664 /mnt/vendor/persist/data/pfm/licenses/store_3
chown system system /mnt/vendor/persist/data/pfm/licenses/store_4
chmod 0664 /mnt/vendor/persist/data/pfm/licenses/store_4
on boot
chown bluetooth bluetooth /sys/module/bluetooth_power/parameters/power
chown bluetooth net_bt /sys/class/rfkill/rfkill0/type
@@ -150,9 +171,6 @@ on boot
setprop ro.telephony.call_ring.multiple false
#enable camera read sensors data
setprop persist.camera.gyro.disable 0
#Remove SUID bit for iproute2 ip tool
chmod 0755 /system/bin/ip
@@ -478,6 +496,8 @@ on property:persist.vendor.sys.rawdump_copy=0
on property:sys.boot_completed=1
write /dev/kmsg "Boot completed "
#Enable UFS clock scaling back
write /sys/bus/platform/devices/1d84000.ufshc/clkscale_enable 1
#Reset read ahead for dm-0 and dm-1 to 512kb
write /sys/block/dm-0/queue/read_ahead_kb 512
write /sys/block/dm-1/queue/read_ahead_kb 512
@@ -498,9 +518,6 @@ on property:persist.debug.trace=1
mkdir /data/core 0777 root root
write /proc/sys/kernel/core_pattern "/data/core/%E.%p.%e"
on property:init.svc.wpa_supplicant=stopped
stop dhcpcd
on property:vendor.media.target.version=*
setprop vendor.sys.media.target.version ${vendor.media.target.version}
@@ -516,15 +533,13 @@ service qcom-c_core-sh /vendor/bin/init.qcom.class_core.sh
service qcom-c_main-sh /vendor/bin/init.class_main.sh
class main
user root
group root system
oneshot
on property:vold.decrypt=trigger_restart_framework
start qcom-c_main-sh
start wcnss-service
on property:persist.env.fastdorm.enabled=true
setprop persist.radio.data_no_toggle 1
service vendor.qrtr-ns /vendor/bin/qrtr-ns -f
class core
user vendor_qrtr
@@ -550,6 +565,20 @@ on property:ro.data.large_tcp_window_size=true
on property:sys.sysctl.tcp_adv_win_scale=*
write /proc/sys/net/ipv4/tcp_adv_win_scale ${sys.sysctl.tcp_adv_win_scale}
service wpa_supplicant /vendor/bin/hw/wpa_supplicant \
-O/data/vendor/wifi/wpa/sockets -puse_p2p_group_interface=1 -dd \
-g@android:vendor_wpa_wlan0
# we will start as root and wpa_supplicant will switch to user wifi
# after setting up the capabilities required for WEXT
# user wifi
# group wifi inet keystore
interface android.hardware.wifi.supplicant@1.0::ISupplicant default
interface android.hardware.wifi.supplicant@1.1::ISupplicant default
class main
socket vendor_wpa_wlan0 dgram 660 wifi wifi
disabled
oneshot
service vendor.wigig_supplicant /vendor/bin/hw/wpa_supplicant \
-iwigig0 -Dnl80211 -c/data/vendor/wifi/wigig_supplicant.conf \
-m/data/vendor/wifi/wigig_p2p_supplicant.conf \
@@ -574,6 +603,7 @@ service vendor.move_wifi_data /system/bin/move_wifi_data.sh
oneshot
service wigignpt /vendor/bin/wigignpt
interface vendor.qti.hardware.wigig.netperftuner@1.0::INetPerfTuner default
class hal
socket wigig/wigignpt stream 660 system wifi
user system
@@ -691,23 +721,16 @@ service loc_launcher /system/vendor/bin/loc_launcher
user gps
group gps
service drmdiag /system/vendor/bin/drmdiagapp
class late_start
user root
disabled
oneshot
on property:drmdiag.load=1
start drmdiag
on property:drmdiag.load=0
stop drmdiag
service qcom-sh /vendor/bin/init.qcom.sh
class late_start
user root
group root system radio
oneshot
# Remove since is deprecated but throws AVC denial.
# service crashdata-sh /vendor/bin/init.qcom.crashdata.sh
# class late_start
# user root
# oneshot
service qcom-post-boot /vendor/bin/init.qcom.post_boot.sh
class late_start
@@ -716,6 +739,27 @@ service qcom-post-boot /vendor/bin/init.qcom.post_boot.sh
disabled
oneshot
#zhangyanbin@ODM_WT.AD.system,20210127,remove the 'qti-testscripts', it's just for test start.
#service qti-testscripts /system/bin/sh /product/etc/init.qcom.testscripts.sh
# class late_start
# user root
# disabled
# oneshot
# seclabel u:r:qti-testscripts:s0
#zhangyanbin@ODM_WT.AD.system,20210127,remove the 'qti-testscripts', it's just for test end.
service wifi-sdio-on /vendor/bin/init.qcom.sdio.sh
class late_start
group wifi inet
disabled
oneshot
service wifi-crda /vendor/bin/init.crda.sh
class late_start
user root
disabled
oneshot
on property:sys.boot_completed=1
start qcom-post-boot
start qti-testscripts
@@ -741,14 +785,6 @@ service hostapd_fst /vendor/bin/hw/hostapd -dd -g /data/vendor/wifi/hostapd/glob
disabled
oneshot
service ims_regmanager /system/vendor/bin/exe-ims-regmanagerprocessnative
class late_start
group net_bt_admin inet radio wifi
disabled
on property:persist.ims.regmanager.mode=1
start ims_regmanager
on property:ro.data.large_tcp_window_size=true
# Adjust socket buffer to enlarge TCP receive window for high bandwidth (e.g. DO-RevB)
write /proc/sys/net/ipv4/tcp_adv_win_scale 2
@@ -791,32 +827,6 @@ service vendor.ssr_diag /system/vendor/bin/ssr_diag
group system
disabled
service hvdcp /system/bin/hvdcp
class core
user root
disabled
on property:persist.usb.hvdcp.detect=true
start hvdcp
on property:persist.usb.hvdcp.detect=false
stop hvdcp
service charger_monitor /system/bin/charger_monitor
user root
group root
disabled
service qbcharger /charger -m 1
disabled
oneshot
on property:sys.qbcharger.enable=true
start qbcharger
on property:sys.qbcharger.enable=false
stop qbcharger
# VENDOR_EDIT BruceChenYC, 2020/06/09, need to add -c to clean mask before start command
service diag_mdlog_start /system/vendor/bin/diag_mdlog -c -u
class late_start
@@ -938,17 +948,6 @@ service poweroffhandler /system/vendor/bin/poweroffhandler
disabled
oneshot
# Logcat dump daemon, dumps logs to logdump partition
service logdumpd /system/bin/logcat -b all -v threadtime -D -w /dev/block/bootdevice/by-name/logdump
class core
writepid /dev/cpuset/system-background/tasks
seclabel u:r:logdumpd:s0
disabled
# Logdumpd is enabled only for userdebug non-perf build
on property:ro.logdumpd.enabled=1
start logdumpd
service time_daemon /vendor/bin/time_daemon
class main
user system

View File

@@ -104,6 +104,12 @@ on boot && property:vendor.wireless_charge.enable=true
on charger && property:vendor.wireless_charge.enable=true
start wlchgd
on init && property:ro.build.type=userdebug
exec u:r:vendor-qti-testscripts:s0 -- /vendor/bin/sh /vendor/bin/init.qti.usb.debug.sh
on init && property:ro.build.type=eng
exec u:r:vendor-qti-testscripts:s0 -- /vendor/bin/sh /vendor/bin/init.qti.usb.debug.sh
on boot
write /sys/class/android_usb/android0/iSerial ${ro.serialno}
mount configfs none /config
@@ -174,6 +180,11 @@ on boot
write /config/usb_gadget/g2/strings/0x409/product ${vendor.usb.product_string}
#setprop sys.usb.config ${persist.vendor.usb.config}
setprop sys.usb.configfs 1
trigger set_serialnumber
on set_serialnumber && property:ro.vendor.factory_mode=1
write /config/usb_gadget/g1/strings/0x409/serialnumber "0123456789ABCDEF"
write /config/usb_gadget/g2/strings/0x409/serialnumber "0123456789ABCDEF"
on boot && property:vendor.usb.use_ffs_mtp=1
mkdir /config/usb_gadget/g1/functions/ffs.mtp
@@ -183,8 +194,8 @@ on boot && property:vendor.usb.use_ffs_mtp=1
mkdir /dev/usb-ffs/ptp 0770 mtp mtp
mount functionfs ptp /dev/usb-ffs/ptp rmode=0770,fmode=0660,uid=1024,gid=1024,no_disconnect=1
#on property:persist.vendor.usb.config=*
# setprop persist.sys.usb.config ${persist.vendor.usb.config}
on property:persist.vendor.usb.config=* && property:ro.vendor.factory_mode=1
setprop persist.sys.usb.config ${persist.vendor.usb.config}
#BSP add for 5G diag port
on property:persist.vendor.sdx50m.online=*
@@ -257,7 +268,7 @@ on property:sys.usb.config=diag,adb && property:sys.usb.configfs=1
start adbd
on property:sys.usb.ffs.ready=1 && property:sys.usb.config=diag,adb && property:sys.usb.configfs=1
write /config/usb_gadget/g1/configs/b.1/strings/0x409/configuration "diag_mdm_diag_adb"
write /config/usb_gadget/g1/configs/b.1/strings/0x409/configuration "diag_adb"
rm /config/usb_gadget/g1/configs/b.1/f1
rm /config/usb_gadget/g1/configs/b.1/f2
rm /config/usb_gadget/g1/configs/b.1/f3
@@ -268,10 +279,9 @@ on property:sys.usb.ffs.ready=1 && property:sys.usb.config=diag,adb && property:
rm /config/usb_gadget/g1/configs/b.1/f8
rm /config/usb_gadget/g1/configs/b.1/f9
write /config/usb_gadget/g1/idVendor 0x05C6
write /config/usb_gadget/g1/idProduct 0x676D #VENDOR_EDIT PID for 5G
symlink /config/usb_gadget/g1/functions/${vendor.usb.diag.func.name}.diag_mdm /config/usb_gadget/g1/configs/b.1/f1
symlink /config/usb_gadget/g1/functions/${vendor.usb.diag.func.name}.diag /config/usb_gadget/g1/configs/b.1/f2
symlink /config/usb_gadget/g1/functions/ffs.adb /config/usb_gadget/g1/configs/b.1/f3
write /config/usb_gadget/g1/idProduct 0x676C
symlink /config/usb_gadget/g1/functions/${vendor.usb.diag.func.name}.diag /config/usb_gadget/g1/configs/b.1/f1
symlink /config/usb_gadget/g1/functions/ffs.adb /config/usb_gadget/g1/configs/b.1/f2
write /config/usb_gadget/g1/UDC ${sys.usb.controller}
setprop sys.usb.state ${sys.usb.config}
@@ -337,6 +347,30 @@ on property:sys.usb.config=diag,serial_cdev,rmnet && property:sys.usb.configfs=1
write /config/usb_gadget/g1/UDC ${sys.usb.controller}
setprop sys.usb.state ${sys.usb.config}
on property:sys.usb.config=diag,serial_cdev,serial_cdev_nmea,adb && property:sys.usb.configfs=1
start adbd
on property:sys.usb.ffs.ready=1 && property:sys.usb.config=diag,serial_cdev,serial_cdev_nmea,adb && property:sys.usb.configfs=1
write /config/usb_gadget/g1/configs/b.1/strings/0x409/configuration "diag_dun_nmea_adb"
rm /config/usb_gadget/g1/configs/b.1/f1
rm /config/usb_gadget/g1/configs/b.1/f2
rm /config/usb_gadget/g1/configs/b.1/f3
rm /config/usb_gadget/g1/configs/b.1/f4
rm /config/usb_gadget/g1/configs/b.1/f5
rm /config/usb_gadget/g1/configs/b.1/f6
rm /config/usb_gadget/g1/configs/b.1/f7
rm /config/usb_gadget/g1/configs/b.1/f8
rm /config/usb_gadget/g1/configs/b.1/f9
write /config/usb_gadget/g1/idVendor 0x05C6
write /config/usb_gadget/g1/idProduct 0x9020
write /config/usb_gadget/g1/functions/diag.diag/pid 0x9020
symlink /config/usb_gadget/g1/functions/${vendor.usb.diag.func.name}.diag /config/usb_gadget/g1/configs/b.1/f1
symlink /config/usb_gadget/g1/functions/ffs.adb /config/usb_gadget/g1/configs/b.1/f2
symlink /config/usb_gadget/g1/functions/cser.dun.0 /config/usb_gadget/g1/configs/b.1/f3
symlink /config/usb_gadget/g1/functions/cser.nmea.1 /config/usb_gadget/g1/configs/b.1/f4
write /config/usb_gadget/g1/UDC ${sys.usb.controller}
setprop sys.usb.state ${sys.usb.config}
on property:vendor.usb.tethering=true
write /sys/class/net/rndis0/queues/rx-0/rps_cpus ${vendor.usb.rps_mask}
@@ -702,7 +736,7 @@ on property:sys.usb.config=rndis,diag,qdss && property:sys.usb.configfs=1
symlink /config/usb_gadget/g1/functions/${vendor.usb.diag.func.name}.diag /config/usb_gadget/g1/configs/b.1/f2
symlink /config/usb_gadget/g1/functions/qdss.${vendor.usb.qdss.inst.name} /config/usb_gadget/g1/configs/b.1/f3
write /config/usb_gadget/g1/UDC ${sys.usb.controller}
setprop sys.usb.state ${sys.usb.config}
setprop sys.usb.state rndis
on property:sys.usb.config=rndis,diag,qdss,adb && property:sys.usb.configfs=1
start adbd
@@ -726,7 +760,7 @@ on property:sys.usb.ffs.ready=1 && property:sys.usb.config=rndis,diag,qdss,adb &
symlink /config/usb_gadget/g1/functions/qdss.${vendor.usb.qdss.inst.name} /config/usb_gadget/g1/configs/b.1/f3
symlink /config/usb_gadget/g1/functions/ffs.adb /config/usb_gadget/g1/configs/b.1/f4
write /config/usb_gadget/g1/UDC ${sys.usb.controller}
setprop sys.usb.state ${sys.usb.config}
setprop sys.usb.state rndis,adb
on property:sys.usb.config=ncm && property:sys.usb.configfs=1
write /config/usb_gadget/g1/configs/b.1/strings/0x409/configuration "ncm"

View File

@@ -1,4 +1,3 @@
# Copyright (c) 2018-2020, The Linux Foundation. All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
@@ -27,13 +26,14 @@
# IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#
#
# kevin@system, 2019/06/08, add carrier rc
# kevin@system, 2020/09/03, add carrier rc
import /vendor/etc/init/hw/init.oem.carrier.rc
on early-init
exec u:r:vendor_modprobe:s0 -- /vendor/bin/modprobe -a -d /vendor/lib/modules audio_q6_pdr audio_q6_notifier audio_snd_event audio_apr audio_adsp_loader audio_q6 audio_native audio_usf audio_pinctrl_wcd audio_pinctrl_lpi audio_swr audio_platform audio_hdmi audio_stub audio_wcd_core audio_wsa881x audio_bolero_cdc audio_wsa_macro audio_va_macro audio_rx_macro audio_tx_macro audio_wcd938x audio_wcd938x_slave audio_tfa9894 audio_machine_kona
exec u:r:vendor_modprobe:s0 -- /vendor/bin/modprobe -a -d /vendor/lib/modules audio_q6_pdr audio_q6_notifier audio_snd_event audio_apr audio_adsp_loader audio_q6 audio_native audio_usf audio_pinctrl_lpi audio_swr audio_platform audio_hdmi audio_stub audio_wcd_core audio_wsa881x audio_wsa883x audio_bolero_cdc audio_wsa_macro audio_va_macro audio_rx_macro audio_tx_macro audio_wcd938x audio_wcd938x_slave audio_wcd937x audio_wcd937x_slave audio_machine_lito
write /proc/sys/kernel/sched_boost 1
on early-init
exec u:r:vendor_modprobe:s0 -- /vendor/bin/modprobe -a -d /vendor/lib/modules audio_tfa9894
on init
write /dev/stune/foreground/schedtune.sched_boost_no_override 1
write /dev/stune/top-app/schedtune.sched_boost_no_override 1
@@ -42,60 +42,50 @@ on init
write /dev/stune/system-background/schedtune.colocate 0
write /dev/stune/foreground/schedtune.colocate 0
write /dev/stune/top-app/schedtune.colocate 1
write /proc/restart_level_all 0
wait /dev/block/platform/soc/1d84000.ufshc
symlink /dev/block/platform/soc/1d84000.ufshc /dev/block/bootdevice
chown system system /sys/devices/platform/soc/1d84000.ufshc/auto_hibern8
chmod 0660 /sys/devices/platform/soc/1d84000.ufshc/auto_hibern8
start logd
#Moving to init as this is needed for qseecomd
wait /dev/block/platform/soc/${ro.boot.bootdevice}
symlink /dev/block/platform/soc/${ro.boot.bootdevice} /dev/block/bootdevice
start vendor.qseecomd
start keymaster-4-0
on early-fs
start vold
on fs
start hwservicemanager
mkdir /mnt/vendor/spunvm 0660 system system
mkdir /mnt/vendor/op1 0660 system system
#RuiLi@ODM_WT.ENGINEERINGMODE, 2021/01/27 *#911# can't creat file in op2
mkdir /mnt/vendor/op2 0660 system system
mkdir /mnt/vendor/cust1 0660 system system
mkdir /mnt/vendor/cust2 0660 system system
mkdir /mnt/vendor/my_cota 0660 system system
mount_all /vendor/etc/fstab.qcom --early
#ifdef VENDOR_EDIT
mount_all --early
# ajinath@SYSTEM, 2020/01/16, [OSP-2080] Recovery boot reason
wait /mnt/vendor/op2
chown system system /mnt/vendor/op2
mkdir /mnt/vendor/op2/rbr_log 0770 system system
setprop vendor.oem.rbr.log.clean 1
#endif /* VENDOR_EDIT */
chown root system /mnt/vendor/persist
chmod 0771 /mnt/vendor/persist
restorecon_recursive /mnt/vendor/persist
mkdir /mnt/vendor/persist/data 0700 system system
#RuiLi@ODM_WT.ENGINEERINGMODE, 2021/01/27 *#911# can't creat file in op2
wait /mnt/vendor/op2
chown system system /mnt/vendor/op2
#sam.li@SYSTEM,add for cota
mkdir /mnt/vendor/my_cota 0660 system system
on post-fs
# set RLIMIT_MEMLOCK to 64MB
setrlimit 8 67108864 67108864
write /dev/ipa 1
# yanbin.zhang@ODM_WT.AD.Aging 2020/12/21, add for engineeringmode app.
mkdir /mnt/vendor/op2/recovery 0770 root system
on late-fs
wait_for_prop hwservicemanager.ready true
exec_start wait_for_keymaster
mount_all /vendor/etc/fstab.qcom --late
#ifdef VENDOR_EDIT
# sam.li@SYSTEM,add for mountting reserve.img
#mount_reserve ext4 loop@/data/reserve/reserve.img /system/reserve ro context=u:object_r:system_file:s0
#endif /*VENDOR_EDIT*/
mount_all --late
# dongbin@ODM_WT_SYSTEM, 20210106 Mount reserve.img
mount_reserve ext4 loop@/data/reserve/reserve.img /system/reserve ro context=u:object_r:system_file:s0
on post-fs-data
mkdir /vendor/data/tombstones 0771 system system
# Enable WLAN cold boot calibration
write /sys/devices/platform/soc/b0000000.qcom,cnss-qca6390/fs_ready 1
#ifdef VENDOR_EDIT
# sam.li@SYSTEM,add for creatting /data/reserve-lib
mkdir /data/reserve-lib 0775 system system
#endif /*VENDOR_EDIT*/
on early-boot
start vendor.sensors
@@ -110,60 +100,16 @@ on boot
chown cameraserver cameraserver /dev/cpuset/camera-daemon
chown cameraserver cameraserver /dev/cpuset/camera-daemon/tasks
chmod 0660 /dev/cpuset/camera-daemon/tasks
#USB controller configuration
#USB controller configuration
setprop vendor.usb.rndis.func.name "gsi"
setprop vendor.usb.rmnet.func.name "gsi"
setprop vendor.usb.rmnet.inst.name "rmnet"
setprop vendor.usb.dpl.inst.name "dpl"
setprop vendor.usb.qdss.inst.name "qdss"
setprop vendor.usb.qdss.inst.name "qdss_mdm"
setprop vendor.usb.controller a600000.dwc3
#ifdef VENDOR_EDIT
#Load WLAN driver
#exec_background u:r:vendor_modprobe:s0 -- /vendor/bin/modprobe -a -d /vendor/lib/modules/ qca_cld3_qca6390 qca_cld3_qca6490
#endif
#liuhaituo@MM.Audio, 2019/6/17, add for dump audio related codec
chmod 0644 /d/regmap/0-0034/registers
chmod 0644 /d/regmap/0-0035/registers
chmod 0644 /d/regmap/0-0042/registers
#display add 2018/10/19 @lichao_display
chmod 0666 /sys/class/drm/card0-DSI-1/SRGB
chmod 0666 /sys/class/drm/card0-DSI-1/DCI_P3
chmod 0666 /sys/class/drm/card0-DSI-1/hbm
chmod 0666 /sys/class/drm/card0-DSI-1/aod
chmod 0666 /sys/class/drm/card0-DSI-1/night_mode
chmod 0666 /sys/class/drm/card0-DSI-1/panel_serial_number
chmod 0666 /sys/class/drm/card0-DSI-1/oneplus_mode
chmod 0666 /sys/class/drm/card0-DSI-1/adaption_mode
chmod 0666 /sys/class/drm/card0-DSI-1/notify_fppress
chmod 0666 /sys/class/drm/card0-DSI-1/dim_alpha
chmod 0666 /sys/class/drm/card0-DSI-1/notify_dim
chmod 0666 /sys/class/drm/card0-DSI-1/notify_aod
chmod 0666 /sys/class/drm/card0-DSI-1/force_screenfp
chmod 0666 /sys/class/drm/card0-DSI-1/native_display_p3_mode
chmod 0666 /sys/class/drm/card0-DSI-1/native_display_wide_color_mode
chmod 0666 /sys/class/drm/card0-DSI-1/native_display_srgb_color_mode
chmod 0666 /sys/class/drm/card0-DSI-1/hbm_brightness
chmod 0666 /sys/devices/platform/soc/soc:qcom,dsi-display-primary/dynamic_dsi_clock
chown radio radio /sys/devices/platform/soc/soc:qcom,dsi-display-primary/dynamic_dsi_clock
chown radio radio /proc/force_reset
chmod 0666 /sys/class/drm/card0-DSI-1/native_display_loading_effect_mode
chmod 0666 /sys/class/drm/card0-DSI-1/native_display_customer_srgb_mode
chmod 0666 /sys/class/drm/card0-DSI-1/native_display_customer_p3_mode
chmod 0666 /sys/class/drm/card0-DSI-1/dimlayer_bl_en
chmod 0666 /sys/class/drm/card0-DSI-1/dither_en
# v-takey.zheng@SYSTEM, 2020/06/03 Add for oemlogkit camera log
chmod 0666 /sys/module/cam_debug_util/parameters/debug_mdl
# ifdef VENDOR_EDIT
# travis.oyang@OPTI, 2020/9/5, Add server for modem sleep info service.
chown system system /proc/rpmh_modem/sleepinfo
chmod 0660 /proc/rpmh_modem/sleepinfo
# endif /* VENDOR_EDIT */
# Reduce default vibrator gain from 0x80 to 0x55,
# also allow gain customization via persistent property
write /sys/class/leds/vibrator/gain ${persist.vendor.vib.gain:-0x55}
#Load WLAN driver
#Fanghua.Zhu@ODM_WT.BSP.CONN.WIFI.107968, 2020/12/26, Remove for AT OPEN_WIFI fail in FTM mode.
# insmod /vendor/lib/modules/qca_cld3_wlan.ko
on property:vendor.display.lcd_density=560
setprop dalvik.vm.heapgrowthlimit 256m
@@ -178,19 +124,10 @@ on property:vendor.usb.controller=*
setprop sys.usb.controller ${vendor.usb.controller}
on charger
trigger fs
start vendor.per_mgr
start vendor.mdm_launcher
start vendor.power_off_alarm
setprop sys.usb.controller a600000.dwc3
setprop vendor.usb.controller a600000.dwc3
setprop sys.usb.configfs 1
service vendor.lowi /vendor/bin/sscrpcd
class core
user system
group system wakelock
capabilities BLOCK_SUSPEND
#pd-mapper
service vendor.pd_mapper /vendor/bin/pd-mapper
class core
@@ -215,15 +152,9 @@ service vendor.mdm_helper /vendor/bin/mdm_helper
group system wakelock
disabled
# ifdef VENDOR_EDIT
# travis.oyang@OPTI, 2020/9/3, Add server for modem sleep info service.
service qmi_master_stats_service /vendor/bin/qmi-framework-tests/qmi_master_stats_service
class main
user system
group system
disabled
service vendor.mdm_launcher /vendor/bin/sh /vendor/bin/init.mdm.sh
class core
oneshot
# endif /* VENDOR_EDIT */
on property:init.svc.vendor.per_mgr=running
start vendor.per_proxy
@@ -231,40 +162,15 @@ on property:init.svc.vendor.per_mgr=running
on property:sys.shutdown.requested=*
stop vendor.per_proxy
#rowan.jia@MM.Display, 2020/02/11, add for ltm licenses
#ifdef/* VENDOR_EDIT */
on property:sys.boot_completed=1
copy /vendor/etc/OnePlus_QC_LTM_Commercial_SM8250_2020_02_07.pfm /mnt/vendor/persist/data/pfm/licenses/1000-1000-no-exp-2013248336.pfm
chmod 0600 /mnt/vendor/persist/data/pfm/licenses/1000-1000-no-exp-2013248336.pfm
chown system system /mnt/vendor/persist/data/pfm/licenses/1000-1000-no-exp-2013248336.pfm
#endif /* VENDOR_EDIT */
on property:vold.decrypt=trigger_restart_framework
start vendor.cnss_diag
#yuquan.fei@yuquan.fei, 2020/07/29, use cnss_diag to grab WiFi log
#ifdef/* VENDOR_EDIT */
#on property:vold.decrypt=trigger_restart_framework
# start vendor.cnss_diag
#endif /* VENDOR_EDIT */
service vendor.cnss_diag /system/vendor/bin/cnss_diag -q -f -b 128 -t HELIUM
service vendor.cnss_diag /system/vendor/bin/cnss_diag -q -f -t HELIUM
class main
user system
group system wifi inet sdcard_rw media_rw diag
disabled
oneshot
#ifdef VENDOR_EDIT
# ajinath@SYSTEM, 2020/01/16, [OSP-2080] Recovery boot reason
on property:vendor.oem.rbr.log.clean=1
rm /mnt/vendor/op2/rbr_log/.last_init_boot_failed.log.busy
rm /mnt/vendor/op2/rbr_log/.last_init_boot_failed.log.done
rm /mnt/vendor/op2/rbr_log/last_init_boot_failed.log
rm /mnt/vendor/op2/rbr_log/last_init_boot_failed.1.log
rm /mnt/vendor/op2/rbr_log/last_system_boot_failed.log
rm /mnt/vendor/op2/rbr_log/crash_recovery_log.txt
setprop vendor.oem.rbr.log.clean 0
#endif /* VENDOR_EDIT */
service dcvs-sh /vendor/bin/init.qti.dcvs.sh
class late_start
user root
@@ -274,12 +180,3 @@ service dcvs-sh /vendor/bin/init.qti.dcvs.sh
on property:vendor.dcvs.prop=1
start dcvs-sh
on property:ro.boot.project_codename=instantnoodle
setprop persist.radio.multisim.config dsds
on property:ro.boot.project_codename=instantnoodlep
setprop persist.radio.multisim.config dsds
on property:ro.boot.project_codename=kebab
setprop persist.radio.multisim.config dsds

View File

@@ -54,6 +54,12 @@ service feature_enabler_client /vendor/bin/xxx
user system
disabled
service vendor.vppservice /vendor/bin/XXX
class hal
user media
group camera system
disabled
service biometrics_face_service /vendor/bin/hw/xxx
class hal
user system
@@ -72,3 +78,13 @@ service vendor.oneplus.cwb-1-0 /vendor/bin/hw/xxx
service vendor.qti.hardware.display.composer /vendor/bin/hw/xxx
oneshot
disabled
service vendor.light-hal-2-0 /vendor/bin/hw/xxx
oneshot
disabled
service vendor.imsdaemon /vendor/bin/imsdaemon
class main
user radio
group radio wifi inet vendor_qti_diag log
disabled