yashsingh1/xdaforums huggingface dataset:
[Magisk] Jon.StatiK:
Forgive my ignorance. That worked.

Also, with the stock boot.img needed how are we supposed to flash custom kernels? As it seems me flashing the kernel I was using is what was breaking it.
[Magisk] Kuganeswaraan:
You cam flash the custom kernel's boot image and then flash magisk. But it works only if the custom kernel supports magisk.
[Magisk] jhedfors:
If the devices kernel reports the bootloader status, and if the bootloader status is unlocked, it will fail safetynet. A custom kernel MAY be required for your device (for example, the OnePlus One passes SN in LOS14.1 no problem).
[Magisk] yochananmarqos:
Magisk Hide hides the bootloader status now, FYI.
[Magisk] jhedfors:
Oh yeah, I forgot!:)
[Magisk] githyanki:
It works well with AICP, which is based on LineageOS/CM. It also has Magisk built in by default so there's no work needed.
[Magisk] migaspepino:
I also have TWRP recovery does that influence SafetyNet as well?

Thank you for the help.
[Magisk] jhedfors:
No it won't. I would suggest dirty flashing your current ROM, flashing the unsu zip I suggested earlier, rebooting without installing Magisk. Check safetynet, and share your results.

Better yet, you should update to the latest TWRP, back-up, and start fresh with a clean install of LOS14.1. CM12 is ancient! :laugh:
[Magisk] Artim_96:
Yes, but 99% of ROM developers agent interested in passing SN or even build in Magisk.

And be based on LOS doesn't mean they haven't made the changes necessary to pass SN

---------- Post added at 10:31 AM ---------- Previous post was at 10:27 AM ----------

Wasn't SN only part of Android 6+? CM12 is Android 5, so he shouldn't be able to post it anyway since there is nothing to pass. Or did Google backport it?
[Magisk] Dafriss:
My device isnot booting anymore after flashing the 11.1 zip of magisk? i flashed the uninstaller and a new rom but it keeps hanging stuck? what should i do?

EDIT: i'm on 7.1.1 AOSP Extended Rom on Huawei Honor 5x (KIW-L21)
[Magisk] githyanki:
Wipe system, flash rom and gapps again.

Make sure phone boots. Uninstall all root.

Reboot to twrp

Flash unsu, then flash magisk
[Magisk] HamsterHam:
Anyone that is clued up, is it possible to create a magisk module which forces the volume rocker to control media volume? Thanks.
[Magisk] RandomPooka:
I'd start by looking at the source of a ROM that has that feature. Try Pure Nexus. The toggle for that is in the code for the Pure Nexus settings module. Maybe you can figure out what that code calls/does and reverse engineer a module based solution to your problem.
[Magisk] Arju:
I haven't tried Magisk in a couple of months now and see that a lot has changed.

I'm planning to give it a dive soon and have some questions.

What I'm planning is to do a clean flash of a custom ROM (Dirty Unicorns 11.1 in particular).

So my question is, how to go about?

Is this the right procedure?:

Clean flash custom ROM (wipe everything)

Flash Custom ROM

Flash Gapps

Flash Magisk

Reboot into system

Install Magisk Manager from Playstore

Is that it?

I keep reading about MagiskSU but in the Magisk thread I don't see a dedicated flash file. Is that baked into the Magisk installer ZIP? (I know how to root using SuperSU but this MagiskSU is what's confusing me.) Am I missing out something?
[Magisk] Didgeridoohan:
Yes to all of the above. Except for that last part about missing something out...
[Magisk] HamsterHam:
Guess I have a lot of reading to do and learning! ;)
[Magisk] de.er:
Well, you are missing something, actually. With the latest version of Magisk, after flashing the ROM you need to unroot it - the easiest way is to use osm0sis's unSU.zip (https://xdaforums.com/showpost.php?p=63615067), so your sequence should be:

Flash Custom ROM

Flash Gapps

Flash unSU.zip

Flash Magisk

Reboot into system

Install Magisk Manager from Playstore
[Magisk] Arju:
Dirty Unicorns doesn't ship with root so I'll be fine leaving that part out but thank you for the heads up.
[Magisk] Danny94:
On latest magsik version i have a problem with LeanDroid.

