[Discussion] Magisk - The Age of Zygisk.

Search This thread

zgfg

Senior Member
Oct 10, 2016
7,645
5,048
Yes, I am using redmi note 5 pro, renaming doesn't work everytime, but when I turn off google play protect, renaming works very smoothly. I think its a must
Yes, but @pndwal on his old MIUI needed to switch off MIUI Optimization - without, the wheel Hiding rotates with no end

And that comes after the Play protect - if Play protect blocks you, hiding will fail right away at the beginning (actually, should pop-up that Play protect is blocking you...)

So please, be aware, we/you are not talking on the same issue. See posts by pndwal in the old Magisk thread

(I will not follow up on this here because it is not what pndwal and me were discussing, and I well know about Play protect - actually I can hide even with Play protect On, when it pops-up I take Continue anyway and it does hiding then)
 
  • Like
Reactions: J.Michael

pndwal

Senior Member
I am not "desperate" to get rid of Magisk.
My problem is that when I installed the latest version of Magisk is that zygisk will not turn on in the "root" end of things. I have not got a screen shot, and I am not very keen to get one as my fiddling about resulted in my having to reinstall everything last time.
My suspicion is that the boot end of things is somehow corrupted.
Galaxy S7 Edge?

You may need custom or newer Kernel; please check kernel version in use and read this pinned issue:
[Wontfix] Zygisk cannot activate on some old Samsung devices with old kernel (3.19-) #5395

Basically, Zygisk was not turning in for S8 and earlier Sammy phones:
https://github.com/topjohnwu/Magisk/issues/5353

The issue was fixed here (by Shana) for most:
https://github.com/topjohnwu/Magisk/pull/5372
Merged:
https://github.com/topjohnwu/Magisk/commit/ff7ac582f013dbc27b27e4194424044ee79c3980

This fix worked around broken system calls (due to kernel restriction / exec limitation), but requires fexecve, and unfortunately this doesn't exist in 3.19- kernels. 😕

Nb. Some devices w/ 3.19- kernels successfully load Zygisk without fexecve workaround. As Canyie said there:
It depends on was Samsung added their stupid exec limitation in the kernel of your device, or not. If Zygisk works on your device, just enjoy it. This is just a notice which points out Zygisk bug reports from Samsung devices using old kernels will be ignored.

👀 PW
 
  • Like
Reactions: J.Michael

vandyman

Senior Member
Jul 30, 2012
835
447
S.Jersey
Google Pixel 5
Google Pixel 6
There is more to just uninstall.
Here is what I would do.

1. Uninstall Magisk using the Magisk app.
It will do a complete uninstall, including modules. With that done. You will be back to your original setup before installing Magisk.

2. Reboot

3. Install what ever Magisk you wish to.

4. Patch your boot.img with Magisk.

5. fastboot flash boot magisk_patched. img

6 boot device, done.

OR

Flash your factory image and start over.

Please understand what may happen to your device before modding. So you will know what to do in a pinch.
 
  • Like
Reactions: digger16309

suhel28

Senior Member
Oct 30, 2010
324
138
Here is what I would do.

1. Uninstall Magisk using the Magisk app.
It will do a complete uninstall, including modules. With that done. You will be back to your original setup before installing Magisk.

2. Reboot

3. Install what ever Magisk you wish to.

4. Patch your boot.img with Magisk.

5. fastboot flash boot magisk_patched. img

6 boot device, done.

OR

Flash your factory image and start over.

Please understand what may happen to your device before modding. So you will know what to do in a pinch.
I've read in few posts that after the 1st step when people reboot, it sometimes throws them to reboot loop. Hence, I was bit worried. No hard feelings. I know you were trying to help. Its just me 😅
 
  • Like
Reactions: vandyman

JulianKlein

Member
Mar 1, 2022
5
0
& @Svan987

Fix already provided and built in recent Canary versions as I reported here:
https://forum.xda-developers.com/t/discussion-magisk-the-age-of-zygisk.4393877/post-86395379

... Fix is still downstream for public Stable / Beta users... PW


Check post #573. I installed like in old days from TWRP. Just rename "Magisk.apk" to "Magisk.zip"
Idk if this matters, but I have uninstalled Magisk Manager and then installed the newest version. After that I have lost the root, at least it doesn't ask me for root permission (root detecting apps still don't work tho).
So my question is if
1) this fix would work for me:
Code:
uninstalled/reinstalled Manager
unpatched/repatched stock boot via TWRP
repatched Magisk boot-image via TWRP (no self-patched boot.img - ask, if I shall try to retrieve it)
2) it would wipe my data on my phone?
 

