yashsingh1/xdaforums huggingface dataset:
[Nexus 6 Q&A, Help & Troubleshooting] ScottIsMyName:
Followed these exact same steps without success :(

Can you verify the following:

1) You flashed the Layers version of PN.

2) You installed PN Gapps dated 3-15 (PureNexus_Dynamic_GApps_6.x.x_3-15-16.zip)

3) You installed SuperSU 2.68 beta (BETA-SuperSU-v2.68-20160228150503.zip)

4) Have you ever had AP working on any other rom besides this one?
[Nexus 6 Q&A, Help & Troubleshooting] lentm:
1) Yes

2) No, 2-3-16.zip

3) Yes

4) Yes, I've got Android Pay working with Tupac's debloated stock ROM first.

Hope it helps.
[Nexus 6 Q&A, Help & Troubleshooting] sgloki77:
same here no luck, it blows my mind that some people get it to work and others don't doing the same steps [emoji52]
[Nexus 6 Q&A, Help & Troubleshooting] jcrompton:
Yeah .... I'm completely sure it's a hit or mid thing because it's been the same for me. Stock based is the only one I consistently get AP working though
[Nexus 6 Q&A, Help & Troubleshooting] funkyboy1281:
I've been having issues getting it to pass and I believe it has to do with the gapps. Wasn't working with the updated ones but I tried the 2/3/16 and it finally passed the test and I was able to add my card. So for anyone having troubles download the 2/3/16 gapps and it should work.
[Nexus 6 Q&A, Help & Troubleshooting] lentm:
Nice to hear!

Hope this is the key!
[Nexus 6 Q&A, Help & Troubleshooting] macboy3000:
Holy crap...using 2/3 gapps solved couple hours worth of frustration trying to get Android Pay to work on PureNexus. Even though I had it working on PureNexus before, I seriously did not consider gapps to be the problem when I tried installing the latest PureNexus.
[Nexus 6 Q&A, Help & Troubleshooting] sgloki77:
can confirm 2/3 gapps solved the issue ?

btw I flashed the ROM as secondary in multirom ,it didn't matter it passed the SafetyNet test
[Nexus 6 Q&A, Help & Troubleshooting] Mikey:
Those of you using 2/3 gapps, didn't updating the google apps break adding cards to AP afterwards?? Or do you add all the cards prior to updating the gapps from the market?
[Nexus 6 Q&A, Help & Troubleshooting] MrBrady:
Also, those with the 2/3 Gapps, give it a few days for the system to update Google Services in the background. Sometimes those background updates break things.
[Nexus 6 Q&A, Help & Troubleshooting] Mikey:
Are these commands still needed to typed or is this not needed anymore?
[Nexus 6 Q&A, Help & Troubleshooting] funkyboy1281:
Nope nothing broke for me. I also have systemless adaway running and v4a running too. I added my card after clean flashing.
[Nexus 6 Q&A, Help & Troubleshooting] ScottIsMyName:
I'll give it a shot tonight and update the op with instructions
[Nexus 6 Q&A, Help & Troubleshooting] akastixx:
I also got it working with the older gapps last night.

funkyboy1281, could you give us a quick rundown on how to properly install xposed and adaway to avoid breaking pay?

Hopefully skaforey will also update the OP with this info to for visibility.
[Nexus 6 Q&A, Help & Troubleshooting] Mikey:
Tried CMTE version after a CLEAN install and removed the text in the update script and deleted supersu folder

the older gapps

type the commands in TWRP terminal

Supersu 2.68

Fails......I'm gonna try the Layers version now
[Nexus 6 Q&A, Help & Troubleshooting] sgloki77:
I updated all the apps, installed layers and systemless adaway prior to adding cards, so it works
[Nexus 6 Q&A, Help & Troubleshooting] funkyboy1281:
I don't use exposed but to get adaway working there is a systemless host file that points to data that you have to flash and then when you install the apk it will update that way. If you search systemless adaway on Google it'll bring the thread up. I can update this later if need be since I'm at work right now.