Error something like "permission given but supersu needed or selinux moderat".

Anyone an idee to fix it ?
[Magisk] Danish Fayaz:
I've latest magisk. With Pure Nexus Rom for Nexus 5x. I wiped, flashed vendor, rom, rebooted, flashed unSu.zip, magisk (latest), phhsu. Now I've tried everything but my safetynet check isn't working on magisk manager. It fails saying: Safetynet failed: CTS profile mismatch. HELP!!!
[Magisk] discodestroyer10:
Did you thick the "Magisk hide" in Magisk settings?
[Magisk] migaspepino:
What is dirty fishing??!??

Humm can I just flash LOS14.1 over CM12.1 Like that?! Won't that brick my phone?

What happens if flash over the primary ROM?!?

And If not and if I do that, what do I also need to do to make sure my device passes safetyNet?
[Magisk] jhedfors:
No you rarely want to flash a different ROM version on top of another, unless directed by the developer, as it will almost always boot-loop.

I meant dirty FLASH (sorry-auto-correct!) your CURRENT ROM (CM12.1), then unsu zip, reboot.

---------- Post added at 10:04 AM ---------- Previous post was at 09:50 AM ----------

Good point - I forgot about that. So is [MENTION=3251602]migaspepino[/MENTION]'s CTS mismatch the expected result for CM12.1?
[Magisk] migaspepino:
So how should I proceed to "upgrade" it? Sorry I don't remember much on how to update ROMs.
[Magisk] maximusmullivan:
The directions will be in the respective ROMs threads you normally peruse
[Magisk] anagramgenius:
Try removing the su binaries from the system.
[Magisk] la_tristesse:
I dont know how to do that. Are they located /system/bin/su ?

EDIT: I deleted them, but there is no difference. I installed an appllications (Kernel Adiutor) which requires root access but it says "No root available". I dont get it. Here's what I did so faar:

1. Flashed Magisk-v6.zip

2. Flashed phh-superuser-17-magisk.zip

3. Installed me_phh_superuser-1033.apk from the Google PlayStore

3. Installed Magisk_Manager_v1.2.apk

4. Installed XposedInstaller_by_dvdandroid.apk

5. Flashed xposed-v86.5-sdk23-topjohnwu.zip
[Magisk] anagramgenius:
/system/xbin/su and /system/bin/su
[Magisk] la_tristesse:
I deleted them both without success. I'm hitting a dead end.
[Magisk] Cares:
What's the outlook for Android N that's coming out today?
[Magisk] anagramgenius:
It's working fine here. Try installing phh's zip again.
[Magisk] la_tristesse:
I alread did that. What a bummer.
[Magisk] chazall1:
I have been using from Magisk v1. I am currently on Magisk v6 with the latest phh's superuser. I have noticed when restoring from a backup, I loose root. I have to flash Magisk again in order to resolve Root. This also with Supersu (Magisk) as well. I am backing up , System, Data, Boot, and EFS. Has anyone else expierenced this issue?

Thanks

Device Model: Nexus 5

Android Version: 6.0.1

Root solution: phh's superuser

Xposed Status: Never Installed

ROM: PN ROM – 20160803-Officia

TWRP - latest 3.0.2-0
[Magisk] Dyspr0sium:
How is it possible to enable root with

$(getprop magisk.supath)/su -c "setprop magisk.root 1"

if root is required to setprop in the first place?
[Magisk] JimSmith94:
Thanks for your fine work! Sorry I haven't seen this mentioned, can we install v6 over v5 or is another uninstall required?
[Magisk] :
Because it uses the su binary located at /magisk/phhsuperuser/su which is in the 'getprop magisk.supath/su'
[Magisk] Captain_Throwback:
Dirty flash is fine.
[Magisk] JimSmith94:
Thanks for the quick response! Rebooting to recover now...
[Magisk] VanGolfer:
N is rolling out. Is this support OTA and working with N? Thanks
[Magisk] Dyspr0sium:
Okay... can you tell me what I'm doing wrong here then?

I'm trying to make a task in Tasker that toggles root on/off.

1. Run Shell: $(getprop magisk.supath)/su -c "getprop magisk.root", store output in %rootstatus

2. Notify: %rootstatus

3. Run Shell: $(getprop magisk.supath)/su -c "setprop magisk.root 0", if %rootstatus~1

4. Run Shell: $(getprop magisk.supath)/su -c "setprop magisk.root 1", if %rootstatus~0

All have "Use root" ticked. It works to disable root, and notifies Root Status 1. But when I try to use it again to enable root, nothing happens at all, no notification.

Thanks a lot for your help!
[Magisk] Kris6699:
Try have the enable not using the root in which you have disabled, maybe?
[Magisk] Dyspr0sium:
Yep, this worked! What I did was untick "Use root" for all the actions. I suppose ticking it tries to use root which Tasker can't find, and instead it needs to be manually directed to use the root from magisk.supath. Thanks for everyone's help :). Now I have a working toggle on my lockscreen to turn root on and off for when I want to tap and pay.
[Magisk] Kris6699:
Nice!
[Magisk] JimSmith94:
Thanks to [MENTION=397056]PeteT[/MENTION], this is what I use, which seems to be a little easier, plus it's automatic: http://xdaforums.com/showpost.php?p=68291750&postcount=836

It automatically disables root when Android Pay or SafetyNet Helper are opened and enable root when they close. I modified it to use a different SafetyNet app, so I think you can add as many apps as you want. (Click on the app list in the profile and click on apps you want in the App Selection screen that pops up.)
[Magisk] itechy:
Are you using stock? I'm on stock and not experiencing this issue
[Magisk] jhedfors:
Historically, the directions given when flashing a different Android version, is to clean-wipe (system, data, dalvik, cache). Just back up your data first.
[Magisk] jrk190:
I'm having the exact same issue with the same rom
[Magisk] Danish Fayaz:
Btw I am using Ex Kernel. Anybody got advice for us?
[Magisk] Artim_96:
Maybe it's one of the apps that can't detect MagiskSU? Then just install the app of phh's SuperUser, but disable it! Some apps seem to magically work if they can see that the app is installed but it can't be allowed to run since it would mess up the permissions
[Magisk] migaspepino:
Basically remove OS completely wipe the typical be and install new one?

What data? Does it wipe SD partition as well?
[Magisk] sjknight413:
Has anybody managed to get viper4android working? at the moment it causes a bootloop.
[Magisk] jhedfors:
Basically a factory reset. You have to set it up fresh. It does not wipe the sdcard partition.
[Magisk] steveo17:
in the same boat. waiting for this to be resolved as well
[Magisk] sjknight413:
just gone back to magisk 10.2 and phh's superuser and v4a seems to be working so i'm going to stick with that for now!
[Magisk] Danny94:
[MENTION=5125527]Artim_96[/MENTION]

i already tried before, but no success. Maybe Magisk changed SELinux mode ? Can i change it back ? Does LeanDroid work on you ?
[Magisk] flandy7:
After enabling Magisk embedded BusyBox (with reboot) i'm type "busybox" in Terminal emulator and i see old version - 1.13.... Why?
[Magisk] Artim_96:
Magisk fakes SELinux enforcing.

And like I said, custom ROMs can't pass in 99% of the cases.

And Leandroid isn't available for my device
[Magisk] ShouriX:
I'm having the same problem as well
[Magisk] trunzoc:
Is anyone using DirecTV Now?

I can't get it to work. I'm hiding it, and other apps such as Android Pay work, but not DirecTV Now.

Anyone have any suggestions?
[Magisk] biggdevon:
What's your setup? I've been trying to get android pay to work but not having much luck.
[Magisk] yochananmarqos:
That's odd. It's 1.26.2. You can always update it, either way. Any busybox Installer will install it in the same place.
[Magisk] Silkeyway:
Having the exact same problem. Root doesn't work anymore, reboot fixes it. Running current Sultan build on a OnePlus 3, using xposed, magiskhide turned on because a single app has issues without it.

Did you find anything yet?
[Magisk] thinkingrobot:
Try installing Magisk v11.1 to my Oneplus 3T with Dirty Unicorn RC-v11.1/TWRP 3.0.4-1 stuck on the Oneplus boot logo screen.

Flashing order:

Also try rooted with phh superuser first then using Magisk Manager to install Magisk v11.1, stuck at the same place

the DU RC-v11.1 is flashed after clean wipe of Stock Oxygen OS 4.0.3, running well with or without root.

Anyone can let me know how can I troubleshoot this? Or the Magisk v11.1 on Oneplus 3T only work with SuperSu?

Thanks!
[Magisk] michel sedgh:
Nope. I am using a oneplus 3 on zenity rr rom.. Maybe the issue is with the device kernels or something?!
[Magisk] flandy7:
I have MIUI, it is already pre-installed busybox 1.13.3 in /system/bin/, but Magisk mounts your Bysybox in /system/xbin/, so it turns out that in the TWO Busybox, but the main is considered to be 1.13.3. I think that we need to change the path of the mount Busybox in Magisk...
[Magisk] Arju:
I managed to get Magisk work with Dirty Unicorns 11.1.

So I went about and clean flashed DU and straight away after flashing gapps I flashed Magisk installer. When the phone booted into system I set it up and installed Magisk Manager from Playstore. After that I went into Magisk Manager and then into the settings and checked the Magisk Hide toggle. After that I had to go into Developer option on the phones settings menu and toggle off Android debugging. Then I rebooted and went into Magisk Manager and could see that I passed the safetynet check. I have tested latest Pokemon Go (currently 0.57.2) and Snapchat and they work. I just wanted to share my experience. :)
[Magisk] iNewbcake:
Does anyone have a mirror for v11? not v11.1? v11.1 doesn't work for some apps for me :/
[Magisk] Artim_96:
There is a reason v11 was removed...
[Magisk] Sir-Shadow:
Hi

I'm on Viper 10 v5.4.0 with Magisk v11.1 (HTC 10)

Just flashed XTREMEMusic magisk module and got stock in bootloop.

Is there any way to disable it and resolve the bootloop?

Edit: never mind, I found the answer here
[Magisk] iNewbcake:
I figured, have to roll back all the way to v9 then.
[Magisk] jabashque:
Hi all:

I've tried installing Magisk v11.1 on my BLU R1 HD (Running Prime firmware v7.4.2 [Android 6.0], October 5th, 2016 security patch level, modified version that doesn't lock out SPFT during fastboot). I flashed via TWRP, and it claims it successfully patched boot.img and the such. But, when I restart my phone and boot into Android, the stub Magisk Manager is nowhere to be found, and none of my apps detect any sort of root. If I go and install Magisk Manager, it claims that Magisk v11.1 is installed, but it can't find any root access. Safetynet checks fail, obviously because my boot.img is modified.

No matter how many times I restart my phone, my other apps won't detect root (just to rule out the possibility that root is actually working and that Magisk Manager just happened to fail to detect root). I know that I was able to get this (Magisk v10.2 + phh superuser) working on Prime firmware v6.1 [Android 6.0], unknown security patch level, but it would be from around June 2016. However, Prime firmware v7.4.2 is the one where they took out the updater spyware and introduced LTE Band 12 support, so I'd rather not downgrade to v6.1.

I'd like to know what I can do at this point. Thanks.
[Magisk] Donric13:
V4A seems to have problems on our 6P with magisk 11.1. I was able to get V4A to run normally on Magisk 10.2 (downgrade also the app to magisk manager 2.5). Then on most rom on the 6P it is working. ATM on Magisk 11.1 only on ABC-Rom i got Viper for Arise fully working (Arome installer of Arise, i've read it's a must to remove deep buffer to get it working). So it seems also a bit rom related. I don't know what the genius devs at ABC did to have full support vor Viper Arise mod. on 6P with Magisk 11.1.... Hope some other roms will jump on this train.
[Magisk] Filip013:
Here you go.

It's true it didn't work for a lot of user, but my situation is the opposite. I can't get Magisk Hide to work on v11.1
[Magisk] iNewbcake:
Exactly, the same for me. Thanks.
[Magisk] DarkLanternX:
Can lineage os bypass safetynet without magisk? Idk i got this piece of info from the web
[Magisk] Fun_GKC:
Flashed v11.1 but only rooted?

