/KernelSU

Primary LanguageCGNU General Public License v2.0GPL-2.0

KernelSU

Installing as a part of the kernel

  1. Let's take [linux] as the path to your kernel source dir.
        cd [linux]
        git clone https://github.com/itsshashanksp/KernelSU.git
	cp -ar KernelSU [linux]/drivers/kernelsu
  1. edit [linux]/drivers/Kconfig
	+source "drivers/kernelsu/Kconfig"
  1. edit [linux]/drivers/Makefile
	+obj-$(CONFIG_KSU)	+= kernelsu/
  1. Here you can find the guide for adding KSU hooks for non GKI kernels.
  1. set KSU defconfig
#
# KernelSU
#
CONFIG_KSU=y
# CONFIG_KSU_DEBUG is not set

build your kernel