Magisk Lagging issue [solved]

Explanation:
The lmkd (low memory killer ) was somehow killing the forked init process and that was triggering lagging issue, making the forked init as unkillable solves the problem

Permanent Fix Method:
1. Download and paste the magisklagfix.sh , in your internal sd card (not external sdcard).
2. Execute these commands:

Code:
su
mkdir -p /data/adb/service.d && cp /sdcard/magisklagfix.sh /data/adb/service.d/ && chmod +x /data/adb/service.d/magisklagfix.sh

3. Reboot your phone for fix to start working

Old Method Temporary Fix: (Need to do after every reboot)

Code:
su
for i in $(pgrep -x init); do echo -1000 > /proc/$i/oom_score_adj && echo -17 > /proc/$i/oom_adj; done

Download Link:
https://github.com/fawazahmed0/hostf…agisklagfix.sh

Refer here for more details:
https://github.com/topjohnwu/Magisk/issues/2099

 

source  : https://forum.xda-developers.com/android/general/magisk-lagging-issue-fix-t4012863/

Leave a Comment

Your email address will not be published. Required fields are marked *