{"id":6559,"date":"2025-07-23T07:37:34","date_gmt":"2025-07-23T11:37:34","guid":{"rendered":"https:\/\/droidbasement.com\/db-blog\/?p=6559"},"modified":"2025-09-24T06:19:26","modified_gmt":"2025-09-24T10:19:26","slug":"tutorial-kernelsu-next-with-susfs-integrated-in-to-a-gki-lts-generic-kernel-image-long-term-support","status":"publish","type":"post","link":"https:\/\/droidbasement.com\/db-blog\/tutorial-kernelsu-next-with-susfs-integrated-in-to-a-gki-lts-generic-kernel-image-long-term-support\/","title":{"rendered":"Tutorial &#8211; KernelSU-Next with SuSFS integrated in to a GKI (LTS (Generic Kernel Image (Long Term Support))"},"content":{"rendered":"\n<p>This is a tutorial to build <a href=\"https:\/\/kernelsu-next.github.io\/webpage\/\">KernelSU-Next<\/a> (<a href=\"https:\/\/github.com\/rifsxd\">rifsxd<\/a>) with <a href=\"https:\/\/gitlab.com\/simonpunk\/susfs4ksu#introduction\">SuSFS<\/a> (<a href=\"https:\/\/gitlab.com\/simonpunk\">simonpunk<\/a>) integrated in to a <a href=\"https:\/\/source.android.com\/docs\/core\/architecture\/kernel\/generic-kernel-image\">GKI<\/a> LTS (Generic Kernel Image (Long Term Support)). This is used to gain escalation on your mobile device.<\/p>\n\n\n\n<p><br>This is an addendum to <a href=\"https:\/\/droidbasement.com\/db-blog\/tutorial-kernelsu-next-with-susfs-integrated-in-to-a-gki-generic-kernel-image\/\">Tutorial \u2013 KernelSU-Next with SuSFS integrated in to a GKI (Generic Kernel Image)<\/a> but using the LTS (Long Term Support) branch, instead of the Monthly releases.  Please sort out the pre-requirements, referenced in that tutorial, first.<\/p>\n\n\n\n<p>&#8230;..<\/p>\n\n\n\n<p>Create a work area for yourself and enter it:<br>Note: If you&#8217;ve done the first tutorial, you can omit this, but enter in to the root of the workarea directory (cd ~\/workarea).<br><code>mkdir workarea &amp;&amp; cd workarea<\/code><\/p>\n\n\n\n<p>Pull down GKI Monthly:<br>Note: If you&#8217;ve done the first tutorial, you can omit this.<br>Note2: 8\/15\/25: Added flag(s) for space reduction.<br>Note3: 8\/21\/25: Increase depth.<br><code>mkdir gki-kernel &amp;&amp; cd gki-kernel<\/code><br><code>repo init -u https:\/\/android.googlesource.com\/kernel\/manifest --depth=<\/code>3<\/p>\n\n\n\n<p>Grab manifest_<em>xxxxx<\/em>.xml from a Tagged build (click kernel under \u2018kernel artifacts\u2019):<br>https:\/\/source.android.com\/docs\/core\/architecture\/kernel\/gki-android14-6_1-release-builds<br>Note: Replace <em>xxxxx<\/em> with the actual number.<br>Note2: If you&#8217;ve done the first tutorial, you can omit this.<\/p>\n\n\n\n<p>After you click on manifest_<em>xxxxx<\/em>.xml, right click &#8216;Download&#8217;, copy link:<br><code>curl -o .repo\/manifests\/manifest_<em>xxxxx<\/em>.xml \"<em>LINK<\/em>\"<\/code><br>Note: Replace <em>LINK<\/em> with the actual session based <em>URL \/ LINK<\/em> that was copied in to your buffer.<\/p>\n\n\n\n<p>Synchronize (Note: Replace <em>xxxxx<\/em> with the actual number):<br>Note: If you&#8217;ve done the first tutorial, you can omit this.<br>Note2: 8\/15\/25: Added flag(s) for space reduction.<br>Note3: 8\/21\/25: Increase depth.<br><code>repo init -m manifest_<em>xxxxx<\/em>.xml --depth=<\/code>3<br><code>repo sync -c --no-tags<\/code><br><code>cd ..<\/code><\/p>\n\n\n\n<p>Pull down LTS:<br>Note: If there is a tagged release, you can replace the branch (android14-6.1-lts) with the tag<br>Note2: 8\/15\/25: Added flag(s) for space reduction.<br>Note3: 8\/21\/25: Increase depth.<br><code>mkdir gki-lts-kernel &amp;&amp; cd gki-lts-kernel<\/code><br><code>git clone --depth 3 --no-tags<\/code> <code>https:\/\/android.googlesource.com\/kernel\/common.git -b android14-6.1-lts<\/code><\/p>\n\n\n\n<p>Add Bazel, dependencies and miscellaneous:<br>Note: 8\/15\/25: Use a loop.<br><code>for i in build tools prebuilts external .repo kernel common-modules; do rsync -a --del ..\/gki-kernel\/$i\/ $i; done<\/code><br><code>ln -s build\/kernel\/kleaf\/bazel.WORKSPACE WORKSPACE<\/code><br><code>cd ..<\/code><br><\/p>\n\n\n\n<p>Pull down the susfs4ksu repository and target the gki-android14-6.1-lts-dev branch:<br>Note: If you have done the previous tutorial, then: cd <code>susfs4ksu<\/code> &amp;&amp; git fetch origin <code>gki-android14-6.1-lts-dev<\/code> &amp;&amp; git checkout <code>gki-android14-6.1-lts-dev<\/code><br>Note2: 8\/15\/25: Added flag(s) for space reduction.<br><code>git clone --depth <\/code>3 <code>https:\/\/gitlab.com\/pershoot\/susfs4ksu.git -b gki-android14-6.1-lts-dev<\/code><\/p>\n\n\n\n<p>Create the destination directory for the build:<br>Note: If you&#8217;ve done the first tutorial, you can omit this.<br><code>mkdir android-kernel<\/code><\/p>\n\n\n\n<p>Create a mirror, which you will work against:<br><code>rsync -a --del gki-lts-kernel\/ gki-14-lts<\/code><br><code>cd gki-14-lts<\/code><\/p>\n\n\n\n<p>Clear out the android-kernel directory:<br><code>rm -rf ..\/android-kernel\/*<\/code><\/p>\n\n\n\n<p>&#8230;..<\/p>\n\n\n\n<p>Continue on with &#8216;Copy SuSFS module and patches in&#8217; (omit &#8216;<code>cd gki-14<\/code>&#8216;):<br><a href=\"https:\/\/droidbasement.com\/db-blog\/tutorial-kernelsu-next-with-susfs-integrated-in-to-a-gki-generic-kernel-image\/\">Tutorial \u2013 KernelSU-Next with SuSFS integrated in to a GKI (Generic Kernel Image)<\/a><\/p>\n\n\n\n<p>&#8230;..<\/p>\n\n\n\n<p>Sources:<br><a href=\"https:\/\/github.com\/pershoot\/KernelSU-Next\/tree\/next-susfs\">pershoot\/KernelSU-Next at next-susfs<\/a><br><a href=\"https:\/\/gitlab.com\/pershoot\/susfs4ksu\/-\/tree\/gki-android14-6.1-dev\">pershoot\/susfs4ksu\/-\/tree\/gki-android14-6.1-dev<\/a><br><a href=\"https:\/\/github.com\/KernelSU-Next\/KernelSU-Next\/\">KernelSU-Next\/KernelSU-Next: An advanced Kernel based root solution for Android<\/a><br><a href=\"https:\/\/gitlab.com\/simonpunk\/susfs4ksu\/-\/tree\/gki-android14-6.1\">simonpunk\/susfs4ksu\/-\/tree\/gki-android14-6.1<\/a><br><a href=\"https:\/\/github.com\/sidex15\/susfs4ksu-module\">sidex15\/susfs4ksu-module: An addon root hiding service for KernelSU<\/a><br><a href=\"https:\/\/github.com\/backslashxx\/KernelSU\">backslashxx\/KernelSU<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>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 \u2013 KernelSU-Next with SuSFS integrated in to a GKI (Generic Kernel Image) but using the LTS [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[87,85,86],"class_list":["post-6559","post","type-post","status-publish","format-standard","hentry","category-android","tag-gki","tag-kernelsunext","tag-susfs"],"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/droidbasement.com\/db-blog\/wp-json\/wp\/v2\/posts\/6559","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/droidbasement.com\/db-blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/droidbasement.com\/db-blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/droidbasement.com\/db-blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/droidbasement.com\/db-blog\/wp-json\/wp\/v2\/comments?post=6559"}],"version-history":[{"count":26,"href":"https:\/\/droidbasement.com\/db-blog\/wp-json\/wp\/v2\/posts\/6559\/revisions"}],"predecessor-version":[{"id":6722,"href":"https:\/\/droidbasement.com\/db-blog\/wp-json\/wp\/v2\/posts\/6559\/revisions\/6722"}],"wp:attachment":[{"href":"https:\/\/droidbasement.com\/db-blog\/wp-json\/wp\/v2\/media?parent=6559"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/droidbasement.com\/db-blog\/wp-json\/wp\/v2\/categories?post=6559"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/droidbasement.com\/db-blog\/wp-json\/wp\/v2\/tags?post=6559"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}