[Solution] Getting Android Pay working on Pure Nexus , Chroma, or OMNI

Search This thread

skaforey

Senior Member
Nov 5, 2009
595
396
San Diego, CA
Special thanks to @funkyboy1281, @lentm, @macboy3000 for helping getting this work. As far as I can tell, this is the easiest and most straight forward instruction set for getting Android Pay to work on the latest version of Pure Nexus, Chroma, or OMNI Rom

Clean Flashing

  1. Download the appropriate Rom.
    Pure Nexus Discussion
    Chroma Discussion
    OMNI (no link available, sorry)​
  2. Download Pure Nexus Dynamic Gapps 2-3-16 (Very important, you cannot use 15-3-16 or later). Yes, even if you use Chroma or OMNI, these Gapps should work for you. Link
  3. Download the unSU script for completely unrooting before installing systemless root. Link
  4. Download SuperSU 2.68 (or higher) Link || Discussion
  5. Advance wipe in recovery all but internal storage
  6. Install the ROM, gapps, and unSU
  7. Optional: Install custom kernel
  8. In TWRP, under advanced, go to terminal and type the following:
    Code:
    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.
  9. Flash 2.68 beta in TWRP
  10. Fully reboot, go through initial device setup
  11. Verify in SuperSU that you cannot install SU to the system. This will verify that we are using the systemless root option
  12. Download SafetyNet Helper and make sure it passes
  13. Install Android Pay and profit!


Dirty Flashing

  1. Verify that SafetyNet still passes in Android.
  2. Verify in Android that /data/.supersu is still present and contains the appropriate options (see clean flashing). You may also verify in recovery by going to terminal commands and entering in:
    Code:
    cat /data/.supersu
  3. Install the updated ROM (do not reinstall gapps unless your ROM builder specifically tells you to do so. Pure nexus does not require a reflash)
  4. Optional: Install unSU. This was not necessary on PureNexus, but I cannot be sure for other roms. It shouldn't hurt anything to flash.
  5. Optional: Install custom kernel
  6. Install SuperSu 2.68 (or higher)
  7. Check SafetyNet Helper and make sure it still passes


FAQ
Q. Can I still install and use AdAway?
A. Yes. You must first install something in recovery before installing AdAway. See the discussion Thread. You should be installing v3.1 of the app after you install the recovery zip.

Q. Can I still use V4A?
A. Yes. I do not use this however, but it has been reported that nothing special needs to be done.

Q. Can I change the screen density?
A. We have not found a way to do this without tripping Safety Net
 
Last edited:

mikeprius

Senior Member
Jan 13, 2014
1,740
489
Orange County, California
..
 

Attachments

  • 10kplq.jpg
    10kplq.jpg
    52.3 KB · Views: 2,416
  • Like
Reactions: nodnarb91

MrBrady

Senior Member
Oct 26, 2010
3,337
905
@skaforey thanks for this thread! Might want to note in the OP that Wiping Data erases the internal storage. Some people may not know that.
 

MrBrady

Senior Member
Oct 26, 2010
3,337
905
Has anyone found a way to adjust the screen density while keeping Android Pay functional?
 

sgloki77

Senior Member
Jul 14, 2012
677
201
Hallandale Beach
I tried the 2nd method without formating data in different combos to no avail, still hesitant to wipe my internal sdcard, it shouldn't be that hard man, will follow this thread

anyone know other aosp ROMs that have AP working outside of pure nexus?

Sent from my Nexus 6 using Tapatalk
 

MrBrady

Senior Member
Oct 26, 2010
3,337
905
Following the steps in the top most instructions in the OP...

1) Pure Nexus 3/8 does not have root out of the box, so the Unroot step was not needed.
2) TWRP did not show any files/folders in the /su directory, so the Terminal command didn't work. I booted up the device and did it through the Terminal there instead and then rebooted.

After that, loaded up Android Pay and it says "Android Pay can't be used".

Running SafetyNet reports....
SafteyNet request: success
Response validation: success
CTS profile match: false
 

githyanki

