sm6375-common: skip the SMB5 optimizer on Rhodep

Rhodep uses the kernel discrete charging manager. The SMB5-only hvdcp_opti cannot locate MAIN_PSY and otherwise restarts every five seconds.
This commit is contained in:
TheImposter65 committed 2026-11-08 13:33:28 +00:00
1 parent 5d0291f99e
commit 66918cb24b
1 file changed
+6
+6
View File
@@ -10,6 +10,12 @@
export PATH=/vendor/bin
# Rhodep uses the in-kernel discrete charger policy, not the SMB5 optimizer.
if [ "$(getprop ro.product.vendor.device)" = "rhodep" ]; then
setprop persist.vendor.hvdcp_opti.start 2
exit 0
fi
soc_id=`getprop ro.vendor.qti.soc_id`
if [ "$soc_id" -eq 415 ] || [ "$soc_id" -eq 439 ] || [ "$soc_id" -eq 450 ] || [ "$soc_id" -eq 475 ] || [ "$soc_id" -eq 515 ]; then
setprop persist.vendor.hvdcp_opti.start 2