Open AndreasA opened 6 years ago
I have yesterday installed the update to Android 9.0 (and Security updates September 2018) and since then it seems the issue is gone that the NFC tile doesn't work after a reboot. So I am not sure if it is necessary anymore to investigate this but maybe there are other device and software combinations that have that issue still.
hi @AndreasA and thanks for keeping me posted. Unfortunately the NFC tile relies on some not-so clean code: the android frameworks doesn't expose any public method available to third party apps to enable/disable the NFC component and Tiles tries to do so by reflection calling hidden method. This is due to android security and privacy implementation. Even more, now when apps will be targeting API 28 (Android PIE) such hidden methods will be restricted (read more: https://developer.android.com/about/versions/pie/restrictions-non-sdk-interfaces). This means that when Tiles will be updated to target API 28, the NFC tile will be unable to enable/disable the NFC component. If you need more details, please feel free to email me.
Ok. So in the future only the Shortcut option will be available? If so, will at least the status indicator still work correctly?
In that regard with Android Pie I only get to Connected Devices
but not to the Connection settings
@rascarlo OK. So even when using only the Shortcut Option, there is still the issue that the status of the tile is wrong after a reboot. It is always one - no matter if I turn it off or on. Only thing that helps (always, sometimes some steps might not be required) in that case is to
Afterwards it works (changes the state) correctly again.
Hey, it's not only NFC. I got this for all Tiles. VPN and Application has the same issue. After a device-restart the tiles are grayed out and didn't work until they got removed an added again.
Edit: Sorry, I'm using a new Mi10Tpro
Hi,
I think this bug is related to the previously closed bug: NFC tile just stopped working after a reboot The user's description fixes the bug. However, upon another restart it might re-occur. I haven't 100% figured out when it re-occurs and when it doesn't.
I think the issue only happens when using "Change NFC status". However, the app does have the permission for secure settings and it works after the workaround mentioned in the referenced bug. Another workaround seems to be to change in Tiles from "Change NFC Status" to open shortcut before reboot and after reboot change back to "Change NFC Status" (which also results in the tile working correctly afterwards)
I am using a Nokia 7 Plus with the latest Update (Android 8.1.0 with August 2018 security fixes)
Some minor other thing: The tile status doesn't always change immediately but only after closing quick settings bar and reopening it, it will display the correct state (after the change)