Magisk General Support / Discussion

Search This thread

J.Michael

Recognized Contributor
Jan 20, 2018
1,651
1,825
Samsung Galaxy Tab A series
i have tried all of them, i don't know much about dirty-flashing, say how to do it

i have patched the boot image like that you said it now, but i didn't got the su perms :(
Please tell us exactly what and how you do.

Start with explaining "flash":
  • do you use "fastboot"?
  • exactly what command did you type?
  • what command did you use to flash the patched TWRP?
Then explain what you mean by "TWRP with no ramdisk". How many TWRPs do you have?
 
Feb 5, 2023
41
5
  • do you use "fastboot"?
yes
  • exactly what command did you type?
fastboot falsh boot cd_stock_olive.img
fastboot flash recovery rr_twrp_olive.img
(cr - crDroid; rr - RamdiskRecovery)
  • what command did you use to flash the patched TWRP?
fastboot flash recovery rr_twrp_olive.img (as shown above)
Then explain what you mean by "TWRP with no ramdisk". How many TWRPs do you have?
"Stock" TWRP - Unpatched (No RamDisk)
TWRP - RamDIsk patched
 
  • Like
Reactions: J.Michael

J.Michael

Recognized Contributor
Jan 20, 2018
1,651
1,825
Samsung Galaxy Tab A series
yes

fastboot falsh boot cd_stock_olive.img
fastboot flash recovery rr_twrp_olive.img
(cr - crDroid; rr - RamdiskRecovery)

fastboot flash recovery rr_twrp_olive.img (as shown above)

"Stock" TWRP - Unpatched (No RamDisk)
TWRP - RamDIsk patched
Explain
"quotes hari ini" be like:

I still do not understand "TWRP no ramdisk". Are you saying TWRP does not have a ramdisk until Magisk adds one when you patch TWRP? That seems unlikely.

Have you ever tried
Code:
fastboot boot some-image-file
?

Maybe you should stop trying to install TWRP. Can you install Magisk without installing TWRP?
 
Feb 5, 2023
41
5
quotes today:
I still do not understand "TWRP no ramdisk". Are you saying TWRP does not have a ramdisk until Magisk adds one when you patch TWRP? That seems unlikely.
TWRP no RamDisk - i didn't patched the "Stock" TWRP via magisk to flash it onto device, btw i'm calling it "Stock" TWRP
Have you ever tried
Code:
fastboot boot some-image-file
?
i know this command but i think it's will not add RamDisk for su perms
Maybe you should stop trying to install TWRP. Can you install Magisk without installing TWRP?
i have installed it successfully :|
and no, when i just flashed the boot.img it didn't gave mee su perms
 
  • Like
Reactions: J.Michael

J.Michael

Recognized Contributor
Jan 20, 2018
1,651
1,825
Samsung Galaxy Tab A series
quotes today:

TWRP no RamDisk - i didn't patched the "Stock" TWRP via magisk to flash it onto device, btw i'm calling it "Stock" TWRP

i know this command but i think it's will not add RamDisk for su perms

i have installed it successfully :|
and no, when i just flashed the boot.img it didn't gave mee su perms
No fastboot command will "add ramdisk". ramdisk is something some "systems" include, it is involved in the process of booting; really it is just a way to make a filesystem available. A system that has been packaged with a ramdisk might only use the ramdisk briefly before switching to some more substantial, more traditional filesystem; but it is possible that after booting the ramdisk filesystem is still available. It doesn't really matter.

The "fastboot boot" command might let you test a boot image (or a recovery image -- any image that is the first step to booting a computer) without installing it. Whether it works or not, you haven't changed your system, the next time you boot you are back to the "old", installed, system.

If Magisk is installed in the recovery partition, you might have trouble installing TWRP. One approach is to *not* install TWRP, and just "fastboot boot twrp.img" when you want to use TWRP.

When you plan to install Magisk in the boot image, you can test the patched image with "fastboot boot magisk-patched-image". You will never bootloop because the patched image will only be used once -- if there's a problem, there's nothing to uninstall.

I have lost track of what problem you are trying to solve.
 