Did anyone encounter this before?
[Magisk] dcdruck1117:
FWIW, I ended up downgrading back to Magisk 10.2 to and phh's Superuser to get things working again.
[Magisk] NATO66613:
Does magisk work with snapchat?
[Magisk] matt4321:
It can do, I have it working. As long as you pass safety net then you're good
[Magisk] NATO66613:
wierd i cant get it working

I use lineage with removed root & after i isntaled magisk
[Magisk] matt4321:
I think safety net can be a little hit and miss between devices and roms. I have lineageos installed on my N7 with magisk and it fails safety net, but on my N6P I have purenexus with magisk and it passes safety net, so lineageos may be your problem but I can't be 100% sure
[Magisk] venedele:
Magisk doesn't detect installed modules.

I have installed Magisk v11.1. I tried installing "App systemizer" and some other modules from the online repo whose installation finished with "success", however after the reboot in the modules tab there is nothing. If I install from zip in the modules tab it says that installation failed and to install from recovery. The installation from recovery succeeded and yet Magisk doesn't detect any modules...

Am I missing something, or is it a compatibility issue?
[Magisk] NATO66613:
I willtry with AOSiPsince its shipws with SUper Su
[Magisk] twcobra:
I can confirm there is something new going on. I tried DU, Nitrogen and Screw'd all with Flash kernel and I can not get safety net to pass. I get a cts mismatch.

On ABC with Flash kernel it works perfectly. Since these 3 ROMS share a lot of commonality. My assumption is if you can get DU to work all 3 will. Not sure if its something in the ROMs that need to change or if the next release of Magisk will be able to accommodate what changed.
[Magisk] 2ddssa:
I repacked stock kernel for Sony z1c under the latest firmware, magisk installer fun it chewed in recovery and said that everything is OK. In nothing is edited kernel only repack,, SElinux - enforcing mode, magisk hide is enable, magisk work, but safetyNet failed the test. If i remove magisk - test passed, can it recommend?

I tested with versions 10.2 and 11.1
[Magisk] TheWyzeMan:
I'm also running PN with ElementalX and SafetyNet passes until I add Magiska and Phh's Superuser to the mix so I don't think the issue is with PN or ElementalX. Maybe an issue with Magisk and 7.1.X?
[Magisk] jmmartinbravo:
hello,

i have modified update binary to allow magisk to be installed on sony kernels. Well, the mod works fine. i´ll send the mods to topjohnwu. The mod has been created over a versión 11.1

i do not know why imgs don't load, here are the links

https://drive.google.com/file/d/0B7CFt_ue9Is8cUY3dWFVbkdtY00/view

https://drive.google.com/file/d/0B7CFt_ue9Is8RTRDOGRhT1dnX1E/view
[Magisk] 2ddssa:
AICP? non stock kernel without it repackages the same, problems with the stock.

and about repacking stock kernel as an example of unpacking and packing can be viewed here(windows|linux), only to find the compiled binaries for Arm ...
[Magisk] excalibrax:
One plus one help

Okay so I am currently on Oneplus One Lineage, Feb 13 nightly, have magisk installed, phh superuser magisk r266-2 installed, Magisk manager says everything checks out, but I get a CTS error for Safteynet, Automagisk is set for Pokemon go and the Safteynet app, but that doesn't seem to work either. What Am I missing? I tried the 11 build, but it comes back and says its not rooted if I do that, Afterward run uninstaller, install 10.2 and it checks back ok.

Since I'm too new, no outside links but here is imgur gallery: /a/z0Bqr
[Magisk] Artim_96:
What's wrong with v10.2? Worked great for me

---------- Post added at 09:02 PM ---------- Previous post was at 09:00 PM ----------

Maybe kill the app and clear it's cache, and maybe do a reboot. Maybe just a detection error

---------- Post added at 09:07 PM ---------- Previous post was at 09:02 PM ----------

For the thousandth time, about 99% of custom ROMs can't pass SN, with or without Magisk.

