简体中文 || English
Guide of compile KernelSU for Oneplus 9RT(martini)[MT2110/MT2111]
- 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 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
Action Name | Kernel source | Used Branch | Kernel Author | Notes |
---|---|---|---|---|
Pixel Experience | PixelExperience-Devices/kernel_oneplus_martini | thirteen | inferno0230 | Unsupport OOS and ColorOS. |
Pixel OS | PixelOS-Devices/kernel_oneplus_sm8350 | fourteen | bheatleyyy | Unsupport OOS and ColorOS. |
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'
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'.
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 asfalse
)
- 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
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.
Please reflash the offical boot.img and vendor_dlkm.img
adb reboot bootloader
fastboot flash boot ./boot.img
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
- tiann/KernelSU: A Kernel based root solution for Android GKI
- PixelOS-Devices/kernel_oneplus_sm8350: PixelOS kernel for OnePlus 9RT 5G (martini)
- PixelExperience-Devices/kernel_oneplus_martini: Pixel Experience kernel for OnePlus 9RT (martini)
- Gainss/Action_Kernel: Kernel Action template
- xiaoleGun/KernelSU_action: Action for Non-GKI Kernel has some common and requires knowledge of kernel and Android to be used.
- osm0sis/AnyKernel3: Flashable Zip Template for Kernel Releases with Ramdisk Modifications
- @Dreamail: This commit fix error for non-GKI kernel