From 0c61be9b9cba893492a77769d022941ca3a436ac Mon Sep 17 00:00:00 2001 From: Astu04 Date: Wed, 13 Mar 2024 18:12:53 +0100 Subject: [PATCH] Give prio to pogo lane --- custom/ATVServices.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/custom/ATVServices.sh b/custom/ATVServices.sh index 0d6e2cd..c0b6bc5 100644 --- a/custom/ATVServices.sh +++ b/custom/ATVServices.sh @@ -424,6 +424,8 @@ if result=$(check_mitmpkg); then if [ -n "$BUSYBOX_PS_OUTPUT" ]; then log -p i -t eMagiskATVService "com.nianticlabs.pokemongo is running. Adjusting I/O priority..." ionice -p $(pidof com.nianticlabs.pokemongo) -c 0 -n 0 + pids=$(/data/adb/magisk/busybox ps -T | /data/adb/magisk/busybox grep pokemongo | /data/adb/magisk/busybox cut -d' ' -f1 | /data/adb/magisk/busybox xargs) + for i in $pids; do /data/adb/magisk/busybox chrt -r -p 99 $i & done fi if [ -n "$rdm_user" ] && [ -n "$rdm_password" ] && [ -n "$rdm_backend" ]; then # In case rdm variables are confiugred