1.前期准备

一部解锁的手机(a/b分区【注意】,如米11)

当前机型的线刷包(保持版本一致)

梯子(没有梯子,上酷安找@秋时白露提供的通道,Magisk中设置的自定义通道)

Magisk下载地址

LSPosed下载地址

2.步骤

1.下载解压,安装Magisk,打开如下图
Screenshot_2021-03-30-18-05-49-223_com.topjohnwu.magisk

  1. 解压线刷包,进入image文件夹下找到boot.img(这个是内核),移动到手机目录。
  2. 进入Magisk,选择<安装>,选择<选择并修补一个文件>,进入boot.img存放在手机的目录,选择boot.img.
    Screenshot_2021-03-30-18-08-49-293_com.topjohnwu.magisk
  3. 如图,会在默认目录下,生成magisk_patched_XXXX.img文件
    Screenshot_2021-03-30-17-02-50-899_com.topjohnwu.magisk
  4. 手机关机,同时按开机键和音量键减,半分钟,手机进入fastboot,将magisk_patched_XXXX.img文件从手机拷贝到电脑中,有条件的可以直接执行下面两个命令(在magisk_patched_XXXX.img所在目录下),也可以使用酷安@乌堆小透明的工具(http://aili.lanzous.com/ieK3ekp095e,密码:bnje)。
    fastboot flash boot_a magisk_patched_XXXX.img

fastboot flash boot_b magisk_patched_XXXX.img

➜  ~ sudo fastboot flash boot_a magisk_patched_tcati.img
target reported max download size of 805306368 bytes
sending 'boot_a' (196608 KB)...
OKAY [  5.767s]
writing 'boot_a'...
OKAY [  0.193s]
finished. total time: 5.960s
➜  ~ sudo fastboot flash boot_b magisk_patched_tcati.img
target reported max download size of 805306368 bytes
sending 'boot_b' (196608 KB)...
OKAY [  5.739s]
writing 'boot_b'...
OKAY [  0.191s]
finished. total time: 5.930s

-----------------------------------------

target reported max download size of 805306368 bytes
sending 'boot_b' (131072 KB)...   
OKAY [  3.816s]
writing 'boot_b'...
FAILED (remote: (boot_b) No such partition)
finished. total time: 3.825s


如果出现FAILED (remote: (boot_b) No such partition),直接输入下面的一条命令即可.
sudo fastboot flash boot magisk_patched_tcati.img

6.这一步,已经是激活Magisk成功,如下
Screenshot_2021-03-30-18-07-25-311_com.topjohnwu.magisk
7.进入<模块>,搜索riru,直接安装riru v25,不用安装riru-LSPosed,LSPosed压缩包里面包含了,重启即可.
Screenshot_2021-03-30-17-44-59-307_com.topjohnwu.magisk
8.然后选择从本地安装,选择LSPosed的压缩包,刷入LSPosed,重启
9.这一步,LSPosed已经安装成功
Screenshot_2021-03-30-17-44-23-693_org.lsposed.manager
10.最后直接可以在模块里面找插件了,WX和QX模块,可能需要双开微信和QQ,才生效。

文章目录