设置里还是没有nfc的设置,虽然说类原生里nfc作用不大,但是强迫症加上偶尔还是会用上。想请教一下解决的办法
正常使用nfc
Device tree: https://github.com/raystef66/device_xiaomi_alioth && https://github.com/raystef66/device_xiaomi_sm8250-common kernel tree:https://github.com/ArrowOS-Devices/android_kernel_xiaomi_alioth vendor tree:https://gitlab.pixelexperience.org/android/vendor-blobs/vendor_xiaomi_alioth && https://gitlab.pixelexperience.org/android/vendor-blobs/vendor_xiaomi_sm8250-common
在build/make中已经打入"NFC: Disable build for AOSP NFC"禁用AOSP的NFC vendor里的opensource nfc使用的是arrow的,packages/app/nfc也替换了arrow的库 framework/base里也打入了“base: Support for third party NFC features and extensions”
但在设置里还是没有nfc的设置,pm list查看了应用列表是有com.android.nfc,但用“创建快捷方式”查了一下活动列表,应用里没有任何活动。 在adb shell中输入svc nfc,会提示“Got a null NfcAdapter, is the system running?” logcat里查不到任何有关nfc的错误信息
同样的设备树,先前在pe和los中是能够使用nfc的,因此感到非常奇怪,跪求大佬的帮助。不胜感激。😭
问题解决,用arrow的system库替换,猜测是sepolicy的缘故