A workaround is provided by Marc Schwarzkopf at https://quality.embarcadero.com/browse/RSP-35804
For Delphi 10.4 you find
Androidapi.JNI.Location.pas in the directory C:\Program Files (x86)\Embarcadero\Studio\21.0\source\rtl\android
System.Android.Sensors.pas in the directory C:\Program Files (x86)\Embarcadero\Studio\21.0\source\rtl\common
Remember to build and check that both modified files are compiled into the following directories:
C:\Program Files (x86)\Embarcadero\Studio\21.0\lib\android\debug
C:\Program Files (x86)\Embarcadero\Studio\21.0\lib\android\release
C:\Program Files (x86)\Embarcadero\Studio\21.0\lib\android64\debug
C:\Program Files (x86)\Embarcadero\Studio\21.0\lib\android64\release
If not, you can copy the sourcefiles into those directories, which I had to do, and it works for me on Android 12 too.