Skip to content

feat(manager): add BakaSU support - #415

Merged
YuKongA merged 2 commits into
YuKongA:mainfrom
Nade-is-not-a-dev:main
Oct 12, 2026
Merged

YuKongA merged 2 commits into
YuKongA:mainfrom
Nade-is-not-a-dev:main

Conversation

@Nade-is-not-a-dev

Copy link
Copy Markdown
Contributor

BakaSU is the renamed ReSukiSU, so this adds org.bakasu.bakasu anywhere we look for a manager app (AndroidManifest.xml queries, prepareKsud package list, root script libksud.so fallback). Old ReSukiSU entries stay as-is.

BakaSU hasn't had a stable release yet (RC APKs still use the old package id), so this is just to be ready when it ships.

Detect org.bakasu.bakasu alongside KernelSU/ReSukiSU/KowSU for ksud
provisioning (manifest query, Kotlin package list, root-script
libksud.so fallback); README updated. ReSukiSU entries kept for
backward compatibility.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

The native wildcard can select and execute a lookalike package’s library as root.

1 open finding
What changed in this PR

Adds future BakaSU manager support across package discovery, ksud resolution, and documentation.

Changes:

  • Adds BakaSU package visibility and Kotlin-side ksud extraction.
  • Adds native fallback lookup for BakaSU.
  • Updates bilingual setup documentation.
File Description
src/​core/​attack/​ops.cpp Adds BakaSU native-library fallback.
AndroidGhostlockRepository.kt Detects BakaSU and copies its ksud.
AndroidManifest.xml Adds BakaSU package visibility.
README.md Documents BakaSU support.
README_ZH.md Documents BakaSU support in Chinese.

🧠 Review effort: Balanced


💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread src/core/attack/ops.cpp Outdated
" KSUD=$(find /data/app -path '*/com.resukisu.resukisu*/lib/arm64/libksud.so' 2>/dev/null | head -1)\n"
"fi\n"
"if [ ! -x \"$KSUD\" ]; then\n"
" KSUD=$(find /data/app -path '*/org.bakasu.bakasu*/lib/arm64/libksud.so' 2>/dev/null | head -1)\n"
Match org.bakasu.bakasu-* so lookalike packages (e.g.
org.bakasu.bakasu.evil) cannot be picked up and executed as root,
same as the existing me.weishu.kernelsu-* lookup.
@YuKongA
YuKongA merged commit d66b64c into YuKongA:main Oct 12, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants