topjohnwu / Magisk

The Magic Mask for Android
GNU General Public License v3.0
49.16k stars 12.64k forks source link

Magisk not installing flashed with fastboot #8145

Closed mike855 closed 5 months ago

mike855 commented 5 months ago

Device: Redmi note 9 pro (miatoll) Android version: Lineages 21 with microg (android 14) Magisk version name: Magisk debug Magisk version code: 27002

Hello,

I flashed patched boot image with fastboot, and nothing changed, Magisk is not installed. Magisk apk v27 installed with adb then updated from phone with debug apk Note that flashed boot was patched with version 27, not debug. I just repatched with debug for the issue.

(Screenshot, boot.img and patched boot.ing and log attached)

Boot.IMG : https://nextcloud.muguet.online/index.php/s/CpaptiPsTjHFCqq

Patched boot : https://nextcloud.muguet.online/index.php/s/nkHcn33TAPw38KY

magisk_log_2024-06-19T09.10.26.log magisk_install_log_2024-06-19T08.49.12.log

yujincheng08 commented 5 months ago

can you try /system/bin/magisk su in adb shell?

mike855 commented 5 months ago

joyeuse:/ $ /system/bin/magisk su Permission denied 13|joyeuse:/ $

yujincheng08 commented 5 months ago

the magisk app should pop up a su request dialog, please grant access to it

mike855 commented 5 months ago

I don't have any prompt. I get the Permission denied instantly. what means : 13|joyeuse That is the android version before the pipe? Because I'm android 13. I think I had magisk before upgrading with 14, then I uninstalled it. I forgot If I wiped data after that. So maybe there are still traces of previous installation?

yujincheng08 commented 5 months ago

maybe you can try to install a shell emulator app and try /system/bin/magisk su.

mike855 commented 5 months ago

I dont have acces to /system with termux as the phone is not rooted. Is there a way to remove all traces of eventual previous magisk installations?

yujincheng08 commented 5 months ago

/system is accessible to all apps.

mike855 commented 5 months ago

Can't cd or ls /system in termux.

I passed the command with succes with adb by doing "adb root". Then in adb shell I passed with succes the "/system/bin/magisk su" command. But I got no prompt on the phone

yujincheng08 commented 5 months ago

/system is always accessible to all apps, otherwise apps cannot use system libraries.

yujincheng08 commented 5 months ago

as you can use adb root, are you using a customized rom? if so, it should be https://github.com/topjohnwu/Magisk/issues/6914

mike855 commented 5 months ago

I use LineageOS for microg wich is a fork of LineageOS. So it is custom LineageOS^^ I take a look at #6914

yujincheng08 commented 5 months ago

Duplicate of #6914