Integrating PN7160 to android12

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Integrating PN7160 to android12

1,361 次查看
wiser
Contributor I

I'm porting PN7160 on our Ti AM6254 android 12 platform.

Refered to AN13189 porting guide.

After it bootup and NFC services start initilization , it will keep receive unknown opcode =0x23 messege endlessly. 

Can you help to analyze any possible problem during integration?

Attachment  are conf files and log from logcat.

 

标签 (1)
标记 (2)
0 项奖励
回复
1 回复

1,345 次查看
wiser
Contributor I

Hi ,

After I took some modification TVDD configs in libnfc_nxp.conf  refered to our supplier FAE's suggestion.

The endless "unknow opcode 0x23" has already  disappeared.

#NXP_EXT_TVDD_CFG=0x02 #orig
NXP_EXT_TVDD_CFG=0x01
# CFG1: 3.3V for both Reader and Card modes
#NXP_EXT_TVDD_CFG_1={20, 02, 0F, 01, A0, 0E, 0B, 31, 01, 01, 31, 00, 00, 00, 01, 00, D0, 0C} #orig
NXP_EXT_TVDD_CFG_1={20, 02, 0F, 01, A0, 0E, 0B, 11, 01, 01, 01, 00, 00, 1E, 11, 00, 50, 0C}
# CFG2: VBAT2 to 5V and 4.7V for both Reader and Card modes
#NXP_EXT_TVDD_CFG_2={20, 02, 0F, 01, A0, 0E, 0B, 11, 01, C2, B2, 00, B2, 1E, 1F, 00, D0, 0C} #orig

 

log is in attachment

But now it has another issue -----  Android 12 NFC toggle switch view is not showed in Settings UI.

I find out there are some error log during NFC initialization may related to this issue.

I've traced sources ,  those error log are called in

packages/apps/Nfc/src/com/android/nfc/NfcService.java 

public NfcService(Application nfcApplication):

Is it related to no-NFC-toggle-ui issue?

Since PN7160 porting on Android 11 has no problem. 

IntentFilter policyFilter = new IntentFilter(DevicePolicyManager.ACTION_DEVICE_POLICY_MANAGER_STATE_CHANGED);
mContext.registerReceiverAsUser(mPolicyReceiver, UserHandle.ALL, policyFilter, null, null);

updatePackageCache();

PackageManager pm = mContext.getPackageManager();
mIsBeamCapable = pm.hasSystemFeature(PackageManager.FEATURE_NFC_BEAM);
mIsNdefPushEnabled =
mPrefs.getBoolean(PREF_NDEF_PUSH_ON, NDEF_PUSH_ON_DEFAULT) &&
mIsBeamCapable;

if (mIsBeamCapable) {
mP2pLinkManager = new P2pLinkManager(
mContext, mHandoverDataParser, mDeviceHost.getDefaultLlcpMiu(),
mDeviceHost.getDefaultLlcpRwSize());
}
enforceBeamShareActivityPolicy(mContext, new UserHandle(mUserId));

 

 

ERROR log:

