简体   繁体   中英

How to programmatically make NFC work when is screen off

Is it possible to enable or force NFC work while screen is off?
There are some ways like downloading a nfc enabler apk or root the device but I want to make it in my application, not using another application.

Is it possible to enable or force NFC work while screen is off?

No, there is no way to do this. NFC is off by design when the screen is off, mainly to safe power.

You can definitely do it provided you have access to the firmware code. Once you enable it in firmware, you need to define your flag in NFCService and enable NFC working even when screen is off. I have seen few devices having NFC working even when powered off but that is card emulation mode. So it is possible.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM