Input.acceleration on Android 12. Sometimes doesn't work

I noticed that on my Samsung S21 (Android 12) device, Input.acceleration sometimes doesn’t work (returns 0). Approximately every second launch of the application is problematic.

Minimizing/maximizing the application usually helps and Input.acceleration starts working.

I tested on an empty project on different versions of Unity 2019.2.12f and 2019.4.37f. The result is the same.
At the same time, on older devices like Nexus 7, Nexus 9, NVIDIA Shield - everything works fine.

I tried updating Samsung S21 from basement version “G991U1UES5BVA6” to “G991U1UES5BVC1”, but that did not solve the problem.

My temporary solution is to use a plugin:
https://github.com/kshoji/Unity-Android-Sensor-Plugin

I use this call:

plugin.Call("startSensorListening", "accelerometer");

And after it, Unity Input.acceleration starts working.

A temporary solution works, but I want to solve this problem without additional plugins.

P.S. Also I found a similar problem from another developer:

Thank you in advance.

I’m having that problem on my Moto G52(Android 12). When i use “Input.gyro.enabled= true”, my controls that uses “Input.acceleration” works every time but if i use “Input.gyro.enabled=false” controls sometimes wont work, minimizing and maximizing method works sometimes. So for this device enabling the gyro solve the problem 100%, but i want the app working on devices without gyro and I don’t have any to test.
I believe enabling the gyro it’s just activating the sensors, similar to the “pluginCall” line because accordingly to Unity Documentation “Input.acceleration” uses accelerometer and not gyro.
I’m working on that, if nothing works I’ll try this plugin, I’ll let you know if i got any good result.

Edit: Actually I’ve read about accelerometer working in conjunction with gyro. So maybe on Android 12, if the device have gyro the app will try to use gyro+accelerometer and gyro sometimes it’s not enabled by default.