J.Michael

Recognized Contributor
Jan 20, 2018
1,262
1,201
Samsung Galaxy Tab A series
Idk if this matters, but I have uninstalled Magisk Manager and then installed the newest version. After that I have lost the root, at least it doesn't ask me for root permission (root detecting apps still don't work tho).
So my question is if
1) this fix would work for me:

2) it would wipe my data on my phone?
When you uninstalled Magisk Manager and then installed the newest version and lost the root, did you then try uninstalling Magisk Manager and installing the older version, the one you used to have, to see if the root came back?

I do not recognize the "fix" you quoted, and I got dizzy trying to follow the "unpatch/repatch" -- neither of these is a function I recognize.

You don't say what kind of phone you have, but with Samsung, there is some combination of files in Odin that I believe always causes data to be wiped. It might just be a matter of using CSC instead of HOME_CSC, but I'm not sure.
 

suhel28

Senior Member
Oct 30, 2010
324
138
try YASNAC from play store
Please read the OP posts at the beginning of this thread - setting up Magisk v24 and so is carefully explained

Eg, for SN you have to install 3rd party SN checker like YASNAC from PlayStore

I finally got it to work.

The company portal app was the issue. The Denylist didn't check all activities for the app so I manually add all the activities in the deny list and rebooted

It started to work.. Phewwww
 
  • Like
Reactions: zgfg

m0han

Senior Member
Apr 30, 2012
5,006
2,058
.... I got dizzy trying to follow the "unpatch/repatch" -- neither of these is a function I recognize....
perhaps, by unpatched he meant the 'original'/stock boot.img that came with the rom and by repatched he meant the 'original'/stock boot.img that was patched using magisk. i could be wrong, though.
 

smarty8

Member
Jul 27, 2013
5
0
Hi guys.
Magisk 24.1
I have two problems
1. I can't hide Magisk App. When launching the Hide Magisk App, the spinner spins endlessly and nothing happens. When Magisk is closed, its name remains unchanged.
2. I can't hide Magisk from Samsung Flow v.4.8.07.4 app. Before the Magisk update, the app was working fine.
I have already added all com.samsung... and com.sec... services to DenyList, but when I launch the Samsung Flow app, it says "Your device has been rooted. Samsung Flow cannot be used on rooted devices for security reasons".
What am I doing wrong?
 

pndwal

Senior Member
Any way to downgrade magisk manager?
Of course, Magisk Manager is dead, gone, burried since we got single-package installation w/ 22.0, including both Magisk App and Magisk (mask) itself... The last Magisk Manager was version 8.0.7...

- So you really wouldn't want to downgrade!... 😜
From what I understand It's not that easy. People have been thrown into bootloops. So a detailed help would be much appreciated
Never heard of bootloops from downgrading app, or old Manager! ... But app and Magisk (mask) versions should match to be properly compatible...
LOL. That post says uninstall using the Magisk app.
Thanks... Lol
So this is referring to uninstalling Magisk (mask) itself, not just the app... This process is more fraught, and can bork your system (which is why you need backups, contingency plans, fallout shelter, food stash...).

These options rely on unpatched image backups Magisk made originally and more, and include Restore Images - retains settings, modules etc for next re-install, but allows you to take delta (incremental stock) OTAs safely - and Complete Uninstall - self explanatory...

Nb. I believe neither of these options work for Android 9+ (SAR) Samsung models:
Important Notes

Never, ever try to restore either boot, recovery, or vbmeta partitions back to stock! You can brick your device by doing so, and the only way to recover from this is to do a full Odin restore with data wipe.
https://topjohnwu.github.io/Magisk/install.html#important-notes

🙃 PW
 

