fakemanoan / LineageOS-Releases

LineageOS releases for devices.
63 stars 2 forks source link

NFC does not work after restarting the phone when NFC was disabled before the restart #83

Open atithi02 opened 5 months ago

atithi02 commented 5 months ago

Build used

lineage-19.1-20240416-UNOFFICIAL-zerofltexx.zip

Model number

SM-G920F

Describe the bug

If NFC was turned off when you restarted or turned off your phone, you cannot turn NFC back on. The February and March 2024 versions behaved the same way.

To Reproduce

  1. Go to: Settings -> Connected devices -> Connection preferences -> NFC
  2. Turn off the "Use NFC"
  3. Wait until NFC is stopped and restart the phone
  4. Go to: Settings -> Connected devices -> Connection preferences -> NFC
  5. Try turn on the "Use NFC"

Any extra info

Workaround: NFC will be turned on when we restart the phone after trying to turn it on, and from then on it works without any problems.

atithi02 commented 4 months ago

The same problem occurs in Lineage 20. I tested using lineage-20.0-20240517-UNOFFICIAL-zerofltexx.zip .

fakemanoan commented 3 months ago

An additional detail: this behaviour does NOT occur on Android 11 and earlier.

xiaoniaoawa commented 2 months ago

An additional detail: this behaviour does NOT occur on Android 11 and earlier.

I found a link that show why: Fix for unstable NFC connection on LineageOS So I think maybe just happened on all A13+ LineageOS devices?

PS: I also tested Lineage 21 lineage-21.0-20240705-nightly-polaris-signed.zip on Polaris(MI MIX 2S), not work too.

fakemanoan commented 2 months ago

This could explain it. However we use prebuilt NFC from Oreo because the open source Samsung NFC doesnt work with our device. I'm thinking it is more related to do with changes to the backend in Android introduced with 12+ that also broke GPS and other things for us.

Will require more debugging for sure.