"Patch to Android" placing Magisk modules in legacy magisk tmpfs path

EDIT:  I've just learned about 'magisk --path'. So I guess the root is a behavior somewhere between magisk and LOS21, not that LP was being loaded to the wrong path.

I have a new device I just:

* Unlocked bootloader

* Applied Magisk to boot.img and flashed it

* Loaded AndyYan's Unofficial LineageOS 21 GSI ROM

* Factory Reset for good measure

* Installed the Magisk app

* Installed LP Installer -> LP


Trying to apply "Patch to Android" with "Use the Magisk module to apply the patch".


It seems like it's successful, but upon reboot the module never appears in the magisk interface.

For comparison, I have a different device that kept the stock ROM but was unlocked+magisked+LP'd. This device shows the LP Magisk module.

Watching logcat, I noticed it's placing magisk module files in /sbin/.magisk/modules, which is a tmpfs space and appears that it doesn't persist(at least in LOS21/Android14). It also doesn't appear to exist on my reference Android13 device, but the /data/adb folder does exit.

Checking Magisk notes about modules, the module is supposed to be installed to /data/adb/modules for A11+ due to the removal of /sbin in Android. The module contents temporarily exist in /sbin/.magisk/modules, never gets replicated to /data/adb/modules and just disappears on reboot. I've tried copying the contents of /sbin/.magisk/modules to /data/adb/modules, which seems to allow "Disable signature verification in the package manager" to pass, but seemingly doesn't allow the other two patches to apply. I feel like something in the module may have some hardcoded pathing based on the detected magisk path?

Amongst the testing I have tried adding LSPosed 1.9.2, which appears to be installed to the correct path. It was unhappy, found LSPosed_mod 1.9.3 which works fine. Though I know this is magisk doing the installation, not LP installing the files to specific paths.

Not sure what logs would be useful, I'm not sure if this is a codepath being triggered due to something LOS does upstream, or if there's something in the unofficial(but somewhat popular?) GSI ROM.

      08-21 21:23:34.899  4601  4601 I System.out: LP:LuckyPatcher: Start core.jar test!&amp;lt;br&amp;gt;08-21 21:23:34.900  4601  5912 I System.out: LP:good algorithm rsa&amp;lt;br&amp;gt;08-21 21:23:34.901  4601  5912 I System.out: LP:good algorithm rsa&amp;lt;br&amp;gt;08-21 21:23:34.901  4601  5912 I System.out: LP:LuckyPatcher (getPackageManager install pkgs): start.&amp;lt;br&amp;gt;08-21 21:23:34.920  4601  5912 I System.out: LP:magisk folder found:/sbin/.magisk/modules/luckypatcher&amp;lt;br&amp;gt;08-21 21:23:34.930  4601  5912 I System.out: LP:found system files&amp;lt;br&amp;gt;08-21 21:23:34.930  4601  5912 I System.out: LP:/system/framework/arm64/boot.oat&amp;lt;br&amp;gt;08-21 21:23:34.930  4601  5912 I System.out: LP:/system/framework/arm/boot.oat&amp;lt;br&amp;gt;08-21 21:23:34.939  4601  5912 I System.out: LP:found system files&amp;lt;br&amp;gt;08-21 21:23:34.939  4601  5912 I System.out: LP:/system/framework/oat/arm64/services.odex&amp;lt;br&amp;gt;08-21 21:23:34.939  4601  5912 I System.out: LP:/system/framework/arm/boot-framework.oat&amp;lt;br&amp;gt;08-21 21:23:34.939  4601  5912 I System.out: LP:/system/framework/arm64/boot-framework.oat&amp;lt;br&amp;gt;08-21 21:23:34.970  4601  5913 I System.out: LP:Block root thread1&amp;lt;br&amp;gt;08-21 21:23:34.970  4601  5913 I System.out: LP:LuckyPatcher: GET ROOT.&amp;lt;br&amp;gt;<br>

Sharing is caring, show love and share the thread with your friends.


loading...