---------- Post added at 01:33 PM ---------- Previous post was at 01:32 PM ----------

CMTE version won't work. Only the layers rom.
[Nexus 6 Q&A, Help & Troubleshooting] Mikey:
Ok, i got to enter my card(s) in AP.

1- Removed these lines from updater-script located in META-INF > com > google > android [MENTION=3133955]macboy3000[/MENTION]

ui_print("Flashing SuperSU..");
package_extract_dir("supersu", "/tmp/supersu");
run_program("/sbin/busybox", "unzip", "/tmp/supersu/supersu.zip", "META-INF/com/google/android/*", "-d", "/tmp/supersu");
run_program("/sbin/busybox", "sh", "/tmp/supersu/META-INF/com/google/android/update-binary", "dummy", "1", "/tmp/supersu/supersu.zip");

2- Wiped everything except internal storage in TWRP

3- Installed Pure Nexus Layers Version 2016-03-15 pure_nexus_angler-6.0.1-20160315.zip

4- Installed Pure Nexus GApps 2-3-16 PureNexus_Dynamic_Gapps_6.x.x_2-3-16.zip

5- In TWRP terminal I typed: [MENTION=1389822]lentm[/MENTION]

echo SYSTEMLESS=true>>/data/.supersu
echo BINDSYSTEMXBIN=false>>/data/.supersu

6- Installed SuperSU 2.68 BETA-SuperSU-v2.68-20160228150503.zip

7- Rebooted...Setup phone as new device in setup

8- Installed AP from market and PROFIT :)

PS- su/bin folder has been set to 751 permissions and xbin_bind folder didnt exsit

Wondering now- will steps 2 5 and 6 have to redone with every rom update?
[Nexus 6 Q&A, Help & Troubleshooting] akastixx:
Yes, I used the layers version

