yashsingh1/xdaforums huggingface dataset:
[Magisk] ambasadii:
[MENTION=4470081]topjohnwu[/MENTION]

it is possible to add support to run shell script from /system/su.d or only magisk/phh/su.d ?
[Magisk] Shadowghoster:
su.d is just a location which is monitored by SuperSu on boot, you can achieve the same thing by creating a module and put your commands in the post-fs-data.sh script. But keep in mind that SuperSu brings other tools then phh or magisk do, so don't just copy and paste the scripts.

e.g. the su.d scripts placed by ARISE wouldn't run under magisk and phh because they use binary programs shipped with SuperSu. You need to edit those scripts to match the tools available with phh and magisk.
[Magisk] LucentBirch:
All the magisk hide stuff and root is installed and working, but safety net test is still failing. Originally the ROM had permissive selinux, but he finally got it to work with enforcing selinux, but still no safety net pass...Any idea?
[Magisk] johnnyk111:
Sony Z3

Will this version, or future planned version work on the Sony Z3, vanilla kernel?
[Magisk] teddy0209:
What format is the vanilla kernel? If it's a boot.img it might work, but if it's kernel.elf it's not supported yet. You can always check github for the developments, or maybe if some devs from xperia community can contribute it will happen faster.
[Magisk] LucentBirch:
Does the rom have to be in userbuild for safetynet to pass? Will it pass in userdebug?
[Magisk] Captain_Throwback:
I don't think userdebug will pass.
[Magisk] LucentBirch:
Okay, thanks. :'( Will have to wait, I guess.
[Magisk] Captain_Throwback:
Wait for what? Use the tools available to change the prop that reads "userdebug" to "user" and see of that gets it working. The official Magisk release thread describes how this can be done.
[Magisk] LucentBirch:
In the build.prop you mean? Is it this thread where it's discussed? If so, I can't find anything: https://xdaforums.com/apps/magisk/official-magisk-v7-universal-systemless-t3473445
[Magisk] Captain_Throwback:
Look for "resetprop"
[Magisk] LucentBirch:
I found some stuff, but I don't completely understand. There are 5 instances of "userdebug" in the build.prop -- how would I go about changing them all? Or would just the ro.build.type have to read "user"?
[Magisk] Captain_Throwback:
I'd start with setting ro.build.type to user and see if that works. If not, then you'll probably have to change some of the other entries.
[Magisk] LucentBirch:
Yeah, no go. I'm not going to worry about it right now. Thanks, though!
[Magisk] wheels01:
After a lot of reading and trying different things I need help. I cannot get safetynet to pass. I only need it for AirWatch. I had it before and can't seem to get it Magisk to work.

I did a clean wipe formatting data to remove any prior root.

I pushed vendor IMG and flashed it via TWRP

I sideloaded ROM, Gaps, Kernel and Magisk 10.2

I encrypted again.

I updated to phhs topjohnwu r2 in Magisk App downloaded from the play store

Set Magisk hide and rebooted.

... Still fail.. ? any advice would be appreciated.

Nexus 6P. ROM Pure Nexus with Elemental X Kernel. (I've used Magisk with this kernel before)

http://cloud.tapatalk.com/s/5886340adbdf2/magisk_error_20170123_114625.txt
[Magisk] Didgeridoohan:
I don't think Airwatch uses Safety Net. Check the Airwatch app and Settings in Magisk Hide and try again.
[Magisk] Captain_Throwback:
It does...among other detection methods.
[Magisk] Didgeridoohan:
Ok... It's one of the nasty ones then... :p
[Magisk] wheels01:
Yep. I also do not have Android Pay on the list of available apps to checkoff in Magisk hide menu. I have it installed.

I have also tried with the stock kernel that comes with the ROM and still receiving the safetynet failed.
[Magisk] Captain_Throwback:
You're not supposed to have Android Pay in the list (anymore). SafetyNet is hidden by default when Magisk Hide is enabled.
[Magisk] wheels01:
That answers why I can't use Android pay then. Thanks!

Any ideas on how to get safetynet to pass? Why am I getting this CTS profile mismatch.
[Magisk] Didgeridoohan:
It's something with your ROM. Stock N6P with Franco Kernel passes Safety Net without any problems... Permissive SELinux or remnants of old root are the usual suspects.

Edit: What Gapps are you installing? Nevermind... My thinking was that you wouldn't pass with a too minimal Gapps package. But I believe you won't even get a result on your SN check if that's the case. I'm gonna blame the fever... :)
[Magisk] wheels01:
I'm using full version of Dynamic Apps.

