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

Search This thread

zgfg

Senior Member
Oct 10, 2016
9,644
7,509
Redmi K20 / Xiaomi Mi 9T
Xiaomi Mi 11
But it's gone after I restart my phone tho
There is a Pixel Flasher thread - it's a great tool, helping Pixel users to install Magisk, etc

Plus, there are Pixel experts there who will better know about the issues specific to Pixel models and their updates - suggesting to ask there (recently, somebody asked in one of the Magisk threads here and eventually hard-bricked his phone based on the 'normal' answers he got)
 

uschipower

Senior Member
Mar 14, 2009
110
9
...App Data Isolation
which magisk module do you use for this?

Change the filename of /system/addon.d/99-magisk.sh to anything that doesn't contain magisk. Reboot and it will work
you are my hero - you found the new detection method
Is this script not neccessary for something to work?

is there a magisk/zygote module like HideMyApps which is doing the same for folders and files? so you could configure which folders/files are not visible for selected apps.
 

zgfg

Senior Member
Oct 10, 2016
9,644
7,509
Redmi K20 / Xiaomi Mi 9T
Xiaomi Mi 11
which magisk module do you use for this?

It was previously asked/answered here or in another Magisk thread, there you can also find a link for the alternative module, for A10 and older Android versions (if needed)
 
  • Like
Reactions: onimorza

pndwal

Senior Member
you are my hero - you found the new detection method
Is this script not neccessary for something to work?
It will only be present if Magisk was installed as .zip installation from custom recovery and system is r/w... addon.d is a survival script function for addon packages like GApps and Magisk to survive ROM updates... version 2 supports full OTAs run while OS is booted...

If you forget to restore that directory before taking ROM update I'm guessing Magisk may simply not be restored (survive) and you'll need to do an initial installation again...

@osm0sis may like to investigate/comment on ways this directory can be hidden now that banks are evidently detecting it...
is there a magisk/zygote module like HideMyApps which is doing the same for folders and files? so you could configure which folders/files are not visible for selected apps.
Not that I'm aware of. PW
 
  • Wow
Reactions: osm0sis

Aldwarii

Member
Aug 20, 2019
25
4
Hi there

I am having difficulty with these applications: SNB, Absher, and Nafad. All other apps seem to be working for me. Would you like to try them to see if they work for you?

I am using Magisk Delta, zygisk . with hidemyapplist white-listing and magiskhide
 

martyfender

Senior Member
Mar 9, 2017
3,385
1,860
Indianapolis, IN
I had a suspicion this was going to happen.
This was posted in the Delta Telegram group:
I have to say with regret that Magisk Delta is dead... There will no more updates. Thank all for using Magisk Delta along with those days, we have many memories that should never be faded. I will miss you
 
Last edited by a moderator:

zgfg

Senior Member
Oct 10, 2016
9,644
7,509
Redmi K20 / Xiaomi Mi 9T
Xiaomi Mi 11
I had a suspicion this was going to happen.
This was posted in the Delta Telegram group:
Yeah, there was no update since Mar 17.
Sad if true unfortunately, but thanks for an excellent and very useful Magisk fork - actually the best one, better than the original and with better support

Hoping to see tomorrow, April 2 bringing the better news
 

osm0sis

Senior Recognized Developer / Contributor
Mar 14, 2012
15,666
35,413
Halifax
GT-i9250
Google Nexus 4
It happened again.
Tan-App for german bank comdirect found a way to detect root again.
they released a new version a few days ago.
Change the filename of /system/addon.d/99-magisk.sh to anything that doesn't contain magisk. Reboot and it will work
It will only be present if Magisk was installed as .zip installation from custom recovery and system is r/w... addon.d is a survival script function for addon packages like GApps and Magisk to survive ROM updates... version 2 supports full OTAs run while OS is booted...

If you forget to restore that directory before taking ROM update I'm guessing Magisk may simply not be restored (survive) and you'll need to do an initial installation again...

@osm0sis may like to investigate/comment on ways this directory can be hidden now that banks are evidently detecting it...

The suggestion was only to rename the Magisk script itself, so addon.d function should all still work, and renaming a specific script shouldn't have any effect on its function, so nothing to worry about there. 👍

Concerning that user apps are digging around in /system now...

It would probably be worth reporting it as a bug to Lineage; they might be able to adjust the SELinux context or permissions of addon.d while still keeping it working.
 
  • Love
Reactions: pndwal

zgfg

Senior Member
Oct 10, 2016
9,644
7,509
Redmi K20 / Xiaomi Mi 9T
Xiaomi Mi 11