Top Liked Posts

  • There are no posts matching your filters.
  • 6
    Latest Official TJW Canary (release) & Debug (debug) Magisk builds:

    Magisk (f42c089b) (25102)​

    • [MagiskInit] Fix a potential issue when stub cpio is used
    • [MagiskInit] Fix reboot to recovery when stub cpio is used
    • [General] Better data encryption detection
    • [General] Move the whole logging infrastructure into Rust

    Diffs to v25.1​

    • [MagiskInit] Fix a potential issue when stub cpio is used
    • [MagiskInit] Fix reboot to recovery when stub cpio is used
    • [General] Better data encryption detection
    • [General] Move the whole logging infrastructure into Rust
    https://github.com/topjohnwu/magisk-files/blob/8fce25209918072f18b5bb056c43f596f771324d/notes.md

    👍 PW
    5
    :p
    uhh..its been over an year since but I still haven't used the device yet, my backs turned hump now, hurts too coz been just bending over on the PC screen and flashing this and that and GSIs and ROMs then reflashing stock factory image then TWRP for the hundreth time now maybe lol but I've still not managed to get the bank app to run :cautious:. Will it even work with an unlocked bootloader on samsung? maybe one last good try then I'll give up and move to Net-Banking instead perhaps. Magisk is a great program though. Any pointers would be welcome. TIA

    No idea which device you have but as for Samsung, i run an S20+ 5G (bootloader unlocked etc) and have 0 issues with any banking app ive ever used. Just to give you hope. And giving hope goes against my central edicts....as does spoonfeeding :)

    As for tips :

    When in doubt, start with stock ROM....

    The next could have been harvested from the last 5-10 pages...you should practice reading the last few pages of a thread, its a good habit as XDA isnt your own personal helpdesk where you only post when you have a crisis - without reading the room, because often its not just you having the issue, and we collaborate to fix issues....

    You'll almost certainly need (along with reading the first page of this thread) this:


    Thats currently the best option to deal with the recent (as in last few weeks) change from SafetyNet to Integrity Check, and you should bookmark that thread for any future changes.

    And you'll want to check you can pass this (top 2 out of 3 green is good enough)


    And thus you have reached the extent of my pity....i now return you to the normal programming from me, which is pure unadulterated indifference to the plight of man as a whole. Enjoy.
    5
    How should I hide apps?
    ... its just an addon script that (attempts, as best possible) to hide whatevers in the Deny List
    Just to avoid confusion/ be clear, Shamiko does not hide apps (in denylist or otherwise)...

    It's akin to old MagiskHide, and hides traces of root from apps in the list...
    ### Introduction
    Shamiko is a Zygisk module to hide Magisk root, Zygisk itself and Zygisk modules like riru hide.

    Shamiko read the denylist from Magisk for simplicity but it requires denylist enforcement to be disabled first.
    @appleman_wp
    If you wish to hide apps detected by banks etc, try the Hide My Applist LSPosed module...
    I don't think Shamiko has a "Settings". I think you use the Magisk Manager app's deny list. If you do not "Enforce Deny List" in Magisk, then Shamiko will use Magisk's Deny List to tell it what to hide [traces of root] from.
    (Edits mine.)

    Generally Shamiko is used without settings / extra configuration.
    ### Usage
    1. Install Shamiko and enable Zygisk and reboot
    1. Configure denylist to add processes for hiding
    1. *DO NOT* turn on denylist enforcement

    However it can actually be reconfigured (by those game / mavericks 😛) for whitelist mode usage. Note caveats:
    #### Whitelist
    - You can create an empty file `/data/adb/shamiko/whitelist` to turn on whitelist mode and it can be triggered without reboot
    - Whitelist has significant performance and memory consumption issue, please use it only for testing
    - Only apps that was previously granted root from Magisk can access root
    - If you need to grant a new app root access, disable whitelist first

    ... ts theoretically possible to... bootloop your device... At which point myself and the other senior members will pass around the chalice of your tears and drink heartily from it...
    Sadist! 😜 PW
    4
    I have a problem with shamiko. I tried many times to install it via magisk. Itinstalls itsuccessfully however the app is not showing in the app drawer. Could someone help why shamiko is not on my device?

    It doesnt get added to the app drawer, its a module...many/most modules do not include an app in them

    Look in your list of modules section (last menu item in bottom right) in Magisk Manager, you'll find it there
    4
    There is a typo, it's named Play InteRgrity API checker

    It's on Playstore but Early Access - to download find the post from nikolas1 in GPay thread
    There is a typo on the full app name too? 🤦
    I'm so bad.. I fixed only the playstore name. I'll fix that when I get back from vacation
  • 120
    This is a discussion and help thread for the newer versions of Magisk.

    The main goal of this thread is to help users migrate to Magisk v24+
    • SafetyNet
      Basic integrity Pass
      CTS profile match Pass
    • Play Protect certification
      Device is certified

    Feel free to discuss or give links to other Magisk related issues.
    Fixes for gPay, banking apps and/or other apps and games that detect a 'compromised' Android system.
    Please try to restrain from discussing alternative (unofficial) Magisk builds that include changes that were removed or can not be included in the official Magisk builds. 🙃

    Please read John's State of Magisk (medium.com)

    Starting with the Magisk 23 (23010) canary builds.
    • MagiskHide is removed.
      MagiskHide masked the sensitive properties of the device to hide it from SafetyNet.
      Renaming (repackaging) the Magisk app is/was not part of MagiskHide.
      You still have the option to Hide the Magisk app under setting.​
    • Magisk Module online Repo is removed.
      The Magisk Module online Repo is still available and can be accessed outside of the Magisk app.​
    • Everything SafetyNet is removed.
      This includes the SafetyNet check that was incorporated into the Magisk app.​
    • Zygisk is introduced.
      Zygote + Magisk = Zygisk​
    • The Deny list replaces the Hide list.
      The Hide list (more or less) hid Magisk from the process on the list.
      The Deny list is similar but instead of hiding Magisk from the process, Magisk is unloaded so there is nothing to hide.​

    Starting with the Magisk 23 (23017) canary builds.
    • Magisk supports update channels per module.
      Each module can include it's own update link.​
    • Hide Magisk offline.
      You do not need internet connection to rename (repackage) the Magisk app.​

    What does this mean?
    Not much.
    It is just the next step in Magisk's development.
    Zygisk is a big step forward. ;)

    Even before these changes in Magisk, the xda family and the Android community have always been active and willing to share. :D

    Jump to Post


    This is post will be updated once Magisk v24 is released.
    63
    Magisk
    The Magic Mask for Android.

    Magisk Links:
    GitHub
    Release Notes

    Download Links:
    Stable and Beta releases.
    Canary
    • GitHub
      The notes.md file is the change log.
      The app-debug.apk is Magisk canary.
      Click on app-debug.apk and choose View Raw or click on the Download option.​

    Credits:
    topjohnwu
    All who contribute and support this project.
    57
    Modules

    MagiskHide Props Config
    This module allows you to add, change and adjust prop values systemlessly using Magisk.​

    MagiskHide Props Config Links:

    Download Links:

    Credits:
    Didgeridoohan
    All who contribute and support this project.


    Universal SafetyNet Fix
    It has been a year now since kdrag0n figured out how to 'trick' SafetyNet.
    This 'trick' has been implemented properly into quite a few custom roms.
    For custom roms that do not include it and/or stock roms, he turned it into a module.​

    Universal SafetyNet Fix Links:

    Download Links:

    Credits:
    kdrag0n
    All who contribute and support this project.
    53
    Apps

    Fox's Magisk Module Manager
    This app allows you to manage and install Magisk modules.
    Including from an online repo.​

    Fox's Magisk Module Manager Links:

    Download Links:

    Credits:
    Fox2Code
    All who contribute and support this project.

    Play Intergrity API Checker
    This app shows info about your device integrity as reported by Google Play Services.
    If any of this fails could mean your device is rooted or tampered in a way (for example you have an unlocked bootloader).​

    Development:

    Download Links:

    Credits:
    1nikolas
    All who contribute and support this project.

    YASNAC - Yet Another SafetyNet Attestation Checker
    YASNAC (short for Yet Another SafetyNet Attestation Checker) is an Android app that demonstrates SafetyNet Attestation API.​

    YASNAC Links:

    Download Links:

    Credits:
    RikkaW
    All who contribute and support this project.
    44
    Force Basic Attestation

    Newer devices are designed to support hardware attestation.
    Currently there is no way to hide the sensitive device properties when checked using hardware attestation.​

    To get around this, kdrag0n figured out how trick SafetyNet that the device does not support hardware attestation.
    SafetyNet will then fall back to check using basic attestation.

    Note:
    This method will work for devices that support hardware attestation and devices that do not.
    • Enable Zygisk.
    • Install the USNF module.
    • Reboot

    To keep posts short, the instructions are hid by spoiler tags.
    If you have not installed Magisk.
    Follow the installation link in the Magisk post.​

    Download the Universal SafetyNet Fix module.
    Download link is in the Modules post.​

    1. Enable Zygisk
      • Open the Magisk app.
      • Go to Settings.
      • Scroll down to the Magisk section.
      • Toggle Zygisk on.
      • Go back to the Magisk Home screen.
    2. Go to Modules.
      • Select Install from storage.
      • Navigate to the Universal SafetyNet Fix module zip file and select it.
    3. Reboot.

    The USNF module will adjust the sensitive props that are needed to pass SafetyNet.
    Depending on the device and system (ROM) configuration, you might need to adjust a few more.
    See the Adjust Prop values post.​