Feb 5, 2023
41
5
No fastboot command will "add ramdisk". ramdisk is something some "systems" include, it is involved in the process of booting; really it is just a way to make a filesystem available. A system that has been packaged with a ramdisk might only use the ramdisk briefly before switching to some more substantial, more traditional filesystem; but it is possible that after booting the ramdisk filesystem is still available. It doesn't really matter.

The "fastboot boot" command might let you test a boot image (or a recovery image -- any image that is the first step to booting a computer) without installing it. Whether it works or not, you haven't changed your system, the next time you boot you are back to the "old", installed, system.

If Magisk is installed in the recovery partition, you might have trouble installing TWRP. One approach is to *not* install TWRP, and just "fastboot boot twrp.img" when you want to use TWRP.

When you plan to install Magisk in the boot image, you can test the patched image with "fastboot boot magisk-patched-image". You will never bootloop because the patched image will only be used once -- if there's a problem, there's nothing to uninstall.

I have lost track of what problem you are trying to solve.
wait, ok i think i hjave got that you was trying to text me, so... what i will do next to fix my problem to wifi? do i need to do a dirty flash? and how to install su perms then?
 

zgfg

Senior Member
Oct 10, 2016
8,539
6,275
Xiaomi Mi 11 Lite 5G
The "fastboot boot" command might let you test a boot image (or a recovery image -- any image that is the first step to booting a computer) without installing it. Whether it works or not, you haven't changed your system, the next time you boot you are back to the "old", installed, system.

If
I have lost track of what problem you are trying to solve.
Yes. That's good for:
1) to test (before patching by Magisk) if the extracted boot.img really works (belongs to the ROM being used)
2) to test if the boot.img patched by Magisk will be good for use, does the system boots and if the root is obtained

Of course, one should always test first (1) - instead of testing only (2) and then complaining that maybe Magisk wrongly patched the boot.ing, whereas his extracted boot.img was wrong from the beginning
If Magisk is installed in the recovery partition, you might have trouble installing TWRP. One approach is to *not* install TWRP, and just "fastboot boot twrp.img" when you want to use TWRP.
On devices that do not have separate Recovery partition but Recovery is integrated to Boot partition, one must first install TWRP (custom recovery), then backup that Boot partition (with TWRP already installed), then patch by Magisk the backed-up boot.emmc.win and flash it back to Boot - then, he would have both the TWRP and Magisk in that same Boot partition
I have lost track of what problem you are trying to solve.
I have also lost track what @NEOVerse!XChara started with, but it seems to me that at least parts of that do not belong to this Magisk thread (issues with his specific custom ROM and/or his TWRP) - things like that should be discussed under the particular device subforum and/or under the channels specific to that ROM or TWRP (like how to install that TWRP, where from to extract the boot.img, or to report if something is wrong with their TWRP or boot.img)
 
  • Like
Reactions: J.Michael

zgfg

Senior Member
Oct 10, 2016
8,539
6,275
Xiaomi Mi 11 Lite 5G
a wait, i have found the VoidUI based on Android 13, will magisk work on android 13? or i should stay for now on android 11?
Magisk works perfectly for me and many other users here with Android 13

However, it does not guarantee that it would work on your device and with your (probably custom) ROM and A13

Things are not generic for A11/A12/A13 but usually specific per devices and specially per (custom) ROMs

And for things like that, you should find the subforums on XDA specific to your device (or thread or TG channel corresponding to eg that custom ROM) and to see there what and how the other users do to avoid/overcome the problem or to fix it
 
  • Like
Reactions: J.Michael
Feb 5, 2023
41
5
I have also lost track what @NEOVerse!XChara started with, but it seems to me that at least parts of that do not belong to this Magisk thread (issues with his specific custom ROM and/or his TWRP) - things like that should be discussed under the particular device subforum and/or under the channels specific to that ROM or TWRP (like how to install that TWRP, where from to extract the boot.img, or to report if something is wrong with their TWRP or boot.img)
i have started that all due to the calls connection to the internet hotspot and etc. problem after installing su perms with magisk
 

