1.
2.2修改后的预期错误log
357:I/GeckoConsole( 180): While creating services from category 'profile-after-change', could not create service for entry 'Nfc', contract ID '@mozilla.org/nfc;1'
358:I/GeckoConsole( 180): While creating services from category 'profile-after-change', could not create service for entry 'NfcContentHelper', contract ID '@mozilla.org/nfc/content-helper;1'
(1)
vim xpcom/components/nsCategoryManager.cpp
(2)同2.5,两个manifest 文件有问题。
NfcContentHelper.manifest:7:category profile-after-change NfcContentHelper @mozilla.org/nfc/content-helper;1
gonk/Nfc.manifest:10:category profile-after-change Nfc @mozilla.org/nfc;1
nfc.manifest
推理猜测:
执行了某个js 文件然后log出来了。
就是认为没开启任何东西,他们就建立好连接了。
一开机就有连接好
./adblogcat.sh: line 5: [: nfc: unary operator expected
50:I/nfcd ( 173): halo,nfc ,***** File:system/nfcd/src/NfcService.cpp,****** Line:416, ******* Function:-NfcService::Instance ******
51:I/nfcd ( 173): halo,nfc ,***** File:system/nfcd/src/NfcService.cpp,****** Line:93, ******* Function:-NfcService::NfcService ******
52:I/nfcd ( 173): halo,nfc ,***** File:system/nfcd/src/NfcService.cpp,****** Line:112, ******* Function:-NfcService::initialize ******
63:I/nfcd ( 173): halo,nfc ,***** File:system/nfcd/src/NfcService.cpp,****** Line:104, ******* Function:-NfcService::serviceThreadFunc ******
64:D/nfcd ( 173): void* NfcService::eventLoop(): NFCService started
65:I/nfcd ( 173): halo,nfc ,***** File:system/nfcd/src/NfcService.cpp,****** Line:345, ******* Function:-NfcService::eventLoop ******
365:I/Gecko ( 171): -*- Nfc.js:: Starting Nfc() function
366:I/ ( 171): halo,im 3,********** NfcService::FactoryCreate ************* in gecko/dom/nfc/gonk/NfcService.cpp: File: ../../../gecko/dom/nfc/gonk/NfcService.cpp, Line: 287, Function: FactoryCreate
367:I/ ( 171): halo,nfc ,***NfcConsumer*** File:../../../gecko/ipc/nfc/Nfc.cpp,****** Line:184, ******* Function:NfcConsumer ******
368:I/ ( 171): halo,nfc ,创建服务连接,往nfcd去,***NfcConnector*** File:../../../gecko/ipc/nfc/Nfc.cpp,****** Line:90, ******* Function:Create ******
369:I/ ( 171): halo,nfc ,***NfcConnector*** File:../../../gecko/ipc/nfc/Nfc.cpp,****** Line:154, ******* Function:SetUp ******
370:I/ ( 171): halo,nfc ,***NfcConnector*** File:../../../gecko/ipc/nfc/Nfc.cpp,****** Line:119, ******* Function:CreateAddr ******
371:I/ ( 171): halo,nfc ,***NfcConnector*** File:../../../gecko/ipc/nfc/Nfc.cpp,****** Line:154, ******* Function:SetUp ******
372:D/nfcd ( 173): So