Magisk app says "Magisk is not installed"

Created on 1 Nov 2019  路  11Comments  路  Source: topjohnwu/Magisk

_Hello_
the thing is when ever i flash latest(or any version) Magisk zip in TWRP all goes well but Magisk app says _Magisk is not installed_ flashed more than 5+ times still same result.
_Non-SAR build/TWRP_
logs here as well !! recovery and dmesg logs
recovery.log
dmesg.log

in-case needed device trees

device tree : https://github.com/ArrowOS-Devices/android_device_motorola_sanders
kernel tree : https://github.com/ArrowOS-Devices/android_kernel_motorola_sanders
branch arrow-10.0

Most helpful comment

Hi, this issue has now been solved. The problem was in our custom motorola dtbtool that wasn't properly oriented towards creating the proper boot image of Android 10 for the Magisk zip to be able to patch the fstab. Switching to the source dtbtool and reverting a few old commits helped to do the trick.
Thanks all.

All 11 comments

Is it possible to grab /data/cache/magisk.log ?

Is it possible to grab /data/cache/magisk.log ?

no i don't have any file like _magisk.log_ in storage

Is it possible to grab /data/cache/magisk.log ?

Just for a little more clarification for the issue, flashing the magisk zip does patch the bootimage. Extracting the ramdisk shows that a .backup folder is created with the magiskinit as well as the system init. A magisk folder is also created in the /data/adb path and a .magisk file is also present in the /data path.
However, there are no magisk.log, su, or any magisk related stuff in either /sbin or /data that is installed in the device itself.

Although, side note (not sure if it is relevant or not), the fstab in our /vendor/etc doesnt seem to be affected at all after flashing the zip but I'm not sure if it would be visible after boot so I might be a little off here. Thanks.

May you use the boot image patching method and see if it works?

May you use the boot image patching method and see if it works?

I just tried it and it seems there's a little progress there. Patching the boot image manually and flashing it causes panic and reboot to bootloader. The first stage init seems to be trying to find system/lib64/libselinux.so while that file is in /sbin instead. The log is as attached below.

[ 7.669484,4] init: init first stage started!
[ 7.670957,4] init: Using Android DT directory /proc/device-tree/firmware/android/
[ 7.671795,4] init: [libfs_mgr]ReadDefaultFstab(): failed to find device default fstab
[ 7.684271,4] init: [libfs_mgr]superblock s_max_mnt_count:65535,/dev/block/platform/soc/7824900.sdhci/by-name/system
[ 7.684392,4] init: [libfs_mgr]__mount(source=/dev/block/platform/soc/7824900.sdhci/by-name/system,target=/system,type=ext4)=0: Success
[ 7.684601,4] init: Switching root to '/system'
[ 7.684677,4] init: Unable to move mount at '/system/lib64/libselinux.so': No such file or directory

Would symlinking help? Thanks.

Also (probably unrelated but worth a mention), our prop _getprop ro.build.system_root_image_ is set as false and if set to true gives an obvious bootloop because we are not using the legacy system-as-root implementation. Sanders is an A-only device following 2SI SAR Impl.

it don't really resolve the issue but a workaround I found : with a custom kernel it work, I'm using sphynx kernel but it should work with any other

Do you have Magisk Manager hidden but then opened the unhidden version installed by the TWRP flash instead? It can show as "not installed".

Do you have Magisk Manager hidden but then opened the unhidden version installed by the TWRP flash instead? It can show as "not installed".

hello, my issue was resolved with a clean flash of my rom, by wiping /data. the rom (xiaomi eu) was on beta so it surely break something when updating to Android Q.

Hi, this issue has now been solved. The problem was in our custom motorola dtbtool that wasn't properly oriented towards creating the proper boot image of Android 10 for the Magisk zip to be able to patch the fstab. Switching to the source dtbtool and reverting a few old commits helped to do the trick.
Thanks all.

Hi, this issue has now been solved. The problem was in our custom motorola dtbtool that wasn't properly oriented towards creating the proper boot image of Android 10 for the Magisk zip to be able to patch the fstab. Switching to the source dtbtool and reverting a few old commits helped to do the trick.
Thanks all.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

guitardedhero picture guitardedhero  路  3Comments

Displax picture Displax  路  4Comments

HikariCalyx picture HikariCalyx  路  3Comments

Fs00 picture Fs00  路  3Comments

ThiefMaster picture ThiefMaster  路  3Comments