简体中文 || English
Guide of compile KernelSU for Oneplus 9RT(martini)[MT2110/MT2111]
I have made the original repository private.
- 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.)
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. |
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 "Kernel-op9rt-signed.zip"
adb reboot sideload
adb sideload ./Kernel-op9rt-signed.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
- bheatleyyy/kernel_oplus_sm8350: PixelOS kernel for OnePlus 9RT 5G (martini)
- PixelExperience-Devices/kernel_oneplus_martini: Pixel Experience kernel for OnePlus 9RT (martini)
- mvaisakh/oneplus9pro: Custom Linux Kernel for OnePlus 9 Series.
- 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
- rain2wood/erofs: vendor_dlkm_repacker is based on it.
- @Dreamail: This commit fix error for non-GKI kernel