yashsingh1/xdaforums huggingface dataset:
[Magisk] spinal2k:
Device Model: OnePlus 3

Android Version: Marshmallow 6.0.1

Root solution: PHH

Xposed Status: Disabled (see edit)

ROM: OxygenOS 3.2.6

Android Pay App Ver: 1.5.130002920

Android Pay Transaction: Transaction Success!

My friends, this worked flawlessly for me. Let me just say the following.

I didn't do a clean install... I was on OxygenOS 3.2.2 with SuperSU and I DIRTY FLASHED the latest update released today (3.2.6). I installed everything according to instructions on the "Magisk thread" but instead of continue using the supersu root solution (the one I was using before the dirty flash), I moved to PHH. Then I attempted all these situations and only 3 and 4 worked properly.

I cannot get 5) to work though. (edit: please see edit at the bottom)

I was only able to add the card successfully, I did not try any transaction ( everything is closed at this hour ). (edit: please see edit at the bottom)

Cheers

Note: I have adway installed with systemless hosts as well

Edit: Today I did my first transaction successfully. It did not work immediately , I had to do the "add your card and cancel" trick for it work. I was able to do this with xposed enabled. I also used Auto Magisk. For those interested in knowing, I made a 1.38£ purchase at morrisons :P
[Magisk] smohanv:
I haven't tried this method. Will try tomorrow.
[Magisk] Dyspr0sium:
SafetyNet was changed so that Magisk + systemless Xposed fails now even when Magisk is unmounted. Disabling Xposed and rebooting passes again.
[Magisk] alatnet:
crap, really?

so that's why the response validation is failing now...
[Magisk] habylab:
Not for me 30 minutes ago.
[Magisk] g2uzer:
Yup same here I have to disable Xposed in order to pass safety net . I haven't tried making a purchase just yet but I was able to " add a card"
[Magisk] thodibhen:
Well that sucks.... just yesterday I could pass safetynet... today its failing. Why wont these bastards give up already
[Magisk] smohanv:
Thanks. I found the issue. It is mainly xposed though I installed systemless xposed. I disabled xposed, restarted my device, unmounted root, force closed Android Pay and then tried adding a card and back to card listed screen and used for payment. It works.

Android Pay doesn't work even with systemless xposed.
[Magisk] Didgeridoohan:
Nice to hear it works.

Apparently SafetyNet got updated yesterday to discover systemless Xposed...
[Magisk] hanschke:
link to the beta?
[Magisk] habylab:
Beta of what?
[Magisk] Jsilver73:
He he he - I bet 'they' are saying the same about us :p
[Magisk] JudgeDread11:
They never will because it they do Android would get the reputation of being an unsafe platform and the companies would stop offering their services to androids users.

Be happy that these bastards code to create safety net which effects only the apps that actually require higher security. They could also have chosen to address the issue of rooting and modifying your phone ask together.

These bastards actually allow us to have root. They just put up certain conditions.
[Magisk] smohanv:
Some developer may find a way to off hook xposed (systemless) without full restart of our device like how we unmount root using magisk manager. This will put us on track of using Android Pay though we have xposed installed. Developer of magisk manager may please consider to have xposed unmount option as well next to unmount root.
[Magisk] smohanv:
I have come across this thread if it may help anyone.

http://www.androidpolice.com/2016/0...oid-pay-without-constantly-toggling-root-off/

It works good. It saves few steps like opening magisk manager to unmount root.

As previously I mentioned, xposed has to be disabled and device to be rebooted. I have not tested by "hot boot" instead of a complete boot. I can find apps on playstore which helps hot boot.
[Magisk] thalling98:
Did some testing with my nexus 6P (checking with both SafetyNet Helper Sample and Android Pay) - starting each time with xposed enabled and a full reboot (which receives an error in android pay and safetynet app) and using the following reboot options:

Gravitybox offers the "soft reboot" option in the power menu. Disabling xposed framework and then using this option of soft rebooting, after toggling root off in magisk manager I was able to pass safetynet and start the process of adding a new card.

I tried an app with the "hot reboot" option, Reboot (Material design) - selected "hot reboot", let the phone reboot, toggled root off in magisk manager; safetynet app said that safetynet test was passing, went into android pay and adding a card worked. (I actually tried this twice, the first time, safetynet passed but android pay gave an error, but the second time both safetynet and android pay worked. Not exactly sure what the difference was between each attempt.)

Tried another app with "hot reboot" option, Quick Reboot (Root) - used the "hot reboot" option, again let the phone reboot, toggled root off in magisk manager; safetynet app said safetynet test was passing, and i was able to start adding a card in android pay.

