Skip to content

Contributing

simplehima edited this page Dec 5, 2026 · 1 revision

Contributions are welcome: bug fixes, backports, tested config changes, documentation.

Before you start

Workflow

  1. Fork the repo and create a branch from main: fix/f2fs-..., feat/..., docs/....
  2. Make the change. Keep each commit to one logical change.
  3. Build both variants and run thanatos/tools/crcgate.sh. crc_mismatch must stay 0.
  4. Test on a phone, following Testing a Build. At least boot, recovery, TEE, Wi-Fi and a 15-minute stability run.
  5. Open a pull request against main. Include:
    • what the change does and why
    • the CRC check output
    • what you tested on the device, and your ROM and firmware version

Commit messages

Follow the Linux kernel style:

subsystem: short summary in the imperative

Explain what was wrong and why the change fixes it. Wrap at about
72 columns. Mention the symptom users saw, if any.

Examples: f2fs: fix double cp_rwsem release in f2fs_expand_inode_data(), thanatos: enable ....

  • Backports from upstream keep the original author and add (cherry picked from commit <sha>).
  • No AI tool attribution lines in commits.
  • Sign your commits with your real name and email.

What fits in Thanatos

Good Not accepted
Bug fixes, especially for Samsung's merged code Changes that move a KMI CRC (vendor modules break)
Upstream stable backports Overclocking or undervolting beyond what the hardware and vendor support
Performance options that keep the KMI (schedulers, TCP, I/O) Untested "tweaks" without numbers
Root and hiding updates (KernelSU Next, SUSFS) Changes that need modified vendor modules
Documentation

Updating KernelSU Next

cd KernelSU-Next
git fetch --tags && git checkout <new tag>
cd ..
git add KernelSU-Next
git commit -m "KernelSU-Next: update to <tag>"

Then rebuild and check:

  • root works with the matching manager
  • ksud susfs load still works
  • the README badges show the new version

Releases (maintainer)

  1. Everything in Testing a Build passes.

  2. Pack both zips with thanatos/tools/pack_ak3.sh <variant> <version>, then write SHA256SUMS.txt.

  3. Update the version badges at the top of README.md (Linux, KernelSU Next, SUSFS) and the FAQ and Known Issues "Fixed" table.

  4. Tag and publish:

    gh release create vX.Y --target main --title "Thanatos vX.Y" --notes-file notes.md \
      Thanatos-vX.Y-*-KSUN-*.zip Thanatos-vX.Y-*-Vanilla-*.zip SHA256SUMS.txt
    
  5. Announce in the Telegram group.

License

GPL-2.0, like the Linux kernel. By contributing you agree that your changes are released under the same license.

Clone this wiki locally