Skip to content

Instantly share code, notes, and snippets.

@steadfasterX
Last active April 30, 2019 15:21
Show Gist options
  • Save steadfasterX/1f5cfc003aadd8bd91ee33d5c18c1bc1 to your computer and use it in GitHub Desktop.
Save steadfasterX/1f5cfc003aadd8bd91ee33d5c18c1bc1 to your computer and use it in GitHub Desktop.
nfc bug
adb shell find system -name nfc_nci.msm8992.so
-------------------------------------------------------------------
> system/vendor/lib64/hw/nfc_nci.msm8992.so
> system/vendor/lib/hw/nfc_nci.msm8992.so
product/nfc.mk
-------------------------------------------------------------------
PRODUCT_PACKAGES += \
com.android.nfc_extras \
NfcNci
vendor/lge/g4-common/g4-common-vendor.mk
-------------------------------------------------------------------
# NFC
PRODUCT_COPY_FILES += \
vendor/lge/g4-common/proprietary/vendor/lib/hw/nfc_nci.msm8992.so:$(TARGET_COPY_OUT_VENDOR)/lib/hw/nfc_nci.msm8992.so \
vendor/lge/g4-common/proprietary/vendor/lib64/hw/nfc_nci.msm8992.so:$(TARGET_COPY_OUT_VENDOR)/lib64/hw/nfc_nci.msm8992.so \
vendor/lge/g4-common/proprietary/vendor/lib/hw/[email protected]:$(TARGET_COPY_OUT_VENDOR)/lib/hw/[email protected] \
vendor/lge/g4-common/proprietary/vendor/lib64/hw/[email protected]:$(TARGET_COPY_OUT_VENDOR)/lib64/hw/[email protected]
adb logcat -b all | grep -i "nfc"
-------------------------------------------------------------------
12-31 14:24:11.497 1017 1017 I PackageManager: /system/app/NfcNci changed; collecting certs
12-31 14:24:11.526 1017 1017 E PackageManager: Adding duplicate shared id: 1027 name=com.android.nfc
12-31 14:24:11.526 1017 1017 I pm_critical_info: Adding duplicate shared id: 1027 name=com.android.nfc
04-30 03:05:56.525 1017 1017 I sysui_multi_action: [757,1243,758,4,806,com.android.nfc,1241,android.permission.READ_CONTACTS]
04-30 03:05:56.525 1017 1017 I sysui_multi_action: [757,1243,758,4,806,com.android.nfc,1241,android.permission.WRITE_EXTERNAL_STORAGE]
04-30 03:05:56.535 1017 1017 I sysui_multi_action: [757,1243,758,4,806,com.android.nfc,1241,android.permission.READ_EXTERNAL_STORAGE]
04-30 03:06:24.689 21967 21967 I chatty : uid=0(root) com.android.nfc expire 1 line
04-30 03:06:24.736 1017 1139 I am_proc_start: [0,21967,1027,com.android.nfc,added application,com.android.nfc]
04-30 03:06:24.736 1017 1139 I ActivityManager: Start proc 21967:com.android.nfc/1027 for added application com.android.nfc
04-30 03:06:24.804 1017 1028 I am_proc_bound: [0,21967,com.android.nfc]
04-30 03:06:24.953 21967 21967 I NfcService: Starting NFC service
04-30 03:06:25.042 21967 21967 I : [0430/140625.041828:INFO:NfcJniUtil.cpp(47)] NFC Service: loading nci JNI
04-30 03:06:25.045 21967 21967 I com.android.nf: ConfigFile - Parsing file '/vendor/etc/libnfc-nci.conf'
04-30 03:06:25.046 21967 21967 I com.android.nf: ConfigFile - [NFC_DEBUG_ENABLED] = 0
04-30 03:06:25.046 21967 21967 I com.android.nf: ConfigFile - [NFA_STORAGE] = "/data/nfc"
04-30 03:06:25.047 21967 21967 I com.android.nf: ConfigFile - [NCI_HAL_MODULE] = "nfc_nci.pn54x"
04-30 03:06:25.047 21967 21967 I : [0430/140625.047772:INFO:NfcAdaptation.cc(460)] NfcAdaptation::InitializeHalDeviceContext: INfc::getService()
04-30 03:06:25.049 398 398 W hwservicemanager: getTransport: Cannot find entry [email protected]::INfc/default in either framework or device manifest.
04-30 03:06:25.053 21967 21967 I ServiceManagement: getService: Trying again for [email protected]::INfc/default...
04-30 03:06:26.054 21967 21967 W ServiceManagement: Waited one second for [email protected]::INfc/default. Waiting another...
04-30 03:06:27.054 21967 21967 W ServiceManagement: Waited one second for [email protected]::INfc/default. Waiting another...
04-30 03:06:28.054 21967 21967 W ServiceManagement: Waited one second for [email protected]::INfc/default. Waiting another...
04-30 03:06:29.055 21967 21967 W ServiceManagement: Waited one second for [email protected]::INfc/default. Waiting another...
04-30 03:06:30.056 21967 21967 W ServiceManagement: Waited one second for [email protected]::INfc/default. Waiting another...
04-30 03:06:31.057 21967 21967 W ServiceManagement: Waited one second for [email protected]::INfc/default. Waiting another...
04-30 03:06:32.058 21967 21967 W ServiceManagement: Waited one second for [email protected]::INfc/default. Waiting another...
04-30 03:06:33.059 21967 21967 W ServiceManagement: Waited one second for [email protected]::INfc/default. Waiting another...
04-30 03:06:34.059 21967 21967 W ServiceManagement: Waited one second for [email protected]::INfc/default. Waiting another...
04-30 03:06:35.060 21967 21967 W ServiceManagement: Waited one second for [email protected]::INfc/default. Waiting another...
04-30 03:06:36.061 21967 21967 W ServiceManagement: Waited one second for [email protected]::INfc/default. Waiting another...
04-30 03:06:37.063 21967 21967 W ServiceManagement: Waited one second for [email protected]::INfc/default. Waiting another...
04-30 03:06:38.065 21967 21967 W ServiceManagement: Waited one second for [email protected]::INfc/default. Waiting another...
04-30 03:06:39.066 21967 21967 W ServiceManagement: Waited one second for [email protected]::INfc/default. Waiting another...
04-30 03:06:40.066 21967 21967 W ServiceManagement: Waited one second for [email protected]::INfc/default. Waiting another...
04-30 03:06:41.068 21967 21967 W ServiceManagement: Waited one second for [email protected]::INfc/default. Waiting another...
04-30 03:06:42.068 21967 21967 W ServiceManagement: Waited one second for [email protected]::INfc/default. Waiting another...
04-30 03:06:43.069 21967 21967 W ServiceManagement: Waited one second for [email protected]::INfc/default. Waiting another...
04-30 03:06:44.069 21967 21967 W ServiceManagement: Waited one second for [email protected]::INfc/default. Waiting another...
04-30 03:06:45.069 21967 21967 W ServiceManagement: Waited one second for [email protected]::INfc/default. Waiting another...
04-30 03:06:46.070 21967 21967 W ServiceManagement: Waited one second for [email protected]::INfc/default. Waiting another...
04-30 03:06:47.071 21967 21967 W ServiceManagement: Waited one second for [email protected]::INfc/default. Waiting another...
04-30 03:06:48.071 21967 21967 W ServiceManagement: Waited one second for [email protected]::INfc/default. Waiting another...
04-30 03:06:49.072 21967 21967 W ServiceManagement: Waited one second for [email protected]::INfc/default. Waiting another...
04-30 03:06:50.072 21967 21967 W ServiceManagement: Waited one second for [email protected]::INfc/default. Waiting another...
04-30 03:06:51.073 21967 21967 W ServiceManagement: Waited one second for [email protected]::INfc/default. Waiting another...
04-30 03:06:52.076 21967 21967 W ServiceManagement: Waited one second for [email protected]::INfc/default. Waiting another...
04-30 03:06:53.076 21967 21967 W ServiceManagement: Waited one second for [email protected]::INfc/default. Waiting another...
04-30 03:06:54.076 21967 21967 W ServiceManagement: Waited one second for [email protected]::INfc/default. Waiting another...
04-30 03:06:55.077 21967 21967 W ServiceManagement: Waited one second for [email protected]::INfc/default. Waiting another...
04-30 03:06:56.078 21967 21967 W ServiceManagement: Waited one second for [email protected]::INfc/default. Waiting another...
04-30 03:06:56.142 1017 1114 I am_pss : [21967,1027,com.android.nfc,6287360,4714496,0,50851840,0,0,47]
04-30 03:06:57.078 21967 21967 W ServiceManagement: Waited one second for [email protected]::INfc/default. Waiting another...
04-30 03:06:58.079 21967 21967 W ServiceManagement: Waited one second for [email protected]::INfc/default. Waiting another...
04-30 03:06:59.081 21967 21967 W ServiceManagement: Waited one second for [email protected]::INfc/default. Waiting another...
04-30 03:07:00.081 21967 21967 W ServiceManagement: Waited one second for [email protected]::INfc/default. Waiting another...
04-30 03:07:01.083 21967 21967 W ServiceManagement: Waited one second for [email protected]::INfc/default. Waiting another...
04-30 03:07:02.084 21967 21967 W ServiceManagement: Waited one second for [email protected]::INfc/default. Waiting another...
04-30 03:07:03.084 21967 21967 W ServiceManagement: Waited one second for [email protected]::INfc/default. Waiting another...
04-30 03:07:04.084 21967 21967 W ServiceManagement: Waited one second for [email protected]::INfc/default. Waiting another...
04-30 03:07:05.085 21967 21967 W ServiceManagement: Waited one second for [email protected]::INfc/default. Waiting another...
04-30 03:07:06.085 21967 21967 W ServiceManagement: Waited one second for [email protected]::INfc/default. Waiting another...
04-30 03:07:07.086 21967 21967 W ServiceManagement: Waited one second for [email protected]::INfc/default. Waiting another...
04-30 03:07:08.086 21967 21967 W ServiceManagement: Waited one second for [email protected]::INfc/default. Waiting another...
04-30 03:07:09.086 21967 21967 W ServiceManagement: Waited one second for [email protected]::INfc/default. Waiting another...
04-30 03:07:10.087 21967 21967 W ServiceManagement: Waited one second for [email protected]::INfc/default. Waiting another...
04-30 03:07:11.087 21967 21967 W ServiceManagement: Waited one second for [email protected]::INfc/default. Waiting another...
04-30 03:07:12.087 21967 21967 W ServiceManagement: Waited one second for [email protected]::INfc/default. Waiting another...
04-30 03:07:13.088 21967 21967 W ServiceManagement: Waited one second for [email protected]::INfc/default. Waiting another...
04-30 03:07:14.088 21967 21967 W ServiceManagement: Waited one second for [email protected]::INfc/default. Waiting another...
04-30 03:07:15.090 21967 21967 W ServiceManagement: Waited one second for [email protected]::INfc/default. Waiting another...
04-30 03:07:15.324 1017 1128 E ActivityManager: 0.7% 21967/com.android.nfc: 0.6% user + 0.1% kernel / faults: 1860 minor
04-30 03:07:15.443 1017 1128 E ActivityManager: 0.7% 21967/com.android.nfc: 0.6% user + 0.1% kernel / faults: 1860 minor
04-30 03:07:16.090 21967 21967 W ServiceManagement: Waited one second for [email protected]::INfc/default. Waiting another...
04-30 03:07:17.091 21967 21967 W ServiceManagement: Waited one second for [email protected]::INfc/default. Waiting another...
04-30 03:07:18.091 21967 21967 W ServiceManagement: Waited one second for [email protected]::INfc/default. Waiting another...
04-30 03:07:19.092 21967 21967 W ServiceManagement: Waited one second for [email protected]::INfc/default. Waiting another...
04-30 03:07:20.092 21967 21967 W ServiceManagement: Waited one second for [email protected]::INfc/default. Waiting another...
04-30 03:07:21.093 21967 21967 W ServiceManagement: Waited one second for [email protected]::INfc/default. Waiting another...
04-30 03:07:22.094 21967 21967 W ServiceManagement: Waited one second for [email protected]::INfc/default. Waiting another...
04-30 03:07:23.094 21967 21967 W ServiceManagement: Waited one second for [email protected]::INfc/default. Waiting another...
04-30 03:07:24.095 21967 21967 W ServiceManagement: Waited one second for [email protected]::INfc/default. Waiting another...
04-30 03:07:25.096 21967 21967 W ServiceManagement: Waited one second for [email protected]::INfc/default. Waiting another...
04-30 03:07:26.096 21967 21967 W ServiceManagement: Waited one second for [email protected]::INfc/default. Waiting another...
04-30 03:07:27.097 21967 21967 W ServiceManagement: Waited one second for [email protected]::INfc/default. Waiting another...
04-30 03:07:28.097 21967 21967 W ServiceManagement: Waited one second for [email protected]::INfc/default. Waiting another...
04-30 03:07:29.098 21967 21967 W ServiceManagement: Waited one second for [email protected]::INfc/default. Waiting another...
04-30 03:07:30.099 21967 21967 W ServiceManagement: Waited one second for [email protected]::INfc/default. Waiting another...
04-30 03:07:31.100 21967 21967 W ServiceManagement: Waited one second for [email protected]::INfc/default. Waiting another...
04-30 03:07:32.100 21967 21967 W ServiceManagement: Waited one second for [email protected]::INfc/default. Waiting another...
04-30 03:07:32.228 1017 1114 I am_pss : [21967,1027,com.android.nfc,9546752,7917568,0,55939072,0,0,39]
04-30 03:07:33.101 21967 21967 W ServiceManagement: Waited one second for [email protected]::INfc/default. Waiting another...
04-30 03:07:34.102 21967 21967 W ServiceManagement: Waited one second for [email protected]::INfc/default. Waiting another...
04-30 03:07:35.103 21967 21967 W ServiceManagement: Waited one second for [email protected]::INfc/default. Waiting another...
04-30 03:07:36.104 21967 21967 I chatty : uid=1027(nfc) com.android.nfc identical 1 line
04-30 03:07:37.104 21967 21967 W ServiceManagement: Waited one second for [email protected]::INfc/default. Waiting another...
04-30 03:07:38.105 21967 21967 W ServiceManagement: Waited one second for [email protected]::INfc/default. Waiting another...
04-30 03:07:39.105 21967 21967 W ServiceManagement: Waited one second for [email protected]::INfc/default. Waiting another...
04-30 03:07:40.106 21967 21967 W ServiceManagement: Waited one second for [email protected]::INfc/default. Waiting another...
04-30 03:07:42.109 21967 21967 I chatty : uid=1027(nfc) com.android.nfc identical 2 lines
04-30 03:07:43.110 21967 21967 W ServiceManagement: Waited one second for [email protected]::INfc/default. Waiting another...
04-30 03:07:44.110 21967 21967 W ServiceManagement: Waited one second for [email protected]::INfc/default. Waiting another...
04-30 03:07:45.110 21967 21967 W ServiceManagement: Waited one second for [email protected]::INfc/default. Waiting another...
04-30 03:07:46.111 21967 21967 W ServiceManagement: Waited one second for [email protected]::INfc/default. Waiting another...
04-30 03:07:47.112 21967 21967 I chatty : uid=1027(nfc) com.android.nfc identical 1 line
04-30 03:07:48.112 21967 21967 W ServiceManagement: Waited one second for [email protected]::INfc/default. Waiting another...
04-30 03:07:49.112 21967 21967 W ServiceManagement: Waited one second for [email protected]::INfc/default. Waiting another...
04-30 03:07:50.113 21967 21967 W ServiceManagement: Waited one second for [email protected]::INfc/default. Waiting another...
04-30 03:07:51.113 21967 21967 I chatty : uid=1027(nfc) com.android.nfc identical 1 line
04-30 03:07:52.114 21967 21967 W ServiceManagement: Waited one second for [email protected]::INfc/default. Waiting another...
04-30 03:07:53.114 21967 21967 W ServiceManagement: Waited one second for [email protected]::INfc/default. Waiting another...
04-30 03:07:54.115 21967 21967 W ServiceManagement: Waited one second for [email protected]::INfc/default. Waiting another...
04-30 03:07:55.116 21967 21967 W ServiceManagement: Waited one second for [email protected]::INfc/default. Waiting another...
04-30 03:07:57.118 21967 21967 I chatty : uid=1027(nfc) com.android.nfc identical 2 lines
04-30 03:07:58.119 21967 21967 W ServiceManagement: Waited one second for [email protected]::INfc/default. Waiting another...
04-30 03:07:59.120 21967 21967 W ServiceManagement: Waited one second for [email protected]::INfc/default. Waiting another...
04-30 03:08:00.121 21967 21967 W ServiceManagement: Waited one second for [email protected]::INfc/default. Waiting another...
04-30 03:08:01.122 21967 21967 W ServiceManagement: Waited one second for [email protected]::INfc/default. Waiting another...
04-30 03:08:02.123 21967 21967 I chatty : uid=1027(nfc) com.android.nfc identical 1 line
04-30 03:08:03.124 21967 21967 W ServiceManagement: Waited one second for [email protected]::INfc/default. Waiting another...
04-30 03:08:04.125 21967 21967 W ServiceManagement: Waited one second for [email protected]::INfc/default. Waiting another...
04-30 03:08:06.558 1017 1128 W BroadcastQueue: Receiver during timeout of BroadcastRecord{13e1b9d u0 android.intent.action.BOOT_COMPLETED} : ResolveInfo{11621da com.android.nfc/.NfcBootCompletedReceiver m=0x108000}
04-30 03:08:06.558 1017 1128 I am_broadcast_discard_app: [0,20847517,android.intent.action.BOOT_COMPLETED,19,ResolveInfo{11621da com.android.nfc/.NfcBootCompletedReceiver m=0x108000}]
04-30 03:08:05.126 21967 21967 I chatty : uid=1027(nfc) com.android.nfc identical 1 line
04-30 03:08:06.126 21967 21967 W ServiceManagement: Waited one second for [email protected]::INfc/default. Waiting another...
04-30 03:08:06.648 1017 1128 I am_anr : [0,21967,com.android.nfc,281591373,Broadcast of Intent { act=android.intent.action.BOOT_COMPLETED flg=0x9000010 cmp=com.android.nfc/.NfcBootCompletedReceiver (has extras) }]
04-30 03:08:06.752 1017 1128 E ActivityManager: ANR in com.android.nfc
04-30 03:08:06.752 1017 1128 E ActivityManager: Reason: Broadcast of Intent { act=android.intent.action.BOOT_COMPLETED flg=0x9000010 cmp=com.android.nfc/.NfcBootCompletedReceiver (has extras) }
04-30 03:08:06.752 1017 1128 E ActivityManager: 0% 21967/com.android.nfc: 0% user + 0% kernel / faults: 3 minor
04-30 03:08:06.758 1017 1128 I ActivityManager: Killing 21967:com.android.nfc/1027 (adj -800): bg anr
04-30 03:08:06.758 1017 1128 I am_kill : [0,21967,com.android.nfc,-800,bg anr]
04-30 03:08:06.787 1017 18687 I ActivityManager: Process com.android.nfc (pid 21967) has died: pers PER
04-30 03:08:06.787 1017 18687 I am_proc_died: [0,21967,com.android.nfc,-800,0]
04-30 03:08:06.787 1017 18687 W ActivityManager: Re-adding persistent process ProcessRecord{509fcdf 21967:com.android.nfc/1027}
04-30 03:08:06.832 1017 1139 I am_proc_start: [0,3534,1027,com.android.nfc,restart,com.android.nfc]
04-30 03:08:06.832 1017 1139 I ActivityManager: Start proc 3534:com.android.nfc/1027 for restart com.android.nfc
04-30 03:08:06.861 1017 18687 I am_proc_bound: [0,3534,com.android.nfc]
04-30 03:08:06.918 3534 3534 I NfcService: Starting NFC service
04-30 03:08:06.945 3534 3534 I : [0430/030806.945185:INFO:NfcJniUtil.cpp(47)] NFC Service: loading nci JNI
04-30 03:08:06.945 3534 3534 I com.android.nf: ConfigFile - Parsing file '/vendor/etc/libnfc-nci.conf'
04-30 03:08:06.946 3534 3534 I com.android.nf: ConfigFile - [NFC_DEBUG_ENABLED] = 0
04-30 03:08:06.946 3534 3534 I com.android.nf: ConfigFile - [NFA_STORAGE] = "/data/nfc"
04-30 03:08:06.947 3534 3534 I com.android.nf: ConfigFile - [NCI_HAL_MODULE] = "nfc_nci.pn54x"
04-30 03:08:06.947 3534 3534 I : [0430/030806.947396:INFO:NfcAdaptation.cc(460)] NfcAdaptation::InitializeHalDeviceContext: INfc::getService()
04-30 03:08:06.948 398 398 W hwservicemanager: getTransport: Cannot find entry [email protected]::INfc/default in either framework or device manifest.
04-30 03:08:06.952 0 0 I [ 259.032228 / 04-30 03:08:06.947][2] init: Received control message 'interface_start' for '[email protected]::INfc/default' from pid: 398 (/system/bin/hwservicemanager)
04-30 03:08:06.952 0 0 E [ 259.032285 / 04-30 03:08:06.947][2] init: Could not find service hosting interface [email protected]::INfc/default
04-30 03:08:06.952 0 0 I [ 259.032526 / 04-30 03:08:06.947][2] init: Received control message 'interface_start' for '[email protected]::INfc/default' from pid: 398 (/system/bin/hwservicemanager)
04-30 03:08:06.952 0 0 E [ 259.032567 / 04-30 03:08:06.947][2] init: Could not find service hosting interface [email protected]::INfc/default
04-30 03:08:06.953 3534 3534 I ServiceManagement: getService: Trying again for [email protected]::INfc/default...
04-30 03:08:06.957 0 0 I [ 259.033944 / 04-30 03:08:06.951][2] init: Received control message 'interface_start' for '[email protected]::INfc/default' from pid: 398 (/system/bin/hwservicemanager)
04-30 03:08:06.957 0 0 E [ 259.034002 / 04-30 03:08:06.951][2] init: Could not find service hosting interface [email protected]::INfc/default
04-30 03:08:07.953 3534 3534 W ServiceManagement: Waited one second for [email protected]::INfc/default. Waiting another...
04-30 03:08:08.954 3534 3534 W ServiceManagement: Waited one second for [email protected]::INfc/default. Waiting another...
04-30 03:08:09.954 3534 3534 W ServiceManagement: Waited one second for [email protected]::INfc/default. Waiting another...
04-30 03:08:09.966 3610 3634 D InstalledAppProviderSer: insertAppIntoDb com.android.nfc
04-30 03:08:10.955 3534 3534 W ServiceManagement: Waited one second for [email protected]::INfc/default. Waiting another...
04-30 03:08:11.955 3534 3534 W ServiceManagement: Waited one second for [email protected]::INfc/default. Waiting another...
04-30 03:08:12.955 3534 3534 W ServiceManagement: Waited one second for [email protected]::INfc/default. Waiting another...
04-30 03:08:13.955 3534 3534 W ServiceManagement: Waited one second for [email protected]::INfc/default. Waiting another...
04-30 03:08:14.956 3534 3534 W ServiceManagement: Waited one second for [email protected]::INfc/default. Waiting another...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment