init
This commit is contained in:
182
02. PARA/01. Project(專案)/001. Kong.md
Normal file
182
02. PARA/01. Project(專案)/001. Kong.md
Normal file
@@ -0,0 +1,182 @@
|
||||
### 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
|
||||
|
||||
### KongQA TODO
|
||||
- [ ] Add version informations on main screen (2021/01/06-)
|
||||
- [x] Rename to "VCDroidTester" (2021/01/30-) ^561a6a
|
||||
- [x] 把VCDroidTest加到RobotRunSite裡面 (2021/02/22-) ^cc0bf4
|
||||
- [x] 更新disable whitelist的command (2021/02/22-) ^0754e4
|
||||
- [x] 給Corleone可以直接叫起VCDroidTest的command (2021/02/22-) ^698615
|
||||
- `adb shell am start -n com.logitech.kongqa/.MainActivity`
|
||||
- [x] 請Juiwen把refresh device的時間變成一個config option (2021/02/22-2021/02/26) ^4a5512
|
||||
- [ ] 研究APK如何display外接camera (2021/02/22-) ^b6e6c8
|
||||
- [ ] 研究APK如何播放audio到外接USB speaker (2021/02/22-) ^a83b91
|
||||
- [ ] 研究APK如何用外接USB microphone收音 (2021/02/22-) ^b85fbe
|
||||
- [x] 做VCDroidTester的簡報 (2021/02/22-2021/03/02)
|
||||
- [x] Purpose
|
||||
- [x] funtions
|
||||
- [x] Where to download
|
||||
- [ ] 建立一個可以由ADB控制的service (2021/03/16-) ^cd73f7
|
||||
- [ ] 經由service開啟指定的camera preview (2021/03/16-)
|
||||
- [ ] 經由service拍照 (2021/03/16-)
|
||||
- [ ] 經由service控制PTZ (2021/03/16-)
|
||||
|
||||
### MISC
|
||||
- [x] UVC class讀取pan/tilt的方法? (2021/02/23-2021/02/24)
|
||||
|
||||
#### Archives
|
||||
- [x] Fix WIFI name & ETH status ^9a787b
|
||||
- [x] Add PTZ control in full screen activity ^d9bdf7
|
||||
- [x] Microphone & speaker 加上label
|
||||
- [x] Present KongQA code to Juiwen(2021/01/07-2021/01/08)
|
||||
|
||||
Reference in New Issue
Block a user