My Clean Install Setup (I'm editing nathanchance's and thing_on_your_shelf's instructions)
[Nexus 6 Q&A, Help & Troubleshooting] funkyboy1281:
Just so you know the SuperSU 2.68 beta already takes care of the chmod 751 so there is really no need to do that step unless you want to.
[Nexus 6 Q&A, Help & Troubleshooting] AntikytheraTech:
had been running AP just fine on the past two releases but did a clean install as per these instructions for my upgrade to the 3/15 release and safteynet check fails as well as AP fails. Anyone else not having success with this?
[Nexus 6 Q&A, Help & Troubleshooting] sgloki77:
guys for AP to work with the 3/15 rom build, you need to use the 2/3 gapps if you use newer gapps it prbly wont work

you need

-modified 3/15 rom build( edit out code+deleted supersu folder)

-2/3 gapps

-supersu 2.68

btw I tried AP in 2 different terminals today, works like a charm
[Nexus 6 Q&A, Help & Troubleshooting] AntikytheraTech:
Sorry for the noobish question all - but how exactly do you edit the 3/15 ROM file to get this working. Not new to tinkering but just have never unzipped --> played with --> re-zipped a rom file before. Thanks!
[Nexus 6 Q&A, Help & Troubleshooting] akastixx:
2/3 gapps. sorry. i hope i didn't waste too much of your time. lack of sleep. i updated it.
[Nexus 6 Q&A, Help & Troubleshooting] sgloki77:
you do it on your phone with any decent file manager. I use root explorer

to unzip:

long click on the zip/extract all/ go to extracted/do the necessary changes

to zip back:

long click on the folder/zip this folder

done
[Nexus 6 Q&A, Help & Troubleshooting] funkyboy1281:
No need to edit out the code. I did this is on a fresh download of the 3/15 rom.

My steps were:

Download PN 3/15/16 & PN Gapps 2/3

Advance wipe in recovery all but internal storage

Flash both the rom and gapps

Flashed unSU just to be safe

Input both of these lines into the terminal under advanced

echo SYSTEMLESS=true>>/data/.supersu

echo BINDSYSTEMXBIN=false>>/data/.supersu

Then flashed the 2.68 beta recovery

Fully reboot

After all of this was done I rebooted the system and setup my device and the first thing I did was went to the SuperSU settings and made sure that it showed I was unable to install to system since it was in systemless root. Once I verified that I downloaded SafetyNet Helper and ran that to make sure it passed. Then I installed Android Pay and was able to add my bank card which I successfully used at my job today. So I never messed with deleting any lines or folders of any sort. The 2.68 beta already takes care of the rest when it comes to chmod 751. After that I just started installing and flashing adaway and v4a which have had no effect. For those wanting to know how to setup adaway with systemless go to this thread and download the systemless hosts and flash it and then install the v3.1 apk http://xdaforums.com/showthread.php?t=2190753.
[Nexus 6 Q&A, Help & Troubleshooting] sgloki77:
[MENTION=2974983]funkyboy1281[/MENTION] , great the less steps the better, prbly the echo commands are not necessary either, I flashed to secondary in multirom so there's no way to push those commands on a secondary slot, I had to delete the xbin folder on boot though, but don't want to muddy the waters, if you skip steps and doesn't work try them next time
[Nexus 6 Q&A, Help & Troubleshooting] funkyboy1281:
I think the only thing left is to make sure to flash the 2.68 when dirty flashing. I believe Nathan's instructions said that the 2 lines of code stick.
[Nexus 6 Q&A, Help & Troubleshooting] Djfrost:
how did you remove the subscript?......text editor?
[Nexus 6 Q&A, Help & Troubleshooting] Mikey:
I use 7-zip on my PC....i dont extract the zip.

I double click on the zip and navigate to the file.

Drag it the desktop, edit the file, using Notepad++ https://notepad-plus-plus.org/

Then drag the file back into the 7-zip window and let 7-zip overwrite the original file.

Done

---------- Post added at 10:13 AM ---------- Previous post was at 09:37 AM ----------

/OFF-TOPIC

Would this break AP??? I would test it myself but terminals are far and in-betweeen out here where i live :(

http://xdaforums.com/showpost.php?p=64732387&postcount=6
[Nexus 6 Q&A, Help & Troubleshooting] ScottIsMyName:
OP updated with instructions and added a small FAQ. If anyone has V4A installed with AP working, let me know what you did to get it to work.
[Nexus 6 Q&A, Help & Troubleshooting] MrBrady:
V4A works fine with AP for me, but I'm on Tupac's stock based ROM. Used the 4.8 Sony Beats version from here http://xdaforums.com/nexus-6/themes-apps/viper4android-t2952137
[Nexus 6 Q&A, Help & Troubleshooting] Djfrost:
Tried this method...returned my phone back to stock every thing did a total internal system wipe...impossible to get AP on this ROM.. for the most part. Every now and again you hear of someone getting it to work with this ROM but it's hit or miss. You really need to be on a Stock based Rom to have any chance of AP to work.
[Nexus 6 Q&A, Help & Troubleshooting] ScottIsMyName:
I haven't heard of anyone not getting it to work after trying the method in the OP. Have you tried?
[Nexus 6 Q&A, Help & Troubleshooting] MrBrady:
Just followed the updated steps in the OP and so far, so good. Safetynet Helper shows all green. :fingers-crossed: . Definitely looks like my problem previously was the gapps.
[Nexus 6 Q&A, Help & Troubleshooting] StykerB:
No the screen density won't break android pay, it does not modify /system in any way. The only reason it might would be if Android Pay doesn't like what density you set it to which is unlikely unless you set something very outside the norm. Stick to increments of 40 and you'll be fine.
[Nexus 6 Q&A, Help & Troubleshooting] ScottIsMyName:
I thought I read that it would break it. Doesn't that command end up modifying build.prop? If someone can confirm it works, I will add the info to the OP
[Nexus 6 Q&A, Help & Troubleshooting] MrBrady:
Its always broken Android Pay for me when either modifying the build.prop or via ADB with wm density. How are you getting it to work? I typically set it to 480.
[Nexus 6 Q&A, Help & Troubleshooting] funkyboy1281:
V4a works fine for me. I didn't use any previous versions with Android Pay but the current one which is 4.8 I believe flashed just fine for me with no problems.
[Nexus 6 Q&A, Help & Troubleshooting] StykerB:
The command doesn't mod build.prop because it doesn't need root. /system is a ROM or (READ ONLY memory) for all intents and purposes in android. The issue comes from the fact that the app sees it's on a N6 and N6's expected DPI is 560. I don't actually use android pay but I guess screen density is checked as part of your safetynet fingerprint. *The more you know*
[Nexus 6 Q&A, Help & Troubleshooting] sgloki77:
I tried changing the dpi, both 520 and 540 and it does break AP, once you return it to 560 it passes the SafetyNet test (used adb shell from my pc to push the commands)

idk what google was thinking with that 560 value when the native number is 493, is really an eyesore [emoji53]
[Nexus 6 Q&A, Help & Troubleshooting] Djfrost:
Apologies to everyone... Finally got it to work... I was doing it wrong. Just realized that the CMTE version breaks AP. Installed regular version and all well. Again my apologies.
[Nexus 6 Q&A, Help & Troubleshooting] MrBrady:
Yeah, it's a bummer. I primarily use Google Hangouts and Hangouts Dialer. I really don't like the incoming call screen, but if you set the density to 480 or lower, it changes the incoming call screen to a totally different (and more pleasant IMHO) layout.
[Nexus 6 Q&A, Help & Troubleshooting] tsew2674:
Just wanted to chime in and say thanks, I finally decided/needed to do a clean install and thought I'd give systemless root a whirl. I followed this thread and now have AP! The old gapps is key as I'm bull headed and tried with the new open gapps first. Thanks again for putting together the steps!
[Nexus 6 Q&A, Help & Troubleshooting] enzoevo:
I followed this, but now see that 2/3 Gapps is necessary. I really hate to go through another reflash. Flashing older gapps only would be bad, right?
[Nexus 6 Q&A, Help & Troubleshooting] MrBrady:
I would try backing up your device, wiping only the system partition and follow steps in the OP. Worst case scenario is you restore your backup. Best case is it works!
[Nexus 6 Q&A, Help & Troubleshooting] studiorat:
SuperSU is corrupt in link
[Nexus 6 Q&A, Help & Troubleshooting] ecossais:
Works for Chroma as well

Android Pay works on Chroma

Instructions:

Download Chroma 2016-03-13

Download Pure Nexus Dynamic Gapps 2-3-16 (Very important, you cannot use 15-3-16).

Download the unSU script for completely unrooting before installing systemless root.

Download SuperSU 2.68

Advance wipe in recovery all but internal storage

Install the ROM, gapps, and unSU

In TWRP, under advanced, go to terminal and type the following:

echo SYSTEMLESS=true>>/data/.supersu

echo BINDSYSTEMXBIN=false>>/data/.supersu

Note: You may also do this using ADB in recovery (adb shell, and then enter the same commands. This is much easier in my opinion, and is the method I used.

Flash 2.68 beta in TWRP

Fully reboot, go through initial device setup

Verify in SuperSU that you cannot install SU to the system. This will verify that we are using the systemless root option

Download SafetyNet Helper and make sure it passes

Install Android Pay and profit!

Using this method Safety Net passes and I was able to add a card. I have not yet made a purchase but will try that tomorrow. This is the same method described by [MENTION=2133630]skaforey[/MENTION] in the OP to get AP working with Pure Nexus.

Note that I used Pure Nexus Gapps not Banks Gapps although Banks Gapps should work.
[Nexus 6 Q&A, Help & Troubleshooting] studiorat:
I tried Changing Density to 520 and it broke AP ....You can use a launcher to change grid size it yielded what I was looking for and I dont know if it broke AP because after I switched my density via adb and rebooted AP was knackered .....I have to try the whole install again....Update.....tried install again and SuperSU from the link errors out in twrp as corrupt has anyone else seen this and is there a different link or version I can use....AP is more important than Density for me

---------- Post added at 11:41 AM ---------- Previous post was at 11:24 AM ----------

I also had Super Su from link Fail

..as a corrupt file I went to chains OP for that version of SuperSU and Downloaded and still corrupt

---------- Post added at 11:51 AM ---------- Previous post was at 11:41 AM ----------

Noobish question the >> in the script after true and false does that indicate enter or are they actually typed into the script? I have run this script 3 separate times and get no confirmation it was even accepted
[Nexus 6 Q&A, Help & Troubleshooting] ScottIsMyName:
Yes, you need to type them exactly as shown. The >> command means to append to whatever file you specify, in this case it's /data/.supersu
[Nexus 6 Q&A, Help & Troubleshooting] studiorat:
ok installed a working version of supersu2.68 sideloaded from my puter to folder of my choice then twrp and it installed fine after doing all the steps including the terminal command verified super su isnt installed or able to be installed into system,

Run Safetynet and it fails I assume!

Safetynet Request = success

Response Validation also a success

cts profilematch false and Red screen with X

AP does not allow input of cards,

Can some one chime in and help with my CTS match False on Safety net,

I am stuck I need AP to work , I had it working fine but decided to be a bozo and change my dpi and came back and it was Broken....Reflashed everything clean, followed every step note for note, and NO LOVE....
[Nexus 6 Q&A, Help & Troubleshooting] ScottIsMyName:
My only suggestion would be to try everything once again, after making sure you have all of the right files. The 2-3 gapps being the most important thing to verify. If you typed one of the commands wrong, it is possible there is a file in /su/xbin_bind, you could try deleting that if it's there.

Also, you should be able to look at the /data/.supersu file right now to verify that the stuff you entered in is correct. The file should look like:

SYSTEMLESS=true
BINDSYSTEMXBIN=false
[Nexus 6 Q&A, Help & Troubleshooting] studiorat:
welp!...It Didnt work.....and BTW there is no su folder in the system(root) folder, I assume because SU is now systemless so I cant do that step, safety net yields a blue fail screen response validation false, instead of the previous cts match false error so hopefully i am closer
[Nexus 6 Q&A, Help & Troubleshooting] studiorat:
Can't look at folder I do not have an SU folder in my system or system(root) folder
[Nexus 6 Q&A, Help & Troubleshooting] tsew2674:
Look for the .supersu file in the data folder (it's a hidden file, so you may have to tell your file manager to show hidden files). It should read verbatim to what skaforey posted above, if not, the systemless root is not being implemented correctly. Does TWRP prompt you to root when you exit?
[Nexus 6 Q&A, Help & Troubleshooting] ScottIsMyName:
Alternatively, you could open a terminal, or adb session and simply type:

cat /data/.supersu
[Nexus 6 Q&A, Help & Troubleshooting] studiorat:
no Im fully rooted and super su is installed systemless as it doesn't give me the option to install as a system app,

on the topic of making sure i typed correctly the terminal commands but each line i typed it replied back cant open the folder /data/ etc because it is a directory, I dont know if that is the reason, I'm having difficulty...
[Nexus 6 Q&A, Help & Troubleshooting] studiorat:
Update 5 times no love.....I tried every suggestion and instruction downloaded every necessary and correct download rechecked all entries in Terminal and still no joy safetynet red screens CTS match false I give up ....any suggestions
[Nexus 6 Q&A, Help & Troubleshooting] githyanki:
Type the following command in a terminal emulator:

cat /data/.supersu

The only space is after cat. No capitals or spaces for the rest of the command.
[Nexus 6 Q&A, Help & Troubleshooting] evilbobvu:
I got the CTS profile failed with PureNexus ROM but it is working on Chroma ROM.
[Nexus 6 Q&A, Help & Troubleshooting] studiorat:
I got a no such file or directory error
[Nexus 6 Q&A, Help & Troubleshooting] tsew2674:
It should actually be: cat /data/.supersu

I know its tedious but if its still not working try listing out the exact steps you are taking to see if we see anything off. I am of the opinion that computers are not hit or miss and if it works for some it should work for all.
[Nexus 6 Q&A, Help & Troubleshooting] githyanki:
I don't have systemless setup, so made a few mistakes on my post. You don't need su access either. I couldn't list the contents of /data without it, so I thought you would need su access to cat the file. Updating my post so as to not have misinformation.

Going to try setting up PN with AP either Monday, or Tuesday. I am thinking that there is a slightly easier way to install. If we create the .supersu file before installing ROM, it should install as systemless. Will update you afterwards, unless someone has tried and knows that doesn't work....
[Nexus 6 Q&A, Help & Troubleshooting] studiorat:
I just tried the new post and same results with the su
[Nexus 6 Q&A, Help & Troubleshooting] studiorat:
OK my steps as follows

Boot into twrp3.0.0.1

Wipe/advanced data system dav and cache

Install PNRom3-15-16

Gapps 030216 and unsu.zip

Terminal

echo SYSTEMLESS=true>>/data/.supersu

echo BINDSYSTEMXBIN=false>>/data/.suoersu

Install supersu 2.68

Reboot

Set up

Open SuperSU

Look for install to system....and its greyed out......Also I get errors on both terminal commands states it can't create the folder because its a directory or something of that nature....I will get a ss and post

Then safety net helper error CTS match false

No AP working ....that's it for the steps....
[Nexus 6 Q&A, Help & Troubleshooting] tsew2674:
You are correct, you don't need to call su in the terminal. I thought about trying to create the file prior to flashing too, but if you do a clean install, which is probably your safest bet here, you'll be deleting it when you wipe the data partition. I suppose you could create the file and have it stored on your internal storage and then use the file manager to move it over, but honestly the two terminal commands are probably just as easy...

I don't know, those are the exact steps I took and it worked as expected. The only difference is that I haven't updated TWRP to 3.0.0.1 yet, but I don't think that's the problem. The problem has to be in the terminal commands due to the fact that the file is not there and you're getting errors. When you first go into the terminal it asks you which directory you want to start in. You should not be selecting any folder, just pressing enter. That may be the problem, if you are choosing data or system or anything other than just pressing enter, then the path on those commands would need to be altered. Do you recall what you've done when it asks you where you want to start?
[Nexus 6 Q&A, Help & Troubleshooting] studiorat:
I got it ...It was the terminal entry in the op it calls to >> before the/data/ and that is incorrect and I asked about that when I first saw it and was told I had to type it verbatim...WELL it appears they were wrong and should append that ....
[Nexus 6 Q&A, Help & Troubleshooting] githyanki:
Plan is to wipe; create /data/.supersu; install rom and gapps; test.

If it works, it will eliminate the flashing unsu and then supersu. I know, small things, but will help to know if it will allow dirty flashes of updated ROM later.

The OP lists the commands correctly, they work for everyone else. I had systemless by doing it prior, just was using wrong gapps before it was found that we need to use an older version. If you're not seeing the file, you either typed the commands wrong in twrp, or wiped afterwards, or something else. The file should be there if done right.
[Nexus 6 Q&A, Help & Troubleshooting] studiorat:
The terminal entry is wrong in the OP and when I questioned and asked i was told to type it as I see it.....WELL it didn't work 7 times so I eliminated the>> in the command on both lines and it worked perfectly
[Nexus 6 Q&A, Help & Troubleshooting] studiorat:
Really is that so?....I have been doing that every time and the time I didn't add the>> it worked perfectly So I believe that the OP was incorrect in that maybe some do need to type if they dirty flash and the data file exists but most having issue will benefit from not adding the append arrows in the command, I understand the arrows append ...but if you wipe the data and system as stated in the op you wipe those files so your not appending any file just a directory ....which is why u remove the arrows to create the folder within the directory and the results are in this ss

I hope this helps someone else having issues ...Happy Tweaking