This is a tutorial to build KernelSU-Next (rifsxd) with SuSFS (simonpunk) integrated in to a GKI LTS (Generic Kernel Image (Long Term Support)). This is used to gain escalation on your mobile device.
This is an addendum to Tutorial – KernelSU-Next with SuSFS integrated in to a GKI (Generic Kernel Image) but using the LTS (Long Term Support) branch, instead of the Monthly releases. Please sort out the pre-requirements, referenced in that tutorial, first.
…..
Create a work area for yourself and enter it:
Note: If you’ve done the first tutorial, you can omit this, but enter in to the root of the workarea directory (cd ~/workarea).mkdir workarea && cd workarea
Pull down GKI Monthly:
Note: If you’ve done the first tutorial, you can omit this.
Note2: 8/15/25: Added flag(s) for space reduction.mkdir gki-kernel && cd gki-kernel
repo init -u https://android.googlesource.com/kernel/manifest
–depth=2
Grab manifest_xxxxx.xml from a Tagged build (click kernel under ‘kernel artifacts’):
https://source.android.com/docs/core/architecture/kernel/gki-android14-6_1-release-builds
Note: Replace xxxxx with the actual number.
Note2: If you’ve done the first tutorial, you can omit this.
After you click on manifest_xxxxx.xml, right click ‘Download’, copy link:curl -o .repo/manifests/manifest_xxxxx.xml "LINK"
Note: Replace LINK with the actual session based URL / LINK that was copied in to your buffer.
Synchronize (Note: Replace xxxxx with the actual number):
Note: If you’ve done the first tutorial, you can omit this.
Note2: 8/15/25: Added flag(s) for space reduction.repo init -m manifest_xxxxx.xml
–depth=2repo sync
-c –no-tagscd ..
Pull down LTS:
Note: If there is a tagged release, you can replace the branch (android14-6.1-lts) with the tag
Note2: 8/15/25: Added flag(s) for space reduction.mkdir gki-lts-kernel && cd gki-lts-kernel
git clone --depth 2 --no-tags
https://android.googlesource.com/kernel/common.git -b android14-6.1-lts
Add Bazel, dependencies and miscellaneous:
Note: 8/15/25: Use a loop.for i in build tools prebuilts external .repo kernel common-modules; do rsync -a --del ../gki-kernel/$i/ $i; done
ln -s build/kernel/kleaf/bazel.WORKSPACE WORKSPACE
cd ..
Pull down the susfs4ksu repository and target the gki-android14-6.1-lts-dev branch:
Note: If you have done the previous tutorial, then: cd susfs4ksu
&& git fetch origin gki-android14-6.1-lts-dev
&& git checkout gki-android14-6.1-lts-dev
Note2: 8/15/25: Added flag(s) for space reduction.git clone --depth 2
https://gitlab.com/pershoot/susfs4ksu.git -b gki-android14-6.1-lts-dev
Create the destination directory for the build:
Note: If you’ve done the first tutorial, you can omit this.mkdir android-kernel
Create a mirror, which you will work against:rsync -a --del gki-lts-kernel/ gki-14-lts
cd gki-14-lts
Clear out the android-kernel directory:rm -rf ../android-kernel/*
…..
Continue on with ‘Copy SuSFS module and patches in’ (omit ‘cd gki-14
‘):
Tutorial – KernelSU-Next with SuSFS integrated in to a GKI (Generic Kernel Image)
…..
Sources:
pershoot/KernelSU-Next at next-susfs
pershoot/susfs4ksu/-/tree/gki-android14-6.1-dev
KernelSU-Next/KernelSU-Next: An advanced Kernel based root solution for Android
simonpunk/susfs4ksu/-/tree/gki-android14-6.1
sidex15/susfs4ksu-module: An addon root hiding service for KernelSU
backslashxx/KernelSU