1. bp侧adsp编译后生成的文件push到机器里
新建adsp_push文件夹,在该文件夹内新建文件夹adsp以及新建文件adsp_push.bat
将adsp_proc/obj/xxx/xxx/system/etc/ firmware/目录下的全部文件复制到adsp文件夹内(adsp.*)
编辑adsp_push.bat文件:
adb root
adb wait-for-device
adb remount
adb wait-for-device
adb shell mount -o rw,remount /firmware
::adb shell rm /firmware/image/adsp*
adb push adsp\. /firmware/image
::adb shell rm /persist/sensors/sns.reg
adb shell sync
adb wait-for-device
adb reboot
pause
2. json配置文件push到手表里
新建json_file_push文件夹,在该文件夹内新建文件夹json以及新建文件json_push.bat
将修改好的json文件复制到json文件夹内(/vendor/qcom/proprietary / sensors-see/registry/config/msm8937/)
编辑json_push.bat文件:
adb root
adb wait-for-device
adb remount
adb wait-for-device
adb shell rm -rf persist/sensors/registry/registry/
adb shell mkdir persist/sensors/registry/registry
adb push json\. /vendor/etc/sensors/config/
::adb shell sync
adb reboot
pause
3. 打开sensor_hal层的v级别的log打印
新建open_sensors_hal_log文件夹,在该文件夹内新建文件夹open_log以及新建文件open_log.bat
导出手表文件 /system/build.prop至open_log目录下
adb root
adb pull /system/build.prop [open_log文件夹路径]
在build.prop里添加
persist.debug.sensors.hal=v
persist.vendor.debug.sensors.hal=v
persist.vendor.sensors.debug.hal=v
persist.debug.sensors.daemon=v
persist.vendor.debug.sensors.daemon=v
persist.vendor.sensors.debug.daemon=v
编辑open_log.bat文件:
adb root
adb wait-for-device
adb remount
adb push open_log\build.prop /system/
adb shell chmod 644 /system/build.prop
adb shell sync
adb reboot
pause
另一种方法:
open_sensor_hal_v_log.bat
adb root
adb wait-for-device
adb remount
adb shell "echo persist.vendor.sensors.debug.hal=v >> /system/build.prop"
adb shell "echo persist.vendor.sensors.debug.stats=true >> /system/build.prop"
adb shell "echo setprop persist.vendor.sensors.no_audio=true >> /system/build.prop"
adb shell "echo persist.vendor.sensors.debug.ssc_latency=true >> /system/build.prop"
adb shell sync
adb reboot
4.转子马达效果参数修改
新建vib_effect文件夹,在该文件夹内新建文件夹vib以及新建文件vib_effect_push.bat
将修改好的转子马达效果参数xml文件放到vib文件夹内
编辑vib_effect_push.bat文件:
adb root
adb wait-for-device
adb remount
adb wait-for-device
adb push vib\. /odm/etc/vibrator
adb shell sync
adb wait-for-device
adb reboot
pause
文件路径仅供参考
5.跳过开机SIM卡插入阶段
新建文件skip_the_SIM_card_insertion_phase.bat
编辑skip_the_SIM_card_insertion_phase.bat文件:
adb root
adb wait-for-device
adb remount
adb wait-for-device
adb shell am broadcast -a com.xvendornamex.intent.action.BIND_DONE
adb reboot
pause
6.关闭热保护
查看是否有热保护:
adb shell getprop "persist.xvendornamex.thermal_enable"
新建文件夹turn_off_thermal_protection.bat
编辑turn_off_thermal_protection.bat文件:
adb root
adb wait-for-device
adb remount
adb wait-for-device
adb shell setprop "persist.xvendornamex.thermal_enable" false
pause
将false改为true就可以重新唤起热保护