FerryAr / lhroot

Linux Chroot Installer & Bootscript Magisk Module.
GNU General Public License v3.0
190 stars 20 forks source link

Module not detected #43

Closed RchrdAriza closed 8 months ago

RchrdAriza commented 8 months ago

Screenshot_20231223-142914_Termux Phone: Samsung Galaxy A21s Android 12

ghost commented 8 months ago

~I got same error on Samsung A30s, Android 11~

Fdydhchxy54645 commented 8 months ago

I got same error on Poco m2 Android 11

ghost commented 8 months ago

I managed to solve it following the tip of a user in #34 First I unzipped the module, changed /sbin/.magisk to /debug_ramdisk/.magisk in lhroot.sh file, zipped it again and uploaded it to Magisk.

Edit: For some reason, this solution stopped working on my Samsung A30s, Android 11. Idk why. 🤷🏻

RchrdAriza commented 8 months ago

I managed to solve it following the tip of a user in #34 First I unzipped the module, changed /sbin/.magisk to /debug_ramdisk/.magisk in lhroot.sh file, zipped it again and uploaded it to Magisk.

Did you change both? Or just the first match? By the way, I found this file in system/bin/lhroot.sh after extracting the zip Screenshot_20231227-015247_Termux

ghost commented 8 months ago

I changed both

RchrdAriza commented 8 months ago

I changed both

Thanks, I'll try

RchrdAriza commented 8 months ago

Thank you very much, it worked 🙌🏻

Screenshot_20231227-022409_Termux

Withoutruless commented 2 months ago

i changed it to:

# Magisk Mod Directory [ -d "/data/adb/" ] && MOUNTPATH="/data/adb/modules" || MOUNTPATH="$(find /dev -mindepth 2 -maxdepth 2 -type d -name ".magisk")/modules" MODDIR="$MOUNTPATH/$ID"

and it works perfectly (Magisk 27.0, lhroot 2.2.0)