Skip to content

Commit

Permalink
Final Fix Version
Browse files Browse the repository at this point in the history
  • Loading branch information
LukeSkyD committed Feb 19, 2024
1 parent f2de0cd commit cccb647
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 10 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
MGLRUDISABLER
MGLRU FIX - MGLRUDISABLER
=
***!***
THIS MODULE IS A WORKAROUND FOR FREEZES AND CRASHES ON 1.5.3(/HOTFIX) ON NOTHING PHONE (1)

REMEMBER TO DISABLE IT BEFORE UPDATING THE PHONE TO A NEWER SW VERSION
REMEMBER TO DISABLE IT BEFORE UPDATING THE PHONE TO A NEWER FW VERSION
***!***

SPECIAL THANKS
Expand All @@ -20,7 +20,7 @@ HOW TO INSTALL

2. Open Magisk, select Modules, Install from storage and go pick the latest downloaded module

3. V3 users can simply reboot their phones, while for V1 and V2 cold boot is necessary, so fully power off your device before turning it back on.
3. V3 and Fix users can simply reboot their phones, while for V1 and V2 cold boot is necessary, so fully power off your device before turning it back on.

4. Enjoy

Expand Down
8 changes: 4 additions & 4 deletions module.prop
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
id=mglru-fix
name=MGLRU Disabler
version=v3
versionCode=3
name=MGLRU Fix
version=1.0
versionCode=4
author=LukeSkyD
description=Prevent freezes on MGLRU devices using magisk by disabling MGLRU on every boot
description=Fix freezes on MGLRU devices by using magisk and disabling MGLRU
template=3
8 changes: 5 additions & 3 deletions service.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# MGLRU-FIX stops crashes by rendering non-functional the MGLRU feature
# MGLRU-FIX stops crashes on 1.5.3 / (.HOTFIX) by rendering non-functional the MGLRU feature
# Copyright (C) 2023 Luca Durando
#
# This program is free software: you can redistribute it and/or modify
Expand All @@ -14,5 +14,7 @@
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <https://www.gnu.org/licenses/>.

echo 0 > /sys/kernel/mm/lru_gen/enabled
chmod 444 /sys/kernel/mm/lru_gen/enabled
if [ "$(getprop ro.nothing.version.id)" = "1.5.3" ]; then
echo 0 > /sys/kernel/mm/lru_gen/enabled
chmod 444 /sys/kernel/mm/lru_gen/enabled
fi

0 comments on commit cccb647

Please sign in to comment.