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.
…..
Pull down GKI Monthly:mkdir gki-kernel && cd gki-kernel
repo init -u https://android.googlesource.com/kernel/manifest
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
After you click on manifest_xxxxx.xml, right click Download, copy link:curl -o .repo/manifests/manifest_xxxxx.xml "LINK"
Synchronize:repo init -m manifest_xxxxx.xml
repo sync
cd ..
Pull down LTS:mkdir gki-lts-kernel && cd gki-lts-kernel
git clone https://android.googlesource.com/kernel/common.git -b android14-6.1-lts
Add Bazel, dependencies and miscellaneous:rsync -a --del ../gki-kernel/build/ build
rsync -a --del ../gki-kernel/tools/ tools
rsync -a --del ../gki-kernel/prebuilts/ prebuilts
rsync -a --del ../gki-kernel/external/ external
rsync -a --del ../gki-kernel/.repo/ .repo
rsync -a --del ../gki-kernel/kernel/ kernel
rsync -a --del ../gki-kernel/common-modules/ common-modules
ln -s build/kernel/kleaf/bazel.WORKSPACE WORKSPACE
cd ..
Pull down the susfs4ksu repository and target the gki-android14-6.1-lts-dev branch:git clone https://gitlab.com/pershoot/susfs4ksu.git -b gki-android14-6.1-lts-dev
Create a mirror, which you will work against:rsync -a --del gki-lts-kernel/ gki-14-lts
cd gki-14-lts
…..
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
« Tutorial – KernelSU-Next with SuSFS integrated in to a GKI (Generic Kernel Image)