Skip to content
Raphaël Valyi edited this page Sep 19, 2024 · 2 revisions

Hacks to try if I can build an LXC/Docker enabled kernel for my Tab s9 Ultra.

Basically I currently use a the "NinjaSU" kernel that is the stock Samsung Kernel + KernelSU (GKI style) and KNOX disabled from: https://github.com/ArchVIsions/android_kernel_samsung_gts9wifi

And I'm trying to compile it with what seems is the state of the art for LXC/Docker kernel on android kernel 5.10 (our tab s9 kernel is 5.15 however): https://github.com/TapetalArray/GKI-Custom

It seems the tab s9 kernel is based on GKI Kernel for Android 13 (despite running on Android 14 now) for the Kernel 5.15.123, that is: https://android.googlesource.com/kernel/common/+/refs/tags/android13-5.15.123_r00 or in a Github mirror: https://github.com/aosp-mirror/kernel_common/commit/83c56fbab45dea6eb88e5e61fbfa390dfd2e0db7 or https://github.com/aosp-mirror/kernel_common/tree/android13-5.15.123_r00

From what I tested, it seems that this is the "closest pure GKI" kernel to the Smasung tab s9 kernel. However with meld or diff -r, one can see more than hundreds files differ between the pure GKI and the stock kernel.

By looking at the history of some of the different files, I could see that some diffs are in fact backports from PRs that were merged later such as: https://github.com/aosp-mirror/kernel_common/commit/0e5b29019b9f08dbed542252ae514682311bfb8c#diff-cc1a82129952a910fdc4292448c2a097a2ba538bebefcf3c06381e45639ae73e or https://github.com/aosp-mirror/kernel_common/commit/cc960d6cc5cd48687ca1ed32b72de9da1a9c6128#diff-fbc180d759d8168ab6b2d1fdec6c86cac321f1625d54571afaf6d1fc3fbd3d9cR551

Other diffs seems to be really Samsung own stuff. See on the in the sidebar on the right to find out chatGPT about some of the diffs (there are dozens if not hundreds of such diffs).

open questions:

  • how much of the diff is due to legit backports that got merged later vs how much is Samsung own hacking?
  • how safe is it to run a more recent GKI kernel on this device??