In order to re-enable xposed, a full reboot is needed, "soft" and "hot" reboots don't work.

So based on my findings, if you want to reduce the preparation time for using android pay when you have xposed enabled, both "soft" and "hot" reboots work. :o
[Magisk] smohanv:
Today I did my first transaction in ALDI and it works. I tried with material design xposed soft boot option after disabling xposed. I have Auto magisk installed and selected Android Pay and Google play services. This saves the task of opening magisk manager and unmounting root. I opened Android Pay. Didn't select card add option and back to listed card screen. Just opened the app and went to till and touched to pay. It was successful. After re-enabling xposed, I had to do a full restart of my device to have modules to work.
[Magisk] gqukyo:
I don't get how some can get it to work while others can't
[Magisk] habylab:
Why does Google Play Services have to be selected in AutoMagisk? Thanks.
[Magisk] SamuelBegui:
Device Model: OnePlus 3

Android Version: 6.0.1

Root solution: phh's superuser

Xposed Status: Disabled (Needed to soft reboot, disable in material xposed app)

ROM: RESURRECTION REMIX M [5.7.4][BJRR] ( I also believe OOS ROMs work as well )

Android Pay App Ver: 1.5.130002920

Android Pay Transaction: Success!

---------- Post added at 10:41 PM ---------- Previous post was at 10:38 PM ----------

Yeah, you need to either soft reboot (Which disables Xposed Systemless for me automatically) then disable root in Magisk Manager. I believe AutoMagisk can disable it automatically, not sure if it works with Xposed though. Read a few recent comments on that thread that it doesn't work with Systemless Xposed, so all you really need to do is Soft Reboot + Disable Root and it should work again. :good:
[Magisk] alatnet:
Went with the alternative method that is listed in the xposed thread.
[Magisk] smohanv:
It was selected by default just after install and I left it unchanged. When google play services had to run it may unmount root. But not sure. I can disable and check when I transact next time.
[Magisk] habylab:
It's odd, because it was for me too and I wasn't sure why, so I hit "re-add defaults" and it wasn't there. Weird.
[Magisk] smohanv:
Auto magisk works for me. It saves me the task of opening magisk manager to unmount root. Auto magisk is not controlling xposed. So, xposed has to be disabled manually and soft booted. If we have Auto magisk installed before, just open android pay directly and auto magisk will does the job of unmounting root.
[Magisk] got2best:
I'm not sure if this could be the reason Android pay is working for some and not working for others... but it seems android pay only systematically checks for for root. I have noticed it failing at times and working others... Pokemon go has no problems because it checks Everytime you start the app. To force android pay to check system: before making a payment add another card but back out to Android pay before adding. And use your card to pay! Let me know if this works or anyone other then me.
[Magisk] sansnil:
Correct. This behavior has been noted some time ago. AP appears to perform a Safetynet check at boot and when adding a new card. Previously, if you disabled root and forced a check by starting to add a card AP would then work even with Xposed (systemless) enabled. A recent change is that Safetynet now detects Xposed so you have to disable it, reboot, then with root disabled prompt AP to perform a Safetynet check and it works again. Hopefully topjohnwu can find a way to similarly unmount Xposed but we'll have to wait and see.
[Magisk] habylab:
Well, he did say he had several methods, so we shall see. I did also read where he said it was a mistake to try and make Android Pay work, although I'm not sure if he backtracked on that.
[Magisk] smohanv:
Device Model: Huawei P9

Android Version: EMUI 4.1 (6.0 based)

Root solution: phh's superuser 17

Xposed Status: Disabled and soft rebooted via the boot option in xposed material design

ROM: Stock ROM, Custom kernel Abyss nightly

Android Pay App Ver: 1.5.130002920

Android Pay Transaction: Success!

Additional info: Using Auto magisk which saves the task of opening magisk manager to unmount root

Steps I did just before initiating a transaction:

1. Open xposed and disable and soft boot

2. Open Android Pay and click on + to add a card. When you see the screen asking to scan card, hit back button and get back to the screen you have cards saved

3. Choose the card you want to use (if you have more than one card saved)

4. Touch and pay as usual (make sure NFC is enabled)

To return to have xposed modules to work, open xposed and enable it and do a complete restart.

Hope it helps.
[Magisk] Fentadroid:
How did you do that?

RR is already rooted. Did you flashed unSU or something similar first?
[Magisk] smohanv:
Check if it is rooted with chainfire SuperSu. If yes, follow the procedure mentioned in this link.

