Android STEP_COUNTER sensor is null (Samsung Z Flip)

I am currently developing a Application to track Steps.

In order to track steps i am using the following Sensor of the phone: Sensor.TYPE_STEP_COUNTER

This worked fine for all devices I tested it with. But, it started to fail after updating “ONE UI(5.0)” and “ANDROID 13” for the phone(SM-F711N) that worked well.

Phone has FEATURE_SENSOR_STEP_COUNTER but default sensor is null What is Problem? Does anyone know the solution to this problem?

Here’s my logging code and result

Log.e("test","hasSystemFeature - SENSOR-STEP-COUNTER" + packageManager.hasSystemFeature(PackageManager.FEATURE_SENSOR_STEP_COUNTER));

Log.e("test","step sensor list: ${mSensorManager.getSensorList(Sensor.TYPE_STEP_COUNTER)}")
Log.e("test", "step counter default sensor: ${mSensorManager.getDefaultSensor(Sensor.TYPE_STEP_COUNTER)}" )

enter image description here

Hello,

Thank you for reaching Samsung Developer Forum.

Please login and create a ticket at the following link to get more dedicated support:
Support | Dashboard (samsung.com) .

Sincerely.
Ummey
Samsung Developer Relations