1.打开ProjectConfig与defconfig中CUSTOM_KERNEL_ORIENTATION_SENSOR、CONFIG_CUSTOM_KERNEL_ORIENTATION宏
2.库
--- a/6761_droi/vendor/mediatek/proprietary/hardware/sensor/sensors-1.0/Magnetic.cpp
+++ b/6761_droi/vendor/mediatek/proprietary/hardware/sensor/sensors-1.0/Magnetic.cpp
@@ -58,9 +58,7 @@
#define MAG_TAG_CALI "mag_cali"
#define MAG_BIAS_SAVED_DIR DEFINE_PATH(MAG_TAG_BIAS)
#define MAG_CALI_SAVED_DIR DEFINE_PATH(MAG_TAG_CALI)
-#define MAG_CALIBRATION_IN_SENSORHUB //定义是走系统的库,不定义走提供的库
--- a/vendor/mediatek/proprietary/hardware/sensor/sensors-1.0/SensorContext.cpp
+++ b/vendor/mediatek/proprietary/hardware/sensor/sensors-1.0/SensorContext.cpp
@@ -71,9 +71,7 @@
#undef LOG_TAG
#define LOG_TAG "SensorContext"
-#define MAG_CALIBRATION_IN_SENSORHUB