That's why I'm confused. I'm set to enforcing and encrypted and I went as far as formatting data and doing a clean ROM install. I see other users with Elemental X kernel and no issues. I just don't know what I am doing wrong.
[Magisk] bobd2754:
I'm getting fail too, on Nexus 6 Pure Nexus 7.1.1, I'm kind of new to Magisk, I check hide, reboot and it's not checked when I open Magisk. Which apps do I need to check, or where can I look for more information, TIA
[Magisk] Didgeridoohan:
From your description it sounds like you're using SuperSU as a root method (but why posting in phh's superuser topjohnwu r2 thread then?). Magisk Hide doesn't work with SuperSU.

If not, read the last few posts for in this thread for info.

Edit:

https://xdaforums.com/showpost.php?p=70426733&postcount=7120
[Magisk] shivam883:
Please help me I am on YU yuphoria with phh super user and magisk v10.2 but I am not able to pass safety net and also pogo is not showing on magisk hide
[Magisk] shivam883:
Here is my log and manager
[Magisk] Didgeridoohan:
No need to spam. I seem to remember a bunch of people tried helping you a while back. Nothing worked?

Check this post: https://xdaforums.com/showpost.php?p=70426733&postcount=7120

And you don't need Pokemon to show up on the Hide list. It doesn't need to be hidden...

Edit: Your log looks fine.
[Magisk] shivam883:
1 last question can I flash cyanogen on my yuphoria yu5010A with stock android via fastboot
[Magisk] Didgeridoohan:
That's a question best suited for your device's forum (if there is one). I've no idea. Give it a try...
[Magisk] shivam883:
Yes there is thanks
[Magisk] LucentBirch:
https://www.reddit.com/r/Android/comments/5pqpke/psa_safetynet_updated_magisk_no_longer_bypassing/ --maybe why so many fails?
[Magisk] tokenbest:
Hello, anyone uses Dirty unicorns with + magisk + phh superuser? I am trying to get it to work but i am just unable to remove the root that magisk automatically installed on it.

It installed 2.79 SU root and i can;t install the module for phh superuser. Thus, no magisk hide.

Any step by step guide would be deeply appreciated. thanks!
[Magisk] Didgeridoohan:
Magisk does not automatically install SuperSU... If there's systemless SuperSU already installed, Magisk will adapt and use it. If there's no root, phh's superuser topjohnwu version will be automatically installed.

I'm guessing your ROM comes with SuperSU built-in. Remove it before installing Magisk.
[Magisk] M4xmark:
CTS profile missmatch

I have problem with my new phone Xiaomi redmi s3, 6.0.2 marh... Everything ok with Root and manager install, but safetynet shows CTS profile missmatch... Safetynet helper shows Response payload validation failed.... 3 times uninstalled and also tried v9 but without succes... Can u guys help me pls? :) (sorry for czech language) :cyclops:
[Magisk] mbs.yaswanth:
ROM: cm13.0

android version: 6.0.1

and yes i got error in twrp while flashing that phh's superuser zip file...!

And yes i flashed the latest version of magisk....

As of now as i was unable to hide it (so unable to play pokemon go), so i uninstalled it.

I will surely install it again , if you guys help me make it work!!!

also i must tell u that my phone is not stock unrooted system!!(cm13) , i received it with cm12(lollipop os)!

when i tried to hide magisk in settings, the app unfortunatrly stopped.....!!
[Magisk] Didgeridoohan:
I was a bit careless with my wording... You can use a custom ROM and still use Magisk, but it can be tricky to get it working 100%. With CM, I believe you need to use a custom kernel to pass Safety Net.

If you try again and have errors while flashing, save the recovery log and share it or it will be much harder to help. First though, I'd recommend searching through the support thread since a lot of questions have already been asked and answered...

Here's a post I wrote with some tips on passing SN: https://xdaforums.com/showpost.php?p=70426733&postcount=7120
[Magisk] Toninho13:
I update the superuser app. Since that greenify not get root permission. They are incompatible?
[Magisk] Istvan_86:
Hello,

I use a OP 3T with FreedomOS Nougat with SuperSU included in the rom.

I found 3 threads in XDA about Magisk and phh:

https://xdaforums.com/apps/magisk/m...ndroid-pay-t3435921/post68107851#post68107851 (is this one)

https://xdaforums.com/apps/magisk/official-magisk-v7-universal-systemless-t3473445

https://xdaforums.com/android/software-hacking/wip-selinux-capable-superuser-t3216394

While I download all the files I also was reading all threads and I end with a huge mess I don´t know where I should start. Anyone can point me in the right directon? I´m totally messed.

Thanks in advance.
[Magisk] Didgeridoohan:
If you want to switch to Magisk phh's superuser (which I assume) you'll have to completely remove built-in SuperSU. This could be problematic since you might have to use a different boot image than the one for your ROM (if it's pre-patched for SuperSU).

After that, follow the instructions from your second link. Magisk will automatically install phh's superuser topjohnwu version.

If you have problems removing root, ask in your ROM's thread. Osmosis unSU script might work. Check his odds and ends thread.

If you have problems installing and/or using Magisk, provide a recovery log from TWRP and a Magisk log (found in /cache after a boot with Magisk installed and can be reached through TWRP if nothing else) and post them in the support thread with as much details as to what you've done as possible.
[Magisk] :
Deleted (was 15 sec too late ;))
[Magisk] Istvan_86:
Hello and thanks both of you for your answer,

My rom is FreedomOS ( https://xdaforums.com/oneplus-3t/development/rom-freedomos-1-0-t3538726 ) and it has aroma installer. I just reflash it and choose not to flash SuperSU and follow your instructions.

Now I have root + Magisk working except SafetyNet (screenshot attached) I don´t know if I did something wrong or it´s just normal. Any advice?

Cheers.
[Magisk] yochananmarqos:
Greenify works fine for me.
[Magisk] Istvan_86:
Really thanks!!! Now all is working 100% SafetyNet OK PoGo OK and Snapchat OK.
[Magisk] Manfred2000:
Hi!

I installed Magisk and i get also the SafteyNet profile mismatch!

From stock rom, first i rooted my device, then installed CyanogenMod 13. Then installed Magisk.

I have a Galaxy S4.

Some common questions:

When I check "Activate Magisk Hide" then applications can not see that my device is rooted?

How do i add an app, that root is hidden from it?

Here is my log

** Magisk post-fs mode running...
** Magisk post-fs-data mode running...
* Preparing modules
* Stage 1: Mount system and vendor mirrors
* Stage 2: Mount dummy skeletons
* Stage 3: Mount module items
* Stage 4: Execute module scripts
* Stage 5: Mount mirrored items back to dummy
** Magisk late_start service mode running...
service: /magisk/phh/service.sh
phh: Live patching sepolicy
phh: Moving and linking /sbin binaries
phh: Mounting supath
phh: Starting su daemon
* Removing tampered read-only system props
* Starting Magisk Hide
MagiskHide: Update process/package list:
MagiskHide: [com.google.android.gms.unstable]
Zygote(0) ns=mnt:[4026534962]
MagiskHide: com.google.android.gms.unstable(PID=8913 ns=mnt:[4026535039])
MagiskHide: Unmounted (/sbin)
MagiskHide: Unmounted (/magisk)

Thanks
[Magisk] Didgeridoohan:
When you activate Magisk Hide and reboot, devices that use SafetyNet are no longer able to detect you're rooted. If you have everything set up correctly (which you don't going by your description). To add an app that doesn't use SafetyNet, check it in the Magisk Hide list (no need for reboot).

Here's a link to a post I made for tips on how to pass SafetyNet: https://xdaforums.com/showpost.php?p=70426733&postcount=7120

