LSM303C magnetometer automatic calibration not working in Android
I use a LSM303C magnetometer sensor on an Android platform.
Sensor works fine, however automatic calibration (hard and soft iron) does not work. I checked it using an Android app displaying magnetic field vector in 2D, for both calibrated and uncalibrated data.
With my platform (Android 5.0 and ST MEMS driver + Android framework), calibrated and uncalibrated data are the same (red and blue text boxes), so it seems that there is no calibration algorithm running :

The same app tested on a Samsung S7 show calibrated and uncalibrated data after a full 360° rotation on Z axis, uncalibrated circle (red) is correctly shifted to calibrated circle (blue) :

How do I activate calibration on Android for LSM303C device ? ST framework code source mention an obscure STMagCalibration_API (which should do the job I guess), however i'm unable to find any source code for this library ...
Any Advice ?
