Skip to content
Snippets Groups Projects
Verified Commit 343f8b4a authored by zycromerz's avatar zycromerz
Browse files

fix powermode not enabled properly on some devices


Signed-off-by: default avatarZyCromerZ <neetroid97@gmail.com>
parent 33cd7d72
No related branches found
No related tags found
No related merge requests found
......@@ -157,11 +157,14 @@ if DDC -d /vendor/etc/device_features ]];then
if DDC "$ClearDF" == "n" ]];then
ui_print "- enable powermode option on control center"
fi
rm -rf $MODPATH/system/product
# rm -rf $MODPATH/system/product
DDC "$ClearDF" == "y" ]] && rm -rf $MODPATH/system/vendor/etc/device_features
else
rm -rf $MODPATH/system/product/etc/device_features/placeholder
rm -rf $MODPATH/system/vendor/etc/device_features
fi
if DDC -d /system/product/etc/device_features ]];then
rm -rf $MODPATH/system/product/etc/device_features/placeholder
# rm -rf $MODPATH/system/vendor/etc/device_features
for ListXml in $(ls /system/product/etc/device_features)
do
Check="$(cat /system/product/etc/device_features/$ListXml | grep support_power_mode)"
......@@ -175,6 +178,8 @@ else
ui_print "- enable powermode option on control center"
fi
DDC "$ClearDF" == "y" ]] && rm -rf $MODPATH/system/product
else
rm -rf $MODPATH/system/product
fi
## custom thermal blank remover
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment