├── beta.json ├── canary.json ├── debug.json ├── docs ├── faq.md └── internal-guide.md ├── logo.png ├── note.md └── stable.json /beta.json: -------------------------------------------------------------------------------- 1 | { 2 | "magisk": { 3 | "version": "R6573543B-kitsune-coui", 4 | "versionCode": "26401", 5 | "link": "https://github.com/color597/magisk-files/releases/download/R6573543B-kitsune-coui/R6573543B-kitsune-coui-release.apk", 6 | "note": "https://color597.github.io/magisk-files/note.md" 7 | }, 8 | "stub": { 9 | "versionCode": "38", 10 | "link": "https://github.com/color597/magisk-files/releases/download/stub-R6573543B-kitsune-coui/R6573543B-kitsune-coui-release.apk" 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /canary.json: -------------------------------------------------------------------------------- 1 | { 2 | "magisk": { 3 | "version": "R6573543B-kitsune-coui", 4 | "versionCode": "26401", 5 | "link": "https://github.com/color597/magisk-files/releases/download/R6573543B-kitsune-coui/R6573543B-kitsune-coui-release.apk", 6 | "note": "https://color597.github.io/magisk-files/note.md" 7 | }, 8 | "stub": { 9 | "versionCode": "38", 10 | "link": "https://github.com/color597/magisk-files/releases/download/stub-R6573543B-kitsune-coui/R6573543B-kitsune-coui-release.apk" 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /debug.json: -------------------------------------------------------------------------------- 1 | { 2 | "magisk": { 3 | "version": "R6573543B-kitsune-coui", 4 | "versionCode": "26401", 5 | "link": "https://github.com/color597/magisk-files/releases/download/R6573543B-kitsune-coui/R6573543B-kitsune-coui-release.apk", 6 | "note": "https://color597.github.io/magisk-files/note.md" 7 | }, 8 | "stub": { 9 | "versionCode": "38", 10 | "link": "https://github.com/color597/magisk-files/releases/download/stub-R6573543B-kitsune-coui/R6573543B-kitsune-coui-release.apk" 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /docs/faq.md: -------------------------------------------------------------------------------- 1 | ## FAQ 2 | 3 | ### How to install Magisk Delta from start? 4 | 5 | - Process like installing Magisk: 6 | 7 | ### How to switch from current Magisk to Magisk Delta and vice versa? 8 | 9 | Just do like when you update Magisk! 10 | 11 | #### Direct Install (Recommended) 12 | 13 | 1. Install, open and then grant root acccess to Magisk Delta. 14 | 2. In **Magisk** section, tap "Install" and then "Direct Install". If you don't see this, try close and open the app. 15 | 16 | #### Just flash Magisk Delta from current Magisk app 17 | 18 | 1. Rename the extension `magisk.apk` to `magisk.zip` 19 | 2. Open Magisk app, click "Modules" tab -> "Install from storage" and choose `magisk.zip` 20 | 21 | #### Install Magisk directly to `/system` (Not recommended) 22 | 23 | > Please only use this method on ROM with Permissive SELinux mode or Enforcing SELinux with permissive "u:r:su:s0" context in sepolicy rules such as userdebug ROM like LineageOS. You should have a backup of your ROM in case system can't boot and do not use broken Custom Recovery. Your ROM must be able to mount read-write and your kernel must support dynamic SeLinux rules patch. Process this method at your own risk! 24 | 25 | 26 | For some reasons, you don't want to install Magisk in regular way (patch boot imge), you can install Magisk directly to `/system`. 27 | 28 | 1. Restore to stock boot image if you already have Magisk installed 29 | 2. Boot to recovery, rename `magisk.apk` to `systemmagisk.zip` and flash it. 30 | 3. If you want to update Magisk, please use **Direct Install into system partition** instead of **Direct Install** 31 | 32 | ### How to install Magisk into Android-x86 project or Android emulator 33 | 34 | #### Before start: 35 | 36 | 1. Only Magisk Delta support Magisk installation into system partition. 37 | 2. Although emulator has ramdisk image, patching ramdisk is not used because ramdisk is stored in seperate partition with very SMALL disk size that is not enough to store Magisk binaries. 38 | 3. Latest Magisk Delta Canary has been adopted to support Bluestacks, ~~but need [app_process wrapper](https://github.com/HuskyDG/app_process_wrapper/releases) to run Zygisk.~~ 39 | 4. List of emulators have been tested: NoxPlayer, LDPlayer, MEmu. 40 | 5. List of Android x86 project has been tested: BlissOS, PrimeOS 41 | 6. Waydroid is supported on Canary build. 42 | 43 | #### Step to step to install Magisk into emulator like NoxPlayer, LDPlayer, MemuPlayer,... 44 | 45 | 1. Enable Root access in emulator settings 46 | 2. Install and open Magisk Delta 47 | 3. Grant root access to Magisk Delta, click "Install" under Magisk field and use "Direct Install into system partition" option instead of "Direct Install" option (If you don't see this option, close and re-open Magisk Delta app) Don't restart now! 48 | 4. ~~Disable Root access in emulator settings.~~ Backup built-in `su` (`/system/bin/su` and `/system/xbin/su`) and delete them (in case you want to uninstall Magisk and restore to built-in `su`), then reboot. Because emulators like LDPlayer will remove all `su` after disable ROOT from settings, **DO NOT** disable Root access in emulator settings. 49 | 5. Enjoy Magisk! 50 | 51 | #### Step to step to install Magisk into Bluestacks 52 | 53 | 1. Download Bluestacks Tweaker from [here](https://bstweaker.tk/) 54 | 2. Use Bluestacks Tweaker and click "Unlock" to unlock Bluestacks instance and then launch it, overwise you can't install Magisk 55 | 3. When the instance starts up successfully, click "Patch" to open root access, install Magisk Delta and execute "Direct Install into system partition" action 56 | 4. When you are done, click "UnPatch" and then relanch the instance. 57 | 5. Enjoy Magisk! 58 | 59 | #### Step to step to install Magisk into Android-x86 project 60 | 61 | - You can use [initrd-magisk](https://github.com/HuskyDG/initrd-magisk) or directly install Magisk into system partition like guide above. 62 | 63 | #### Step to step to install Magisk on Waydroid 64 | 65 | - Please check or for more information. 66 | 67 | ### After enabling MagiskHide, why my app/game can still detect emulator? 68 | 69 | MagiskHide is not emulator-detection bypass 70 | 71 | ### How to manually trigger Core-only mode from Recovery? 72 | 73 | Create a empty file named `.disable_magisk` in these location: `/cache`, `/persist` or `/metadata` 74 | 75 | ### Why not restore Magisk modules online repo? 76 | 77 | The official Magisk modules repository is dead and no longer maintained. Due to that, add them back is meanless. However, [Fox2Code](https://github.com/Fox2Code) has developed [Magisk Modules Manager](https://github.com/Fox2Code/FoxMagiskModuleManager) app which allows you to download Magisk modules online. 78 | 79 | ### Should I install Shxxxxo module to hide root? 80 | 81 | - It is not recommended, you should uninstall it. If not, don't complain me about crashing. MagiskHide should be enough. 82 | - If you really want to use Shxxxxo, then uninstall Magisk Delta and use Official Magisk ¯\_(ツ)_/¯ 83 | 84 | ### Why some modules are broken after enabling SuList? 85 | 86 | SuList means MagiskSU and modules are not mounted by default, only the those apps in the list will have Magisk mounted, so the functionality of the modules is not fully supported because most of them must be mounted in all apps, which is equivalent to be detected. More information about SuList, please [read this](./internal-guide.html#magiskhide-sulist) 87 | -------------------------------------------------------------------------------- /docs/internal-guide.md: -------------------------------------------------------------------------------- 1 | # Magisk Delta Internal Documentation 2 | 3 | This document explains some of the advanced features of Magisk Delta, a systemless root solution for Android devices. Magisk Delta allows you to modify your device without altering the original boot image, and provides a unified interface for managing modules, root access, and more. 4 | 5 | ## Early mount 6 | 7 | Some files need to be mounted as early as possible in the boot process, before the `init` process is executed. Magisk Delta provides a way to mount files in the `pre-init` stage, using the `early-mount.d` directory. 8 | 9 | - To check if Magisk Delta supports `early-mount.d/v2`, use this code: 10 | 11 | ``` 12 | EARLYMOUNTV2=false 13 | if grep "$(magisk --path)/.magisk/early-mount.d" /proc/mounts | grep -q '^early-mount.d/v2'; then 14 | EARLYMOUNTV2=true 15 | fi 16 | ``` 17 | 18 | - To find the `early-mount.d` directory (Magisk v26+), use this code: 19 | 20 | ``` 21 | $(magisk --path)/.magisk/early-mount.d 22 | ``` 23 | 24 | ### General 25 | 26 | - The general early-mount partition will be mounted at `$MAGISKTMP/.magisk/early-mount.d` due to the new sepolicy rules implementation in Magisk Delta v26.0+ with `early-mount.d/v2`. The early-mount partition is the same as the preinit partition, which could be one of these: `data`, `cache`, `metadata`, `cust`, `persist`, etc. Magisk will hardcode the preinit partition while patching the boot image. 27 | 28 | > (*) Be careful when using `persist` or `metadata` for early-mount, as these partitions have very limited size. Filling them up might cause the device to fail to boot. 29 | 30 | - You can place your files into the corresponding location under the `early-mount.d` directory. For example, if you want to replace `/vendor/etc/vintf/manifest.xml`, copy your `manifest.xml` to `$MAGISKTMP/.magisk/early-mount.d/system/vendor/etc/vintf/manifest.xml`. Magisk Delta will mount your files in the next reboot. Other files that are not in `early-mount.d/system` will be ignored. 31 | 32 | ### Module 33 | 34 | - Since Magisk Delta v26.0+ with `early-mount.d/v2`, you can also place your early-mount files in `/data/adb/modules//early-mount`. 35 | 36 | **Note: Early-init mount only supports simple mount, which means it can replace files but cannot add new files, folders or replace folders** 37 | 38 | ## init.rc inject 39 | 40 | ### General 41 | 42 | If you want to inject custom `*.rc` scripts into your device without repacking the boot image, Magisk Delta provides a way to do that systemlessly. You can use the `initrc.d` directory to store your custom scripts, and Magisk Delta will inject them into `init.rc` every boot. 43 | 44 | - The location of custom `*.rc` scripts is `$PRENITDIR/early-mount.d/initrc.d`. Magisk Delta will inject all scripts in this folder into `init.rc` every boot. 45 | - You can use `${MAGISKTMP}` to refer to Magisk's tmpfs directory. Every occurrence of the pattern `${MAGISKTMP}` in your `*.rc` scripts will be replaced with the Magisk tmpfs directory when magiskinit injects it into `init.rc`. 46 | - Magisk's mirror will not be available while booting, so you need to use this pattern `${MAGISKTMP}/.magisk/early-mount.d` to access the copy of the `early-mount.d` directory. 47 | 48 | - Here is an example of a custom script named `custom.rc` that you can use with `initrc.d`: 49 | 50 | ``` 51 | # Use ${MAGISKTMP} to refer to Magisk's tmpfs directory 52 | 53 | on early-init 54 | setprop sys.example.foo bar 55 | insmod ${MAGISKTMP}/.magisk/early-mount.d/libfoo.ko 56 | start myservice 57 | 58 | service myservice ${MAGISKTMP}/.magisk/early-mount.d/myscript.sh 59 | oneshot 60 | ``` 61 | 62 | ### Module 63 | 64 | - Since Magisk Delta v26.0+ with `early-mount.d/v2`, you can also place your initrc.d files in `/data/adb/modules//early-mount/initrc.d`. 65 | 66 | ## Remove files and folders 67 | 68 | - Using Magisk module is the easy way to modify system partitions without actually making changes to the system partitions, and the changes can be easily. Magisk modules can replace and add any file or folder to system. However, removing files by Magisk modules is still not allowed. 69 | 70 | - In Magisk documentation: 71 | 72 | > It is complicated to actually remove a file (possible, not worth the effort). Replacing it with a dummy file should be good enough 73 | 74 | > It is complicated to actually remove a folder (possible, not worth the effort). Replacing it with an empty folder should be good enough. Add the folder to the replace list in "config.sh" in the module template, it will replace the folder with an empty one 75 | 76 | - In some case, replacing file or folder with empty one is not enough and might cause issue, some modding require files to be disappeared in order to take effect. So Magisk Delta has added removal support for modules: Create the broken symlink which points to `/xxxxx` into the corresponding location of module directory 77 | 78 | - Example creating symbolic link as `/data/adb/modules/mymodule_id/system/vendor/etc/thermal-engine-normal.conf`, the target `/vendor/etc/thermal-engine-normal.conf` will be ignored and disappeared 79 | 80 | ``` 81 | ln -s "/xxxxx" /data/adb/modules/mymodule_id/system/vendor/etc/thermal-engine-normal.conf 82 | ``` 83 | 84 | -------------------------------------------------------------------------------- /logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/color597/magisk-files/87c10c8922c8263a747c199e8cff2373c9702c46/logo.png -------------------------------------------------------------------------------- /note.md: -------------------------------------------------------------------------------- 1 | ## ColorOS UI style for Kitsune Mask 2 | 3 | - Sync upstream (Update to R6573543B-kitsune) 4 | 5 | If you like my work, you can donate me at [Color597's donation document](https://docs.qq.com/doc/DTFdTQm1RcENCVUJ5) 6 | 7 | ### Diffs to Kitsune Mask 8 | 9 | - [Manager] New UI, ColorOS UI style for Magisk Manager 10 | - [General] Fix ramdisk detect for some MTK devices 11 | 12 | ## 26.4-kitsune (R6573543B-kitsune) 13 | 14 | **💣 CAUTION! You are using a version of Magisk that is not approved by the official Magisk developer. This version may have risky changes that could damage your device or expose your data. Do not ask for any support or report any problems to the official Magisk channels. If you are using this version without knowing it is unofficial, please switch to the official Magisk at [github.com/topjohnwu/Magisk](https://github.com/topjohnwu/Magisk). USE THIS AT YOUR OWN RISK!** 15 | 16 | ### Diffs to official Magisk 17 | 18 | - [App] Added a new feature to install Magisk into `/system` partition for emulators that do not have a boot image. This allows users to root their emulators without modifying the kernel or the ramdisk. 19 | - [Zygisk] Changed the method of injecting zygote process by using ptrace implementation from [ZygiskNext](https://github.com/Dr-TSNG/ZygiskNext), it is an open source project written by [Dr-TSNG](https://github.com/Dr-TSNG/ZygiskNext) and [5ec1cff](https://github.com/5ec1cff). This is more reliable and compatible with some emulators that ignore `ro.dalvik.vm.native.bridge` property. 20 | - [General] Enhanced the support for mounting in pre-init for modules. This enables modules to modify the system before the init process starts, which can be useful for some advanced use cases. 21 | - [General] Implemented a new feature to support deleting file by using indicated whiteout character device, similar to `overlayfs`. This allows modules to delete files from the original system without actually modifying it. 22 | - [Zygisk] Added support for GrepheneOS Android 14, a privacy and security focused mobile OS with Android app compatibility. This is because the official Magisk does not support it. 23 | - [General] Restored support for devices with no selinux support, which was removed by the official Magisk. This allows users to use Magisk on devices that do not have selinux enabled. 24 | 25 | ### Magisk upstream level 26 | 27 | - HEAD commit: ecb31ee -------------------------------------------------------------------------------- /stable.json: -------------------------------------------------------------------------------- 1 | { 2 | "magisk": { 3 | "version": "R6573543B-kitsune-coui", 4 | "versionCode": "26401", 5 | "link": "https://github.com/color597/magisk-files/releases/download/R6573543B-kitsune-coui/R6573543B-kitsune-coui-release.apk", 6 | "note": "https://color597.github.io/magisk-files/note.md" 7 | }, 8 | "stub": { 9 | "versionCode": "38", 10 | "link": "https://github.com/color597/magisk-files/releases/download/stub-R6573543B-kitsune-coui/R6573543B-kitsune-coui-release.apk" 11 | } 12 | } 13 | --------------------------------------------------------------------------------