Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NFC not working on Xiaomi 12 Pro MIUI 14 #242

Closed
Donaldcwl opened this issue Feb 12, 2023 · 7 comments · Fixed by #250
Closed

NFC not working on Xiaomi 12 Pro MIUI 14 #242

Donaldcwl opened this issue Feb 12, 2023 · 7 comments · Fixed by #250
Assignees
Labels
bug/limitation elsewhere Bug/limitation in the ROM or another project

Comments

@Donaldcwl
Copy link

After upgrading to MIUI 14, the NFC crash on boot and NFC is not working. I can only use NFC after disabling BCR in Magisk followed by a reboot.

here is the error trace:
Screenshot_2023-02-12-21-04-25-567_com miui bugreport

Appreciate if anyone can help with this. Thanks

@chenxiaolong
Copy link
Owner

Hmm, I have no idea what might be causing this. BCR's Magisk module doesn't do anything more than installing it as a system app (it doesn't modify other apps or components). BCR doesn't even run in the background until a phone call begins.

@chenxiaolong chenxiaolong self-assigned this Feb 12, 2023
@Donaldcwl
Copy link
Author

I guess there my be some conflict in my Magisk.
I would like to reinstall the BCR. May I know if there is any way to uninstall the BCR from Magisk without residual files/config? (because the config is still there after I reinstall it)

@chenxiaolong
Copy link
Owner

To fully remove everything, all you have to do is clear BCR's data in Android's Settings before removing the module. BCR doesn't put files anywhere else (besides your recordings directory).

@Donaldcwl
Copy link
Author

No luck :( Don't know why NFC still not working when BCR is enabled in Magisk.

@chenxiaolong
Copy link
Owner

Does it only happen if BCR is enabled in Magisk or does NFC break whenever any module is enabled?

@Donaldcwl
Copy link
Author

Donaldcwl commented Feb 14, 2023

Thanks for your help.
It only happens when BCR is enabled in Magisk.

My other modules are Shamiko and Universal SafetyNet Fix. NFC works regardless of whether they are enabled or disabled.

@chenxiaolong
Copy link
Owner

If you're able to grab the full logcat immediately after a reboot (once with BCR and once without), I can try to take a look, but I don't really have any more ideas.

@chenxiaolong chenxiaolong mentioned this issue Feb 15, 2023
chenxiaolong added a commit that referenced this issue Feb 22, 2023
Magisk currently has a known issue where its mirror mount points do not
work correctly with overlayfs. Files from the overlayfs lowerdirs may
no longer be accessible.

On MIUI, this is a problem because /system/etc/permissions is an
overlayfs mount and one of the lowerdirs is
/product/pango/system/etc/permissions. One file underneath that path is
com.nxp.nfc.nq.xml, which if missing, breaks NFC.

Fixes: #242
Fixes: #246

Signed-off-by: Andrew Gunnerson <[email protected]>
@chenxiaolong chenxiaolong added the bug/limitation elsewhere Bug/limitation in the ROM or another project label Feb 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug/limitation elsewhere Bug/limitation in the ROM or another project
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants