manager: Prevent module installation via external sources in safe mode#3079
Conversation
There was a problem hiding this comment.
Pull request overview
This PR aims to prevent module installation via external sources (e.g., file managers) when KernelSU is in safe mode, adding a safety mechanism to protect the system.
- Added localized string resources for safe mode module installation warning (English and Chinese)
- Modified ZIP file intent handler to check for safe mode and display appropriate warning dialog
- Attempted to override dialog behavior to prevent installation in safe mode
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| manager/app/src/main/res/values/strings.xml | Added English string resource for safe mode module installation disabled message |
| manager/app/src/main/res/values-zh-rCN/strings.xml | Added Chinese translation for safe mode module installation disabled message |
| manager/app/src/main/java/me/weishu/kernelsu/ui/MainActivity.kt | Added safe mode check in ZIP file intent handler to prevent module installation, but contains a critical implementation bug |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
0f6b595 to
14abd40
Compare
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Replaced safe mode dialog with a Toast message for warnings.
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
tiann#3079) Signed-off-by: sakana164 <76257039+sakana164@users.noreply.github.com> --------- Co-authored-by: Wang Han <416810799@qq.com> Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
tiann#3079) Signed-off-by: sakana164 <76257039+sakana164@users.noreply.github.com> --------- Co-authored-by: Wang Han <416810799@qq.com> Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
tiann#3079) Signed-off-by: sakana164 <76257039+sakana164@users.noreply.github.com> --------- Co-authored-by: Wang Han <416810799@qq.com> Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
tiann#3079) Signed-off-by: sakana164 <76257039+sakana164@users.noreply.github.com> --------- Co-authored-by: Wang Han <416810799@qq.com> Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
tiann#3079) Signed-off-by: sakana164 <76257039+sakana164@users.noreply.github.com> --------- Co-authored-by: Wang Han <416810799@qq.com> Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
tiann#3079) Signed-off-by: sakana164 <76257039+sakana164@users.noreply.github.com> --------- Co-authored-by: Wang Han <416810799@qq.com> Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
tiann#3079) Signed-off-by: sakana164 <76257039+sakana164@users.noreply.github.com> --------- Co-authored-by: Wang Han <416810799@qq.com> Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Signed-off-by: sakana164 76257039+sakana164@users.noreply.github.com