166 lines
4.5 KiB
Markdown
166 lines
4.5 KiB
Markdown
---
|
|
tags:
|
|
aliases:
|
|
date: 2021-05-12
|
|
time: 00:00:00
|
|
description:
|
|
---
|
|
|
|
### Build
|
|
- [Kong Build Instructions (CI Team)](https://spaces.logitech.com/pages/viewpage.action?pageId=69534226)
|
|
|
|
### Setup
|
|
#### Quickly setup
|
|
```bash
|
|
adb root ;\
|
|
adb shell setenforce 0 ;\
|
|
adb shell "setprop persist.logi.lss.no-start-at-boot false" ;\
|
|
adb shell "setprop persist.logi.aicv.disable-engine true" ;\
|
|
adb reboot
|
|
```
|
|
|
|
After reboot...
|
|
```bash
|
|
adb root ;\
|
|
adb shell setenforce 0 ;\
|
|
adb shell setprop persist.logitech.platform.security.app_whitelist_enable false ;\
|
|
adb shell settings put global frogger-dev:developer_mode 1 ;\
|
|
adb shell settings put global frogger-dev:frogger-nav:show-other 1 ;\
|
|
adb shell settings put system screen_off_timeout 0 ;\
|
|
adb shell svc power stayon true ;\
|
|
adb shell dumpsys battery set ac 1
|
|
```
|
|
|
|
#### Disable whitelist
|
|
```bash
|
|
adb root ;\
|
|
adb shell setenforce 0 ;\
|
|
adb shell setprop persist.logitech.platform.security.app_whitelist_enable false
|
|
```
|
|
|
|
#### Keep screen on
|
|
```bash
|
|
adb shell settings put system screen_off_timeout 0 ;\
|
|
adb shell svc power stayon true ;\
|
|
adb shell dumpsys battery set ac 1
|
|
```
|
|
|
|
#### AICV
|
|
##### Disable
|
|
```bash
|
|
adb root ;\
|
|
adb shell setenforce 0 ;\
|
|
adb shell "setprop persist.logi.lss.no-start-at-boot false" ;\
|
|
adb shell "setprop persist.logi.aicv.disable-engine true" ;\
|
|
adb reboot
|
|
```
|
|
|
|
##### Enable
|
|
```bash
|
|
adb shell setprop persist.logi.lss.no-start-at-boot false
|
|
```
|
|
|
|
#### Disable SELinux
|
|
```bash
|
|
adb root ; adb shell "setenforce 0"
|
|
```
|
|
|
|
#### Show frogbar
|
|
```bash
|
|
adb shell settings put global frogger-dev:frogger-nav:show-other 1
|
|
```
|
|
|
|
#### Developer mode
|
|
- Turn on
|
|
```bash
|
|
adb shell settings put global frogger-dev:developer_mode 1
|
|
```
|
|
|
|
- Turn off
|
|
```bash
|
|
adb shell settings put global frogger-dev:developer_mode 0
|
|
```
|
|
|
|
#### Update firmware
|
|
```bash
|
|
adb reboot-bootloader ; fastboot wait-device ; fastboot devices ;\
|
|
./fastboot_script.sh
|
|
```
|
|
參考:[[Device Firmware Update](https://spaces.logitech.com/display/VCE/Device+Firmware+Update)
|
|
|
|
#### BER Recording
|
|
Version: 1.231(`G:\\My Drive\\Cowork\\Juiwen Hsu\\Cowork(Awin)\\Kong-FIH\\TMP_KAD_Share\\Daily_Build\\V1.231\\KAD-V1.231-0UWW\\0UWW`)
|
|
|
|
##### Turn On RAW data record
|
|
```bash
|
|
adb shell "setprop persist.vendor.camera.autoImageDump TRUE" ;\
|
|
adb shell "setprop persist.vendor.camera.autoImageDumpMask 0x1" ;\
|
|
adb shell "setprop persist.vendor.camera.autoImageDumpIFEoutputPortMask 0xF00" ;\
|
|
adb shell "ps -A | grep camera | awk '{if (\$9 ~ /cameraserver/ || \$9 ~ /android.hardware.camera.provider/) {print \$2 \"\t\" \$9}}'" ;\
|
|
adb shell "ps -A | grep camera | awk '{if (\$9 ~ /cameraserver/ || \$9 ~ /android.hardware.camera.provider/) {print \$2}}' | xargs kill" ;\
|
|
sleep 2 ;\
|
|
adb shell "ls -l /data/vendor/camera"
|
|
```
|
|
|
|
##### Turn Off RAW data record
|
|
```bash
|
|
adb shell "setprop persist.vendor.camera.autoImageDump FALSE" ;\
|
|
adb shell "setprop persist.vendor.camera.autoImageDumpMask 0x0" ;\
|
|
adb shell "setprop persist.vendor.camera.autoImageDumpIFEoutputPortMask 0x0" ;\
|
|
adb shell "ps -A | grep camera | awk '{if (\$9 ~ /cameraserver/ || \$9 ~ /android.hardware.camera.provider/) {print \$2 \"\t\" \$9}}'" ;\
|
|
adb shell "ps -A | grep camera | awk '{if (\$9 ~ /cameraserver/ || \$9 ~ /android.hardware.camera.provider/) {print \$2}}' | xargs kill" ;\
|
|
sleep 2 ;\
|
|
adb shell "ls -l /data/vendor/camera"
|
|
```
|
|
|
|
##### Record screen
|
|
```bash
|
|
adb shell "screenrecord /sdcard/screen_recod.mp4" ;\
|
|
adb pull /sdcard/screen_recod.mp4 C:\RobotRun\Output\
|
|
```
|
|
|
|
#### Fixed UVC pattern
|
|
- bash
|
|
```bash
|
|
adb root ;\
|
|
adb disable-verity ;\
|
|
adb reboot ;\
|
|
adb wait-for-device ;\
|
|
sleeep 15 ;\
|
|
adb root ;\
|
|
adb remount ;\
|
|
adb push vendor.fih.hardware.logi_uvc@1.0-service //vendor/bin/hw ;\
|
|
adb shell mkdir //data/uvc ;\
|
|
adb push 2160p.jpg //data/uvc ;\
|
|
adb push 1440p.jpg //data/uvc ;\
|
|
adb push 1080p.jpg //data/uvc ;\
|
|
adb shell "chmod 777 /vendor/bin/hw/vendor.fih.hardware.logi_uvc@1.0-service"
|
|
```
|
|
|
|
- Windows cmd
|
|
```
|
|
adb root
|
|
adb disable-verity
|
|
adb reboot
|
|
|
|
## Wait device reboot finish
|
|
adb root
|
|
adb remount
|
|
adb push vendor.fih.hardware.logi_uvc@1.0-service /vendor/bin/hw
|
|
adb shell mkdir /data/uvc
|
|
adb push 2160p.jpg /data/uvc
|
|
adb push 1440p.jpg /data/uvc
|
|
adb push 1080p.jpg /data/uvc
|
|
adb shell "chmod 777 /vendor/bin/hw/vendor.fih.hardware.logi_uvc@1.0-service"
|
|
adb reboot
|
|
```
|
|
|
|
|
|
### Data
|
|
- https://sites.google.com/a/logitech.com/lfb_fw/project/product/kong-fogger/kong_pantilt_fw
|
|
|
|
### Fastboot
|
|
- [Fix fastboot device not found](https://spaces.logitech.com/display/VCE/Device+Firmware+Update)
|
|
|
|
## Document
|
|
- [Device Firmware Update](https://spaces.logitech.com/display/VCE/Device+Firmware+Update) |