[Discussion] Magisk Delta - Another unofficial third-party Magisk fork

Search This thread

zgfg

Senior Member
Oct 10, 2016
9,649
7,512
Redmi K20 / Xiaomi Mi 9T
Xiaomi Mi 11
Hello, what are the differences between Magisk and Magisk Delta? Thank you have a nice day.
Several. With Delta you can use the old (used to be better for hiding) MagiskHide instead of DenyList. And optionally in SuList (that is, whitelist mode). Etc (some don't enable Zygisk and use Riru modules instead - again, for hiding). Please take time and read through the discussion in this thread
 
  • Like
Reactions: martyfender

Reo0o

Senior Member
May 15, 2012
65
2
Hello Guys,

Anyone having problem in rooting the new 13.1 update ?
Yesterday I updated my Oneplus 8T KB2003. Then I pulled the boot.img , patched it then flashed it on both slots a&b but Magisk Delta didn't detect the root ( installed N/A )

Oneplus 8T KB2003
OTA Oxygen 13.1.0.513(EX01)
Magist Delta 25210 Canary

Update:
I tried Official magisk 26.1 & 25.2 and the same problem happened
 
Last edited:

bishoy ashraf

Senior Member
Aug 30, 2015
148
10
From delta telegram about sulist usage
1.
Tips: In order to make modules more compatible with SuList, Magisk Delta supports mount module for SuList apps again after all modules file are directly unmounted from zygote process. However, it is better to enable Core-only mode before switching to SuList, add necessary apps to load modules then enable modules and reboot. If there is something wrong (SystemUI crashs), you can connect your device to adb and disable sulist by this command and reboot:

adb shell su -c magisk --hide sulist disable


Theme modules usually need SystemUI, Settings and Launcher to always be added to SuList to prevent crashing, there might be additional apps need to be added also

2.
This module will help you to add all module apps to sulist to prevent crashing. It uses aapt binary to parse the package name of apk (I forgot the source) As it is heavy to add code that automatically add module files to Magisk Delta, I won't add it.
sulist-auto-whitelist.zip
Could you provide a link to sulist-auto-whitelist.zip
 

asripath

Senior Member
Jul 12, 2020
290
240
Redmi K20 Pro
Samsung Galaxy Tab A8
Hello Guys,

Anyone having problem in rooting the new 13.1 update ?
Yesterday I updated my Oneplus 8T KB2003. Then I pulled the boot.img , patched it then flashed it on both slots a&b but Magisk Delta didn't detect the root ( installed N/A )

Oneplus 8T KB2003
OTA Oxygen 13.1.0.513(EX01)
Magist Delta 25210 Canary

Update:
I tried Official magisk 26.1 & 25.2 and the same problem happened

Have a OP8T as well and was able to upgrade to 13.1 just fine.

After patching the boot img, did you install Magisk to inactive slot? You must do this to retain root
 

m0han

Senior Member
Apr 30, 2012
5,797
2,890
OnePlus 11

Attachments

  • 20230531-092943.jpg
    20230531-092943.jpg
    193.3 KB · Views: 246

appman1234

Senior Member
Jun 5, 2012
399
139
Some users claimed they have issues with Systemless hosts/AdAway

That module installs its own hosts file at the time of installation file and it uses then the same Magisk systemless mechanism to mount over the /etc/hosts file but not by the use of Magisk built-in Systemless hosts)

Its hosts file will be updated only by updating the module. It says on GitHub that module will be updated every month but the latest version there is from December

I don't use the module but some say here (or in the AdAway thread) that they are ok with
Hi, zgfg.
I met the same issue as some others, i.e. by using sulist, only Systemless hosts/AdAway is not working; everything else works properly.
Currently, I switched to AdAway VPN mode instead of ROOT mode to block ads.
Read through recently tens of messages but cannot find out the resolution. Any break-through from anyone?
Thanks in advance.
 
