[Galaxy Grand 2 Android Development] pitchmie:
OK, so I passed Google Pay's SafetyNet but then stuck when turning NFC on.

But there is not much logs on NFC (actually only one).

Probably Google doesn't want to log it for the same reason why they don't want Google Pay on rooted phone.

05-28 08:23:25.759 705 827 E Sensors : Lightsensor values:61.000000

05-28 08:23:25.959 705 827 E Sensors : Lightsensor values:61.000000

05-28 08:23:26.159 705 827 E Sensors : Lightsensor values:52.000000

05-28 08:23:26.359 705 827 E Sensors : Lightsensor values:59.000000

05-28 08:23:26.560 705 827 E Sensors : Lightsensor values:53.000000

05-28 08:23:26.759 705 827 E Sensors : Lightsensor values:53.000000

05-28 08:23:26.959 705 827 E Sensors : Lightsensor values:56.000000

05-28 08:23:27.159 705 827 E Sensors : Lightsensor values:56.000000

05-28 08:23:27.359 705 827 E Sensors : Lightsensor values:56.000000

05-28 08:23:27.391 2637 2637 D WirelessSettings: onPreferenceTreeClick: prefer

ence=NFC Allow data exchange when the phone touches another device

05-28 08:23:27.398 288 430 D audio_hw_primary: start_output_stream: enter: s

tream(0xb61cad80)usecase(1: low-latency-playback) devices(0x2)

05-28 08:23:27.398 288 430 D audio_hw_primary: start_output_stream: enter: u

secase(1: low-latency-playback) devices(0x2)

05-28 08:23:27.398 288 430 D audio_hw_primary: select_devices: out_snd_devic

e(2: speaker) in_snd_device(0: )

05-28 08:23:27.398 288 430 W msm8974_platform: Codec backend bitwidth 16, sa

mplerate 48000

05-28 08:23:27.398 288 430 D hardware_info: hw_info_append_hw_type : device_

name = speaker

05-28 08:23:27.399 288 430 I msm8974_platform: platform_send_audio_calibrati

on: sending audio calibration for snd_device(2) acdb_id(15)

05-28 08:23:27.399 288 430 D ACDB-LOADER: ACDB -> send_audio_cal, acdb_id =

15, path = 0

05-28 08:23:27.399 288 430 D ACDB-LOADER: ACDB -> send_adm_topology

05-28 08:23:27.399 288 430 D ACDB-LOADER: ACDB -> ACDB_CMD_GET_AUDPROC_COMMO

N_TOPOLOGY_ID

05-28 08:23:27.399 288 430 D ACDB-LOADER: ACDB -> send_audtable

05-28 08:23:27.399 288 430 D ACDB-LOADER: ACDB -> ACDB_CMD_GET_AUDPROC_COMMO

N_TABLE

05-28 08:23:27.399 288 430 D ACDB-LOADER: ACDB -> AUDIO_SET_AUDPROC_CAL

05-28 08:23:27.399 288 430 D ACDB-LOADER: ACDB -> send_audvoltable

05-28 08:23:27.399 288 430 D ACDB-LOADER: ACDB -> ACDB_CMD_GET_AUDPROC_GAIN_

DEP_STEP_TABLE

05-28 08:23:27.399 288 430 D ACDB-LOADER: ACDB -> AUDIO_SET_AUDPROC_VOL_CAL

05-28 08:23:27.399 288 430 D ACDB-LOADER: ACDB -> send_afe_cal

05-28 08:23:27.399 288 430 D ACDB-LOADER: ACDB -> ACDB_CMD_GET_AFE_COMMON_TA

BLE

05-28 08:23:27.399 288 430 D ACDB-LOADER: ACDB -> AUDIO_SET_AFE_CAL

05-28 08:23:27.418 288 430 D audio_hw_primary: select_devices: done

05-28 08:23:27.559 705 827 E Sensors : Lightsensor values:58.000000

05-28 08:23:27.759 705 827 E Sensors : Lightsensor values:56.000000

05-28 08:23:27.959 705 827 E Sensors : Lightsensor values:63.000000

05-28 08:23:28.159 705 827 E Sensors : Lightsensor values:52.000000

Some time earlier I found this log

05-28 08:23:19.395 2451 9582 D EventBus: No subscribers registered for event c

lass com.google.commerce.tapandpay.android.feed.data.FeedItemListEvent

05-28 08:23:19.395 2451 9582 D EventBus: No subscribers registered for event c

lass org.greenrobot.eventbus.NoSubscriberEvent

But I don't know if it is connected.

Probably you need to add new debbuging logs and replace the Google files as described here:

https://www.cs.ru.nl/bachelors-thes...33___Logging_NFC_data_on_a_Google_Nexus_S.pdf

However this paper is old (2012) and maybe there are some new ways forward with it.

BTW Is it possible to get rid of this Sensors : Lightsensor errors?

Edit (29.05): when I uninstalled Google Pay then I can turn on NFC again but don't have an other application where it is used.