mirror of
https://github.com/Evolution-X-Devices/device_xiaomi_stone
synced 2026-01-27 11:33:32 +00:00
m8250-common: hbm: Add preference for time-based HBM disable To specify a duration after which High Brightness Mode (HBM) is automatically disabled if the lux level falls below the defined threshold. [EmanuelCN: Use thread sleep and recheck lux after timeToDisableHBM] Signed-off-by: AnierinB <anierin@evolution-x.org> sm8250-common: hbm: Deactivate the HBM tile when the screen turns off When the screen is turned off, HBM will shut down and the HBM tile should become inactive. sm8250-common: hbm: Refresh the QS brightness slider whenever the HBM is activated The brightness slider should be set to 100% when the HBM is activated. sm8250-common: hbm: Avoid writing to the backlight when turning off the HBM Not needed. sm8250-common: hbm: Include a 7-second delay when turning off the HBM The HBM turning off while walking through a shadow was frustrating. Address this issue by verifying if the threshold has been reached after the 7-second delay. sm8250-common: sepolicy: allow parts to get SettingsLib prop ThermalSettingsFragment's use of ApplicationsState includes a check of whether a package is an instant app or not. The function isInstant() in AppUtils reads settingsdebug.instant.packages prop to retrieve a list of instant packages for debugging purposes. We do not actually use this property, but this check triggers an SELinux denial for every package in the list and spams the logs with permission denied errors. Get rid of these log spams by allowing parts to read the prop. Test: open the thermal profile settings and check logs sm8250-common: sepolicy: Allow devicesettings write to vendor_sysfs_graphics sm8250-common: Disable hbm thermal throttle adapted to stone (sm6375) Co-Authored-By: Emanuel <emanuelghub@gmail.com> Co-Authored-By: maxwen <max.weninger@gmail.com> Co-Authored-By: Hikari-no-Tenshi <16803494+Hikari-no-Tenshi@users.noreply.github.com> Co-Authored-By: Anierin Bliss <anierin@evolution-x.org> Co-Authored-By: Alec Chan <88945170+alecchangod@users.noreply.github.com>