yashsingh1/xdaforums huggingface dataset:
[Nexus 6P General] Prolix19:
Perhaps there has been enough confirmation already, but I thought I'd mention that this also worked for me.

Nexus 6p

Stock ROM MMB29Q

Systemless root (SuperSU 2.67)

I did have to both "rm -r /su/xbin_bind" as well as "chmod 751 /su/bin/", as other users have mentioned. Just changing permissions was not sufficient.
[Nexus 6P General] Se7eN43:
That is not what I'm asking. Before I rooted, I was able to unlock the phone with fingerprint and tap. Now I have to unlock with fingerprint, tap, type in PIN and tap again.
[Nexus 6P General] 83097markcynt:
I think it depends on how the terminal is set up. When I go to a fastfood place like Subway or Mcd's the payment just goes through without a pin or signature. But when I go to a place where the amount of purchase is typically more substantial like Home Depot or Costco I always have to use my pin or sign.

Just my theory I'm not really sure how it all works.
[Nexus 6P General] Techstro:
Okay, so I used the systemless install, but my SuperSU app is installed as a system instead of user app. I see no directory for su, I do have xbin folder under system but there is not an xbin_bind or su directory. How can I play with the settings in the SuperSU app to revive Android Pay; moreover, how can I make Android Pay work without factory wiping my data and my Glorious xPosed Mod's customizations?
[Nexus 6P General] Se7eN43:
Solved the 'enter PIN' issue. I had to change security setting to 'swipe' then back to 'fingerprint'. Although I had to setup fingerprints again, I can now fingerprint unlock and tap to pay.
[Nexus 6P General] bouchigo:
Android Pay is not going to work with regular root. You have to use the UnSu zip floating around to remove regular root, or reflash your system partition. After that you have to install systemless root and go from there.
[Nexus 6P General] Techstro:
No doubt about it, you are correct most accurately. And now I'm gonna find a way to modify or patch the Android Pay apk to the point where it'll work no matter how pimp'd your Rom is. To be continued, oh yes, this will continue... ha,ha,haaaaa...
[Nexus 6P General] dratsablive:
I think if you attempt to patch Android Pay APK it won't pass the SafetyNet check, and therefore would fail.
[Nexus 6P General] Techstro:
Right again young padawan, (More like Super Sayin actually). I gotta figure out the Safety Net integration coordinates, its not like as if Google HAD to maintain precise system structure in order for Android Pay to work. Every system starts with a cell, and this cell phone will be completely overhauled if need be. Nexus IS development, and my theory is that this is exactly what Google had in mind with this operation: Hack Challenge!
[Nexus 6P General] dratsablive:
Good Luck to your endeavors. Hopefully it works so we can not worry about rooting and AP working.
[Nexus 6P General] rebretz000:
Can Better Battery Stats be installed and Android Pay still work?