http://www.trishtech.com/2014/08/unroot-android-supersu/

Hope it helps.
[Magisk] Fentadroid:
Rom is CM based and doesn't use chainfire SuperSu, that is why I asked the question, just curious to know what he did..... :D

On official CM rom, magisk doesn't work.
[Magisk] smohanv:
Understood. Try finding Su files in bin or xbin folders (using root explorer) and delete it manually. Or you can try installing Chainfire's SuperSu from Playstore and try unrooting.

It is very long time since I stopped using CM hence I can't think of a way.
[Magisk] garthybarthy:
My S6 now fails SafetyNet. It's been working for the past month or two with magisk. It used to work with Xposed enabled and just disabling root with magisk.

Since today I've tried disabling Xposed and magisk with reboot, neither works now. Fails SafetyNet everytime.

Android pay updated yesterday, tried reverting to old version but still doesn't work.

There must of been a Google play services update in the background that's changed something.
[Magisk] adrman:
No problems here. Just used AP for some groceries about 2 hours ago. I've got the latest AP. Did you try going through the motions of adding a card?
[Magisk] garthybarthy:
Seems strange how several users are suddenly having issues out of the blue, Google has clearly changed something. Adding cards no problem, it just doesn't pass safetynet.
[Magisk] SamuelBegui:
I deleted su from both xbin and bin in /system.

Then, I removed /SuperSU/

Running unsu works too but I just delete the su files myself in TWRP File Manager. :good:

---------- Post added at 10:03 PM ---------- Previous post was at 10:00 PM ----------

For anyone wondering, this also worked for my OnePlus 3.

http://xdaforums.com/showpost.php?p=68823342&postcount=2278

You get root + xposed without needing to reboot. Android Pay also works without needing to reboot or disable xposed.
[Magisk] Fentadroid:
And you were able to install Magisk on a CM based ROM?

I tried on official CM but didn't work... i'll try on RR :)

The reason i'm on official 3.2.6 is the cam.... i really want good pictures.....

I know there is a port for the cam but it's not the same thing....
[Magisk] g2uzer:
Just used AP again and worked fine. I'm using the previous version of AP not the latest one. I did "Add a card" trick and worked fine after disabling Xposed and turning off root.

Nexus 6 running PureNexus ROM
[Magisk] joeyddr:
New version works fine also
[Magisk] goodtimes50:
Is the "add a card" trick necessary after every time you disable root? If so, kinda defeats the purpose (convenience) of AP. May as well just take the card out of my wallet...
[Magisk] joeyddr:
I do it as I get out of my car and walk to the store.... No way taking your card out and waiting for that chip reader to work is faster lol.
[Magisk] gk1984:
No, I just do this after every reboot. Just used AP from the lock screen a few hours ago without issue
[Magisk] Jsilver73:
Successfully used Android pay at 3 different shops today - no xposed, stock based ROM (latest security patch) - nexus 6p

I did have a couple of transactions that wouldn't go through but I didn't receive error on my end, could have been merchants terminals playing up.

I'm also using Automagisk which is working great for me.
[Magisk] Jsilver73:
I thought the same thing until I recently (yesterday) installed a ROM with PHH root built in, I thought 'what the hell, I may as well give it a go' and installed Automagisk to automatically toggle root off when I open AP which seems to be working a treat - pull phone or off pocket, unlock with imprint, open AP, root toggles off automatically and AP does its safetynet check, I tap my phone on the terminal and watch in delight as the little android man does his little dance :)

I've gone from sceptic to convert over night - it really is less hassle than getting wallet out then card out of it etc!
[Magisk] goodtimes50:
TIL that AutoMagisk exists! Not sure how I hadn't come across it before. Thanks guys!
[Magisk] habylab:
In the UK, we have contactless cards that work up to £30. It's why I struggle to use AP with the hassle to soft reboot, and the cancel card trick.
[Magisk] garthybarthy:
AP is a waste of time in the UK, more hassle trying to constantly come up with ideas to fool Google. By the time you get your phone out and disable root. You might as well just get your contactless debit or credit card out its quicker. It's a gimmick in the UK really.
[Magisk] joeyddr:
Ah I don't use Xposed so I don't have to soft reboot.
[Magisk] gk1984:
No issues for me in the states. I just do the card trick once per reboot and use the app AutoMagisk on xda to auto toggle root when Pay launches. Even set it so roots disabled when screen is off so I don't have to launch the app to pay.
[Magisk] thomasyke:
I have AP and magisk without exposed, but when i try to use AP it still gives me the unable to verify error. Any idea what i'm doing wrong?
[Magisk] gk1984:
Likely still have remnants of superuser files in system.
[Magisk] fgghjjkll:
Device Model: OnePlus One