I believe CM's kernel triggers SafetyNet (from what I've read), so you should probably try a different kernel.
[Magisk] Manfred2000:
Thanks for the fast reply!

Why didn't I set it up correctly?

From stock:

* Rooted Device

* Installed Cyanogen Mod + gapps

* Installed phh's SuperUser App

* Installed Magisk from TWRP recovery

* Installed Magisk apk

Which kernel would you prefer?

I found the Hide-List - but it seems not to be up to date. E.g. it doesn't list Pokemon Go App!?

brgds
[Magisk] teddy0209:
Your steps are wrong...

1. Flash your preferred rom and gapps

2. Full unroot if it comes prerooted (10.2 should remove system root for you, but this way is better if you fresh start)

3. Flash Magisk/ it should flash the phhsu with it

4. Enable magisk hide

As for kernel, better go to your devices forum...
[Magisk] Sp33d_:
I have a strange behavior, when I activate "Enable Magisk Hide" in Magisk and reboot I have no Internet Connection. When I remove the flag and reboot it works again... Has someone the same problem? :confused:

I think this is the cause:

MagiskHide: com.google.android.gms.unstable(PID=11212 ns=mnt:[4026536675])

Log attached.

Edit:

Rom = DU

Android 7.1

Nexus 6P
[Magisk] teddy0209:
I don't see anything wrong in the log...

That's just the one that needs hiding to pass safetynet...
[Magisk] PhrostB:
I'm getting SafetyNet failed error. Not sure what I did wrong

1. Upgraded CM14.1 to LineageOS 14.1

2. used the official lineageOS unrooter

3. installed magisk and magisk manager

4. installed phh's SuperUser topjohnu r2 and the phh root manager

5. enabled magisky hide and rebooted.. still getting an error?
[Magisk] teddy0209:
You don't know what you did wrong, much more with us, so you need to provide more details, as much details as you can... logs, screen caps, steps, etc...
[Magisk] PhrostB:
Ok. What screenshots and logs exactly should I upload? Those are pretty much the exact steps I took...
[Magisk] teddy0209:
Caps from magisk manager, magisk log, recovery log, anything that provides more info. You should provide as many details as possible when you ask for help. Though your problem might be in the rom you are using...
[Magisk] PhrostB:
When I first installed magisk (after using official lineageos unrooter) I got this grey error in the root field.. i can't remember exactly it was but it was not a pass or a fail. something to the tune of "if you have root it's not being fully recognized", so I removed the phh root and it went back to two red errors. The top part of the screen had a green ok "magisk is installed and functioning properly" but the bottom two were red, "no root installed" and "safetynet error".

So I reinstalled magisk and I guess it reinstalled the phh root along with it? This is how it currently looks:

http://imgur.com/a/usNML

I'm not sure how to find magisk and recovery logs, where would those be located?
[Magisk] teddy0209:
Do some reading on the other magisk thread, you could try disable adb debugging in dev option, or try other kernel or rom... About the logs, just google it. Need to sleep now, it's already 1:00am here .. ?
[Magisk] PhrostB:
What other magisk thread are you referring to? Also my USB debugging was already disabled. Also I found the magisk.log

** Magisk post-fs mode running...
** Magisk post-fs-data mode running...
* Preparing modules
* Stage 1: Mount system and vendor mirrors
* Stage 2: Mount dummy skeletons
* Stage 3: Mount module items
* Stage 4: Execute module scripts
* Stage 5: Mount mirrored items back to dummy
** Magisk late_start service mode running...
service: /magisk/phh/service.sh
phh: Live patching sepolicy
phh: Moving and linking /sbin binaries
phh: Mounting supath
phh: Starting su daemon

i tried uninstalling magisky, using LOS unrooter again, removing phh root, and removing phh root manager, and then installing magisky again. this is the grey error I was talking about:

http://imgur.com/a/HBMqN

i'm going to try installing phh root manager again but i don't think it'll make a difference

.