02-01 09:18:05.238 1457 1457 I com.android.nf: [0201/091805.238572:INFO:NativeNfcManager.cpp(719)] nfcManager_initNativeStruc: enter
02-01 09:18:05.239 1457 1457 I com.android.nf: [0201/091805.239321:INFO:NativeNfcManager.cpp(786)] nfcManager_initNativeStruc: exit
02-01 09:18:05.246 1457 1457 D NfcService: NfcExtnsService not found
02-01 09:18:05.423 1457 1457 E ContextImpl: Tried to access visual service WindowManager from a non-visual Context:com.android.nfc.NfcApplication@7ffea78 W
indowManager should be accessed from Activity or other visual Context. Use an Activity or a Context created with Context#createWindowContext(int, Bundle), which are adjusted to the configuration and visual bounds of an area on screen.
02-01 09:18:05.423 1457 1457 E ContextImpl: java.lang.IllegalAccessException: Tried to access visual service WindowManager from a non-visual Context:com.android.nfc.NfcApplication@7ffea78
02-01 09:18:05.423 1457 1457 E ContextImpl: at com.android.nfc.beam.SendUi.<init>(SendUi.java:210)
02-01 09:18:05.423 1457 1457 E ContextImpl: at com.android.nfc.P2pEventManager.<init>(P2pEventManager.java:65)
02-01 09:18:05.423 1457 1457 E ContextImpl: at com.android.nfc.P2pLinkManager.<init>(P2pLinkManager.java:280)
02-01 09:18:05.423 1457 1457 E ContextImpl: at com.android.nfc.NfcService.<init>(NfcService.java:586)
02-01 09:18:05.423 1457 1457 E ContextImpl: at com.android.nfc.NfcApplication.onCreate(NfcApplication.java:66)
02-01 09:18:05.430 1457 1457 E StrictMode: Tried to access the API:LayoutInflater which needs to have proper configuration from a non-UI Context:com.androi
d.nfc.NfcApplication@7ffea78 The API:LayoutInflater needs a proper configuration. Use UI contexts such as an activity or a context created via createWindowContext(Display, int, Bundle) or createConfigurationContext(Configuration) with a proper configuration.
02-01 09:18:05.430 1457 1457 E StrictMode: java.lang.IllegalAccessException: Tried to access the API:LayoutInflater which needs to have proper configuration from a non-UI Context:com.android.nfc.NfcApplication@7ffea78
02-01 09:18:05.430 1457 1457 E StrictMode: at com.android.nfc.beam.SendUi.<init>(SendUi.java:216)
02-01 09:18:05.430 1457 1457 E StrictMode: at com.android.nfc.P2pEventManager.<init>(P2pEventManager.java:65)
02-01 09:18:05.430 1457 1457 E StrictMode: at com.android.nfc.P2pLinkManager.<init>(P2pLinkManager.java:280)
02-01 09:18:05.430 1457 1457 E StrictMode: at com.android.nfc.NfcService.<init>(NfcService.java:586)
02-01 09:18:05.430 1457 1457 E StrictMode: at com.android.nfc.NfcApplication.onCreate(NfcApplication.java:66)
02-01 09:18:05.439 1457 1457 E StrictMode: Tried to access the API:ViewConfiguration which needs to have proper configuration from a non-UI Context:com.and
roid.nfc.NfcApplication@7ffea78 The API:ViewConfiguration needs a proper configuration. Use UI contexts such as an activity or a context created via createWindowContext(Display, int, Bundle) or createConfigurationContext(Configuration) with a proper configuration.
02-01 09:18:05.439 1457 1457 E StrictMode: java.lang.IllegalAccessException: Tried to access the API:ViewConfiguration which needs to have proper configuration from a non-UI Context:com.android.nfc.NfcApplication@7ffea78
02-01 09:18:05.439 1457 1457 E StrictMode: at com.android.nfc.beam.SendUi.<init>(SendUi.java:217)
02-01 09:18:05.439 1457 1457 E StrictMode: at com.android.nfc.P2pEventManager.<init>(P2pEventManager.java:65)
02-01 09:18:05.439 1457 1457 E StrictMode: at com.android.nfc.P2pLinkManager.<init>(P2pLinkManager.java:280)
02-01 09:18:05.439 1457 1457 E StrictMode: at com.android.nfc.NfcService.<init>(NfcService.java:586)
02-01 09:18:05.439 1457 1457 E StrictMode: at com.android.nfc.NfcApplication.onCreate(NfcApplication.java:66)
02-01 09:18:05.440 1457 1457 E ContextImpl: Tried to access visual service WindowManager from a non-visual Context:com.android.nfc.NfcApplication@7ffea78 W
indowManager should be accessed from Activity or other visual Context. Use an Activity or a Context created with Context#createWindowContext(int, Bundle), which are adjusted to the configuration and visual bounds of an area on screen.
02-01 09:18:05.440 1457 1457 E ContextImpl: java.lang.IllegalAccessException: Tried to access visual service WindowManager from a non-visual Context:com.android.nfc.NfcApplication@7ffea78
02-01 09:18:05.440 1457 1457 E ContextImpl: at com.android.nfc.beam.SendUi.<init>(SendUi.java:217)
02-01 09:18:05.440 1457 1457 E ContextImpl: at com.android.nfc.P2pEventManager.<init>(P2pEventManager.java:65)
02-01 09:18:05.440 1457 1457 E ContextImpl: at com.android.nfc.P2pLinkManager.<init>(P2pLinkManager.java:280)
02-01 09:18:05.440 1457 1457 E ContextImpl: at com.android.nfc.NfcService.<init>(NfcService.java:586)
02-01 09:18:05.440 1457 1457 E ContextImpl: at com.android.nfc.NfcApplication.onCreate(NfcApplication.java:66)
02-01 09:18:05.490 1457 1457 E StrictMode: Tried to access the API:ViewConfiguration which needs to have proper configuration from a non-UI Context:com.and
roid.nfc.NfcApplication@7ffea78 The API:ViewConfiguration needs a proper configuration. Use UI contexts such as an activity or a context created via createWindowContext(Display, int, Bundle) or createConfigurationContext(Configuration) with a proper configuration.
02-01 09:18:05.490 1457 1457 E StrictMode: java.lang.IllegalAccessException: Tried to access the API:ViewConfiguration which needs to have proper configuration from a non-UI Context:com.android.nfc.NfcApplication@7ffea78
02-01 09:18:05.490 1457 1457 E StrictMode: at com.android.nfc.beam.SendUi.<init>(SendUi.java:217)
02-01 09:18:05.490 1457 1457 E StrictMode: at com.android.nfc.P2pEventManager.<init>(P2pEventManager.java:65)
02-01 09:18:05.490 1457 1457 E StrictMode: at com.android.nfc.P2pLinkManager.<init>(P2pLinkManager.java:280)
02-01 09:18:05.490 1457 1457 E StrictMode: at com.android.nfc.NfcService.<init>(NfcService.java:586)
02-01 09:18:05.490 1457 1457 E StrictMode: at com.android.nfc.NfcApplication.onCreate(NfcApplication.java:66)
02-01 09:18:05.506 1457 1457 E StrictMode: Tried to access the API:ViewConfiguration which needs to have proper configuration from a non-UI Context:com.and
roid.nfc.NfcApplication@7ffea78 The API:ViewConfiguration needs a proper configuration. Use UI contexts such as an activity or a context created via createWindowContext(Display, int, Bundle) or createConfigurationContext(Configuration) with a proper configuration.
02-01 09:18:05.506 1457 1457 E StrictMode: java.lang.IllegalAccessException: Tried to access the API:ViewConfiguration which needs to have proper configuration from a non-UI Context:com.android.nfc.NfcApplication@7ffea78
02-01 09:18:05.506 1457 1457 E StrictMode: at com.android.nfc.beam.SendUi.<init>(SendUi.java:217)
02-01 09:18:05.506 1457 1457 E StrictMode: at com.android.nfc.P2pEventManager.<init>(P2pEventManager.java:65)
02-01 09:18:05.506 1457 1457 E StrictMode: at com.android.nfc.P2pLinkManager.<init>(P2pLinkManager.java:280)
02-01 09:18:05.506 1457 1457 E StrictMode: at com.android.nfc.NfcService.<init>(NfcService.java:586)
02-01 09:18:05.506 1457 1457 E StrictMode: at com.android.nfc.NfcApplication.onCreate(NfcApplication.java:66)
02-01 09:18:05.522 1457 1457 E StrictMode: Tried to access the API:ViewConfiguration which needs to have proper configuration from a non-UI Context:com.and
roid.nfc.NfcApplication@7ffea78 The API:ViewConfiguration needs a proper configuration. Use UI contexts such as an activity or a context created via createWindowContext(Display, int, Bundle) or createConfigurationContext(Configuration) with a proper configuration.
02-01 09:18:05.522 1457 1457 E StrictMode: java.lang.IllegalAccessException: Tried to access the API:ViewConfiguration which needs to have proper configuration from a non-UI Context:com.android.nfc.NfcApplication@7ffea78
02-01 09:18:05.522 1457 1457 E StrictMode: at com.android.nfc.beam.SendUi.<init>(SendUi.java:217)
02-01 09:18:05.522 1457 1457 E StrictMode: at com.android.nfc.P2pEventManager.<init>(P2pEventManager.java:65)
02-01 09:18:05.522 1457 1457 E StrictMode: at com.android.nfc.P2pLinkManager.<init>(P2pLinkManager.java:280)
02-01 09:18:05.522 1457 1457 E StrictMode: at com.android.nfc.NfcService.<init>(NfcService.java:586)
02-01 09:18:05.522 1457 1457 E StrictMode: at com.android.nfc.NfcApplication.onCreate(NfcApplication.java:66)
02-01 09:18:05.588 1457 1457 E StrictMode: Tried to access the API:ViewConfiguration which needs to have proper configuration from a non-UI Context:com.and
roid.nfc.NfcApplication@7ffea78 The API:ViewConfiguration needs a proper configuration. Use UI contexts such as an activity or a context created via createWindowContext(Display, int, Bundle) or createConfigurationContext(Configuration) with a proper configuration.
02-01 09:18:05.588 1457 1457 E StrictMode: java.lang.IllegalAccessException: Tried to access the API:ViewConfiguration which needs to have proper configuration from a non-UI Context:com.android.nfc.NfcApplication@7ffea78
02-01 09:18:05.588 1457 1457 E StrictMode: at com.android.nfc.beam.SendUi.<init>(SendUi.java:217)
02-01 09:18:05.588 1457 1457 E StrictMode: at com.android.nfc.P2pEventManager.<init>(P2pEventManager.java:65)
02-01 09:18:05.588 1457 1457 E StrictMode: at com.android.nfc.P2pLinkManager.<init>(P2pLinkManager.java:280)
02-01 09:18:05.588 1457 1457 E StrictMode: at com.android.nfc.NfcService.<init>(NfcService.java:586)
02-01 09:18:05.588 1457 1457 E StrictMode: at com.android.nfc.NfcApplication.onCreate(NfcApplication.java:66)
02-01 09:18:05.590 1457 1457 E StrictMode: Tried to access the API:ViewConfiguration which needs to have proper configuration from a non-UI Context:com.and
roid.nfc.NfcApplication@7ffea78 The API:ViewConfiguration needs a proper configuration. Use UI contexts such as an activity or a context created via createWindowContext(Display, int, Bundle) or createConfigurationContext(Configuration) with a proper configuration.
02-01 09:18:05.590 1457 1457 E StrictMode: java.lang.IllegalAccessException: Tried to access the API:ViewConfiguration which needs to have proper configuration from a non-UI Context:com.android.nfc.NfcApplication@7ffea78
02-01 09:18:05.590 1457 1457 E StrictMode: at com.android.nfc.beam.SendUi.<init>(SendUi.java:217)
02-01 09:18:05.590 1457 1457 E StrictMode: at com.android.nfc.P2pEventManager.<init>(P2pEventManager.java:65)
02-01 09:18:05.590 1457 1457 E StrictMode: at com.android.nfc.P2pLinkManager.<init>(P2pLinkManager.java:280)
02-01 09:18:05.590 1457 1457 E StrictMode: at com.android.nfc.NfcService.<init>(NfcService.java:586)
02-01 09:18:05.590 1457 1457 E StrictMode: at com.android.nfc.NfcApplication.onCreate(NfcApplication.java:66)
02-01 09:18:05.593 1457 1457 E StrictMode: Tried to access the API:ViewConfiguration which needs to have proper configuration from a non-UI Context:com.and
roid.nfc.NfcApplication@7ffea78 The API:ViewConfiguration needs a proper configuration. Use UI contexts such as an activity or a context created via createWindowContext(Display, int, Bundle) or createConfigurationContext(Configuration) with a proper configuration.
02-01 09:18:05.593 1457 1457 E StrictMode: java.lang.IllegalAccessException: Tried to access the API:ViewConfiguration which needs to have proper configuration from a non-UI Context:com.android.nfc.NfcApplication@7ffea78
02-01 09:18:05.593 1457 1457 E StrictMode: at com.android.nfc.beam.SendUi.<init>(SendUi.java:217)
02-01 09:18:05.593 1457 1457 E StrictMode: at com.android.nfc.P2pEventManager.<init>(P2pEventManager.java:65)
02-01 09:18:05.593 1457 1457 E StrictMode: at com.android.nfc.P2pLinkManager.<init>(P2pLinkManager.java:280)
02-01 09:18:05.593 1457 1457 E StrictMode: at com.android.nfc.NfcService.<init>(NfcService.java:586)
02-01 09:18:05.593 1457 1457 E StrictMode: at com.android.nfc.NfcApplication.onCreate(NfcApplication.java:66)
02-01 09:18:05.595 1457 1457 E StrictMode: Tried to access the API:ViewConfiguration which needs to have proper configuration from a non-UI Context:com.and
roid.nfc.NfcApplication@7ffea78 The API:ViewConfiguration needs a proper configuration. Use UI contexts such as an activity or a context created via createWindowContext(Display, int, Bundle) or createConfigurationContext(Configuration) with a proper configuration.
02-01 09:18:05.595 1457 1457 E StrictMode: java.lang.IllegalAccessException: Tried to access the API:ViewConfiguration which needs to have proper configuration from a non-UI Context:com.android.nfc.NfcApplication@7ffea78
02-01 09:18:05.595 1457 1457 E StrictMode: at com.android.nfc.beam.SendUi.<init>(SendUi.java:217)
02-01 09:18:05.595 1457 1457 E StrictMode: at com.android.nfc.P2pEventManager.<init>(P2pEventManager.java:65)
02-01 09:18:05.595 1457 1457 E StrictMode: at com.android.nfc.P2pLinkManager.<init>(P2pLinkManager.java:280)
02-01 09:18:05.595 1457 1457 E StrictMode: at com.android.nfc.NfcService.<init>(NfcService.java:586)
02-01 09:18:05.595 1457 1457 E StrictMode: at com.android.nfc.NfcApplication.onCreate(NfcApplication.java:66)
02-01 09:18:05.605 1457 1457 E StrictMode: Tried to access the API:ViewConfiguration which needs to have proper configuration from a non-UI Context:com.and
roid.nfc.NfcApplication@7ffea78 The API:ViewConfiguration needs a proper configuration. Use UI contexts such as an activity or a context created via createWindowContext(Display, int, Bundle) or createConfigurationContext(Configuration) with a proper configuration.
02-01 09:18:05.605 1457 1457 E StrictMode: java.lang.IllegalAccessException: Tried to access the API:ViewConfiguration which needs to have proper configuration from a non-UI Context:com.android.nfc.NfcApplication@7ffea78
02-01 09:18:05.605 1457 1457 E StrictMode: at com.android.nfc.beam.SendUi.<init>(SendUi.java:217)
02-01 09:18:05.605 1457 1457 E StrictMode: at com.android.nfc.P2pEventManager.<init>(P2pEventManager.java:65)
02-01 09:18:05.605 1457 1457 E StrictMode: at com.android.nfc.P2pLinkManager.<init>(P2pLinkManager.java:280)
02-01 09:18:05.605 1457 1457 E StrictMode: at com.android.nfc.NfcService.<init>(NfcService.java:586)
02-01 09:18:05.605 1457 1457 E StrictMode: at com.android.nfc.NfcApplication.onCreate(NfcApplication.java:66)
02-01 09:18:05.608 1457 1457 E StrictMode: Tried to access the API:ViewConfiguration which needs to have proper configuration from a non-UI Context:com.and
roid.nfc.NfcApplication@7ffea78 The API:ViewConfiguration needs a proper configuration. Use UI contexts such as an activity or a context created via createWindowContext(Display, int, Bundle) or createConfigurationContext(Configuration) with a proper configuration.
02-01 09:18:05.608 1457 1457 E StrictMode: java.lang.IllegalAccessException: Tried to access the API:ViewConfiguration which needs to have proper configuration from a non-UI Context:com.android.nfc.NfcApplication@7ffea78
02-01 09:18:05.608 1457 1457 E StrictMode: at com.android.nfc.beam.SendUi.<init>(SendUi.java:217)
02-01 09:18:05.608 1457 1457 E StrictMode: at com.android.nfc.P2pEventManager.<init>(P2pEventManager.java:65)
02-01 09:18:05.608 1457 1457 E StrictMode: at com.android.nfc.P2pLinkManager.<init>(P2pLinkManager.java:280)
02-01 09:18:05.608 1457 1457 E StrictMode: at com.android.nfc.NfcService.<init>(NfcService.java:586)
02-01 09:18:05.608 1457 1457 E StrictMode: at com.android.nfc.NfcApplication.onCreate(NfcApplication.java:66)
02-01 09:18:05.610 1457 1457 E StrictMode: Tried to access the API:ViewConfiguration which needs to have proper configuration from a non-UI Context:com.and
roid.nfc.NfcApplication@7ffea78 The API:ViewConfiguration needs a proper configuration. Use UI contexts such as an activity or a context created via createWindowContext(Display, int, Bundle) or createConfigurationContext(Configuration) with a proper configuration.
02-01 09:18:05.610 1457 1457 E StrictMode: java.lang.IllegalAccessException: Tried to access the API:ViewConfiguration which needs to have proper configuration from a non-UI Context:com.android.nfc.NfcApplication@7ffea78
02-01 09:18:05.610 1457 1457 E StrictMode: at com.android.nfc.beam.SendUi.<init>(SendUi.java:217)
02-01 09:18:05.610 1457 1457 E StrictMode: at com.android.nfc.P2pEventManager.<init>(P2pEventManager.java:65)
02-01 09:18:05.610 1457 1457 E StrictMode: at com.android.nfc.P2pLinkManager.<init>(P2pLinkManager.java:280)
02-01 09:18:05.610 1457 1457 E StrictMode: at com.android.nfc.NfcService.<init>(NfcService.java:586)
02-01 09:18:05.610 1457 1457 E StrictMode: at com.android.nfc.NfcApplication.onCreate(NfcApplication.java:66)
02-01 09:18:05.634 1457 1457 E StrictMode: Tried to access the API:ViewConfiguration which needs to have proper configuration from a non-UI Context:com.and
roid.nfc.NfcApplication@7ffea78 The API:ViewConfiguration needs a proper configuration. Use UI contexts such as an activity or a context created via createWindowContext(Display, int, Bundle) or createConfigurationContext(Configuration) with a proper configuration.
02-01 09:18:05.634 1457 1457 E StrictMode: java.lang.IllegalAccessException: Tried to access the API:ViewConfiguration which needs to have proper configuration from a non-UI Context:com.android.nfc.NfcApplication@7ffea78
02-01 09:18:05.634 1457 1457 E StrictMode: at com.android.nfc.beam.SendUi.<init>(SendUi.java:312)
02-01 09:18:05.634 1457 1457 E StrictMode: at com.android.nfc.P2pEventManager.<init>(P2pEventManager.java:65)
02-01 09:18:05.634 1457 1457 E StrictMode: at com.android.nfc.P2pLinkManager.<init>(P2pLinkManager.java:280)
02-01 09:18:05.634 1457 1457 E StrictMode: at com.android.nfc.NfcService.<init>(NfcService.java:586)
02-01 09:18:05.634 1457 1457 E StrictMode: at com.android.nfc.NfcApplication.onCreate(NfcApplication.java:66)
02-01 09:18:05.640 1457 1457 E StrictMode: Tried to access the API:ViewConfiguration which needs to have proper configuration from a non-UI Context:com.and
roid.nfc.NfcApplication@7ffea78 The API:ViewConfiguration needs a proper configuration. Use UI contexts such as an activity or a context created via createWindowContext(Display, int, Bundle) or createConfigurationContext(Configuration) with a proper configuration.
02-01 09:18:05.640 1457 1457 E StrictMode: java.lang.IllegalAccessException: Tried to access the API:ViewConfiguration which needs to have proper configuration from a non-UI Context:com.android.nfc.NfcApplication@7ffea78
02-01 09:18:05.640 1457 1457 E StrictMode: at com.android.nfc.beam.SendUi.<init>(SendUi.java:312)
02-01 09:18:05.640 1457 1457 E StrictMode: at com.android.nfc.P2pEventManager.<init>(P2pEventManager.java:65)
02-01 09:18:05.640 1457 1457 E StrictMode: at com.android.nfc.P2pLinkManager.<init>(P2pLinkManager.java:280)
02-01 09:18:05.640 1457 1457 E StrictMode: at com.android.nfc.NfcService.<init>(NfcService.java:586)
02-01 09:18:05.640 1457 1457 E StrictMode: at com.android.nfc.NfcApplication.onCreate(NfcApplication.java:66)
02-01 09:18:05.644 1457 1457 E StrictMode: Tried to access the API:ViewConfiguration which needs to have proper configuration from a non-UI Context:com.and
roid.nfc.NfcApplication@7ffea78 The API:ViewConfiguration needs a proper configuration. Use UI contexts such as an activity or a context created via createWindowContext(Display, int, Bundle) or createConfigurationContext(Configuration) with a proper configuration.
02-01 09:18:05.644 1457 1457 E StrictMode: java.lang.IllegalAccessException: Tried to access the API:ViewConfiguration which needs to have proper configuration from a non-UI Context:com.android.nfc.NfcApplication@7ffea78
02-01 09:18:05.644 1457 1457 E StrictMode: at com.android.nfc.beam.SendUi.<init>(SendUi.java:312)
02-01 09:18:05.644 1457 1457 E StrictMode: at com.android.nfc.P2pEventManager.<init>(P2pEventManager.java:65)
02-01 09:18:05.644 1457 1457 E StrictMode: at com.android.nfc.P2pLinkManager.<init>(P2pLinkManager.java:280)
02-01 09:18:05.644 1457 1457 E StrictMode: at com.android.nfc.NfcService.<init>(NfcService.java:586)
02-01 09:18:05.644 1457 1457 E StrictMode: at com.android.nfc.NfcApplication.onCreate(NfcApplication.java:66)
02-01 09:18:05.650 1457 1457 E StrictMode: Tried to access the API:LayoutInflater which needs to have proper configuration from a non-UI Context:com.androi
d.nfc.NfcApplication@7ffea78 The API:LayoutInflater needs a proper configuration. Use UI contexts such as an activity or a context created via createWindowContext(Display, int, Bundle) or createConfigurationContext(Configuration) with a proper configuration.
02-01 09:18:05.650 1457 1457 E StrictMode: java.lang.IllegalAccessException: Tried to access the API:LayoutInflater which needs to have proper configuration from a non-UI Context:com.android.nfc.NfcApplication@7ffea78
02-01 09:18:05.650 1457 1457 E StrictMode: at com.android.nfc.beam.SendUi.<init>(SendUi.java:312)
02-01 09:18:05.650 1457 1457 E StrictMode: at com.android.nfc.P2pEventManager.<init>(P2pEventManager.java:65)
02-01 09:18:05.650 1457 1457 E StrictMode: at com.android.nfc.P2pLinkManager.<init>(P2pLinkManager.java:280)
02-01 09:18:05.650 1457 1457 E StrictMode: at com.android.nfc.NfcService.<init>(NfcService.java:586)
02-01 09:18:05.650 1457 1457 E StrictMode: at com.android.nfc.NfcApplication.onCreate(NfcApplication.java:66)
02-01 09:18:05.653 1457 1457 E StrictMode: Tried to access the API:ViewConfiguration which needs to have proper configuration from a non-UI Context:com.and
roid.nfc.NfcApplication@7ffea78 The API:ViewConfiguration needs a proper configuration. Use UI contexts such as an activity or a context created via createWindowContext(Display, int, Bundle) or createConfigurationContext(Configuration) with a proper configuration.
02-01 09:18:05.653 1457 1457 E StrictMode: java.lang.IllegalAccessException: Tried to access the API:ViewConfiguration which needs to have proper configuration from a non-UI Context:com.android.nfc.NfcApplication@7ffea78
02-01 09:18:05.653 1457 1457 E StrictMode: at com.android.nfc.beam.SendUi.<init>(SendUi.java:312)
02-01 09:18:05.653 1457 1457 E StrictMode: at com.android.nfc.P2pEventManager.<init>(P2pEventManager.java:65)
02-01 09:18:05.653 1457 1457 E StrictMode: at com.android.nfc.P2pLinkManager.<init>(P2pLinkManager.java:280)
02-01 09:18:05.653 1457 1457 E StrictMode: at com.android.nfc.NfcService.<init>(NfcService.java:586)
02-01 09:18:05.653 1457 1457 E StrictMode: at com.android.nfc.NfcApplication.onCreate(NfcApplication.java:66)
02-01 09:18:05.757 1457 1457 D RegisteredNfcFServicesCache: Dynamic System Code, NFCID2 file does not exist.
02-01 09:18:05.759 1457 1457 D RegisteredNfcFServicesCache: Service unchanged, not updating
02-01 09:18:05.760 1457 1457 I com.android.nf: [0201/091805.760598:INFO:RoutingManager.cpp(1054)] setNfcSecure NfcService 0
02-01 09:18:05.773 1457 1610 D NfcService: checking on firmware download
02-01 09:18:05.774 1457 1610 D NfcService: NFC is on. Doing normal stuff
02-01 09:18:05.774 1457 1610 I NfcService: Enabling NFC

0 项奖励
回复