Android Version: 6.0.1

Root solution: phh's superuser

Xposed Status: Disabled

ROM: Stock ROM (Cyanogen OS version 13.1-ZNH2KAS1KN)

Android Pay App Ver: 1.5.130002920

Android Pay Transaction: Success!

I had to use the Add a Card method for it to work, however. Is there a way for Magisk Manager to not mount root at boot time?
[Magisk] Captain_Throwback:
A future version will have this option.
[Magisk] habylab:
This is what I've found. I think Google are being petty really. Can't they just whitelist our use of Xposed and Root? I'm not hacking Android Pay. Secure it in a sandbox, whatever, just allow me to use it and do what I want with my phone which doesn't include allowing others to steal my data.
[Magisk] gk1984:
Root access means users can break the safety of the sandboxed environment. Android does run apps in a sandbox already. But things like root access a database xposed bypass that security. Plus safetynet is now being used as an anticheating method in Pokémon go. Google is developing this security check for others to use and doing it alla cart isn't efficient.
[Magisk] 3Shirts:
I recently wiped and flashed the stock rom for my device (Xperia Z5) and installed magisk v6 and phh superuser. All working great, passes safetynet (after I disabled Xposed which I wasn't really using much anyway), and Pokemon works etc.

I set up Android Pay, added my Natwest card, and used it once to buy noodles, all fine. It's since stopped working! I get the error about 'may need to unroot' but I've definitely got root disabled in Magisk and can go through the add card process which fails if root is enabled.

I did have an issue where a tasker task accidentally re-enabled root when I was trying to pay once. Is it possible that that 'triggered' something and disabled the virtual account. Shall I try removing the card and wiping the app to start again or does anyone know what might be causing it to fail now?
[Magisk] Didgeridoohan:
No need to wipe anything. I'm not sure exactly when (don't have AP), but apparently AP checks for root at certain intervals and stores the result.

With root disabled, start the process of adding a new card and then back out. This will force a new root check and you'll be good to go. I think some people have reported only having to do this once per reboot.
[Magisk] 3Shirts:
Cool, so it doesn't just check when you open the app?

I'll give that a try when I buy a sandwich :)
[Magisk] Devo7v:
You could try using AutoMagisk instead of Tasker (that's what I've done anyways). It provides the option of hiding root when Google Play Services is run and when screen is off. This should help to hide root when SafetyNet performs it's periodic requests and should allow you to use Android Pay while your screen is off.
[Magisk] 3Shirts:
Thanks, I actually just discovered AutoMagisk this morning so have indeed switched to that. I'll see how that goes, does seem more robust tbh.
[Magisk] adam_99:
Device Model: Nexus 5

Android Version: 6.0.1 MOB30M

Root solution: phh's superuser

Xposed Status: Enabled (systemless)

ROM: Stock Rom

Android Pay App Ver: ?

Android Pay Transaction: Didn't try

I flashed system and boot images, then I flashed Magisk V6, phh's superuser and Systemless Xposed.

When I try to add a card it fails. Also the Saftey Net check fails.

Update: when I disable Xposed the Safety Net is working.
[Magisk] Jsilver73:
Maybe I'm being slow - so we can pay with AP without even unlocking phone, I thought that was a why AP insisted on having a lock screen pin for security. :confused:
[Magisk] Devo7v:
If you have a fingerprint reader, then effectively yes, you can post with the screen off although it will prompt you for fingerprint twice. And you have to have a pin lockscreen set up in order to use your fingerprint. If you don't have a fingerprint reader then you will need to input your pin.
[Magisk] 3Shirts:
I just wanted to update to say thanks for this. I tried it in the supermarket and it failed again but I then tried this trick, tapped to add card then backed out to the screen showing my existing card and tried again, that worked! :good:
[Magisk] El Gunslinger:
Improper Root with Pph superuser / Root Status : Improperly Rooted

I'm having trouble getting this to work. when I loaded Magisk manager it said " Root Status: improperly rooted. Android Pay will not work"

I simply found an image and installed it via TWRP under " Boot Partition" .... anything else I should be doing ?
[Magisk] bayran321:
Me too, is there any way that Safety Net does not check fails with xposed enabled?
[Magisk] zzzhead:
Just tried today, xposed disabled, unmount but payment still failed =/
[Magisk] agentdr8:
Did you soft/hard reboot after disabling xposed?
[Magisk] mobileman88:
you need to reboot after disabling xposed to work. used it 4 times yesterday without a hitch.
[Magisk] ameel:
Device Model: Zenfone 2 ZE551ML