Just wondering since BBS is installed as a system app
[Nexus 6P General] fresnogamer:
Are you installing it on a device with root privileges?
[Nexus 6P General] rebretz000:
Yep.
[Nexus 6P General] kellybrf:
works fine for me
[Nexus 6P General] l_stevens:
I did systemless root and the tethering mod on build.prop. Followed the procedures above and Android Pay is working. :) I'm considering further modifying build.prop to modify dpi for battery savings. However, some people have said that dpi change would break Android Pay. Is that true? If so, why would some modifications to build.pro break Android Pay, but others not?
[Nexus 6P General] Krunk83:
WIll xposed work with systemless and android pay?
[Nexus 6P General] GTiceman:
No, Xposed always breaks AP
[Nexus 6P General] Krunk83:
Welp, looks like I won't be using AP then. LOL
[Nexus 6P General] Besimbego:
anyone know if doing this can get RBC wallet to work? I wish Canada had Android pay :(
[Nexus 6P General] GatorsUF:
Which Roms work with pay? I'm on pure nexus and it works, are there others?
[Nexus 6P General] crazyjimbo:
How are you getting it it work on Pure Nexus? I've tried many times with no luck. Are you on the CMTE version? What kernel?
[Nexus 6P General] godzulu:
I'm on Pure nexus and it works. To my understanding, ap does not work on cmte versions
[Nexus 6P General] crazyjimbo:
Awesome, that would explain it. Thanks!
[Nexus 6P General] ogretech:
It's working for me with Pure Nexus (2/18 Layers build), Elemental X (1.10, Ghost Pepper profile) kernel, Systemless root (2.67), and the chmod of /su/bin.

I think the last two points are the most critical.

Good luck.
[Nexus 6P General] flashcity90:
Can someone help explain to me the full process of a clean install with AP working. I've tried this multiple times and cant get it. Went full stock unrooted to begin. Then I flashed for systemless root and confirmed in SU(under settings it has an option to install Superuser in system, but cant and is greyed out if your on systemless). Flashed purenexus, gapps, Un-su, Terminaled the 2 echo commands, flashed SU 2.67. Booted. Android Pay no go. Edited permissions for su/bin to rwx r-x --x, Android Pay still a no go. Can annnnyone please clue me the F**k in.....
[Nexus 6P General] Krunk83:
It's not worth it man.

Sent from my Nexus 6P
[Nexus 6P General] GatorsUF:
So far it's pure nexus or chroma, are there any other Roms that work?

I may try resurrection ROM later, I'll report back.
[Nexus 6P General] Se7eN43:
Don't forget Busybox. Using Pure Nexus ROM, a clean flash is not necessary. I have dirty flashed Pure Nexus from the 203 to 218 build but had to reflash SuperSu 2.67 along with the echo commands and permission changes. Don't remember if I had to reflash busybox as well. Doesn't hurt to do it again.

Do NOT use UnSu.zip at all, even on a clean flash. It removes the SuperSu app within the ROM and will not show up even after flashing SuperSu.

*Delete any cards from Android Pay before proceeding.

Flash rom (Pure Nexus recommended)

Flash gapps provided by op (if clean flash)

Twrp terminal echo commands

Flash SuperSu 2.67

Flash BusyBox

Boot into rom and make sure in settings of SuperSu, under 'System', option is greyed out and reads 'not currently available in systemless root mode'.

Change SuperSu bin folder permissions to 0751 (rwxr-x--x). (I use a root file explorer)

Reboot

Use SafetyNet app, which should pass. You should now be able to add cards to Android Pay.

Test with a beverage machine so you're not holding up the line at a retail or grocery store.
[Nexus 6P General] flashcity90:
Thanks for the reply!

I have two questions, Can you link the busybox I Should be flashing? Also, when you say change permissions SuperSu bin to 0751 (rwxr-x--x). If i use root explorer and navigate to Su folder and then the Bin folder. I just long press on on the bin folder an change the permissions to rwxr-x--x? Im not sure what the 0751 refrences or means?(just want to make sure im on the right page) Again thanks for your help, im ready to give this a go and get it working.
[Nexus 6P General] Se7eN43:
Here is the post you can find the busybox download from.

http://xdaforums.com/showthread.php?t=2239421

Here is the direct link from that post.

http://xdaforums.com/attachment.php?attachmentid=3618725&d=1453473295

0751 is rwxr-x--x in Linux terms. So as long as you change the bin folder permissions to it, you should be good to go. I use Root Browser. It shows the number code in real time as you're selecting the permissions.
[Nexus 6P General] dratsablive:
I tried changing the permissions using Root Explorer but it wouldn't let me change even though SU was active. I had to use the terminal in TRWP and the chmod 751 from there.
[Nexus 6P General] Manuelpz:
I'm using stock rom with Franco kernel I follow the op instructions AP work. thanks
[Nexus 6P General] flashcity90:
Hey I did everything but on safety net i get cts profile match failed. im not sure if im doing something wrong in twrp terminal. using twrp 3.0 I flashed pure, then went to advanced and terminal. here i literally entered the two echo commands only nothing else. no scripts run or anything like to confirm that a change was made. I then flashed su 2.67 busybox and reboot. changed permissions in root explorer, safety net then still fails for me.
[Nexus 6P General] Se7eN43:
Are you on the latest vendor image? MMB29Q
[Nexus 6P General] flashcity90:
Yes, I am. When I intially unrooted my phone to start all over from the beginning, I flashed that vendor image during that process. I was under the impression it would stick until i switch builds. So I have only flashed the vendor that one time.
[Nexus 6P General] Se7eN43:
This guy says he had a problem with Root Explorer. Just by chance, try using Root Browser and change permissions again then reboot. Make sure the 'bin' folder's permissions changes stayed.

Not insulting your intelligence but just be sure you're not changing the 'xbin' folder. Only the 'bin' folder. Just how you see in the screenshot provided.
[Nexus 6P General] YzRacer:
Thanks guys! I was having a hard time after updating to Q for some reason. I was having to unroot all the way to get AP working but I found the chmod 751 /su/bin/ today and that's working great! It's really nice not having to mess with SU settings to make a purchase.

I'm on Nexus 6P with Q update, SU 2.65 systemless, had already deleted xbin_bind folder, and today used Juice SSH (my fav terminal!) to chmod 751 /su/bin and it's letting me add cards again. I assume this will also let me pay as that has been the trend lately.
[Nexus 6P General] bigdave79:
Have you tried paying? I can add cards just fine and my phone passes the safetynet test but fails when I try to pay.
[Nexus 6P General] Se7eN43:
I've had this happen to me in the past. Delete the cards and reboot. Then check safetynet before you add a card. It should fail. If it passes and you still can't purchase, something out of the ordinary is going on which I would recommend going through the whole process starting from a clean rom flash. Also, make sure others have had success with the ROM you're using. Every purchases I've tested with is on a soda machine.
[Nexus 6P General] justibasa:
Thanks for this thread guys. Love being rooted and being able to use ap.
[Nexus 6P General] YzRacer:
I am able to pay, but I have been able to pay each time I was able to add a card. I failed the safetynet after updating SU or modifying something, then I learned the easy way to get it working again was to flash boot and system back to stock (I'm using the rooted stock rom) then test AP. Once it was working again I was able to root, delete xbin_bind, set permissions, reboot, and all is well.
[Nexus 6P General] kolyan:
This works with lastest March update and SuperUser 2.68
[Nexus 6P General] dratsablive:
Updated to latest patch and this method keeps Android Pay working for me.
[Nexus 6P General] bouchigo:
No need to do #7 with v2.68 as it already sets the permissions of /su/bin to 0751, and if care is taken when installing SuperSu you won't have to do #6 either.
[Nexus 6P General] kolyan:
I tried and AP didn't work until I did 7 and 6....actually yeah could've skiped 7 maybe
[Nexus 6P General] bouchigo:
I just changed the permissions to the /su/bin directory to 0777 to test, and I reflashed SuperSu v2.68...rebooted and checked permissions of /su/bin and they are 0751, with no xbin_bind directory created. You have to make sure you apply the command so xbin_bind directory is not created before installing SuperSu.
[Nexus 6P General] Pig Vomit:
Even easier on a 6P:

1. Root with CF-Auto-Root

2. Delete /su/xbin_bind with a rooted file explorer (I use ES File Explorer)

3. Reboot

4. Use Android Pay
[Nexus 6P General] a1exus:
I did everything and I'm getting following while trying to add new card...
[Nexus 6P General] Pig Vomit:
Do a full unroot. Reflash everything except userdata. Try the steps again. When rooting with systemless 2.68, you must start with stock boot.img, recovery.img and system.img. After you go back to stock, before rerooting, try adding your cards first, then root.
[Nexus 6P General] a1exus:
I literally just updated my phone to March update by reflashing everything (except userdata) and followed all steps from Android Pay Working with Root | LG Nexus 5X (I'm using stock ROM), and my card is already there (from last time) I don't really need to add it... I just want to get Android Pay to work)
[Nexus 6P General] sn0warmy:
I'm following these steps exactly (but using Super User 2.68). I do steps 1-5 no problem with factory image MHC19I. But after entering su into terminal emulator and allowing it root access, I type in the command in step 6 but then emulator just says "No such file or directory". I don't get what I'm doing wrong.
[Nexus 6P General] dratsablive:
Are you using TWRP and if so, the latest test version?
[Nexus 6P General] sn0warmy:
Yep, I'm using 3.0.0-1.
[Nexus 6P General] dratsablive:
After flashing the updates and installing the test TWRP, I installed SU from /sdcard (I had placed it there before the update, and I don't format userdata.)

After rebooting, the permissions were good, but the xbin_bind was created. Just had to delete that and AP worked.
[Nexus 6P General] sn0warmy:
Hm, yeah the only thing I did differently from the instructions was used the no-force encrypt boot.img, rather than the OEM one, in order to remain decrypted. I wonder if that's a factor.

I didn't format userdata either.
[Nexus 6P General] dratsablive:
I use stock boot.img, I don't think systemless root works with anything other than stock boot.img.
[Nexus 6P General] PuffinNugz:
You wouldn't have that folder. SuperSU 2.68 prevents it from being created already.
[Nexus 6P General] mistermojorizin:
With xposed being able to change system at such a low level, i'm surprised they haven't released a module yet to allow android pay to work. I used to do this with verizon's soft card a couple years ago to get free jamba juice for a year.
[Nexus 6P General] sn0warmy:
Good call! Figured this out last night. :highfive:
[Nexus 6P General] dirtygreek:
You guys are freaking awesome. Tested with newest update, SU 2.68, and I'm able to add cards. Assuming I'll be able to pay. Thanks!!!!
[Nexus 6P General] smokeythebear3:
I was able to add my card yesterday, today I went to pay at a terminal and received a message about not being able to verify my software. Checked my su folder and the permissions for bin was correct, but my xbin folder I deleted got regenerated. Deleted it, removed my card and tried to add my card again, I'm getting the same software error. Have any of you guys been able to pay recently?

One thing I did that might have resulted in the problem is I installed xposed last night. Any of you guys have android pay working after installing xposed framework?
[Nexus 6P General] esincho:
Can't have xposed if u want Android pay to work. no way around it
[Nexus 6P General] humblehyper:
I'm getting permission denied when I run the chmod 751..., help please
[Nexus 6P General] a1exus:
Try issuing 'su -' before that..
[Nexus 6P General] humblehyper:
Thanks! I didn't see that my phone is asking to grant root LOL my bad.

---------- Post added at 03:57 PM ---------- Previous post was at 03:45 PM ----------

I still can't add any card on Android Pay. I have stock, xposed framework installed.
[Nexus 6P General] esincho:
U have xposed installed. It's not going to work with that
[Nexus 6P General] venelar:
You can have Pay with systemless root, but under no circumstances will it work with xposed.
[Nexus 6P General] humblehyper:
Oh dang. Guess I can't have it all. Thanks for the reply.
[Nexus 6P General] coldheater:
worked for me, thanks

---------- Post added at 07:58 PM ---------- Previous post was at 07:57 PM ----------

I received that message as well and i did what the person said above and it worked!

Delete /su/xbin_bind with a rooted file explorer (I use ES File Explorer)

Reboot

Use Android Pay
[Nexus 6P General] kellybrf:
I feel like this is a dumb question, but if I flash a custom kernel on the stock rom will it break pay?
[Nexus 6P General] jayzero76:
since it is not come to Canada anytime soon.....
[Nexus 6P General] venelar:
Nope
[Nexus 6P General] jsminnis:
I can't find the su folder. I'm rooted with system mode on 2.70. What am I missing? I'm looking under the root folder.
[Nexus 6P General] dratsablive:
It should be at /su
[Nexus 6P General] newtonfb:
I cant get ES File explorer to have root access. It just says "test failed" when i try to give the option of root explorer
[Nexus 6P General] DJBhardwaj:
Using N preview, right?
[Nexus 6P General] bouchigo:
It wouldn't matter either way. Android Pay doesn't work on the N preview. It was disabled by Google.
[Nexus 6P General] DJBhardwaj:
Yeah, plus systemless root was already patched.
[Nexus 6P General] kellybrf:
I should have been more clear, if I flash a custom kernel and use sonicrons tweaks

I couldn't get it to recognize root either, but root explorer works fine. es has gone to hell anyway, it was my go-to since probably my evo, maybe even the hero, but it's time to move on.
[Nexus 6P General] DJBhardwaj:
ES File Explorer just needs to be updated. It's a good file manager though. However, you can always try new apps from the Play Store.
[Nexus 6P General] gts24:
Will this have any adverse effect on root overall?
[Nexus 6P General] rajlulla:
No xbin_bind

I'm running PureNexus 4/7 build and when I install SuperSU 2.71 it installs in systemless mode but when I boot up no xbin_bind file is created and AP doesn't work. Any help would be greatly appreciated!
[Nexus 6P General] bouchigo:
Delete the xbin_bind folder if it's there... If it's not there that's what you want.

Something else is messing with your setup.
[Nexus 6P General] rajlulla:
Could it be a problem with the latest PureNexus build? It was working fine right before the update.
[Nexus 6P General] bouchigo:
Are you running the layers version of PureNexus, or the CM theme engine version of PureNexus? I remember reading that Android Pay will not work on the CM theme engine based version.

I tried it on PureNexus a while back, probably over two months ago and got it to work. If I remember correctly I used the UnSu zip floating around somewhere to remove the /system based root, then I installed system-less root. After that I removed busybox(and all the files linked to busybox) from /system/xbin, and then proceeded to install busybox to /su/xbin. You don't need busybox installed for Android pay to work, but you may need it for something else; you definitely don't want it installed to /system/xbin.
[Nexus 6P General] rajlulla:
I was on layers version and I also just tried it on Benzo rom and it still didn't work. I think it's something to do with the new vendor image PN and Benzo are on

Update: Just read your post more carefully, and I don't even have busybox installed so that can't be it
[Nexus 6P General] 83097markcynt:
You have to install unSU found here, then reroot. Then AP should work. I just updated to 4/7 build and AP works fine for me.
[Nexus 6P General] GroovyGeek:
My feelings exactly. I am always amazed when people say they are willing to sacrifice one or another aspect of root for AP. I am yet to figure out exactly what user problem AP is solving. It is not like taking a credit card out of my wallet is particularly burdensome or notably slower than (a) taking out phone (b) unlocking it (c) launching AP (d) swiping (e) entering Pin. To me mobile payments are a gimmick with no real user benefit. At least in the US, where fraud risk is with the CC company almost entirely.
[Nexus 6P General] bouchigo:
You probably don't care since you don't seem to use Android Pay, but there is no need to do (c), (d), and (e).

All I do is (a) take my phone out, (b) finger print unlock and place my phone at/near the terminal and that's it...I guess placing the phone at/near the terminal can be considered (d).

Taking out a credit card is still a three steps: (a) take card out of your wallet and show your ID (could showing ID be considered another step?), (b) swipe the card at the terminal, and (c) sign the receipt, or the screen.

I understand that people need root for very specific things, and that in your situation root outweighs AP, but that simply is not the case for everyone else :good:
[Nexus 6P General] 83097markcynt:
Not only is AP easier than digging out your credit/debit card, but it's technically safer because the retailer never sees your actual card number/account number but rather a random account number so that your banking info is much safer. And just because you don't see the benefit doesn't mean others don't see it too. I love the ease and security of AP.
[Nexus 6P General] GroovyGeek:
Absolutely. Different people have different tastes and I am not judging. Just surprised to see so many at XDA willing to sacrifice root for AP

Have heard this argument many times. Perhaps it is habbit, but my wallet is always in my back pocket and the credit card that I use 99% of the time is in the very front. I can flick it out faster than I can get to my phone, which is often in different pockets depending on what I wear. No my wife, with her purse big enough to carry my dead body when she kills me some day :smile: may feel otherwise.

That's another one that I don't buy. Concentrating all your financial information in one place just makes it an irresistible target. Sooner or later Google and/or Apple WILL get hacked and lots of people will have to deal with the hassle of resetting access to all sorts of things. And, in the US at least, credit card liability is limited to $50 at most. It does require that you pay attention to your account and notify the CC company promptly, but there is well established case law of liability. I am not sure that this is the case with Android Pay or Apple Pay. If your AP account gets hacked (either at Google or by loosing your phone and someone managing to get into it) and your credit card gets loaded with a bunch of fraudulent transactions what are your limits of liability. Have not read the fine print, hopefully there is some protection but I would not hold my breath. In the first few years of existence for debit cards, when they were wildly popular, there were scant protections if someone emptied your checking account. Which brings me to another financial device I don't see the point of (debit cards) but that is another topic.

Sure, we are all entitled to our own opinions. As I have said, I see neither ease nor particular security. It just surprise me to see how many people do all sorts of financial transactions on their cell phones, exposing all sorts of data to all sorts of risks (public access Wifi anyone?). We can just agree to disagree I guess.
[Nexus 6P General] 83097markcynt:
I sacrifice nothing. I have root for everything I need it for.

I think it is much easier to grab my phone and point it at a terminal than to dig out my card and swipe it.

I have read the fine print and AP is much safer than swiping your card at a terminal.

I only use data when out, never public wifi.
[Nexus 6P General] Se7eN43:
I for one have found it convenient to use when you need to have multiple items presented. In my case, a coupon, member card and payment. It was much easier and quicker to have these 3 done right from my phone.
[Nexus 6P General] rajlulla:
It turns out it was a problem with the GApps the developer posted, but he updated it and it's working now. All I had to do is install the Fi dialer and it passed safety net helper test.
[Nexus 6P General] bouchigo:
It's not the first time GApps have messed up Android Pay, but glad you got it worked out :good:
[Nexus 6P General] kiiiiiid:
When I run "chmod 751 /su/bin/", It says: "No such file or directory"