Last edited:

zgfg

Senior Member
Oct 10, 2016
9,649
7,512
Redmi K20 / Xiaomi Mi 9T
Xiaomi Mi 11
Hi, zgfg.
I met the same issue as some others, i.e. by using sulist, only Systemless hosts/AdAway is not working; everything else works properly.
Currently, I switched to AdAway VPN mode instead of ROOT mode to block ads.
Read through recently tens of messages but cannot find out the resolution. Any break-through from anyone?
Thanks in advance.
If using Magisk Delta with SuList, you MUST put all root apps to SuList - incl. AdAway

That's what it means SuList = MagiskHide Whitelist mode

In the normal (Blacklist) MagiskHide or DenyList mode, you put to MagiskHide (DenyList)l those apps you want to hide Magisk from, in the SuList mode you must add all root apps (AdAway, modules apps) to the SuList

Actually, that's not the question for AdAway but for the Magisk fork you're using (SuList is not in the official Magisk, not even MagiskHide - in the official Magisk you have only DenyList), ie about the proper usage/configuration of your particular unofficial Magisk fork

If you use Magisk Delta, please read in the Delta thread on XDA about the SuList config

I'm not familiar with the new Magisk Alpha settings/usage (if needed, please check on their Telegram channel)
 
Last edited:

appman1234

Senior Member
Jun 5, 2012
399
139
If using Magisk Delta with SuList, you MUST put all root apps to SuList - incl. AdAway

That's what it means SuList = MagiskHide Whitelist mode

In the normal (Blacklist) MagiskHide or DenyList mode, you put to MagiskHide (DenyList)l those apps you want to hide Magisk from, in the SuList mode you must add all root apps (AdAway, modules apps) to the SuList

Actually, that's not the question for AdAway but for the Magisk fork you're using (SuList is not in the official Magisk, not even MagiskHide - in the official Magisk you have only DenyList), ie about the proper usage/configuration of your particular unofficial Magisk fork

If you use Magisk Delta, please read in the Delta thread on XDA about the SuList config

I'm not familiar with the new Magisk Alpha settings/usage (if needed, please check on their Telegram channel)
Thanks for your reply.
I did all the necessary settings you mentioned already. My bank apps, root apps, Google wallet, SafetyNet, etc all working well except AdAway.
That's why I'm curious about anyone has solve the issue here.
Thanks again.
 

zgfg

Senior Member
Oct 10, 2016
9,649
7,512
Redmi K20 / Xiaomi Mi 9T
Xiaomi Mi 11
Thanks for your reply.
I did all the necessary settings you mentioned already. My bank apps, root apps, Google wallet, SafetyNet, etc all working well except AdAway.
That's why I'm curious about anyone has solve the issue here.
Thanks again.
I use Magisk Delta with SuList and AdAway works fine for me.
On my second phone I use Magisk Canary (DenyList) and AdAway also works fine for me.
On both phones AdAway in the root mode with Systemless hosts enabled

Btw, you quoted one my old post - but that post was mostly an answer to some user who asked about the following module, not about AdAway:

If you have a particular problem with AdAway (root mode), then please precisely describe what is your problem (and what is your configuration)

In my post you quoted, there was no particular problem with AdAway described (I only wrote generally "Some users have problems with AdAway") hence I don't see how to answer about the "resolution" for your "problem"

Ie, pls don't expect that people would roll out to the old messages, trying to find if there was some context at that time of my old quoted post or later (if you posted your problem at some point) to figure out about the problem you have

There might be a problem with Systemless hosts on some ROMs (it was discussed here).
Some Magisk versions do not support systemless modules.
Some users may have problem with Chrome or particular apps (not blocking ads), etc.
 
Last edited:

appman1234

Senior Member
Jun 5, 2012
399
139
I use Magisk Delta with SuList and AdAway works fine for me.
On my second phone I use Magisk Canary (DenyList) and AdAway also works fine for me.
On both phones AdAway in the root mode with Systemless hosts enabled

