From 6c44bff5f716b2a6c482020bf7f773a4a8f56ec4 Mon Sep 17 00:00:00 2001 From: Giovanni Ricca Date: Sun, 22 Jan 2023 15:38:48 +0100 Subject: [PATCH] sm8350-common: rootdir: Sync rootdir from haydn V14.0.3.0.TKKMIXM Change-Id: Ibbaf1fd6ac6e45b71c66b79a95fa2c936cd3e695 --- rootdir/etc/init.mi_thermald.rc | 4 ++-- rootdir/etc/init.target.rc | 6 +++++- 2 files changed, 7 insertions(+), 3 deletions(-) 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