我有 aosp 10 源代码,但是当我通过闪烁运行构建映像时,我无法在连接的设备中找到 NFC。
如何检查设备中集成的 NFC 芯片?是否有任何命令可以检查终端?
根据设备制造商,他们表示他们集成了 NFC 芯片。但是如何检查它是否已经集成呢?
我检查了以下命令:
console:/ $ dumpsys nfc
Can't find service: nfc
console:/ $
console:/ $ service call nfc 6
service: Service nfc does not exist
10|console:/ $
30|console:/ $ svc nfc enable
[ 435.500512] type=1400 audit(1661508604.455:14): avc: denied { getattr } for comm="webview_zygote" path="/data/data/com.android.webview" dev1
[ 435.618730] type=1400 audit(1661509016.541:15): avc: denied { read } for comm="app_process" name="u:object_r:device_config_runtime_native_b1
[ 435.647432] type=1400 audit(1661509016.541:15): avc: denied { read } for comm="app_process" name="u:object_r:device_config_runtime_native_b1
[ 435.672860] type=1400 audit(1661509016.541:16): avc: denied { open } for comm="app_process" path="/dev/__properties__/u:object_r:device_con1
[ 435.731763] type=1400 audit(1661509016.541:16): avc: denied { open } for comm="app_process" path="/dev/__properties__/u:object_r:device_con1
[ 435.762134] type=1400 audit(1661509016.541:17): avc: denied { getattr } for comm="app_process" path="/dev/__properties__/u:object_r:device_1
Got a null NfcAdapter, is the system running?
console:/ $ [ 435.937225] type=1400 audit(1661509016.541:17): avc: denied { getattr } for comm="app_process" path="/dev/__properties__/u:obje1
[ 435.971312] type=1400 audit(1661509016.541:18): avc: denied { map } for comm="app_process" path="/dev/__properties__/u:object_r:device_conf1
^C
130|console:/ $ svc nfc disable
Got a null NfcAdapter, is the system running?
console:/ $
我还检查了设备/内核/nfc。
如何在“设置”中启用 NFC 在已连接设备中显示?或者如何检查设备中是否有 NFC 芯片?