feat: Magisk module install - #147
Draft
oSumAtrIX wants to merge 54 commits into
Draft
Conversation
Introduce Magisk-based installation support: add an abstract MagiskInstaller implementing install/uninstall/getInstallation logic for deploying patched APKs as Magisk modules (writes module.prop, copies patched APK to module, restarts/kills apps). Add platform-specific installers: AdbMagiskInstaller (ADB root) and LocalMagiskInstaller (local root via LocalShellCommandRunner, Closeable). Add Magisk-related constants (module paths, COPY_APK_TO_MODULE command, MAGISK_MODULE_PROP template) used by the installer.
…n/installer/Constants.kt Clearler command title Co-authored-by: oSumAtrIX <johan.melkonyan1@web.de>
Rename guard scripts to watchdog and update provisioning flow. MagiskUtils now references WATCHDOG_SCRIPT_PATH and writeModuleFiles (formerly writeInductionFiles), removing version/label parameters from provisioning APIs. Constants: add legacy mounted path, watchdog path, module filenames, STAGE_APK and INSTALL_MOUNT_SCRIPT templates; simplify module.prop fields. Shell templates improved for robustness: safer quoting/variable expansion, magisk mirror handling, improved unmount logic, pm install uses -S with a retry loop and waits for package manager readiness, log trimming, and other minor fixes. Also adjust mount/unmount commands, permission messages, and path handling in MagiskUtils.
Co-authored-by: oSumAtrIX <johan.melkonyan1@web.de>
Co-authored-by: oSumAtrIX <johan.melkonyan1@web.de>
…anced-library into feat/magisk-module
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.
Closes #127