Skip to content

feat: Add split APK support#393

Draft
Aunali321 wants to merge 1 commit intoReVanced:devfrom
Aunali321:feat/split-apk-support
Draft

feat: Add split APK support#393
Aunali321 wants to merge 1 commit intoReVanced:devfrom
Aunali321:feat/split-apk-support

Conversation

@Aunali321
Copy link
Contributor

@Aunali321 Aunali321 commented Mar 12, 2026

Summary

Add --splits CLI option for patching split APK bundles.

  • --splits accepts Map<String, File> (e.g. --splits arm64_v8a=split_config.arm64_v8a.apk)
  • File existence validated at parse time
  • Constructs Apk.Split when splits provided, Apk.Single otherwise
  • Patched splits copied to <output>/splits/, resources applied, signed
  • Split files passed through to ADB/root/local installers
  • Added to both PatchCommand and InstallCommand

Test plan

  • compileKotlin passes
  • End-to-end: full APK — 60/60 patches pass
  • End-to-end: split APK bundle (35 splits) — 60/60 patches pass
  • Device install via adb install-multiple — success
  • App launches and runs without crashes

Companion PRs:

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.

1 participant