Skip to content

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

License

Notifications You must be signed in to change notification settings

Delphox/KernelSU_Oneplus_martini_Guide

 
 

Repository files navigation

简体中文 || English

KernelSU_Oneplus_martini_Guide

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

I have made the original repository private.

Warning:warning: :warning: :warning:

  • 1.Please backup the offical boot.img and vendor_dlkm.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 a kernel author and use someone else's source code to build KernelSU, please use it for your own use only and do not share it with others, it is respectful to the author." --xiaoleGun/KernelSU_Action (I have create a Private repository to compile for me.)

Support ROMS

Action Name Kernel source Used Branch Kernel Author Notes
Pixel Experience Inline PixelExperience-Devices/kernel_oneplus_martini thirteen inferno0230 Unsupport OOS and ColorOS.
Pixel OS Inline bheatleyyy/kernel_oplus_sm8350 thirteen bheatleyyy Unsupport OOS and ColorOS.
Eva Kernel mvaisakh/oneplus9pro main mvaisakh Unsupport OOS and ColorOS. Recommend.

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 "Kernel-op9rt-signed.zip"
adb reboot sideload
adb sideload ./Kernel-op9rt-signed.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 and vendor_dlkm.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

About

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

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Shell 100.0%