[One (M8) Android Development] tabooki:
Android pay

Has anybody been able to get Android Pay working with this ROM?

I've followed the instructions on various sites like this one.

http://phandroid.com/2015/09/07/how-to-use-android-pay-2/

It opens up ok but when you try to add a card I get a "Google play services has stopped" error.

Does anybody know if this is even possible? Is Google checking to see if we are running a custom ROM or are rooted?

Logcat shows the following.

E/AndroidRuntime(24327): FATAL EXCEPTION: main

E/AndroidRuntime(24327): Process: com.google.android.gms.ui, PID: 24327

E/AndroidRuntime(24327): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.google.android.gms/com.google.android.gms.tapandpay.tokenization.AddNewCardForTokenizationActivity}: java.lang.IllegalArgumentException: Initialization token is required

E/AndroidRuntime(24327):	at android.app.ActivityThread.performLaunchActivity(ActivityThread.java)

E/AndroidRuntime(24327):	at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java)

E/AndroidRuntime(24327):	at android.app.ActivityThread.access$800(ActivityThread.java)

E/AndroidRuntime(24327):	at android.app.ActivityThread$H.handleMessage(ActivityThread.java)

E/AndroidRuntime(24327):	at android.os.Handler.dispatchMessage(Handler.java)

E/AndroidRuntime(24327):	at android.os.Looper.loop(Looper.java)

E/AndroidRuntime(24327):	at android.app.ActivityThread.main(ActivityThread.java)

E/AndroidRuntime(24327):	at java.lang.reflect.Method.invoke(Native Method)

E/AndroidRuntime(24327):	at java.lang.reflect.Method.invoke(Method.java)

E/AndroidRuntime(24327):	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java)

E/AndroidRuntime(24327):	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java)

E/AndroidRuntime(24327): Caused by: java.lang.IllegalArgumentException: Initialization token is required

E/AndroidRuntime(24327):	at com.google.android.gms.common.internal.ci.b(SourceFile:208)

E/AndroidRuntime(24327):	at com.google.android.gms.wallet.firstparty.a.a.a(SourceFile:47)

E/AndroidRuntime(24327):	at com.google.android.gms.wallet.firstparty.a.a(SourceFile:129)

E/AndroidRuntime(24327):	at com.google.android.gms.tapandpay.tokenization.AddNewCardForTokenizationActivity.onCreate(SourceFile:78)

E/AndroidRuntime(24327):	at android.app.Activity.performCreate(Activity.java)

E/AndroidRuntime(24327):	at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java)

E/AndroidRuntime(24327):	... 11 more

E/ActivityManager( 997): App crashed! Process: com.google.android.gms.ui

W/ActivityManager( 997): Force finishing activity com.google.android.gms/.tapandpay.tokenization.AddNewCardForTokenizationActivity

D/PMS ( 997): acquireWL(dc68ebf): PARTIAL_WAKE_LOCK ActivityManager-Launch 0x1 997 1000 null

W/ActivityManager( 997): Force finishing activity com.google.android.gms/.tapandpay.tokenization.TokenizePanActivity

D/StatusBarManagerService( 997): setSystemUiVisibility(0x8000)

D/StatusBarManagerService( 997): manageDisableList userId=0 what=0x0 pkg=WindowManager.LayoutParams

D/StatusBarManagerService( 997): hiding MENU key

I/PhoneStatusBar( 1299): setSystemUiNavVisibility(false,false,false)

W/ActivityManager( 997): Activity pause timeout for ActivityRecord{2729c419 u0 com.google.android.gms/.tapandpay.tokenization.AddNewCardForTokenizationActivity t3660 f}

D/HtcSystemUPManager( 997): HtcSystemUPolicy [canLog (default)] category: launch, enable: true