Android Version: 6.0.1

Root solution: phh's superuser

ROM: Stock ROM

Root Status: Enabled

Xposed Status: Enabled

SafetyNet Helper: Fail

Root Status: Disabled

Xposed Status: Enabled

SafetyNet Helper: Fail

Root Status: Enabled

Xposed Status: Disabled

SafetyNet Helper: Fail

Root Status: Disabled

Xposed Status: Disabled

SafetyNet Helper: Pass

Root Status: Disabled

Xposed Status: Enabled

SuperUser App: Forced Stopped

SafetyNet Helper: Fail

Root Status: Disabled

Xposed Status: Enabled

SuperUser App: Uninstalled

SafetyNet Helper: Fail
[Magisk] Didgeridoohan:
Yes, this post reflects the current state for Magisk and safety net. For safety net to pass you need to disable both root and Xposed. I can't really see the point of the post, but I might be slow...
[Magisk] ameel:
Just following instructions to provide above requested information by OP
[Magisk] Didgeridoohan:
Ah, ok. Just seemed a little excessive. :) And you forgot to report if AP worked or not.
[Magisk] ameel:
Don't have/don't use AP. reported SafetyNet helper instead
[Magisk] JonesL:
Device Model: Nexus 6

Android Version: 6.0.1

Root solution: phh superuser

Xposed Status: N/A

ROM: Stock

Android Pay App Ver: 1.6.133355066

Android Pay Transaction: Success

Also had Substratum installed with the Beltz theme, was worried this might fail the transaction, but it went through fine.
[Magisk] westeight:
It seems there might be a problem with	phh-superuser-magisk-r259.zip

Downloaded and tried to flash it twice in TWRP after flashing Magisk v7 ... but I get an error message:
[Magisk] Captain_Throwback:
Did you try installing it through the app?
[Magisk] westeight:
I followed the instructions:

Will try installing phh through the Magisk Manager
[Magisk] westeight:
Not working for me... latest phh for Magisk won't install, and then this:
[Magisk] H4X0R46:
Just flashed the official nougat build for Nexus 6 (shamu) and phh doesn't flash for me, it gives me error 1. I installed magisk of course, and then tried the phh zip with no luck. Anyone have any ideas?
[Magisk] westeight:
See my post above .. same error: 'Updater process ended with ERROR: 1' :(
[Magisk] H4X0R46:
Alright so I'm not the only one. Thanks for confirming this! Hopefully a solution soon, I got impatient and just installed normal SuperSU in the mean time, will probably remove it and install magisk and phh when a solution arises.
[Magisk] Captain_Throwback:
Anyone with an issue actually going to post a recovery log?
[Magisk] westeight:
TWRP Log:
[Magisk] Captain_Throwback:
Any reason you're not posting the whole log? If you change the name of the folder to "HTC_10" it'll probably work fine. The space in the path seems to be tripping it up.
[Magisk] AnonymousPenguin:
I cannot see the attachment. Am I missing something or should I just flash the latest phh superuser from the website to use with magisk?
[Magisk] westeight:
The previous log entries aren't relevant. Any/every other .zip file on my SD Card is in the same folder and flash fine (eg Magisk 7), so I doubt the path has anything to do with it.

Actually it doesn't: redownloaded the .zip to internal storage /root and tried again ... same error!

---------- Post added at 01:00 AM ---------- Previous post was at 12:30 AM ----------

The download / attachment for phh superuser for Magisk has been removed as it wasn't flashing .. hopefully JohnWu will add the new link tomorrow. :cowboy:
[Magisk] nyknight77:
Could someone please provide a link to download phh superuser for magisk? I'm lost going through all the links in the op and can't find the zip to flash phh superuser.

EDIT: Nevermind, just read the last post about download being removed. Wish JohnWu mentioned that in the OP to avoid many people scratching their heads trying to find it.
[Magisk] westeight:
Everything you need can be found here: http://xdaforums.com/showpost.php?p=68971459&postcount=3903

:cowboy:
[Magisk] H4X0R46:
This works? What's different in this hidesu version and the one that failed for us? I'm a bit confused. Do we need to flash the hidesu zip in that post AND the phh superuser that previously failed? Or just the hidesu zip?

Also, is there a thread where updates to this hidesu zip will be posted? Thanks, like I said, just a bit confused :P
[Magisk] lixindiyi:
Does r259 work with Xposed 86.6?