高通 8953 sensor

參考 kba-170714020026_3_how_to_disable_all_sensors:

關閉全部 sensor:

echo 0 > /persist/sensors/sensors_settings

參考 80-N7635-1:

Sensor conf:

adb root
adb remount
adb shell rm /etc/sensors/sensor_def_qcomdev.conf
adb push sensors_def_<oem>.conf /etc/sensors/sensor_def_<oem>.conf
adb shell chmod 644 /etc/sensors/sensor_def_<oem>.conf
The general format of the .conf file entries is:
<Registry ID> <Value> <Version>
where, the Registry ID correspondsto the value defined in vendor
\qcom\proprietary\sensors\dsps\api\sns_reg_api_v02.h
更新 conf 需先刪除 sns.reg
Initial parsing
adb shell rm /<SNS_REG_PATH>/sns.reg
adb shell sync
adb reboot
Using version numbers to update specific registry items
An over
the
air update could change the default registry values by incrementing the file :version
key, and any new/updated items. The n
ext time the sensor service starts, it parses the
configuration file and overwrites the items with version numbers greater than the previously
stored file version number.
To overwrite the I2C address for configuration 0 that was applied from the example in
Section
3.4.1
, increment the file and item version numbers:
:version 0x00010002
:hardware 8974
# SSI SMGR Cfg 0
1903 0x11FFEEDDCCBBAA99 0x0001
0001 # Low UUID
1902 0x9988665544332211 0x00010001 # High UUID
1906 3 0x00010002 # I2C Bus
updating from 12 to 3
Using version numbers to reapply a registry item after every reboot
Version numbers can also be used to reapply a registry item after every
boot. For example, to
zero out all gyroscope calibration data after every reboot, the corresponding registry item version
numbers could be set to 999, while the file version is left at 2 (or some other value less than 999).
Since the item version number is
always greater than the stored file version number, the
gyroscope calibration items are reapplied every time the sensor service starts:
:version 0x00010001
:hardware 8974
306 0 0x00011111 # Gyro X
axis Bias
307 0 0x00011111 # Gyro Y
axis Bias
308 0 0x00011111 # Gyro Z
axis Bias
309 0 0x00011111 # Gyro X
axis Scale
310 0 0x00011111 # Gyro Y
axis Scale
311 0 0x00011111 # Gyro Z
axis Scale
1] Mount root partition as Read
Write:
adb root
adb disable
verity && adb reboot
&&
adb wait-for-device && adb root
adb
shell
su-l
mount-o rw,remount,rw /
exit
exit
2] Push
sensor_def_qcomdev.conf
:
adb push <your_local_conf> /etc/sensors/sensor_def_qcomdev.conf
adb shell chmod 644 /etc/sensors/sensor_def_qcomdev.conf
3] Delete existing registry file:
adb shell rm /persist/sensors/sns.reg
4] Sync and Reboot:
adb shell sync
adb reboot
5] Read
Sensor
Configurations from
Registry file to verify changes:
adb root
adb
shell
sns_regedit_ssi
r
未經允許不得轉載:GoMCU » 高通 8953 sensor

評論 搶沙發

  • 暱稱 (必填)
  • 郵箱 (必填)
  • 網址