push.sh 1.3 KB

1234567891011121314151617181920212223242526272829303132
  1. #!/bin/bash
  2. adb.exe push install/bin /usr/
  3. adb.exe push install/etc /
  4. # adb.exe push fota_pangu.conf /etc/fota.conf
  5. # adb.exe push fota.conf /etc/fota.conf
  6. echo "push kvtool"
  7. adb.exe push kvtool /usr/bin
  8. adb.exe shell chmod +x /usr/bin/kvtool
  9. echo "set kv default value"
  10. adb.exe shell kvtool set fota_cldp "cop2"
  11. adb.exe shell kvtool set fota_tourl "flash2://misc"
  12. adb.exe shell kvtool set otaurl "http://occ.t-head.cn/api/image/ota/pull"
  13. adb.exe shell kvtool setint fota_retry 1
  14. adb.exe shell kvtool setint fota_autock 0
  15. adb.exe shell kvtool setint fota_slptm 5000
  16. adb.exe shell kvtool setint fota_rtmout 10000
  17. adb.exe shell kvtool setint fota_wtmout 5000
  18. adb.exe shell kvtool setint fota_finish 0
  19. adb.exe shell kvtool set versionA "6.0.1-20211229.1847-R-D1_Linu"
  20. adb.exe shell kvtool set versionB "6.0.1-20211229.1847-R-D1_Linu"
  21. adb.exe shell kvtool set changelogA "the\ init\ version"
  22. adb.exe shell kvtool set changelogB "the\ init\ version"
  23. adb.exe shell kvtool del cop_version
  24. adb.exe shell kvtool del newchangelog
  25. echo "set nvram default value"
  26. adb.exe shell kvtool nvset device_id "265a24af0440000090e345bc86a3aacb"
  27. adb.exe shell kvtool nvset model "D1_Linux"
  28. adb.exe shell kvtool nvset app_version "6.0.1-20211229.1847-R-D1_Linu"
  29. adb.exe shell kvtool nvset changelog "the\ init\ version"
  30. adb.exe shell sync
  31. echo "push over"