DeadSquirrel01 / android_device_samsung_a5-common

Device Config for Galaxy A5
13 stars 9 forks source link

Can't turn on NFC without Google Play Services #16

Closed arkadiusz-wieczorek closed 6 years ago

arkadiusz-wieczorek commented 6 years ago

I can't turn on NFC module, I think that this is due to the lack of Google Play Services, but I guess Android Beam should be works without this.

photo_2017-08-31_09-49-54

jplitza commented 6 years ago

Why do you think this has anything to do with Google Play Services? I had the same problem, but the logcat didn't really sound like Google Play Services. For reference, here's the logcat:

08-18 16:05:50.256  7329  7845 I SecHAL  : device_sleep: NFC can be going to sleep
08-18 16:05:51.171  7329  7351 E BrcmNfcNfa: nfc_ncif_cmd_timeout
08-18 16:05:51.171  7329  7351 I BrcmNfcNfa: nfa_dm_nfc_response_cback () NFC_GEN_ERROR_REVT(0x500d)
08-18 16:05:51.171  7329  7351 I BrcmNfcNfa: nfa_dm_nfc_response_cback () NFC_NFCC_TIMEOUT_REVT(0x500f)
08-18 16:05:51.171  7329  7351 I BrcmNfcNfa: flags:0x00000005
08-18 16:05:51.171  7329  7351 D BrcmNfcJni: nfaDeviceManagementCallback: enter; event=0x6
08-18 16:05:51.171  7329  7351 E BrcmNfcJni: nfaDeviceManagementCallback: NFA_DM_NFCC_TIMEOUT_EVT; abort
08-18 16:05:51.171  7329  7351 D BrcmNfcJni: nativeNfcTag_abortWaits
08-18 16:05:51.171  7329  7351 D BrcmNfcJni: nfaDeviceManagementCallback: aborting  sNfaEnableDisablePollingEvent
08-18 16:05:51.171  7329  7351 D BrcmNfcJni: nfaDeviceManagementCallback: aborting  sNfaEnableEvent
08-18 16:05:51.171  7329  7351 D BrcmNfcJni: nfaDeviceManagementCallback: aborting  sNfaDisableEvent
08-18 16:05:51.171  7329  7351 D BrcmNfcJni: PowerSwitch::abort
08-18 16:05:51.171  7329  7351 I BrcmNfcNfa: NFA_Disable (graceful=0)
08-18 16:05:51.171  7329  7351 D BrcmNfcJni: PowerSwitch::initialize: level=PS-UNKNOWN (0)
08-18 16:05:51.171  7329  7351 D NfcAdaptation: const CNfcParam *CNfcConfig::find(const char *) const found SCREEN_OFF_POWER_STATE=(0x3)
08-18 16:05:51.171  7329  7351 D BrcmNfcJni: PowerSwitch::initialize: desired screen-off state=3
08-18 16:05:51.171  7329  7351 E BrcmNfcJni: nfaDeviceManagementCallback: crash NFC service
08-18 16:05:51.172  7329  7351 F libc    : Fatal signal 6 (SIGABRT), code -6 in tid 7351 (AsyncTask #1)
08-18 16:05:51.172  7329  7346 D BrcmNfcJni: PowerSwitch::setModeOn(activated=0x1) : mCurrActivity=0x1
08-18 16:05:51.172  7329  7346 D BrcmNfcJni: nfcManager_enableDiscovery: exit
08-18 16:05:51.173   236   236 W         : debuggerd: handling request: pid=7329 uid=1027 gid=1027 tid=7351
08-18 16:05:51.206  7861  7861 F DEBUG   : *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
08-18 16:05:51.206  7861  7861 F DEBUG   : LineageOS Version: '14.1-20170817-UNOFFICIAL-a5ultexx'
08-18 16:05:51.206  7861  7861 F DEBUG   : Build fingerprint: 'samsung/lineage_a5ultexx/a5ultexx:7.1.2/NJH47F/3e751b8df0:userdebug/test-keys'
08-18 16:05:51.206  7861  7861 F DEBUG   : Revision: '0'
08-18 16:05:51.206  7861  7861 F DEBUG   : ABI: 'arm'
08-18 16:05:51.207  7861  7861 F DEBUG   : pid: 7329, tid: 7351, name: AsyncTask #1  >>> com.android.nfc <<<
08-18 16:05:51.207  7861  7861 F DEBUG   : signal 6 (SIGABRT), code -6 (SI_TKILL), fault addr --------
08-18 16:05:51.207  7861  7861 F DEBUG   :     r0 00000000  r1 00001cb7  r2 00000006  r3 00000008
08-18 16:05:51.207  7861  7861 F DEBUG   :     r4 981aa978  r5 00000006  r6 981aa920  r7 0000010c
08-18 16:05:51.207  7861  7861 F DEBUG   :     r8 a9b43697  r9 00270004  sl a9b43666  fp a9b51934
08-18 16:05:51.207  7861  7861 F DEBUG   :     ip 0000000b  sp 981aa660  lr b14b3d07  pc b14b6564  cpsr 200f0010
08-18 16:05:51.223  7861  7861 F DEBUG   : 
08-18 16:05:51.223  7861  7861 F DEBUG   : backtrace:
08-18 16:05:51.223  7861  7861 F DEBUG   :     #00 pc 0004a564  /system/lib/libc.so (tgkill+12)
08-18 16:05:51.223  7861  7861 F DEBUG   :     #01 pc 00047d03  /system/lib/libc.so (pthread_kill+34)
08-18 16:05:51.223  7861  7861 F DEBUG   :     #02 pc 0001d565  /system/lib/libc.so (raise+10)
08-18 16:05:51.223  7861  7861 F DEBUG   :     #03 pc 000190b1  /system/lib/libc.so (__libc_android_abort+34)
08-18 16:05:51.223  7861  7861 F DEBUG   :     #04 pc 00017118  /system/lib/libc.so (abort+4)
08-18 16:05:51.223  7861  7861 F DEBUG   :     #05 pc 0000f6bb  /system/lib/libnfc_nci_jni.so
08-18 16:05:51.223  7861  7861 F DEBUG   :     #06 pc 0001a75c  /system/lib/libnfc-nci.so
08-18 16:05:51.223  7861  7861 F DEBUG   :     #07 pc 000522e0  /system/lib/libnfc-nci.so (nfc_ncif_cmd_timeout+116)
08-18 16:05:51.223  7861  7861 F DEBUG   :     #08 pc 0005466c  /system/lib/libnfc-nci.so (nfc_process_timer_evt+144)
08-18 16:05:51.223  7861  7861 F DEBUG   :     #09 pc 00054b80  /system/lib/libnfc-nci.so (nfc_task+340)
08-18 16:05:51.223  7861  7861 F DEBUG   :     #10 pc 0007641c  /system/lib/libnfc-nci.so (gki_task_entry+40)
08-18 16:05:51.223  7861  7861 F DEBUG   :     #11 pc 000477d3  /system/lib/libc.so (_ZL15__pthread_startPv+22)
08-18 16:05:51.223  7861  7861 F DEBUG   :     #12 pc 00019afd  /system/lib/libc.so (__start_thread+6)
08-18 16:05:52.137  7351  7351 W com.android.nfc: type=1701 audit(0.0:868): auid=4294967295 uid=1027 gid=1027 ses=4294967295 subj=u:r:nfc:s0 comm=4173796E635461736B202331 reason="memory violation" sig=6
08-18 16:05:52.152  1908  1927 I BootReceiver: Copying /data/tombstones/tombstone_07 to DropBox (SYSTEM_TOMBSTONE)
08-18 16:05:52.155   236   236 W         : debuggerd: resuming target 7329
08-18 16:05:52.207   280   280 I ServiceManager: service 'nfc' died
08-18 16:05:52.209  1908  1920 I ActivityManager: Process com.android.nfc (pid 7329) has died
08-18 16:05:52.209  1908  1920 D ActivityManager: cleanUpApplicationRecord -- 7329
08-18 16:05:52.210  1908  1920 W ActivityManager: Re-adding persistent process ProcessRecord{2a6958 7329:com.android.nfc/1027}
08-18 16:05:52.221  1908  1920 I ActivityManager: Start proc 7866:com.android.nfc/1027 for restart com.android.nfc
08-18 16:05:52.231  1553  1553 I Zygote  : Process 7329 exited due to signal (6)
GrizzlyErson commented 6 years ago

I installed google play services but still can't be switch it on..

arkadiusz-wieczorek commented 6 years ago

It was my guess.

DeadSquirrel01 commented 6 years ago

NFC button removed with https://github.com/DeadSquirrel01/android_device_samsung_a5-common/commit/1f7bbade1e5ce5a3773589931da5c9fab3f76962

jplitza commented 6 years ago

May I oppose the closing? I still can't turn it on although my phone supports it. :wink:

DeadSquirrel01 commented 6 years ago

"NFC button removed with 1f7bbad" what else to explain? Maybe add a request feature, not an issue