diff --git a/rootdir/etc/init.mi_thermald.rc b/rootdir/etc/init.mi_thermald.rc index 4491d62..a62a5fe 100644 --- a/rootdir/etc/init.mi_thermald.rc +++ b/rootdir/etc/init.mi_thermald.rc @@ -1,8 +1,8 @@ on charger - wait /sys/class/power_supply/battery/temp + wait /sys/class/power_supply/usb/type start mi_thermald on boot - wait /sys/class/power_supply/battery/temp + wait /sys/class/power_supply/usb/type start mi_thermald service mi_thermald /system/vendor/bin/mi_thermald diff --git a/rootdir/etc/init.target.rc b/rootdir/etc/init.target.rc index f31e7ee..540a808 100644 --- a/rootdir/etc/init.target.rc +++ b/rootdir/etc/init.target.rc @@ -120,14 +120,18 @@ on early-boot on boot chown system system /sys/class/thermal/thermal_message/sconfig chown system system /sys/class/thermal/thermal_message/balance_mode + chown system system /sys/class/thermal/thermal_message/charger_temp chown system system /sys/devices/virtual/touch/tp_dev/double_tap + chown cameraserver cameraserver /sys/class/thermal/thermal_message/flash_state # Set xiaomi touch permissions chown system system /dev/xiaomi-touch chmod 0660 /dev/xiaomi-touch write /dev/cpuset/audio-app/cpus 1-2 - + # init the cpuset value for the camera background,don't change the oder + write /dev/cpuset/camera-background/background/cpus 0-2 + write /dev/cpuset/camera-background/cpus 0-3 # Add a cpuset for the camera daemon # We want all cores for camera mkdir /dev/cpuset/camera-daemon