Repository navigation
feat: add KernelSU module export and packaging support - #1
Merged
Merged
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
There was a problem hiding this comment.
Copilot review overview
🟡 Changes recommended
Resized module contents can use DEFLATE instead of required STORE compression, and the status label can misidentify recovery ZIPs.
Get a fresh assessment by requesting another Copilot review.
Review effort: Lite
Findings: 1
Open (2)
What changed in this PR
Adds KernelSU module packaging and export support alongside existing Magisk workflows.
Changes:
- Adds KernelSU packaging for gallery and Studio exports.
- Updates download/export controls and compiler utilities.
- Updates module status text and installation documentation.
Review findings: Resized animations may use DEFLATE instead of required STORE compression, affecting both module paths. The module-status label may also misidentify recovery ZIPs as KernelSU modules.
| File | Description |
|---|---|
src/hooks/useMagiskPacker.ts |
Adds shared Magisk and KernelSU packaging. |
src/components/PlaybackDrawer.tsx |
Adds KernelSU download action. |
src/app/studio/utils/compiler.ts |
Adds KernelSU Studio export. |
src/app/studio/components/ZipSidebarPanel.tsx |
Updates module status display. |
src/app/studio/components/ZipEditorTab.tsx |
Wires KernelSU export handling. |
src/app/studio/components/ZipEditorConfigPanel.tsx |
Adds KernelSU export button. |
src/app/docs/components/OnDeviceTab.tsx |
Documents KernelSU installation. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
| const magiskZip = new JSZip(); | ||
|
|
||
| // module.prop contents | ||
| // 2. Create the Module ZIP using JSZip |
| <div className="flex justify-between border-b border-dashed border-neutral-200 dark:border-neutral-850 pb-2 text-[10px] text-cyan-600 dark:text-cyan-400 font-bold font-mono"> | ||
| <span>Installer Module:</span> | ||
| <span>Magisk / Recovery ZIP</span> | ||
| <span>Magisk / KernelSU Module</span> |
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.


Overview
Adds native support for packaging and exporting boot animations as KernelSU systemless flashable modules, positioned symmetrically alongside existing Magisk module options.
Changes
useMagiskPacker.ts): AddeddownloadAsKernelSUModulewith KernelSU-compliant module attributes (bootanimdeck_ksu_*), systemless/systemoverlay structure, and automated packaging.PlaybackDrawer.tsx): Refactored drawer actions into a balanced, symmetrical layout with a full-width standard ZIP download button above twin Magisk and KernelSU module buttons.ZipEditorConfigPanel.tsx&ZipEditorTab.tsx): AddedexportKernelSUModuleZipto compiler utilities and added a KernelSU export action to the Studio configuration panel.ZipSidebarPanel.tsx&OnDeviceTab.tsx): Updated package stats and installation docs to cover KernelSU flashing workflows.