Attachments

  • IMG_20230401_192837.jpg
    IMG_20230401_192837.jpg
    522.5 KB · Views: 105

uschipower

Senior Member
Mar 14, 2009
110
9
does AppDataIsolation make HmA obsolete? Or should I use it parallel to AppDataIsolation?

Does AppDataIsolation work for you?
Module is from 2021
I installed module in DeltaMagisk in an unofficial LOS19 (from retiredtab).
Device boot approxemately until unlock screen, then device reboots.
...for the alternative module, for A10 and older Android versions (if needed)
alternative module only for A10 and below, right, not for A11 and above?
It is listet in a repo in Fox's Magisk Module Mangaer
 

zgfg

Senior Member
Oct 10, 2016
9,644
7,509
Redmi K20 / Xiaomi Mi 9T
Xiaomi Mi 11
does AppDataIsolation make HmA obsolete? Or should I use it parallel to AppDataIsolation?

Does AppDataIsolation work for you?
Module is from 2021
I installed module in DeltaMagisk in an unofficial LOS19 (from retiredtab).
Device boot approxemately until unlock screen, then device reboots.

alternative module only for A10 and below, right, not for A11 and above?
It is listet in a repo in Fox's Magisk Module Mangaer
I have App Data Isolation but still need HMA

The module I use was released on Jan 21, 2023 - but the module's code seems to be (at least 4 months) older:

Please better check on GitHub for which Android version the particular module is suitable, cannot tell you better than what their developers describe

I have only A11 and A12 hence I don't use that alternative module for A10 and earlier, and don't know anything more about that module.
Also, I don't use LOS

In Fox, click on Description and you will go to GitHub (it works for modules from the Alt Repo), there you can see provided info about the given module
 
Last edited:

ToXiTe

Senior Member
Jan 17, 2015
311
224
Using Magisk Delta fixed 2 out of 3 apps for me that used to crash.

But the other one, my banking app, still detects something. When you open it, it basically opens the browser and online website instead because it detected tampering. Previously, with original Magisk, it used to append rasp=root to the URL. Now it appends rasp=android_hook. So that's progress I guess.
 
Last edited:

m0han

Senior Member
Apr 30, 2012
5,797
2,890
OnePlus 11
All 'as before' - on Magisk-80d8cbf0-delta(25210).
 

Attachments

  • Screenshot_20230403-003526_Magisk Delta.png
    Screenshot_20230403-003526_Magisk Delta.png
    153.1 KB · Views: 98
  • Screenshot_20230403-004010_MemoryDetector.png
    Screenshot_20230403-004010_MemoryDetector.png
    67.9 KB · Views: 99
  • Screenshot_20230403-004207_TB Checker.png
    Screenshot_20230403-004207_TB Checker.png
    188.1 KB · Views: 97

ToXiTe

Senior Member
Jan 17, 2015
311
224
MemoryDetector says "Selinux has been modified by Magisk". What could be the cause?
 

Top Liked Posts

  • 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
    1
    Do you know why shamiko doesn't work with tng? I thought shamiko should be hiding root better?

    The thing is, Shamiko 'leaked' Zygisk
    Try to test it with momo, momo detects Zygisk while Shamiko being active
    TnG app acts the same

    Hey, just wanna ask about your setup now, cuz I'm following your setup but using Alpha Magisk 26301. HLB needs Shamiko, while TnG seems to detect Zygisk, similar to what you've experienced. I've waited on the TnG splash screen for a minute still doesn't work.
    • Zygisk ON
    • Apps added to DenyList
    • Enforce DenyList OFF
    • Shamiko 0.7.3
    • Play Integrity Fix 8.4
    • HMA with blacklist template applied on TnG
    If everything is the same, then I might have only one last option which is to switch to Delta.
    Last time unmount method works for me (no problem with tng + hlb connect + zygisk) but aosp mods and systemless lawnchair broke it totally and I couldnt find other way round. For now I just use kernelsu and everything seems to work with no issue. Kernelsu however is kernel dependent. So I really hope someday everything can be put together with magisk unmount.
  • 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
    If you have KSU, then why do you bother (and ask) for Magisk (Delta or not, Unmount modules, etc).
    Better use KSU and the modules for KSU (some have been discussed in the Magisk General thread - but better that KSU users use a dedicated thread about KSU), and you should not have troubles with interactions with Magisk

    Unfortunately, I cannot use KSU (kernel for my device is not supported) - but from everyything I have read, KSU is better, you can control which root privileges (files, network, etc) you give to which apps and most important Magisk modules either support KSU or the versions for KSU can be found on GitHub
    You misunderstood. KSU is available for all my other devices barring the one in which I am using MD.
    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
  • 65
    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