Skip to content

Commit

Permalink
hotdog: Add odm/etc/sensor/sensor_config.json
Browse files Browse the repository at this point in the history
Change-Id: I7e81c88acbb8a87dfebb801be5cb35a1a23a142b
  • Loading branch information
luk1337 committed Oct 17, 2022
1 parent 37ec307 commit 2930342
Show file tree
Hide file tree
Showing 2 changed files with 79 additions and 0 deletions.
1 change: 1 addition & 0 deletions hotdog/hotdog-vendor.mk
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ PRODUCT_COPY_FILES += \
vendor/oneplus/hotdog/proprietary/odm/etc/acdbdata/Headset_cal.acdb:$(TARGET_COPY_OUT_ODM)/etc/acdbdata/Headset_cal.acdb \
vendor/oneplus/hotdog/proprietary/odm/etc/acdbdata/Speaker_cal.acdb:$(TARGET_COPY_OUT_ODM)/etc/acdbdata/Speaker_cal.acdb \
vendor/oneplus/hotdog/proprietary/odm/etc/camera/vidhance_calibration:$(TARGET_COPY_OUT_ODM)/etc/camera/vidhance_calibration \
vendor/oneplus/hotdog/proprietary/odm/etc/sensor/sensor_config.json:$(TARGET_COPY_OUT_ODM)/etc/sensor/sensor_config.json \
vendor/oneplus/hotdog/proprietary/odm/firmware/100ms_RTP_166Hz.bin:$(TARGET_COPY_OUT_ODM)/firmware/100ms_RTP_166Hz.bin \
vendor/oneplus/hotdog/proprietary/odm/firmware/100ms_RTP_170Hz.bin:$(TARGET_COPY_OUT_ODM)/firmware/100ms_RTP_170Hz.bin \
vendor/oneplus/hotdog/proprietary/odm/firmware/100ms_RTP_174Hz.bin:$(TARGET_COPY_OUT_ODM)/firmware/100ms_RTP_174Hz.bin \
Expand Down
78 changes: 78 additions & 0 deletions hotdog/proprietary/odm/etc/sensor/sensor_config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,78 @@
{
"19830":{
"platform_config":{
"sensor_arch":"qcom_sensor_see"
},
"sensor_config":{
"android.sensor.accelerometer":{
"type":1,
"support":"true",
"module":"lsm6dsm",
"lsm6dsm":{
"mode":"batch_cali|factory_cali",
"offset_x": 0.0,
"offset_y": 0.0,
"offset_z": 0.0
}
},
"android.sensor.magnetic_field":{
"type":2,
"support":"true",
"module":"mmc5603x",
"mmc5603x":{
"mode":"batch_cali"
}
},
"android.sensor.gyroscope":{
"type":4,
"support":"true",
"module":"lsm6dsm",
"lsm6dsm":{
"mode":"batch_cali|factory_cali",
"radian_threshold":0.05,
"offset_x": 0.0,
"offset_y": 0.0,
"offset_z": 0.0
}
},
"android.sensor.light":{
"type":5,
"support":"true"
},
"qti.sensor.wise_light":{
"type":33171103,
"support":"true",
"module":"OPLUS",
"OPLUS":{
"mode":"oled_light_leak|factory_cali",
"cali_para": 1000,
"R_MAX": 0,
"G_MAX": 0,
"B_MAX": 0,
"W_MAX": 0
}
},
"android.sensor.proximity":{
"type":8,
"support":"true"
},
"oneplus.sensor.ultrasound.proximity":{
"type":33171998,
"support":"true"
},
"android.sensor.step_counter":{
"type":19,
"support":"true",
"module":"module_ignore",
"module_ignore":{
"mode":"virtual_sensor"
}
},
"qti.sensor.sensor_logger":{
"type":33171024,
"support":"true",
"module":"module_ignore"
}
}
}
}

0 comments on commit 2930342

Please sign in to comment.