Senior Member
Mar 11, 2009
1,662
879
Edmonton
Tried different methods, not working for me.
1. Download Pure Nexus 1/03/16 or newer (Layers), the latest PN GApps, UnSU, the latest SuperSU.
2. Backup any important data.
3. Boot into TWRP and wipe everything including internal storage
4. Format data.
5. reboot TWRP with USB-OTG that has fines necessary.
6. Flash Pure Nexus.
7. Flash GApps.
8. Flash UnSU.
9. In terminal I saw I still had a folder /supersu so I deleted that.

reboot. Setup phone with google account. Did not have it restore apps, but did have it restore basic setup from google.

Install Safetynet helper

Still fail CTS Profile Match

Don't know what the people are doing different, but not working for me.
Are you using the PN-Gapps or others?
The updated-unsu is what date?
Thanks!
 

MrBrady

Senior Member
Oct 26, 2010
3,337
905
The only way I have gotten AP to work is from a stock image based ROM. It doesn't seem to work with AOSP ROMs like Pure Nexus.

For example, I am currently running Tupac's debloated stock ROM with Cataclysm MOD, Viper4Android and AdAway ad blocking. Android Pay works fine, as long as you follow the SU steps listed in the OP of this thread.
 

macboy3000

Senior Member
Nov 2, 2010
254
85
What I did to get AP to work was removing these lines from updater-script located in META-INF > com > google > android
Code:
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");
ui_print(" ");
and removed the supersu folder inside the zip file. I then installed my custom kernel and systemless supersu. After that, I set the permissions for bin folder inside su to 751 using a root explorer and deleted xbin_bind.
 

sgloki77

Senior Member
Jul 14, 2012
677
201
Hallandale Beach
@macboy3000 what kernel and what version of SuperSU did you use, ? I tried your method, ROM booted fine but safetynet test failed...

this is how I did it

unzip ROM
edit code out
delete supersu folder
zip ROM
advance wipe everything but internal
flash ROM
flash pn gapps
flash elemental kernel
flash supersu
boot into android, delete xbin_bind
reboot system

permissions on bin folder were already 751, so didn't need to change

Sent from my Nexus 6 using Tapatalk
 

macboy3000

Senior Member
Nov 2, 2010
254
85
@macboy3000 what kernel and what version of SuperSU did you use, ? I tried your method, ROM booted fine but safetynet test failed...

this is how I did it

unzip ROM
edit code out
delete supersu folder
zip ROM
advance wipe everything but internal
flash ROM
flash pn gapps
flash elemental kernel
flash supersu
boot into android, delete xbin_bind
reboot system

permissions on bin folder were already 751, so didn't need to change

Sent from my Nexus 6 using Tapatalk
Weird...I'm using SuperSU 2.67 and I'm also using Elemental kernel.
 

skaforey

Senior Member
Nov 5, 2009
595
396
San Diego, CA
What I did to get AP to work was removing these lines from updater-script located in META-INF > com > google > android
Code:
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");
ui_print(" ");
and removed the supersu folder inside the zip file. I then installed my custom kernel and systemless supersu. After that, I set the permissions for bin folder inside su to 751 using a root explorer and deleted xbin_bind.

