A Kernel based root solution for Android
This report summarizes scanner evidence for tiann/KernelSU, a Kotlin project with 19,901 GitHub stars. SynthScan examined 120,364 lines of code across 739 source files, recording 114 pattern matches distributed across 8 syntactic categories. The legacy adjusted pattern signal is 1.3 (Low pattern signal); it is not an authorship estimate.
Use the findings to ask whether maintainers can explain intent, verify dependencies, simplify unnecessary scaffolding, and focus review effort. Risk Payload v1 adds ownership, supply-chain, over-engineering, and review-effort vectors when available. These are prompts for human verification, not probabilities, security findings, or measured maintenance costs.
Use each vector to guide manual verification of the underlying findings.
Payload schema: 1.0.0 · Engine: 2.0.0 · Scoring: heuristic-density-v1 · Scan date: 2026-10-31.
Can maintainers explain intent, assumptions, and trade-offs? 105 finding(s).
Are imports declared and package/API names verified? 6 finding(s).
Are wrappers, guards, and repeated structures necessary? 5 finding(s).
Which changes need focused human review? 114 finding(s).
This chart tracks the legacy adjusted pattern score across scan runs. Changes can reflect source changes, scan coverage, or detector/scoring versions; they do not measure AI adoption or prove that a team refactored code. Compare runs only when their scoring versions are compatible. The dashed line tracks the raw pattern-hit count.
Groups findings by configured severity weight. Severity is not a confidence estimate, security rating, or proof that a package is missing. Verify imports against the project's manifests and inspect each finding in its local design context.
This horizontal bar chart shows where configured pattern scores accumulate across directories. Treat the bars as locations to inspect, not as evidence of authorship or code quality. Use the file-level findings to decide whether a directory needs a focused ownership, dependency, complexity, or review check.
The scanner identified 114 distinct pattern matches across 8 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a detector match to inspect in context. Expand any category row to inspect the individual file paths, line numbers, code snippets, and the lexical context (CODE, COMMENT, or STRING) in which each match was detected.
Reading the findings table: The Severity column indicates the configured finding weight (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — legacy comment-context matches receive a ×1.5 score weight. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier under the legacy scoring model.
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | uapi/ksu.h | 1 | #ifndef __KSU_UAPI_KSU_H | COMMENT |
| LOW | .cargo/config.example.toml | 1 | # This file contains required configuration to correctly build ksud across platforms. | COMMENT |
| LOW | .cargo/config.example.toml | 21 | # BINDGEN_EXTRA_CLANG_ARGS_x86_64_linux_android=--sysroot=ANDROID_NDK_ROOT/toolchains/llvm/prebuilt/darwin-x86_64/sysroo | COMMENT |
| LOW | manager/app/src/main/cpp/logging.h | 1 | #pragma once | COMMENT |
| LOW | manager/app/src/main/cpp/logging.h | 21 | #define LOGE(...) __android_log_print(ANDROID_LOG_ERROR, LOG_TAG, __VA_ARGS__) | COMMENT |
| LOW | userspace/ksud/src/boot_patch.rs | 421 | pub struct BootPatchArgs { | COMMENT |
| LOW | userspace/ksud/src/boot_patch.rs | 441 | pub ota: bool, | COMMENT |
| LOW | userspace/ksud/src/boot_patch.rs | 461 | #[cfg(not(target_os = "android"))] | COMMENT |
| LOW | userspace/ksud/src/boot_patch.rs | 521 | /// Do not load custom rc | COMMENT |
| LOW | userspace/ksud/src/boot_patch.rs | 961 | /// Output path. If not specified, will use current directory. | COMMENT |
| LOW | userspace/ksud/src/ksu_uapi.h | 1 | #include "uapi/ksu.h" | COMMENT |
| LOW | userspace/ksud/src/assets.rs | 41 | struct Asset; | COMMENT |
| LOW | kernel/infra/seccomp_cache.c | 1 | #include <linux/version.h> | COMMENT |
| LOW | kernel/infra/file_wrapper.c | 1 | #include <linux/gfp.h> | COMMENT |
| LOW | kernel/infra/event_queue.c | 1 | #include <linux/ktime.h> | COMMENT |
| LOW | kernel/infra/su_mount_ns.c | 1 | #include <linux/dcache.h> | COMMENT |
| LOW | kernel/infra/event_queue.h | 1 | #ifndef KSU_EVENT_QUEUE_H | COMMENT |
| LOW | kernel/infra/symbol_resolver.c | 1 | #include <linux/bsearch.h> | COMMENT |
| LOW | kernel/infra/symbol_resolver.c | 21 | static const char cfi_suffix[] = ".cfi_jt"; | COMMENT |
| LOW | kernel/core/init.c | 1 | #include <linux/export.h> | COMMENT |
| LOW | kernel/core/init.c | 21 | #include "supercall/supercall.h" | COMMENT |
| LOW | kernel/include/klog.h | 1 | #ifndef __KSU_H_KLOG | COMMENT |
| LOW | kernel/include/util.h | 1 | #ifndef __KSU_H_UTIL | COMMENT |
| LOW | kernel/include/util.h | 41 | PT_REGS_PARM5(&__ksu_regs) = (unsigned long)(e); \ | COMMENT |
| LOW | kernel/include/arch.h | 1 | #ifndef __KSU_H_ARCH | COMMENT |
| LOW | kernel/include/arch.h | 21 | COMMENT | |
| LOW | kernel/include/arch.h | 41 | #define __PT_RC_REG ax | COMMENT |
| LOW | kernel/include/arch.h | 61 | #define __PT_FP_REG s0 | COMMENT |
| LOW | kernel/include/arch.h | 81 | #define PT_REGS_PARM1(x) (__PT_REGS_CAST(x)->__PT_PARM1_REG) | COMMENT |
| LOW | kernel/runtime/boot_event.c | 1 | #include "feature/selinux_hide.h" | COMMENT |
| LOW | kernel/runtime/ksud_integration.c | 1 | #include "feature/selinux_hide.h" | COMMENT |
| LOW | kernel/runtime/ksud_integration.c | 21 | #include <linux/stat.h> | COMMENT |
| LOW | kernel/preinit/preinit.c | 1 | #include <linux/err.h> | COMMENT |
| LOW | kernel/preinit/runner/runner.c | 21 | #ifndef INIT_PATH | COMMENT |
| LOW | kernel/preinit/runner/runner.c | 41 | #endif | COMMENT |
| LOW | kernel/preinit/runner/nolibc/compiler.h | 1 | /* SPDX-License-Identifier: LGPL-2.1 OR MIT */ | COMMENT |
| LOW | kernel/preinit/runner/nolibc/compiler.h | 21 | #define __nolibc_aligned(alignment) __attribute__((aligned(alignment))) | COMMENT |
| LOW | kernel/preinit/runner/nolibc/compiler.h | 41 | # define __no_stack_protector __attribute__((__optimize__("-fno-stack-protector"))) | COMMENT |
| LOW | kernel/preinit/runner/nolibc/types.h | 21 | * ones such as the O_RDONLY and related macros used by fcntl() and open() | COMMENT |
| LOW | kernel/preinit/runner/nolibc/types.h | 41 | #define S_ISBLK(mode) (((mode) & S_IFMT) == S_IFBLK) | COMMENT |
| LOW | kernel/preinit/runner/nolibc/types.h | 61 | #endif | COMMENT |
| LOW | kernel/preinit/runner/nolibc/types.h | 81 | #ifndef PATH_MAX | COMMENT |
| LOW | kernel/preinit/runner/nolibc/types.h | 101 | #define RB_HALT_SYSTEM LINUX_REBOOT_CMD_HALT | COMMENT |
| LOW | kernel/preinit/runner/nolibc/stddef.h | 21 | #define offsetof(TYPE, FIELD) ((size_t) &((TYPE *)0)->FIELD) | COMMENT |
| LOW | kernel/preinit/runner/nolibc/stdio.h | 1 | /* SPDX-License-Identifier: LGPL-2.1 OR MIT */ | COMMENT |
| LOW | kernel/preinit/runner/nolibc/nolibc.h | 101 | #include "sys/mman.h" | COMMENT |
| LOW | kernel/preinit/runner/nolibc/nolibc.h | 121 | #include "stdlib.h" | COMMENT |
| LOW | kernel/preinit/runner/nolibc/stdint.h | 41 | COMMENT | |
| LOW | kernel/preinit/runner/nolibc/stdint.h | 61 | COMMENT | |
| LOW | kernel/preinit/runner/nolibc/stdint.h | 81 | #define PTRDIFF_MAX INTPTR_MAX | COMMENT |
| LOW | kernel/preinit/runner/nolibc/stdint.h | 101 | #define UINTMAX_MAX UINT64_MAX | COMMENT |
| LOW | kernel/preinit/runner/nolibc/stdint.h | 121 | #ifndef LLONG_MIN | COMMENT |
| LOW | kernel/preinit/runner/nolibc/arch.h | 21 | #include "arch-arm.h" | COMMENT |
| LOW | kernel/preinit/runner/nolibc/arch.h | 41 | #error Unsupported Architecture | COMMENT |
| LOW | kernel/manager/pkg_observer.c | 1 | // SPDX-License-Identifier: GPL-2.0 | COMMENT |
| LOW | kernel/manager/throne_tracker.c | 1 | #include "ksu.h" | COMMENT |
| LOW | kernel/manager/throne_tracker.c | 61 | }; | COMMENT |
| LOW | kernel/manager/apk_sign.c | 1 | #include "util.h" | COMMENT |
| LOW | kernel/supercall/supercall.c | 1 | #include <linux/anon_inodes.h> | COMMENT |
| LOW | kernel/supercall/dispatch.c | 1 | #include <linux/capability.h> | COMMENT |
| 39 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| CRITICAL | …a/me/weishu/kernelsu/ui/viewmodel/TemplateViewModel.kt | 85 | me.weishu.kernelsu.data.model.TemplateInfo.fromJSON(JSONObject(getAppProfileTemplate(id))) | CODE |
| CRITICAL | …eishu/kernelsu/ui/screen/appprofile/AppProfileMiuix.kt | 357 | val info = me.weishu.kernelsu.ui.viewmodel.getTemplateInfoById(selected) | CODE |
| CRITICAL | …java/me/weishu/kernelsu/ui/screen/home/HomeMaterial.kt | 604 | latestVersionInfo = me.weishu.kernelsu.ui.util.module.LatestVersionInfo(), | CODE |
| CRITICAL | …weishu/kernelsu/ui/screen/template/TemplateMaterial.kt | 190 | verticalArrangement = androidx.compose.foundation.layout.Arrangement.spacedBy(2.dp), | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | .cargo/config.example.toml | 1 | # This file contains required configuration to correctly build ksud across platforms. | COMMENT |
| MEDIUM | scripts/setup_cargo_config.py | 110 | "# This file is auto-generated by scripts/setup_cargo_config.py.", | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | scripts/ksubot.py | 94 | except: | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | repack_apk.py | 186 | def find_ksud_binaries_by_arch(ksud_build_type: str, arch_filters: List[str]) -> Dict[str, Path]: | CODE |
| LOW | repack_apk.py | 219 | def collect_existing_ksud_arches(apk_path: Path) -> List[str]: | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | repack_apk.py | 94 | CODE | |
| LOW | repack_apk.py | 240 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | kernel/.vscode/generate_compdb.py | 3 | CODE | |
| LOW | kernel/.vscode/generate_compdb.py | 3 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | repack_apk.py | 484 | except Exception as exc: # noqa: BLE001 | CODE |
| LOW | scripts/ksubot.py | 143 | except Exception as e: | STRING |