Skip to content

Guide of compile KernelSU for Oneplus 9RT(martini)[MT2110/MT2111]

License

Notifications You must be signed in to change notification settings

natsumerinchan/KernelSU_Oneplus_martini_Guide

Repository files navigation

简体中文 || English

KernelSU_Oneplus_martini_Guide

Guide of compile KernelSU for Oneplus 9RT(martini)[MT2110/MT2111]

Warning ⚠️ ⚠️ ⚠️

  • 1.Please backup the offical boot.img before you flash!!!You can use ssut/payload-dumper-go to extract them from payload.bin in ROM.zip.(The ROM package version must as same as your using OS.)
  • 2.I am not the author of these kernel, so I will not release any compiled products in this repository, please fork this repository (Sync to your private repository is better) and run workflow by yourself.
  • 3."If you are not the author of the Kernel, and are using someone else's labor to build KernelSU, please use it for personal use only and do not share it with others. This is to show respect for the author's labor achievements." --xiaoleGun/KernelSU_Action

Support ROMS

Action Name Kernel source Used Branch Kernel Author Notes
Pixel Experience PixelExperience-Devices/kernel_oneplus_martini thirteen inferno0230 Unsupport OOS and ColorOS.
Pixel OS beet-stuffs/android_kernel_oneplus_sm8350 fourteen-qpr2 bheatleyyy Unsupport OOS and ColorOS.
Pixel OS SUSFS natsumerinchan/android_kernel_oneplus_sm8350 fourteen-qpr3 bheatleyyy Based on beet-stuffs/android_kernel_oneplus_sm8350 and modify by me,add SUSFS and path_umount features.Unsupport OOS and ColorOS.

How to build

1.Github Action

Fork this repository and run workflows by yourselves. If you can not found Actions tab,please go to settings-actions-General,set Actions permissions as 'Allow all actions and reusable workflows'

Github Action

Run ncipollo/release-action@v1
Error: Error 403: Resource not accessible by integration

If you get this notice when you try to upload to releases,please go to settings-actions-General,set Workflow permissions as 'Read and write permissions'.

2.Build on your PC

debian_build.sh :for Debian distributions (e.g. Debian, Ubuntu, etc.)

arch_build.sh :for Arch distributions (e.g. Arch Linux, Manjaro, etc.)

  • export SETUP_KERNELSU=true (If you don't want to compile KernelSU,please set it as false)

Instructions

1.How to Install

  • 1.Download and install KernelSU Manager.Install branches other than main is not recommended, because they may not work properly.
  • 2.Download platform-tools (Don't install from Ubuntu20.04 source.)
  • 3.Reboot to Recovery Sideload mode,flash "xxx-v5.4.xxx-xxxxxxxx.zip"
adb reboot sideload
adb sideload ./xxx-v5.4.xxx-xxxxxxxx.zip

2.Notes for Update

You may encounter the fastbootd or recovery mode can not connect to the PC, please enter bootloader mode to reflash the official boot.img

adb reboot bootloader
fastboot flash boot ./boot.img
fastboot reboot recovery

Now you can continue to update.

3.How to uninstall

Please reflash the offical boot.img

adb reboot bootloader
fastboot flash boot ./boot.img

4.How to sync updates to your private repository

Use Github Desktop to clone your private repository to local, then go to the directory and open a terminal.

// Sync mainline branch to the repository

git remote add Celica https://github.com/natsumerinchan/KernelSU_Oneplus_martini_Guide.git //This step is only required for the first time update.

git fetch Celica main
// Cherry-pick commit from the mainline repository to your private one.

git cherry-pick <commit id>

Then use Github Desktop to upload commits to Github

Credits and Thanks