And your screenshots show, it's not passing on v10.2 so it's very unlikely to pass on v11
[Magisk] justmix4:
Nexus 4, NitrogenOS 7.1.1, Quanta Kernel, Maggisk 11.1

Safetynet failed: CTS profile mismatch.

I tried to reinstall, and still fails. . SuperSU uninstalled from app Settings, USB/ADB Debugging disabled, Magisk Hide Enabled
[Magisk] Jon.StatiK:
How are you using it and/or did you install it? I've installed the module and flashed the latest v4a zip. All seems well except it doesn't process anything.

Just for clarification I have played music with it and it shows the same thing in status. I just took a screen shot of that so people could see its enabled and everything was good except for processing.
[Magisk] jmmartinbravo:
as fas as i know, unlocked bootloader is needed. This is the starting point. So, unlocked bootloader means:

- lost of drm keys if TA partition is not saved,

- etc, etc, etc.

The post you mention says "only ramdisk modification is needed". Ok, then:

1- Unlocked bootloader, no restriction to boot any kernel, stock included.

2- Only ramdisk editing needed

thus, extracting the elf contents is posible with 2 tools:

1 - kernel_dump

2 - elftool

both are available for all architectures. Then, using this tools over a sony stock kernel, we can get the ramdisk, and extract all parts. Then, modify the ramdisk and repack.

Done.
[Magisk] Artim_96:
... Just read the post I wrote directly before you
[Magisk] SoundGuy_025:
Hi topjohnwu . Excellent app, thankyou for all the hard work. I'm having a issue on my device. I have magisk 11.1 installed. I flashed 10.2 zip via twrp, then updated via the play store to 11.1. I then installed phhs superuser but I'm getting binaries out of date and can't update the binaries. I noticed magisk has its own magisksu but if I uninstall phh superuser I lose root access. When i run a root checker app it says no su app installed but have root access and it say binary is in magisk folder. I tried copying su file to system/xbin but didnt work. Can I use magisk with the SuperSU app instead? My device is GT-I9505. Android 7.1.1 RR-N-v5.81-20170210 jfltex I9505XXUHOL3
[Magisk] oniich_n:
I used Magisk to root my Moto X Pure. Sometimes when I launch a root application, root cannot be found and upon checking the Magisk Manager app it tells me that my phone isn't properly rooted. I usually fix this by reflashing the Magisk zip in recovery, but anyone know what's up?
[Magisk] jcrompton:
Not sure how to get logs in this situation.

I can flash and boot Res Remix on my SM-935F Galaxy S7 Edge with Magisk functioning ?. Root works well.

But whenever I try to enable Magisk Hide the device becomes unstable and when I reboot I get boot loop.

Can you please give me instructions so I can help the developer of Res Remix for my device fix this issue. What info can I provide to you? Since I can't boot now
[Magisk] thinkingrobot:
May I ask what's your phone model?
[Magisk] githyanki:
https://xdaforums.com/showthread.php?t=1726238

Adb should work during boot. I had to do this one for gapps issue.
[Magisk] Fun_GKC:
Nah, restore the stock boot.img, clear cache and flash again, it shows the same thing.

Actually, it's not rooted. I cannot grant root in any apps.
[Magisk] jcrompton:
So I've been working on another project that failed before

Has anyone been successful at using Magisk using Dual Boot or Multirom on secondary ROMs and then gotten Magisk Hide to work to allow Safety net to pass?

Any help or input would be great
[Magisk] inouext:
Hi.

Got a Lenovo running Lineage OS 7.1.1 was using the default built in root, set in developers options.

Installed Magisk Manager and granted root access, installed Magisk phone rebooted all good.

Enabled Magisk hide in options, first square green, second square green and SafetyNet failed.

Tried Pogo no luck, disabled magisk hide in options and also tried some root required apps, no root.

Uninstalled magisk in the options, phone rebooted and now my root options inside developers options only has adb and disabled.

I'll have to reflash my rom?

Any method to bypass safetynet in Lineage/CM ?
[Magisk] yochananmarqos:
Unroot, flash your ROM's boot.img, then Magisk. This has been mentioned numerous times in this thread.

---------- Post added at 06:14 AM ---------- Previous post was at 06:12 AM ----------

Read the release thread. ;)