edit: i reinstalled phh manager but now I still have the third CTS profile mismatch error :(

this is my magisk.log:

** Magisk post-fs mode running...
** Magisk post-fs-data mode running...
* Preparing modules
* Stage 1: Mount system and vendor mirrors
* Stage 2: Mount dummy skeletons
* Stage 3: Mount module items
* Stage 4: Execute module scripts
* Stage 5: Mount mirrored items back to dummy
** Magisk late_start service mode running...
service: /magisk/phh/service.sh
phh: Live patching sepolicy
phh: Moving and linking /sbin binaries
phh: Mounting supath
phh: Starting su daemon

and my last_magisk.log:

** Magisk post-fs mode running...
** Magisk post-fs-data mode running...
* Preparing modules
* Stage 1: Mount system and vendor mirrors
* Stage 2: Mount dummy skeletons
* Stage 3: Mount module items
* Stage 4: Execute module scripts
* Stage 5: Mount mirrored items back to dummy
** Magisk late_start service mode running...
service: /magisk/phh/service.sh
phh: Live patching sepolicy
phh: Moving and linking /sbin binaries
phh: Mounting supath
phh: Starting su daemon
[Magisk] jhedfors:
Try unrooting using osmosis unsu (search) zip, then flash Magisk. PHH Superuser will be installed automatically. Install PHH Superuser from Play Store. Enable Magisk Hide, and reboot.
[Magisk] Manfred2000:
I tried now with Resurrection Rom (http://www.android-hilfe.de/thema/rom-resurrection-remix-v5-8-0-release-11-7-1-1_r9-i9505.806498/)

Wiped

Installed rom and gapps

Restarted

Installed Superuser app and did unroot

Installed magisk in twrp

Rebooted

Installed phhs Supersu and magisk app

Now it works!

Thanks
[Magisk] PhrostB:
ok I first I removed phh root (but kept phh superuser manager), then booted into recovery, flashed magisk uninstaller and osm0sis unsu. Booted back into OS. Now I have all 3 red errors:

1] Magisk not installed

2] Not Rooted

3] Safetynet Failed: CTS profile Mismatch.

Which I assume is good. so after flashing magisk and wiping cache/dalvik... I boot back in. In addition to this error:

1] Green ok

2] Green ok

3] Safetynet Failed: CTS profile mismatch

I'm also having an app crashing. com.qualcomm.com.qcrilmsgtunnel fail. Close app or wait?
[Magisk] Didgeridoohan:
You haven't activated Magisk Hide in the Manager... Do that and reboot. If everything else checks out you'll be good to go.
[Magisk] jhedfors:
You have to reinstall PHH Superuser app from Play Store again as the unsu zip uninstalls it.
[Magisk] PhrostB:
You're right I forgot to do that but I did it now and I still have the CTS error.

I thought magisk installs PHH for you? Anyway I only have the CTS error, not the root error.
[Magisk] Didgeridoohan:
From Magisk v10 it installs the phh's binaries (if you're not already rooted with systemless SuperSU or phh's superuser topjohnwu version). It does not install the root manager (phh's superuser app).

You've got something triggering SafetyNet then. It could be a number of things. Check this for tips: https://xdaforums.com/showpost.php?p=70426733&postcount=7120

It might also be that your ROM is incompatible. I think CM's kernel is incompatible with SafetyNet, so maybe LineageOS is as well...
[Magisk] PhrostB:
But the root manager (app from play store) survived all the uninstalls. And you might be right about Lineage. but I though the whole reason they decided not to include root in the LineageOS builds was so that we can use apps like android pay? I found this

https://www.reddit.com/r/LineageOS/comments/5q0uqj/lineage_os_passes_safetynet_checks/

claim that it does work, so I started posting here saying that it doesn't work for me, basically the same stuff i'm posting in this thread.

https://www.reddit.com/r/LineageOS/comments/5q4sx9/qa_weekly_qa_thread/dcza2xk/?context=3
[Magisk] soder:
I pass SafetyNet with Magisk 10.2 and the included root on official LineageOS 14.1 on a OnePlus One.

/Söder
[Magisk] Didgeridoohan:
Thank you, that's good to know.
[Magisk] teddy0209:
It's good that you got it working...???