Btw, you quoted one my old post - but that post was mostly an answer to some user who asked about the following module, not about AdAway:

If you have a particular problem with AdAway (root mode), then please precisely describe what is your problem (and what is your configuration)

In my post you quoted, there was no particular problem with AdAway described (I only wrote generally "Some users have problems with AdAway") hence I don't see how to answer about the "resolution" for your "problem"

Ie, pls don't expect that people would roll out to the old messages, trying to find if there was some context at that time of my old quoted post or later (if you posted your problem at some point) to figure out about the problem you have

There might be a problem with Systemless hosts on some ROMs (it was discussed here).
Some Magisk versions do not support systemless modules.
Some users may have problem with Chrome or particular apps (not blocking ads), etc.
I eventually fixed it because of your reply:-
I changed my Magisk Delta from Canary (v25210) to Stable/Beta (v25206). The AdAway in root mode is now working!
So there should be some issues between Magisk Delta Canary (v25210) with using Enforce SuList and AdAway in root mode.
Thanks a lot!
 
Last edited:

zgfg

Senior Member
Oct 10, 2016
9,649
7,512
Redmi K20 / Xiaomi Mi 9T
Xiaomi Mi 11
I eventually fixed it because of your reply:-
I changed my Magisk Delta from Canary (v25210) to Stable/Beta (v25206). The AdAway in root mode is now working!
So there should be some issues between Magisk Delta Canary (v25210) with using Enforce SuList and AdAway in root mode.
Thanks a lot!
I use latest Delta Canary v25210 fdac22ba and it works for me
 

appman1234

Senior Member
Jun 5, 2012
399
139
I use latest Delta Canary v25210 fdac22ba and it works for me
Same version of Canary but did not work for me if using SuList. My phone is Redmi K20 Pro with MIUI 14 v14.0.12 (port rom) in Android 13.
Your previous post said "I use Magisk Canary (DenyList)" - Yes, it works for me too if using DenyList.
 

pndwal

Senior Member
or perhaps google wrote him that they were about to sue him if wouldn't stop development? as they did with John
Are you thinking of the cease and desist notice Google sent Steve Kondic for bundling proprietary gms (GApps) with CyanogenMod years ago?...

John Wu has been careful in recent times to remove proprietary code from Magisk, and since doing that has also removed MagiskHide and ceased any 'root hiding business as it is just straight up conflict of interest' to 'spoof/alter/manipulate any non-Magisk related signals or traces to circumvent any device state detection' particularly because of his 'having access to almost all Google source code (as all Googlers [Google employees] do)'...

Far from threatening to sue, Google simply reviewed his involvement with the modding community and his Magisk project and contributions, 'going through his management chain, copyright, legal, code of conduct etc before granting him approval to continue. Apparently 'employees at most big tech companies simply aren’t allowed to create/contribute to their own open source projects without going through some kind of review process'.

John said "I have to thank all the support from my managers as they take the majority of the credit on all the communication involved during the review process".

👀 PW
 

zgfg

Senior Member
Oct 10, 2016
9,649
7,512
Redmi K20 / Xiaomi Mi 9T
Xiaomi Mi 11
Does Husky's OverlayFS module work on Magisk Delta without the need for special KernelSU?

I tried to install to my phone with Magisk 26102 and the installation failed saying that special kernel is required

Then I tried to my other phone with Magisk Delta latest (still 25210) and it successfully installed

And I played with eg hosts file. I disabled AdAway, it returned me the hosts file back to 34b default one (no ads blocking)

Then I copied my hosts file (15MB, AdAway) from the other phone, and with OverlayFS I was able to do it (my System is otherwise read-only)
I
So when I disable OverlaFS and reboot, I have default 34b hosts file

When I enable OverlayFS and renoot, I have that 34 MB hosts file that I copied from the other phone (and ofc, ads are correctly blocked although my AdAway is still disabled)