Well I tried this and still no luck :(

I even tried flashing the modified ROM, gapps, and never flashing SuperSU at all (so my rom wasn't rooted at all), and SafetyNet still gives me a red screen. I really wish I knew what was triggering this for some and how others can make it work.
 

skaforey

Senior Member
Nov 5, 2009
595
396
San Diego, CA
I tried again using 2.57 SuperSU and Elemental X and still fails. Would someone that got it working be able to post a more detailed log of exactly what steps you're using and exactly what files you're flashing.
 

jcrompton

Senior Member
Nov 30, 2004
4,280
757
63
Hurricane, WV
Google Pixel 5
Google Pixel 5a
The only way I have gotten AP to work is from a stock image based ROM. It doesn't seem to work with AOSP ROMs like Pure Nexus.

For example, I am currently running Tupac's debloated stock ROM with Cataclysm MOD, Viper4Android and AdAway ad blocking. Android Pay works fine, as long as you follow the SU steps listed in the OP of this thread.

This has been my experience as well !
 
  • Like
Reactions: lentm

Top Liked Posts

  • There are no posts matching your filters.
  • 19
    Special thanks to @funkyboy1281, @lentm, @macboy3000 for helping getting this work. As far as I can tell, this is the easiest and most straight forward instruction set for getting Android Pay to work on the latest version of Pure Nexus, Chroma, or OMNI Rom

    Clean Flashing

    1. Download the appropriate Rom.
      Pure Nexus Discussion
      Chroma Discussion
      OMNI (no link available, sorry)​
    2. Download Pure Nexus Dynamic Gapps 2-3-16 (Very important, you cannot use 15-3-16 or later). Yes, even if you use Chroma or OMNI, these Gapps should work for you. Link
    3. Download the unSU script for completely unrooting before installing systemless root. Link
    4. Download SuperSU 2.68 (or higher) Link || Discussion
    5. Advance wipe in recovery all but internal storage
    6. Install the ROM, gapps, and unSU
    7. Optional: Install custom kernel
    8. In TWRP, under advanced, go to terminal and type the following:
      Code:
      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.
    9. Flash 2.68 beta in TWRP
    10. Fully reboot, go through initial device setup
    11. Verify in SuperSU that you cannot install SU to the system. This will verify that we are using the systemless root option
    12. Download SafetyNet Helper and make sure it passes
    13. Install Android Pay and profit!


    Dirty Flashing

    1. Verify that SafetyNet still passes in Android.
    2. Verify in Android that /data/.supersu is still present and contains the appropriate options (see clean flashing). You may also verify in recovery by going to terminal commands and entering in:
      Code:
      cat /data/.supersu
    3. Install the updated ROM (do not reinstall gapps unless your ROM builder specifically tells you to do so. Pure nexus does not require a reflash)
    4. Optional: Install unSU. This was not necessary on PureNexus, but I cannot be sure for other roms. It shouldn't hurt anything to flash.
    5. Optional: Install custom kernel
    6. Install SuperSu 2.68 (or higher)
    7. Check SafetyNet Helper and make sure it still passes


    FAQ
    Q. Can I still install and use AdAway?
    A. Yes. You must first install something in recovery before installing AdAway. See the discussion Thread. You should be installing v3.1 of the app after you install the recovery zip.

    Q. Can I still use V4A?
    A. Yes. I do not use this however, but it has been reported that nothing special needs to be done.

    Q. Can I change the screen density?
    A. We have not found a way to do this without tripping Safety Net
    8
    I wonder if we could get @BeansTown106 to take a look?
    My guess would be the updated gms core, I'll try and do some tinkering and see what is breaking it

    Sent from my Nexus 6P using Tapatalk
    4
    Do I have to do all steps if I want to update Android pay app?

    Sent from my Nexus 6 using XDA-Developers mobile app

    Do you mean just update the app through the play store? If so, then no, you can update it and it will work fine with no additional steps required.

    I just clean flashed todays release, Pure Nexus now installs SU as systemless by default. I've tried the latest GApps will report back shortly if it works.:

    UPDATE: Okay, so it appears to have worked. SafetyNet passes doing a clean install of PN with the latest PN Gapps, with no extra steps whatsoever. WooHoo!!
    4
    Just got Android Pay working + green on safetynet check with the latest pure nexus rom! (3/15)
    The last thing I want is changing DPI. I doubt it would work though.

    Here's what I did:

    - Remove the supersu script in pure nexus rom zip (thanks to @macboy3000)
    - Boot TWRP 3.0.0.1
    - Advanced wipe all except internal storage
    - Install latest pure nexus rom zip 3/15
    - Install latest PN Gapps (edit: I used 2-3-15.zip)
    - Install unSU script just in case :)
    - Type these commands on TWRP terminal (thanks to @nathanchance)
    Code:
    echo SYSTEMLESS=true>>/data/.supersu
    echo BINDSYSTEMXBIN=false>>/data/.supersu
    - Install SuperSU 2.68
    - Reboot system
    - Login to google. (I chose the new device option)
    - Test
    3
    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

    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.