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:
1 parent
5d0291f99e
commit
66918cb24b
1 file changed
+6
@@ -10,6 +10,12 @@
|
|||||||
|
|
||||||
export PATH=/vendor/bin
|
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`
|
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
|
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
|
setprop persist.vendor.hvdcp_opti.start 2
|
||||||
|
|||||||
Reference in new issue
Block a user