Skip to content

Commit

Permalink
post_boot: lmkd: Add new property and remove unnecessary lines
Browse files Browse the repository at this point in the history
* Aospa rom your perfconfigstore is broken, so need these modifications.

Signed-off-by: TogoFire <togofire@mailfence.com>
Change-Id: I6185f84b6c1248e49483b78cde34596cdd163d2f
  • Loading branch information
TogoFire committed Sep 29, 2024
1 parent bc6130e commit d419072
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions scripts/init.kernel.post_boot-lahaina.sh
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,15 @@ if ! mount | grep -q "$BIND" && [ ! -e /sbin/recovery ] && [ ! -e /dev/ep/.post_
add_or_replace "ro.lmk.thrashing_threshold" "32"
add_or_replace "ro.lmk.psi_scrit_complete_stall_ms" "400"
add_or_replace "ro.lmk.super_critical" "850"
add_or_replace "vendor.appcompact.enable_app_compact" "false"
add_or_replace "ro.lmk.use_new_strategy_dup" "true"
add_or_replace "ro.lmk.nandswap_version" "2"

# Remove the useless lines
sed -i '/<Prop Name="ro.vendor.perf.qhf" Value="true" Target="lahaina">/d' $TEMP_DIR/perfconfigstore.xml
sed -i '/<Prop Name="ro.vendor.perf.qape" Value="true" Target="lahaina">/d' $TEMP_DIR/perfconfigstore.xml
sed -i '/<Prop Name="ro.vendor.perf.qgpe" Value="true">/d' $TEMP_DIR/perfconfigstore.xml

# Replace the original file
cp "$TEMP_DIR/perfconfigstore.xml" /vendor/etc/perf/perfconfigstore.xml
# Correct security context
Expand Down

0 comments on commit d419072

Please sign in to comment.