manager: add support for opening and flashing zip files directly#2967
Conversation
There was a problem hiding this comment.
Pull Request Overview
This PR adds support for opening ZIP module files directly with the KernelSU manager application by registering an intent filter and implementing automatic navigation to the flash screen when a ZIP file is opened.
- Registers an intent filter in AndroidManifest.xml to handle ZIP file VIEW intents with content scheme
- Implements automatic navigation to FlashScreen in MainActivity when a ZIP file intent is detected
Reviewed Changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
| manager/app/src/main/AndroidManifest.xml | Adds intent filter to MainActivity for handling ZIP files with VIEW action, content scheme, and application/zip MIME type |
| manager/app/src/main/java/me/weishu/kernelsu/ui/MainActivity.kt | Adds LaunchedEffect to detect ZIP file intents and navigate to FlashScreen with the file URI when isManager is true |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
1d630ea to
01e8621
Compare
There was a problem hiding this comment.
Pull Request Overview
Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
There was a problem hiding this comment.
Pull Request Overview
Copilot reviewed 2 out of 2 changed files in this pull request and generated 4 comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
…ine manifest intent filter.
…nn#2967) Co-authored-by: sakana164 <76257039+sakana164@users.noreply.github.com> Signed-off-by: u9521 <63995396+u9521@users.noreply.github.com>
…nn#2967) Co-authored-by: sakana164 <76257039+sakana164@users.noreply.github.com> Signed-off-by: u9521 <63995396+u9521@users.noreply.github.com>
…nn#2967) Co-authored-by: sakana164 <76257039+sakana164@users.noreply.github.com> Signed-off-by: u9521 <63995396+u9521@users.noreply.github.com>
Signed-off-by: sakana164 [76257039+sakana164@users.noreply.github.com]