Top Liked Posts

  • 2
    My device:
    Xiaomi RN8T stock A11 MIUI
    Magisk Canary 25209
    Latest Shamiko public release (for proper root hiding]
    [LSPosed Hide My AppList, but not needed for this app]

    This app is detecting OEM unlocking when enabled in Developer options (even if enabled with developer options disabled)... With the above setup I get:
    View attachment 5872335
    With OEM unlocking disabled:
    View attachment 5872341
    ... It's not detecting USB debugging or Developer Options itself...

    I have disabled OEM unlocking on my device and rebooted and all is fine... While I believe this is normally safe with the important exception of Magisk use with relocked bootloader (ie. with custom keys set to allow relocking with custom mods incl. Magisk etc), I'm not certain of this... Others may like to verify the safety of disabling OEM unlocking with normal (unlocked device) Magisk use...

    The App can be used by disabling OEM unlocking before a reboot however, so you can always enable it again before a reboot...

    Hope this fixes your issue! 👍 PW
    Accessibility service(not granted to the app) and
    VPN (Netguard) also seem to trigger it's sensitivity
    2
    Accessibility service(not granted to the app) and
    VPN (Netguard) also seem to trigger it's sensitivity
    If I correctly understand your screenshots, for Accessibility and VPN you have options to Close the app or Skip (and continue to use)?

    I had a similar case with one MDM - it found Accessibility and warned but let me continue

    Btw, Ruru also warns about Accessibility (screenshot)

    It will be stupid if banking and similar apps prohibit the use of regular Google features like Accessibility (users with disabilities) and VPN (users may need for their work)
    2
    Yeah, without HMA your banking app KMA complains something on the Web, with HMA it opens (screenshot)

    Unlike @pndwal (he uses HMA with the Blacklist template), I use HMA in the Whitelist mode (no templates), as on the screenshot
    Am I right I assuming?
    Blacklist mode = hide apps blacklisted from every other app that asks for an applist
    Whitelist mode = do not give an applist (or give an empty applist) to any app in the Whitelist
    2
    Ok thanks, I'll investigate Hide My Applist.
    Yeah, without HMA your banking app KMA complains something on the Web, with HMA it opens (screenshot)

    Unlike @pndwal (he uses HMA with the Blacklist template), I use HMA in the Whitelist mode (no templates), as on the screenshot
    1
    My device:
    Xiaomi RN8T stock A11 MIUI
    Magisk Canary 25209
    Latest Shamiko public release (for proper root hiding]
    [LSPosed Hide My AppList, but not needed for this app]

    This app is detecting OEM unlocking when enabled in Developer options (even if enabled with developer options disabled)... With the above setup I get:
    View attachment 5872335
    With OEM unlocking disabled:
    View attachment 5872341
    ... It's not detecting USB debugging or Developer Options itself...

    I have disabled OEM unlocking on my device and rebooted and all is fine... While I believe this is normally safe with the important exception of Magisk use with relocked bootloader (ie. with custom keys set to allow relocking with custom mods incl. Magisk etc), I'm not certain of this... Others may like to verify the safety of disabling OEM unlocking with normal (unlocked device) Magisk use...

    The App can be used by disabling OEM unlocking before a reboot however, so you can always enable it again before a reboot...

    Hope this fixes your issue! 👍 PW
    OEM Unlocked and OEM Locked on Samsung S7 9.0 nothing helps for Yes bank, it seems to detect invalid certificate 🤔
  • 12
    . . . found a YT video that explains you can download the APK, rename to .zip, and install it as a module. Hopefully that works 😯
    Not only does it work, but if you take a few extra steps, you can make a 100% clean install of ANY Magisk version or fork without PC or TWRP.
    Here's how I do it :-

    - Download Magisk version/fork you want to try
    - Add .zip to the end of the Magisk apk eg: Magisk.apk becomes Magisk.apk.zip
    - Unhide the Magisk app if you have hidden/renamed it
    - Turn on aeroplane mode
    - Delete /data/adb/Magisk folder and /data/adb/magisk.db file
    - In Magisk app, perform Uninstall Magisk - RESTORE IMAGES so you are back on stock boot image
    - Install the new Magisk.apk.zip as a module
    - Change Magisk.apk.zip back to Magisk.apk
    - Uninstall the Magisk app (the apk only NOT Magisk itself)
    - Reboot
    - Install the new Magisk.apk
    - Open it up and check settings and modules and customise to your needs eg: zygisk may need to be re-enabled and deny list reconfigured
    - Reboot again and turn off aeroplane mode

    You will now be on a new clean install of whatever Magisk you are trying. No loss of root or modules and no need to clear data from play services to re-enable wallet (assuming it worked before and you set everything up properly)
    Only thing left to do is grant root to whatever apps need it.
    11
    how/where do you get prior canary builds if you're on the latest?
    Magisk canary builds are available on GitHub.
    You just have to look at the history. 🙃

    Canary builds are hosted in the magisk-files repo.
    magisk-files (Canary commit history) - [GitHub] - Link
    Select the build commit you are looking for.
    Select the apk file and "View File".
    You can then Download or "View raw".
    Since it can not show you the raw file, it will start the download of the file.
    mcanary1.png
    mcanary2.png
    mcanary3.png
    mcanary4.png

    Cheers. :cowboy:
    10
    Thread lightly cleaned!

    @S8rooted&tooted and @pndwal

    Greetings to you both. As you have both noticed, I have cleaned this thread of some of your recent comments. I will politely ask you both to please refrain from
    further OT and argumentative comments, and to please conduct yourselves in accordance with XDA Rule #2.3 for member conduct:

    2.3 Flaming / Lack of respect: XDA is about sharing and this does not involve virtual yelling (flaming) or rudeness. Flaming or posting with a lack of respect is unacceptable. Treat new members in the manner in which you would like to have been treated when you were a new member. When dealing with any member, provide them with guidance, advice and instructions when you can, showing them respect and courtesy. Never post in a demanding, argumentative, disrespectful or self-righteous manner.

    If you wish to argue further, then please do so via PM's, or another platform since XDA is not the place for these types of discussions on the public forums. Please be advised, posts which continue to violate the forum rules will be removed with immediate effect, and posiible sanctions applied to your account should things get too far out of hand, which we certainly do not want.
    So please let this be the end of this here and now.

    Thank you for your cooperation, and hope you have a pleasant day.

    Best regards: Badger50
    10
    Latest Canary (+Debug) Magisk:

    Magisk (e5641d5b) (25208)​

    • Fix release builds

    Diffs to v25.2​

    • [General] New magic mount backend. It supports loading modules into system with overlayfs files injected
    • [MagiskPolicy] Fix minor bug in command line argument parsing
    • [Zygisk] Prevent crashing daemon in error
    • [Zygisk] Rewrite zygote code injection with new loader library approach
    • [Zygisk] Release new API version 4
    • [App] Make stub patching 100% offline
    • [App] Support patching init_boot.img for Samsung ODIN firmware
    • [MagiskInit] Support replacing existing *.rc files in overlay.d
    • [MagiskInit] Rewrite sepolicy.rules mounting and loading implementation
    https://github.com/topjohnwu/magisk-files/blob/0e63c640c4b8799609d6cf3bdd4f88b2e8df4c08/notes.md

    👍 PW
    8
    View attachment 5853939
    @osm0sis now they are going to remove custom recovery support 😂

    It is because Magisk can't work properly on some broken custom recoveries, which mount partitions with wrong devices...
    Found no way to workaround it other than detecting and warning user to reinstall Magisk manually...
  • 1091
    This is the place for general support and discussion regarding "Public Releases", which includes both stable and beta releases.
    All information, including troubleshoot guides and notes, are in the Announcement Thread
    156
    Hello, I haven't given much support on XDA lately. It can be resulted from
    • University started and I have limited free time. In fact, I mostly develop during midnight
    • I live in Taiwan, which has large time zone differences between my European/American contributors/testers, which usually forces me to stay up late at night to discuss/test stuffs.
    • The new version is about to come, I don't want to spend effort on supporting old releases
    The planned update is delayed again and again, to some point I think I'll shed some light about what has been happening lately, also along with some announcements.

    New Forum!
    As you might have already discovered, Magisk got its own subforum on XDA! Many thanks to all the support you gave me, and much more information/features/support is about to come!
    **For developers supporting all the devices that are not using standard Android boot format, feel free to create threads in this section (actually, PLEASE do so) for your favorite devices after v7 is out. As I currently know, Asus devices require signing the boot image before flashing, and is model dependant; Sony devices seems to use ELF kernel that is unpatchable, or some has two ramdisks (inner + outer), both requires different workarounds; LG bootloader locked devices has to manually "BUMP" the boot image after flashing Magisk..... and there may be lots of other crazy boot image formats that haven't come up to my attention yet.
    It is impossible for me to support all these non-standard boot images, and I hope the community can collaborate to make Magisk running across all the devices. Overall, community collaboration is what XDA about :D

    The Pixel Phone
    Some of you might already know this news, that the next Pixel Phone right around the corner seems like it does not have ramdisk in boot image, which pretty much wrecked Magisk in all ways. However, it pretty much doomed root itself too. Kernel modifications is inevitable IMO, so I'll try to migrate my scripts to C programs that could possibly be included into the kernel itself. Note that I'm not familiar with linux kernel, I'm not even sure if my idea and concept is correct or not. But once the device is available, I think developers will find a way to bypass all the difficulties, and I'll do my best to learn things ;)

    Current Progress
    In the past month, I've spent quite some time learning SELinux, so that I can avoid using SuperSU's sepolicy patches. Thanks to the helps and tips from @phhusson and @Chainfire, I finally have a much clearer understanding of how SELinux works. The Magisk core parts (the scripts, boot image patches, new features, more supports) are actually done some time ago. What is causing all the delays is the Magisk Manager.
    To be completely honest, although I can code in Java without much issues, Magisk Manager is actually my first Android application, I had to reach out for assistance, and fortunately awesome developers like @DVDandroid and @digitalhigh contributed a lot, which makes the current Manager awesome.
    After the repo system and module management is mostly done, I was about to do some adjustments and release, but what we really done is decided to add another feature: auto-unroot with per-app settings. I decided to wait for it to be finished, and then do my adjustments. Due to reasons that'll be mentioned later, this feature will likely not be available for the next release (should come in future updates)

    Safety Net Disaster
    Those who are using Magisk for Safety Net bypass purposes must have known that Google recently updated the detection method of my Systemless Xposed. I still have no idea what Safety Net is detecting, so currently I cannot fix it on my side (also because I'm busy working on the next update). However, suhide developed by @Chainfire is able to hide Xposed and worked fine.
    However, only my Systemless Xposed v86.2, which is based on SuperSU's su.d, is supported using that method. v86.2 and v86.5 (latest, Magisk based) have nearly identical binaries, and the only difference is the path where the binaries are stored.
    I'm still not sure what's the real issue for it not being supported, I just hope it is not done intentionally.

    Conclusion
    Due to the fact that my Safety Net bypass is not 100% perfect now, I do not want to spend any more time waiting for auto-unroot to be polished. What I'm doing now is finishing up all the things I'd like to change in Magisk Manager (it has been a while since I last contributed to Manager, my fellow developers are doing all the heavy job), which might take a little more time, after that, packed with tons of information to be announced in Magisk Section, I'll release the long awaited update.

    Hope this lengthy post gives you the idea of the whole situation, and again thanks for all your support!!
    121
    Ah, some Chainfire bashing, I hope it is not too late for me to exercise additional villainy.

    First, let me make clear I have nothing against @topjohnwu, nor against Magisk. Magisk is an interesting project and it certainly displays @topjohnwu ingenuity and persistence. I don't doubt we will see more interesting things from his hands.

    -------------------------

    What has happened here is not all that dark and complicated, from either end. I returned from holidays, and someone pointed me at Magisk. My first thought: interesting!

    Among other things, the thread lists some issues with SuperSU, which in combination with the phrase The developer also requests users to not bug Chainfire with compatibility requests for SuperSU with Magisk from the portal article, raised my left eyebrow by nigh half an inch. The popular systemless xposed mod is apparently now based on it, and apparently it now no longer works with SuperSU, and apparently I'm not supposed to fix that, nor any of the other found issues. I found that a bit weird. So yes, I have told @topjohnwu that I was a bit surprised he was posting about issues with SuperSU without notifying me about them (I can't fix or help fix issues I'm not aware of, after all).

    He's also spreading a modified version of the SuperSU package, which is not all that uncommon, nor necessarily a problem. I have not looked into what he modified, I only ran a few quick tests on one of my devices, and found some commonly used commands run as root to be broken. I have informed him of this as well.

    It appears the tool of choice for Magisk is phh's Superuser, because of some of the mentioned issues with SuperSU. That's fine by itself, but fixing issues in that superuser by incorporating SuperSU's binaries into it is a somewhat questionable practise. After all, SuperSU is a commercial closed-source package that helps pay for my dinner, and superuser is a direct competitor. I have informed him that I was surprised he did this without asking for permission. I have expressed similar surprise on him spreading a modified version of LiveBoot (which helps pay for a snack now and then).
    @topjohnwu has also stated that Magisk's scripts are largely influenced by mine (I have not checked). Scripts based on mine are used all over the place on XDA, some people have crafted amazing things based on them, I have never made an issue of this (otherwise I would have just made them binaries). But yes, I have also stated to him that I don't think it's very nice to base something on one program, and then using that to (almost exclusively) push something directly competing with that program.

    tl;dr Towards @topjohnwu, I have:
    - expressed surprise he has issues getting Magisk to work with SuperSU, and has chosen not to inform me about those
    - expressed surprise he is using SuperSU binaries in a competing superuser without permission
    - expressed surprise he is posting a modified LiveBoot without permission
    - informed him of issues with the modified SuperSU he has posted
    - let him know I thought it wasn't very nice to be applying my scripts to benefit seemingly exclusively that same competing superuser

    To be crystal clear:
    - I have not asked for an apology
    - I have not asked for Magisk to be abandoned, neither the root hiding nor systemless module parts, and certainly not systemless xposed
    - I have not made an issue of any of this anywhere, until this post
    - I have not even specifically asked for anything to be taken down (though obviously in my opinion the other superuser package mixed with SuperSU's binaries, as well as the LiveBoot package, should go)
    - I have not reported this thread to XDA moderators for copyright violations or otherwise

    While my conversation with @topjohnwu may not win any awards for being friendly (though it may win some for brevity), I think all things considered my response has been rather mild. To be perfectly honest, until the apology post, I thought this was over with already. I think the apology post was triggered because I haven't replied to his last PM for a while - I was in the zone, it happens.

    To emphasize again, I have nothing against @topjohnwu, Magisk, or systemless xposed, and it is certainly not my goal to see any of them go. If it can be made to work together with SuperSU, great.

    I get it though: you think of something, you want to see if you can make it work, you finally get it to work, you publish it, it takes off - enthusiasm gets the better of you. Maybe in the rush some mistakes are made. That doesn't mean you have to just drop it and run. None of my stuff would make it past 0.1 if I stopped at the first big mistake :)

    Aside from said being in the zone coding, I usually regret actually responding to these sort of things the day after, which has made me hesitant to reply. Surprise me.
    76
    Thread temporarily closed so everyone sees this.

    The flood of "SafetyNet isn't working for me either!" posts are not helpful, at all. Please refrain from posting further, it will be looked into. Please do not forget that not passing SafetyNet is 100% NORMAL AND INTENDED when you have an unlocked booloader or running custom firmware. These are workarounds and they will be worked around in turn.

    The Flash
    Forum Moderator

    EDIT: Thread is reopened... I will be cleaning any SafetyNet posts for a while to keep the thread clean for real issues.
    75
    Hello everyone!

    I am aware that Google has updated Safety Net that makes Magisk itself a no go for Android Pay. In fact, I witnessed the change live while I am developing the new magiskhide, which should hide all Magisk modules and Magisk installed root.

    Google is serious about Safety Net now, clearly hunting down all possibility to run Xposed with Safety Net passed. I spend quite some time examining the new security measures last midnight, and fortunately it seems that it is possible to run Magisk and root along with Safety Net if no Xposed is running. I'm glad I removed the old root toggle at the right time lol, that is no longer feasible with the latest detection.

    So stay tuned for the next update, it will come with bug fixes, along with the new magiskhide to bypass that Safety Net.

    Google, how will a few systemless mods do any harm :p:p