Magisk Manager crashes after compilation

Created on 18 Sep 2020  路  5Comments  路  Source: topjohnwu/Magisk

Hello,
The Magisk Manager from the "releases" works fine on my Pixel 3a (https://github.com/topjohnwu/Magisk/releases)
However the one that I recompiled doesn't work despite Magisk compilation looks fine:

  • Building Magisk Manager stub
    Output: out/stub-release.apk

  • Building Magisk Manager
    Output: out/app-release.apk

  • Building binaries: magisk magiskinit magiskboot busybox

  • Packing Flashable Zip

  • Signing Zip
    Output: out/Magisk-release.zip

  • Packing Uninstaller Zip

  • Signing Zip
    Output: out/Magisk-uninstaller.zip

At least everything look fine in command line (magisk, magiskinit, magiskhide...).
However the Manager crashes right after launching it, you can find the logcat log enclosed.
BR,
Gil
logcat_magisk_manager_crash.txt

Most helpful comment

Had the same crash on my compiled "release" magisk, turns out proguard removes NavHostFragment while shrinking for release builds, got it fixed by adding

-keepnames class androidx.navigation.fragment.NavHostFragment

in app/proguard-rules.pro

All 5 comments

IDK maybe there's a reason john hasn't built and released the current code even on canary :P

IDK maybe there's a reason john hasn't built and released the current code even on canary :P

Thanks, I will try to build an earlier source code, I guess the current code of Magisk on canary is compatible with any Manager from v20.4

Had the same crash on my compiled "release" magisk, turns out proguard removes NavHostFragment while shrinking for release builds, got it fixed by adding

-keepnames class androidx.navigation.fragment.NavHostFragment

in app/proguard-rules.pro

I also have crashes with release builds from GIT but debug ones work fine ;-)

Had the same crash on my compiled "release" magisk, turns out proguard removes NavHostFragment while shrinking for release builds, got it fixed by adding

-keepnames class androidx.navigation.fragment.NavHostFragment

in app/proguard-rules.pro

Thanks, you rock man! It works for me ;)

Was this page helpful?
0 / 5 - 0 ratings