没事更新了一下旧手机上的magisk模块,导致一直卡开机动画不能开机。于是就开始回忆如何禁用magisk模块。

方法一:

如果不知道是哪个模块导致的,可以先进一下安全模式,再重启进入正常系统。安全模式下,会直接禁用所有magisk模块。

禁用方式:正常开机之后,出现品牌logo时,按住音量-键(音量减键),直到画面切换,则可以进入安全模式,画面左下角会显示“安全模式”几个字。再重启,即可正常进入系统,此时,所有模块都已经被禁用。

少数派论坛看到的其他方式:

安全模式下,直接连接电脑。运行adb shell "magisk --remove-modules" 移除所有模块(未动手验证)

xda论坛上也有相关介绍:

connect your phone to your computer (while bootlooping or stuck on loading)
open a command window where you have the platform tools
run the command: adb wait-for-device shell magisk --remove-modules
hold your power button until the phone restarts,
run the command again while the phone powers up
it will restart itself and if you're lucky it will boot properly this time

https://forum.xda-developers.com/t/bootloop-on-magisk-with-android-11.4170091/

方法二:

适合,知道是哪个模块导致的问题。需要进入rec,比如按住音量+按开机键,进入TWRP,删除相关相关模块文件,即可禁用相应模块。

路径:/data/adb/modules/

以上在一加5上均测试成功,

只想提醒自己一句:如果能够稳定运行,就不要瞎折腾