Skip to content
This repository was archived by the owner on Aug 14, 2026. It is now read-only.

Releases: SQL0106/RMX3031-kernel

LineageOS 23.2 + KSU-Next Kernel (v1.0.0)

Choose a tag to compare

@SQL0106 SQL0106 released this 05 Aug 14:38

================================================================================
RMX3031 (cupida) - LineageOS 23.2 + KernelSU-Next + SUSFS
BROM / Fastboot / Recovery 刷机说明

设备: realme GT Neo (RMX3031 / cupida)
芯片: MediaTek MT6893 (Dimensity 1200)
内核: 4.19 + KernelSU-Next (KSUN-susfs-v2.1.0-manual-hook)
特性: KernelSU-Next, SUSFS, DroidSpaces LXC, NTsync, Headless ADB

镜像说明:
boot-ksu.img - LineageOS 23.2 boot + KSU-Next 内核 (刷这个!)
boot.img - LineageOS 23.2 原版 boot (备份用)
dtbo.img - Device Tree Blob Overlay
recovery.img - LineageOS Recovery
vbmeta.img - Verified Boot Meta (已禁用验证)
vbmeta_system.img - System VB Meta
vbmeta_vendor.img - Vendor VB Meta
system.img - System 分区 (1.2G)
vendor.img - Vendor 分区 (640M)
product.img - Product 分区 (3.1G)
system_ext.img - System Ext 分区 (570M)
odm.img - ODM 分区 (198M)

================================================================================
方法 1: Fastboot 刷入 (推荐, 简单)

前提: 手机已解锁 Bootloader, 已安装 fastboot 驱动

  1. 将手机重启到 Fastboot 模式:
    adb reboot bootloader
    或关机状态下按住 音量下 + 电源键

  2. 刷入内核 (二选一):
    fastboot flash boot boot-ksu.img # 刷入带 KSU-Next 的 boot
    fastboot flash boot boot.img # 刷入原版 boot (无 KSU)

  3. 可选 - 刷入其他分区:
    fastboot flash dtbo dtbo.img
    fastboot flash recovery recovery.img
    fastboot flash vbmeta vbmeta.img
    fastboot flash vbmeta_system vbmeta_system.img
    fastboot flash vbmeta_vendor vbmeta_vendor.img

  4. 禁用 AVB 验证 (如需要):
    fastboot --disable-verification flash vbmeta vbmeta.img

  5. 重启:
    fastboot reboot

================================================================================
方法 2: MTK Client (BROM 模式) - 无需 Fastboot

前提: 安装 mtkclient, 安装 usb 驱动, 手机进入 BROM 模式

安装 mtkclient:
git clone https://github.com/bkerler/mtkclient.git
cd mtkclient
pip3 install -r requirements.txt

进入 BROM 模式:
方法 A: 关机, 按住 音量上 + 音量下, 插入 USB
方法 B: 关机, 用镊子短接主板测试点 (具体位置自行搜索 RMX3031 test point)
方法 C: adb reboot edl (部分设备支持)
方法 D: 从 fastboot 执行 fastboot oem enter-download

检查 BROM 连接:
python3 mtk payload

应显示设备信息: MT6893 / Dimensity 1200

刷入所有分区:
python3 mtk w boot boot-ksu.img
python3 mtk w dtbo dtbo.img
python3 mtk w recovery recovery.img
python3 mtk w vbmeta vbmeta.img
python3 mtk w vbmeta_system vbmeta_system.img
python3 mtk w vbmeta_vendor vbmeta_vendor.img

仅刷内核 (推荐):

python3 mtk w boot boot-ksu.img

刷入完整系统 (首次刷机):

python3 mtk w super system.img vendor.img product.img system_ext.img odm.img
或使用 SP Flash Tool 刷入 super.img (见方法 3)

重启:
python3 mtk reset

================================================================================
方法 3: SP Flash Tool (需要 Windows / wine)

  1. 下载 SP Flash Tool v5.22xx+ (支持 MT6893)

  2. 创建 scatter 文件 (或从官方固件提取)

  3. 选择 scatter 文件, 勾选需要刷入的分区

  4. 点击 Download, 连接手机 (BROM 模式)

================================================================================
方法 4: TWRP / OrangeFox Recovery 刷入

  1. 将 boot-ksu.img 和 KSU_Next_OP6893.zip 传入手机

  2. 进入 Recovery:
    adb reboot recovery

  3. 刷入 boot.img:
    Install -> Install Image -> 选择 boot-ksu.img -> 选择 Boot 分区 -> 滑动确认

  4. 或刷入 AnyKernel3 Zip:
    Install -> 选择 KSU_Next_OP6893.zip -> 滑动确认

================================================================================
首次开机后 - 启用 Headless ADB (WiFi 调试)

  1. 通过 USB 连接, 执行:
    adb root
    adb remount
    adb push tools/setup-headless-adb.sh /data/local/tmp/
    adb shell sh /data/local/tmp/setup-headless-adb.sh

  2. 通过 WiFi 连接:
    adb connect <设备IP>:5555
    adb shell

================================================================================
注意事项

  • 刷机前务必备份原厂镜像和 IMEI/NVRAM
  • 首次刷入完整系统后可能需要格式化 data 分区
  • 如无法开机, 尝试刷入 dtbo.img 和 vbmeta.img
  • BROM 模式下切勿断开 USB 或断电, 否则可能变砖
  • KSU-Next 管理器 APK 需从 KernelSU-Next 项目页面下载
    ================================================================================