Hence, OverlayFS definitely works for me, mounting my /system as read-write while the module is enabled

On the other side, I cannot believe that my Xiaomi.eu ROM (MIUI 13, A12), now almost 8 months old, has KernelSU built-in
 

Top Liked Posts

  • 5
    For all Malaysian users here, I did a quick test. Basically, uninstalled magisk, then install step by step and test the banking apps as below. Hope this will benefit and give some ideas to new users here.

    I am using magisk delta version 0fe46c5a. As of now, I think RHB is the most sensitive as I think it is detecting play integrity or HMA or Shamiko because even disabling them, RHB still does not work, probably needs uninstall. However, the workaround shared by me earlier is to create another partition(called second space in MIUI) and install RHB there, it will work even with sequence 6 below.

    1696416927356.png
    2
    I was using Riru LSPosed. I ditched Zygisk after switching to MD as Shamiko wasn't able to hide it from many apps.
    P.S. Kernel SU isn't available for your device assuming it is the Poco F2 Pro?
    Edit: I had to restore a TWRP backup from August so MD is no longer on the latest Canary and MagiskHide instead of Unmount Modules but I don't think it makes any difference. BTW uninstall HMA and check. Also any modules to hide Dev. Options if any.
    Applist detector shows that you don't have HMA properly configured. You have to hide your Magisk App and your Lsposed modules from the banking apps (and from Applist detector). Put them in a Blacklist template and apply it to all of them. That way everything is hidden.

    To hide Dev Options there is a Lsposed module called IAmNotADeveloper.
    1
    How do you do a downgrade? Do you need to uninstall the problematic one then reinstall or can you just install over it?
    I didn't do the downgrade - I didn't even update to this last Delta
    But I always keep my last patched boot.img and then I install the older Magidk app and flash my old patched boot.img
    1
    Disabling HMA won't help?Must be uninstalled?
    In my case only uninstalling it helped.
    1
    For all Malaysian users here, I did a quick test. Basically, uninstalled magisk, then install step by step and test the banking apps as below. Hope this will benefit and give some ideas to new users here.

    View attachment 6017365
    Congratulations! So, shamiko was the key if you wanted to use zygisk or lsposed. Nice work.
  • 5
    For all Malaysian users here, I did a quick test. Basically, uninstalled magisk, then install step by step and test the banking apps as below. Hope this will benefit and give some ideas to new users here.

    I am using magisk delta version 0fe46c5a. As of now, I think RHB is the most sensitive as I think it is detecting play integrity or HMA or Shamiko because even disabling them, RHB still does not work, probably needs uninstall. However, the workaround shared by me earlier is to create another partition(called second space in MIUI) and install RHB there, it will work even with sequence 6 below.

    1696416927356.png
    3
    The last update of iMobile is a real PITA. I remember when the app used to run just fine with just Magisk Hide, and then when Magisk Hide was deprecated, with Shamiko. Then came an update which started detecting apps too, but HMA took care of it. Then came another update which started detecting if Developer Options were enabled, again IAmNotADeveloper module fixed that. And now came this update, which is detecting God knows what.

    For the latest update, I tried uninstalled the LSPosed Manager app (was not using the Parasitic Manager since HMA was hiding it fine), disabled the module in Magisk and rebooted but the app still detected root. Suggestions? Only thing I haven't tried is completely uninstalling the module from Magisk, but I'm willing to give that a shot too when I have more time.

    I'll probably explore KernelSU (again, when I have some more time) and see if that helps, but I'll only switch to it if all my other modules, etc. work fine with it. Plus I'll also check if it works with Island, just in case.

    On a separate note, @pndwal any chance you can test the app (link to PlayStore) with NB Zygisk? Maybe it works with that, just wondering.
    Probably detecting Zygisk then...

    Hidable with LSPosed Metagisk Magisk WIP native bridge loaded Zygisk built in Alpha fork + latest Shamiko, Alpha Magisk hidden in stub ('Hide the Magisk app') and added in HMA XPosed module (w/ LSPosed) along with HMA itself and all other XPosed modules and all root apps and any associated with modding in any way:
    IMG_20230927_221658.jpg

    Nb. NB-Z may still not be fully baked but seems conflicts are now resolved... Devs hoped it would be ready for official Magisk 27.0... This PR:
    Refactor zygisk to use native bridge to inject

    So you can wait for official or try it in bleeding edge Alpha if you can't wait (warts and all)...

    Nb.2. I have Developer options, OEM unlocking and USB debugging disabled as well as Parasitic LSPosed manager openable via status notification (no shortcut) and haven't attempted otherwise...

    Nb. I always have Magisk hidden in stub and on hiding apps from banks in HMA (needed for this and app below) I include Magisk (hidden) stub app in hide templates too... Did this since observing that either obfuscating Magisk in stub or hiding full App via HMA wasn't enough for Sparkasse pushTAN German bank; Both methods were needed in tandey to circumvent their Promon security engine's dex pattern matching as well as simple package detection...So I haven't tried with full App and HMA...

    Hi,
    I'm using Lineage os 20 (A13) on oneplus9r, with Magisk delta.
    Few days back, my banking apps got updated, and they started detecting root.
    I updated the magisk delta to 26301, tried magisk also.
    Safetynet is passing with basic evaluation.
    But in Play integrity, all three are failing.

    Feeling clueless.

    Need help.

    iMobile Pay-Banking,Cards,Loan - Apps on Google Play

    Instant Loan, UPI, Fastag, Bill Payments & more for both ICICI & Non-ICICI users
    play.google.com

    Kotak Mobile Banking App - Apps on Google Play

    Kotak Mahindra Bank’s official mobile banking application for Android phones.
    play.google.com
    Click to collapse
    They are working in my case. Only the HDFC e Rupee app isn't working in the Mainland but at least it's working in Island. Strong Integrity fails of course but the other two pass.
    For Kotak to work I had to freeze the Magisk app. In case of iMobile I had to uninstall LSPosed. Even with HMA it was no good.
    P.S. Kernel SU is available for the OP9r. Use it instead. Every app works just fine as of now.
    Edit: Interestingly in case of the HDFC e Rupee app if I don't freeze the Magisk app it reports that Magisk rooting detected but after freezing it displays Rooting detected. When the Magisk app isn't hidden the message displayed is SU binary detected.
    So I've tested both iMobile Pay and Kotak Mobile Banking App on my Xiaomi Redmi Note 8T, stock MIUI, Android 11, configured as above... Kotak Mobile Banking App also works with the same setup:
    IMG_20230927_195448.jpg

    ... No need to freeze the Magisk App here...

    Hope it helps everyone... 🙂 PW
    2
    Magisk Delta has been updated to Magisk v26.3.
    They say the known bug from previous build should be fixed
    https://github.com/HuskyDG/magisk-files/releases/tag/24b5daf6-delta

    Things seem fine for me on my earlier device. Riru mode; not Zygisk. (All testing apps behave as before.)
    2
    Rebooting doesn't help, still magisk is not detected... During the troubleshooting for hiding magisk app, i also deleted my second space as I thought it was causing issue but now I don't dare to move further as I can't even install magisk by flashing using fastboot now. Hope some experts here can give me some pointers...Should have unhide before attempting to update....
    I see on TG channel that many have reported same/similar problem for the latest 8775765-Delta and they returned to the previous Delta version
    2
    Just sharing my current set up with new rom PixelOS on Pixel 7
    - magisk delta 26.3
    - zygisk enabled
    - youtube/music revanced/pixelify submodules
    - Unmount options ticked on both
    - Under mount list, only configured app that requires root such as Swift Backup
    - safetynet passed basic by default (PixelOS)

    TnG, MAE work
    HLB work (only version 1.1.51, newer like 52 will not work for now)
    Google Wallet works too for my CIMB CC
  • 66
    This is not an officially supported topjohnwu project.
    If you are looking for official Magisk source, please go to this page


    Introduction

    Custom Magisk fork by HuskyDG. Sync with official Magisk adding back MagiskHide.
    http://huskydg.github.io/magisk-files

    REPORT BUG IS STILL ACCEPTED ON XDA THREAD BUT PLEASE INCLUDE ADDITIONAL INFORMATION SUCH AS LOGCAT AND MAGISK LOG
    8
    Ptrace MagiskHide ported as Magisk module which allows user to hide without enabling Zygisk on Official Magisk v24.0+

    7
    Revive MagiskHide from Magisk v23.0
    • The implementation of MagiskHide is ptrace Zygote process, every forks of Zygote will be notified and traced also.
    • MagiskHide from Magisk v23.0 which monitors every thread spawn event of Zygote fork (app process is heavily a multithreads process which will spawn threads to trigger MagiskHide to check UID and cmdline)
    • There is an exception that app zygote does not spawn threads and thus it won’t trigger MagiskHide to unmount Magisk and detach. (MagiskDetector and Momo take advantages of this fact to detect MagiskHide through ptrace)
    • To fix this problem, we trace the syscalls prctl() instead of thread spawn event of Zygote fork like MagiskHide in Magisk v23.0
    • After processes has been forked from zygote, there will be atleast prctl() is called to change the process name. For normal app process and isolated process, the process name will be changed as followed:
      • zygote -> (unknown name) -> <pre-initialized> -> (process name). So the key is <pre-initialized>, after that we can guess it is target process or not.
    • For app zygote, there is only once prctl() is called to change process name: zygote -> package.name_zygote.
    • The changing process name happens before apk is being loaded so we can detach it from ptrace, do unmount all Magisk files and nearly there is no traces left after that.
    6
    And now Bingo, with today's Magisk-017cca27-delta(25205), Momo does no more detect Zygisk

    - Zygisk and MagiskHide enabled, Shamiko disabled
    👍
    Btw, maybe I should start thinking of Livin' by Mandiri 😁
    Interesting analysis from @5ec1cff here:
    https://github.com/5ec1cff/my-notes/blob/master/analyse-livin.md

    Seems Livin / others may use smap for detection... This study discusses TJW's sanitize environment commit not working properly and LSP fixes in Shamiko as well as efforts needed to hide zygisk hooks, esp for functions of libandroid_runtime.so:
    https://github.com/5ec1cff/my-notes/blob/master/new-idea-detect-zygisk.md
    ... I note dev refers to @canye's (Magisk Bravo) analysis of environment variables too...

    This article analyses more recent Zygisk changes and Dev's attempts to hide zygisk /proc/self/attr/current exposure etc:
    https://github.com/5ec1cff/my-notes/blob/master/zygisk-new-start-mode.md
    ... it ends with this conjecture:
    "Maybe it's time to consider loading zygisk with native bridge?"
    More on this and comparison w/ riru hiding / methods and plans for hiding Zygisk here:
    https://github.com/5ec1cff/my-notes/blob/master/maru.md

    Many of the ideas revealed in Dev's notes above are implemented in Magisk Maru fork (and adopted for now in Delta)... See top 4 commits here:
    https://github.com/5ec1cff/Magisk/commits/maru
    ... use of complete native/src/zygisk/elf_util.cpp file from LSPosed in inject with native bridge Is interesting...

    ... Many other interesting notes here:
    https://github.com/5ec1cff/my-notes
    incl. "build-magisk-on-windows" etc...

    ... I've only taken a cursory glance at notes I mentioned...

    Very credible Zygisk hiding efforts for a fork like Delta however... 👍 👀 PW