import /vendor/etc/init/hw/init.qcom.rc import /vendor/etc/init/bms_soc.rc import /vendor/etc/init/usb_port.rc import /vendor/etc/init/bms_thermal.rc import /vendor/etc/init/bms_auth.rc import /vendor/etc/init/init.qti.qcv.rc import /system/etc/init/servicemanager.rc import /system/etc/init/hwservicemanager.rc import /system/etc/init/vold.rc import /vendor/etc/init/vendor.qti.hardware.qteeconnector@1.0-service.rc on early-fs # Once metadata has been mounted, we'll need vold to deal with userdata checkpointing start vold on early-init exec u:r:vendor_modprobe:s0 -- /vendor/bin/vendor_modprobe.sh exec u:r:vendor_modprobe:s0 -- /vendor/bin/modprobe -a -d /vendor/lib/modules q6_pdr_dlkm q6_notifier_dlkm snd_event_dlkm apr_dlkm adsp_loader_dlkm q6_dlkm native_dlkm pinctrl_wcd_dlkm pinctrl_lpi_dlkm swr_dlkm platform_dlkm hdmi_dlkm stub_dlkm wcd_core_dlkm wsa883x_dlkm bolero_cdc_dlkm wsa_macro_dlkm va_macro_dlkm rx_macro_dlkm tx_macro_dlkm bt_fm_slim wcd938x_dlkm wcd938x_slave_dlkm wcd937x_dlkm wcd937x_slave_dlkm swr_dmic_dlkm swr_haptics_dlkm tfa98xx_dlkm machine_dlkm radio-i2c-rtc6226-qca cdsprm write /proc/sys/kernel/sched_boost 1 wait /sys/devices/soc0/soc_id # Set the security context of /postinstall if present. restorecon /postinstall # Set init and its forked children's oom_adj. write /proc/1/oom_score_adj -1000 write /proc/sys/kernel/sysrq 0 restorecon /adb_keys mkdir /mnt 0775 root system start ueventd # Run apexd-bootstrap so that APEXes that provide critical libraries # become available. Note that this is executed as exec_start to ensure that # the libraries are available to the processes started after this statement. exec_start apexd-bootstrap # Set up linker config subdirectories based on mount namespaces mkdir /linkerconfig/bootstrap 0755 mkdir /linkerconfig/default 0755 # Generate ld.config.txt for early executed processes exec -- /system/bin/linkerconfig --target /linkerconfig/bootstrap chmod 644 /linkerconfig/bootstrap/ld.config.txt copy /linkerconfig/bootstrap/ld.config.txt /linkerconfig/default/ld.config.txt chmod 644 /linkerconfig/default/ld.config.txt # Mount bootstrap linker configuration as current mount none /linkerconfig/bootstrap /linkerconfig bind rec # Generate linker config based on apex mounted in bootstrap namespace update_linker_config on init #export PATH /sbin:/system/bin export ANDROID_ROOT /system export ANDROID_DATA /data export EXTERNAL_STORAGE /sdcard sysclktz 0 copy /proc/cmdline /dev/urandom copy /default.prop /dev/urandom symlink /system/etc /etc symlink /sys/kernel/debug /d mkdir /config 0500 root root # we should use /dev/graphic/fb0 to display rm /dev/dri write /proc/sys/kernel/printk_level 6 write /proc/sys/kernel/panic_on_oops 1 write /proc/sys/vm/max_map_count 1000000 symlink /system/vendor /vendor chown system system /dev/cpuctl chown system system /dev/cpuctl/tasks mount configfs none /config mkdir /dev/usb-ffs 0770 shell shell mkdir /dev/usb-ffs/adb 0770 shell shell mkdir /config/usb_gadget/g1 0770 shell shell write /config/usb_gadget/g1/idVendor 0x339B write /config/usb_gadget/g1/idProduct 0x107f write /config/usb_gadget/g1/bcdDevice 0x0223 write /config/usb_gadget/g1/bcdUSB 0x0200 mkdir /config/usb_gadget/g1/strings/0x409 0770 mkdir /config/usb_gadget/g1/functions/hid.gs0 chmod 0640 /config/usb_gadget/g1/strings/0x409/serialnumber write /config/usb_gadget/g1/strings/0x409/serialnumber ${ro.serialno} write /config/usb_gadget/g1/strings/0x409/manufacturer ${ro.product.manufacturer} write /config/usb_gadget/g1/strings/0x409/product ${ro.product.model} mkdir /config/usb_gadget/g1/configs/b.1 0777 shell shell mkdir /config/usb_gadget/g1/configs/b.1/strings/0x409 0770 shell shell mkdir /config/usb_gadget/g1/functions/ffs.adb mkdir /config/usb_gadget/g1/functions/acm.gs0 mkdir /config/usb_gadget/g1/functions/mass_storage.usb0 mkdir /config/usb_gadget/g1/configs/b.1 0770 shell shell write /config/usb_gadget/g1/configs/b.1/MaxPower 500 setprop sys.usb.ffs.aio_compat 0 mount functionfs adb /dev/usb-ffs/adb uid=2000,gid=2000 setprop sys.usb.configfs 1 write /sys/module/hw_nve/parameters/nve /dev/block/by-name/nvme #change nve device visit permission wait /dev/nve0 chmod 0770 /dev/nve0 chown root system /dev/nve0 # Mount binderfs mkdir /dev/binderfs mount binder binder /dev/binderfs stats=global chmod 0755 /dev/binderfs # Mount fusectl mount fusectl none /sys/fs/fuse/connections symlink /dev/binderfs/binder /dev/binder symlink /dev/binderfs/hwbinder /dev/hwbinder symlink /dev/binderfs/vndbinder /dev/vndbinder chmod 0666 /dev/binderfs/hwbinder chmod 0666 /dev/binderfs/binder chmod 0666 /dev/binderfs/vndbinder write /sys/kernel/boot_slpi/boot 1 class_start charger start servicemanager start hwservicemanager #init.rc on charger mkdir /data mount f2fs /dev/block/by-name/userdata /data rw mkdir /splash2 mount ext4 /dev/block/bootdevice/by-name/splash2 /splash2 wait rw nosuid nodev context=u:object_r:splash2_data_file:s0 restorecon /splash2 chmod 775 /splash2 chown root system /splash2 symlink /splash2 /log start apexd start qseecomd_recov start qteeconnector-hal-1-0 chmod 0660 /sys/class/hw_power/charger/charge_data/iin_thermal chown system system /sys/class/hw_power/charger/charge_data/iin_thermal chmod 0440 /sys/class/hw_power/charger/charge_data/voltage_sys chown system system /sys/class/hw_power/charger/charge_data/voltage_sys chmod 0660 /sys/class/hw_power/charger/direct_charger_sc/iin_thermal chown system system /sys/class/hw_power/charger/direct_charger_sc/iin_thermal chmod 0660 /sys/class/hw_power/charger/direct_charger/iin_thermal chown system system /sys/class/hw_power/charger/direct_charger/iin_thermal chmod 0664 /sys/class/power_supply/bms/chg_cycle_count chown system system /sys/class/power_supply/bms/chg_cycle_count chmod 0660 /sys/class/power_supply/bms/reset_learned_cc chown system system /sys/class/power_supply/bms/reset_learned_cc chmod 0660 /sys/class/power_supply/bms/voltage_max chown system system /sys/class/power_supply/bms/voltage_max chmod 0660 /sys/class/power_supply/battery/constant_charge_current_max chown system system /sys/class/power_supply/battery/constant_charge_current_max chmod 0660 /sys/class/hw_power/charger/charge_data/adaptor_test chown system system /sys/class/hw_power/charger/charge_data/adaptor_test chmod 0660 /sys/class/hw_power/charger/charge_data/ichg_ratio chown system system /sys/class/hw_power/charger/charge_data/ichg_ratio chmod 0660 /sys/class/hw_power/charger/charge_data/vterm_dec chown system system /sys/class/hw_power/charger/charge_data/vterm_dec chmod 0660 /sys/class/hw_power/interface/enable_charger chown system system /sys/class/hw_power/interface/enable_charger chmod 0660 /sys/class/hw_power/interface/ichg_limit chown system system /sys/class/hw_power/interface/ichg_limit chmod 0660 /sys/class/hw_power/interface/ichg_ratio chown system system /sys/class/hw_power/interface/ichg_ratio chmod 0660 /sys/class/hw_power/interface/vterm_dec chown system system /sys/class/hw_power/interface/vterm_dec chmod 0660 /sys/class/hw_power/interface/enable_debug chown system system /sys/class/hw_power/interface/enable_debug chmod 0222 /sys/class/hw_power/soc_decimal/start chown system system /sys/class/hw_power/soc_decimal/start chmod 0444 /sys/class/hw_power/soc_decimal/soc chown system system /sys/class/hw_power/soc_decimal/soc chmod 0444 /sys/class/hw_power/power_ui/cable_type chown system system /sys/class/hw_power/power_ui/cable_type chmod 0444 /sys/class/hw_power/power_ui/icon_type chown system system /sys/class/hw_power/power_ui/icon_type chmod 0444 /sys/class/hw_power/power_ui/max_power chown system system /sys/class/hw_power/power_ui/max_power chmod 0444 /sys/class/hw_power/power_ui/wl_off_pos chown system system /sys/class/hw_power/power_ui/wl_off_pos chmod 0444 /sys/class/hw_power/power_ui/wl_fan_status chown system system /sys/class/hw_power/power_ui/wl_fan_status chmod 0444 /sys/class/hw_power/power_ui/wl_cover_status chown system system /sys/class/hw_power/power_ui/wl_cover_status chmod 0444 /sys/class/hw_power/power_ui/water_status chown system system /sys/class/hw_power/power_ui/water_status chmod 0444 /sys/class/hw_power/power_ui/heating_status chown system system /sys/class/hw_power/power_ui/heating_status chmod 0660 /sys/class/hw_power/interface/adap_volt chown system system /sys/class/hw_power/interface/adap_volt chmod 0660 /sys/class/hw_power/interface/wl_thermal_ctrl chown system system /sys/class/hw_power/interface/wl_thermal_ctrl chmod 0220 /sys/class/hw_power/interface/iin_thermal chown system system /sys/class/hw_power/interface/iin_thermal chmod 0660 /sys/class/hw_power/interface/ichg_thermal chown system system /sys/class/hw_power/interface/ichg_thermal chmod 0440 /sys/class/hw_power/interface/vbus chown system system /sys/class/hw_power/interface/vbus chmod 0660 /sys/class/hw_power/charger/charge_data/iin_thermal chown system system /sys/class/hw_power/charger/charge_data/iin_thermal chmod 0660 /sys/class/hw_power/charger/direct_charger/iin_thermal chown system system /sys/class/hw_power/charger/direct_charger/iin_thermal chmod 0660 /sys/class/hw_power/charger/direct_charger/adaptor_voltage chown system system /sys/class/hw_power/charger/direct_charger/adaptor_voltage chmod 0660 /sys/class/hw_power/charger/direct_charger_sc/iin_thermal chown system system /sys/class/hw_power/charger/direct_charger_sc/iin_thermal chmod 0660 /sys/class/hw_power/charger/direct_charger_sc/set_resistance_threshold chown system system /sys/class/hw_power/charger/direct_charger_sc/set_resistance_threshold chmod 0660 /sys/class/hw_power/charger/direct_charger_sc/set_chargetype_priority chown system system /sys/class/hw_power/charger/direct_charger_sc/set_chargetype_priority chmod 0660 /sys/class/hw_power/charger/wireless_sc/iin_thermal chown system system /sys/class/hw_power/charger/wireless_sc/iin_thermal chmod 0444 /sys/class/hw_power/wireless/tx_bd_info chown system system /sys/class/hw_power/wireless/tx_bd_info chmod 0660 /sys/devices/virtual/hw_power/power_mesg/powerct chown system system /sys/devices/virtual/hw_power/power_mesg/powerct chmod 0660 /sys/devices/virtual/hw_power/power_mesg/runtime chown system system /sys/devices/virtual/hw_power/power_mesg/runtime chmod 0440 /sys/devices/platform/honor_batt_info/ic_id chown system system /sys/devices/platform/honor_batt_info/ic_id chmod 0440 /sys/devices/platform/honor_batt_info/batt_id chown system system /sys/devices/platform/honor_batt_info/batt_id chmod 0440 /sys/devices/platform/honor_batt_info/ic_status chown system system /sys/devices/platform/honor_batt_info/ic_status chmod 0440 /sys/devices/platform/honor_batt_info/sn_status chown system system /sys/devices/platform/honor_batt_info/sn_status chmod 0440 /sys/devices/platform/honor_batt_info/key_status chown system system /sys/devices/platform/honor_batt_info/key_status chmod 0440 /sys/devices/platform/honor_batt_info/official chown system system /sys/devices/platform/honor_batt_info/official chmod 0440 /sys/devices/platform/honor_batt_soh/basp/basp_ichg_max chown system system /sys/devices/platform/honor_batt_soh/basp/basp_ichg_max chmod 0440 /sys/devices/platform/honor_batt_soh/iscd/iscd_data chown system system /sys/devices/platform/honor_batt_soh/iscd/iscd_data chmod 0440 /sys/devices/platform/honor_batt_soh/iscd/iscd_process_event chown system system /sys/devices/platform/honor_batt_soh/iscd/iscd_process_event chmod 0440 /sys/devices/platform/honor_batt_soh/iscd/iscd_imonitor_data chown system system /sys/devices/platform/honor_batt_soh/iscd/iscd_imonitor_data chmod 0440 /sys/devices/platform/honor_batt_soh/iscd/iscd_battery_current_avg chown system system /sys/devices/platform/honor_batt_soh/iscd/iscd_battery_current_avg chmod 0660 /sys/devices/platform/honor_batt_soh/iscd/iscd_uevent_notify chown system system /sys/devices/platform/honor_batt_soh/iscd/iscd_uevent_notify chmod 0660 /sys/devices/platform/honor_batt_soh/iscd/iscd_dmd chown system system /sys/devices/platform/honor_batt_soh/iscd/iscd_dmd chmod 0660 /sys/devices/platform/honor_batt_soh/iscd/iscd_status chown system system /sys/devices/platform/honor_batt_soh/iscd/iscd_status chmod 0660 /sys/devices/platform/honor_batt_soh/iscd/iscd_limit_support chown system system /sys/devices/platform/honor_batt_soh/iscd/iscd_limit_support chmod 0660 /sys/devices/platform/honor_batt_soh/bsoh_imonitor_report_interval chown system system /sys/devices/platform/honor_batt_soh/bsoh_imonitor_report_interval chmod 0660 /sys/devices/platform/honor_batt_soh/bsoh_sysfs_notify chown system system /sys/devices/platform/honor_batt_soh/bsoh_sysfs_notify chmod 0660 /sys/devices/platform/honor_batt_soh/bsoh_dmd_report chown system system /sys/devices/platform/honor_batt_soh/bsoh_dmd_report chmod 0440 /sys/devices/platform/honor_batt_soh/bsoh_battery_removed chown system system /sys/devices/platform/honor_batt_soh/bsoh_battery_removed chmod 0440 /sys/devices/platform/honor_batt_soh/bsoh_subsys chown system system /sys/devices/platform/honor_batt_soh/bsoh_subsys chmod 0660 /dev/ttyGS3 trigger early-fs trigger cust_parse_action trigger load_system_props_action mkdir /mnt/vendor/persist chown root system /mnt/vendor/persist chmod 0771 /mnt/vendor/persist wait /dev/block/bootdevice/by-name/persist mount ext4 /dev/block/bootdevice/by-name/persist /mnt/vendor/persist -o rw restorecon_recursive /mnt/vendor/persist mount ext4 /dev/block/bootdevice/by-name/log /log restorecon /log chmod 775 /log chmod 0750 /log/soh chmod 0644 /log/soh/shared_preferences.json chown root system /log/soh trigger early-boot chown root root /sys/kernel/boot_adsp/ssr wait /dev/block/by-name/oeminfo start oeminfo_nvm start teecd mkdir /mnt/vendor/nvcfg mount ext4 /dev/block/platform/bootdevice/by-name/nvcfg /mnt/vendor/nvcfg rw wait chown system system /mnt/vendor/nvcfg chmod 0771 /mnt/vendor/nvcfg restorecon_recursive /mnt/vendor/nvcfg write /sys/devices/platform/battery_meter/FG_daemon_log_level 7 write /sys/bus/platform/devices/battery/FG_daemon_log_level 7 write /sys/power/pm_async 0 start fuelgauged start fuelgauged_nvram load_usb_mode_cfg mount f2fs /dev/block/bootdevice/by-name/userdata /data -o rw restorecon /mnt/vendor mount ext4 /dev/block/bootdevice/by-name/cache /cache -o rw wait /dev/block/bootdevice/by-name/modem${ro.boot.slot_suffix} mount vfat /dev/block/bootdevice/by-name/modem${ro.boot.slot_suffix} /vendor/firmware_mnt ro context=u:object_r:firmware_file:s0,shortname=lower,uid=1000,gid=1000,dmask=227,fmask=337 chmod 0750 /vendor/etc/init.qcom.modem_links.sh mount debugfs debugfs /sys/kernel/debug write /sys/kernel/boot_adsp/boot 1 start modem_links umount /sys/kernel/debug # usb_init_setting # set on charging for tzdriver write /sys/class/tc_ns_client/tc_ns_client/tz_debug charge start powerct start bsoh start kmsglogcat start chargelogcat on early-boot && property:msc.config.fold_disp=* chown root root /mnt/vendor/persist/sensors chown root root /mnt/vendor/persist/sensors/sns.reg chown root root /mnt/vendor/persist/sensors/sensors_list.txt chown root root /mnt/vendor/persist/sensors/registry chown root root /mnt/vendor/persist/sensors/registry/registry chown root root /mnt/vendor/persist/sensors/registry/registry/sensors_registry chown root root /mnt/vendor/persist/sensors/sensors_settings chown root root /mnt/vendor/persist/sensors/registry/sns_reg_config chown root root /mnt/vendor/persist/sensors/registry/sns_reg_version chown root root /mnt/vendor/persist/sensors/registry/config chmod 0664 /mnt/vendor/persist/sensors/sensors_settings exec u:r:vendor_qti_init_shell:s0 -- /vendor/bin/change_sensor_access.sh root start sscrpcd start hall_sensor_monitor service ueventd /system/bin/ueventd critical seclabel u:r:ueventd:s0 service vendor.qseecomd /vendor/bin/qseecomd socket notify-topology stream 660 system drmrpc disabled user root group root drmrpc service sscrpcd /vendor/bin/sscrpcd sensorspd disabled user root group root system wakelock radio cache inet misc audio sdcard_r sdcard_rw diag oem_2901 log #capabilities BLOCK_SUSPEND SYS_BOOT NET_ADMIN NET_RAW SYS_NICE #shutdown critical service hall_sensor_monitor /vendor/bin/hall_sensor_monitor disabled #class charger user root group system root cache seclabel u:r:hall_sensor_monitor:s0 service modem_links /system/bin/sh /vendor/etc/init.qcom.modem_links.sh class core oneshot disabled seclabel u:r:shell:s0 service charger /system/bin/bms_animation class charger user root group root system cache critical seclabel u:r:charger:s0 service fuelgauged /vendor/bin/fuelgauged class core user system group system service fuelgauged_nvram /vendor/bin/fuelgauged_nvram class main user system group system oneshot service apexd /system/bin/apexd interface aidl apexservice class core user root group system oneshot disabled # does not start with the core class reboot_on_failure reboot,apexd-failed service apexd-bootstrap /system/bin/apexd --bootstrap user root group system oneshot disabled reboot_on_failure reboot,bootloader,bootstrap-apexd-failed # service qteeconnector-hal-1-0 /vendor/bin/hw/vendor.qti.hardware.qteeconnector@1.0-service # class hal # user system # group system # seclabel u:r:vendor_hal_qteeconnector_qti:s0 service qseecomd_recov /vendor/bin/qseecomd class core user root group root seclabel u:r:tee:s0 disabled # /* mount decrypt data */ on property:vold.decrypt=trigger_default_encryption start defaultcrypto on nonencrypted trigger data_ready on data_ready setprop sys.userdata_is_ready 1 load_persist_props start xlogctl_service on post-fs-data setprop vold.post_fs_data_done 1 start apexd on property:vold.decrypt=trigger_restart_framework trigger data_ready on property:vold.decrypt=trigger_post_fs_data trigger post-fs-data on cust_parse_action cust_parse on load_system_props_action load_system_props on property:sys.vendor.fold_status=0 stop hall_sensor_monitor #service vold /system/bin/vold \ # --blkid_context=u:r:blkid:s0 --blkid_untrusted_context=u:r:blkid_untrusted:s0 \ # --fsck_context=u:r:fsck:s0 --fsck_untrusted_context=u:r:fsck_untrusted:s0 # class core # socket vold stream 0660 root mount # socket cryptd stream 0660 root mount # ioprio be 2 service defaultcrypto /system/bin/vdc --wait cryptfs mountdefaultencrypted disabled oneshot service teecd /sbin/teecd disabled user root group root seclabel u:r:tee:s0 # /*The service, trigger, persist associated with the log */ service xlogctl_service /sbin/hilogcat-early -t 0 class late_start user root group system disabled oneshot seclabel u:r:xlogcat:s0 service xlogview_service /sbin/hilogcat-early -t 2 class late_start user root group system disabled oneshot seclabel u:r:xlogcat:s0 service shlogd /system/vendor/bin/shs class late_start user root group system disabled service chargelogcat /system_ext/bin/hilogcat-early -b chargelogcat class late_start user root group system disabled seclabel u:r:xlogcat:s0 service kmsglogcat /system_ext/bin/hilogcat-early -b kmsglogcat class late_start user root group system disabled seclabel u:r:xlogcat:s0 service oeminfo_nvm /vendor/bin/oeminfo_nvm_server group system readproc root critical ioprio rt 4 seclabel u:r:oeminfo_nvm:s0 service powerct /vendor/bin/powerct user system group system disabled service bsoh /vendor/bin/bsoh user system group system disabled # Used to disable USB when switching states on property:sys.usb.config=none && property:sys.usb.configfs=1 stop adbd setprop sys.usb.ffs.ready 0 write /config/usb_gadget/g1/bDeviceClass 0 write /config/usb_gadget/g1/bDeviceSubClass 0 write /config/usb_gadget/g1/bDeviceProtocol 0 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 rmdir /config/usb_gadget/g1/functions/rndis.gs4 setprop sys.usb.state ${sys.usb.config} service adbd /apex/com.android.adbd/bin/adbd --root_seclabel=u:r:su:s0 class core socket adbd seqpacket 660 system system disabled override seclabel u:r:adbd:s0 service hdbd /system/bin/hdbd --root_seclabel=u:r:su:s0 class core socket hdbd stream 660 system system disabled seclabel u:r:adbd:s0 on property:sys.usb.config=manufacture,adb && property:sys.usb.configfs=1 start adbd update_linker_config on property:sys.usb.ffs.ready=1 && property:sys.usb.config=manufacture,adb && \ property:sys.usb.configfs=1 write /config/usb_gadget/g1/configs/b.1/strings/0x409/configuration "adb_acm" 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 write /config/usb_gadget/g1/idProduct 0x107F write /config/usb_gadget/g1/idVendor 0x339B write /sys/devices/platform/mt_usb/saving 1 symlink /config/usb_gadget/g1/functions/ffs.adb /config/usb_gadget/g1/configs/b.1/f1 symlink /config/usb_gadget/g1/functions/acm.gs0 /config/usb_gadget/g1/configs/b.1/f2 write /config/usb_gadget/g1/UDC ${sys.usb.controller} setprop sys.usb.state ${sys.usb.config} on property:sys.usb.config=mass_storage && property:sys.usb.configfs=1 write /config/usb_gadget/g1/configs/b.1/strings/0x409/configuration "ums" write /sys/devices/platform/mt_usb/saving 1 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 write /config/usb_gadget/g1/idProduct 0x107F write /config/usb_gadget/g1/idVendor 0x339B write /sys/devices/platform/mt_usb/saving 1 symlink /config/usb_gadget/g1/functions/mass_storage.usb0 /config/usb_gadget/g1/configs/b.1/f1 write /config/usb_gadget/g1/UDC ${sys.usb.controller} setprop sys.usb.state ${sys.usb.config} on charger write /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor schedutil restorecon_recursive /sys/devices/system/cpu/cpu0/cpufreq/schedutil write /sys/devices/system/cpu/cpu0/cpufreq/schedutil/hispeed_freq 999000 write /sys/devices/system/cpu/cpu4/cpufreq/scaling_governor powersave write /sys/devices/system/cpu/cpu7/cpufreq/scaling_governor powersave chmod 0660 /sys/devices/virtual/hw_power/charger/direct_charger/af chown system system /sys/devices/virtual/hw_power/charger/direct_charger/af chmod 0660 /sys/devices/virtual/hw_power/charger/direct_charger_sc/af chown system system /sys/devices/virtual/hw_power/charger/direct_charger_sc/af chmod 0660 /sys/devices/virtual/hw_power/charger/wireless_charger/af chown system system /sys/devices/virtual/hw_power/charger/wireless_charger/af chmod 0660 /sys/devices/virtual/hw_power/charger/uvdm_charger/af chown system system /sys/devices/virtual/hw_power/charger/uvdm_charger/af chmod 0660 /sys/class/hw_power/interface/ready chown system system /sys/class/hw_power/interface/ready chmod 0660 /sys/devices/virtual/hw_power/charger/wireless_tx_auth/af chown system system /sys/devices/virtual/hw_power/charger/wireless_tx_auth/af chmod 0660 /sys/devices/virtual/hw_power/charger/direct_charger_hsc/af chown system system /sys/devices/virtual/hw_power/charger/direct_charger_hsc/af start bms_auth on property:ro.logsystem.usertype=* write /proc/log-usertype ${ro.logsystem.usertype}