---------- Post added at 12:35 PM ---------- Previous post was at 12:31 PM ----------

It's good to see success stories once in a while... ?
[Magisk] Jizzler:
Rooted, but no root permission

I have installed v10.2 which I thought was supposed to provide everything, however, MM says I'm rooted, but it doesn't have root permission. I installed the SU app as well, but it only logs the denialS. I'm using TWRP 3.0.3.-Unofficial recovery with a stock US Unlocked ROM (2.41). Can anybody point me in the right direction to having a viable Magisk?
[Magisk] Yeti47:
Deleted
[Magisk] jhedfors:
You may have inadvertently denied access. Try clearing data in the superuser management app.
[Magisk] gewe:
Sorry, post moved here.
[Magisk] kryzeK:
Hi, please can anyone reply some questions?

I'm on rooted stock 6P with SuperSU, the latest version of FlashFire added support for this superuser (I think).

My questions is:

1. When using FlashFire for update my phone, superuser and magisk is losted?

2. Does Flashfire work stable and have all the functions like SuperSU?
[Magisk] Didgeridoohan:
1 - Depends... If you update your data partition the Magisk image will be wiped with all your modules. If you update your boot partition you'll have to reflash Magisk but your modules will be intact.

2 - Magisk support for Flashfire is still in it's infancy. Expect quirks...
[Magisk] boldonc:
After update Magisk and Magisk Manager and rebooted my system Magisk icon disappeared only remained M. manager! This is OK?
[Magisk] sooyong94:
Yup that worked too on my Moto X Style running 6.0.1 with Phh Superuser and Magisk 10.2. :good:
[Magisk] biggdevon:
You running stock rom and kernel or custom?
[Magisk] Kal-El7:
Is there any reason why phh SuperSU isn't automatically detecting Greenify to grant root access?
[Magisk] Yeti47:
If your using xposed, disable it in that and reboot. It should eventually ask then, but is a pain...
[Magisk] Kal-El7:
You are a beast. Thank you. That was odd that I had to do that. I wonder what other modules I have in Xposed currently that require an extra step before I can have full access to that module. My 31 modules are special. lol
[Magisk] BIGWORM:
What modules are you using? I'm only seeing like 10 in Magisk Manager.
[Magisk] Kal-El7:
Xposed modules. My initial question regarded Greenify, which is an Xposed module. The 31 modules are from there.
[Magisk] BIGWORM:
Oh lol. Damn that's a lot of modules!
[Magisk] Kal-El7:
Super sweet modules, too. [emoji1]
[Magisk] BIGWORM:
That's what I miss about MM lol
[Magisk] Kal-El7:
Lol..... That's why I left Nougat and reverted back to Marshmallow.
[Magisk] Lmax579:
Will it work with galaxy s7 edge?
[Magisk] Sp33d_:
Has somebody an idea?
[Magisk] ahero4heor:
On Nexus 6P, 7.1.1, with Franco kernel. I'm having problems using this root method. Phh's superuser method works, as does supersu, but not the Magisk variety of the former. I'm successfully flashing (attempting to, at least) from the Magisk v10 package or from the phh's SuperUser topjohnwu r2 package but it doesn't seem to result in root.

Can anyone offer some insight?
[Magisk] Didgeridoohan:
Flashing Magisk on an unrooted stock 7.1.1 N6P with Franco Kernel works beautifully. I've done it a couple of times...

If you've got problems provided a recovery log and possibly a Magisk log as well. Easier to troubleshoot that way.
[Magisk] Siebenheaven:
I'm in Zenfone 2 ze551ml.

Magisk v10.2 with phh's superuser R2.

Is this right? I get cm-su in magisk manager. I'm on official lineage os 14 that didn't come as pre rooted.
[Magisk] Didgeridoohan:
Looks perfect!
[Magisk] Siebenheaven:
Even the cm-su part? If that's correct can you explain it to me, why I see confusing stuff like that? :p
[Magisk] CSX321:
I don't know. I have ElementalX installed on my Nexus 5, and I can still make payments if not rooted. I'll try v3 and let you know the results.