Files
Obsidian-Main/02. 工作/01. Logitech/Kong.md
Awin Huang ea5f575881 vault backup: 2022-09-28 17:08:53
Affected files:
.obsidian/workspace
00. Inbox/01. TODO.md
01. 個人/01. Daily/2021/02/2021-02-22(Mon).md
01. 個人/01. Daily/2021/05/2021-05-24(週一).md
01. 個人/01. Daily/2021/05/2021-05-25(週二).md
01. 個人/01. Daily/2021/05/2021-05-26(週三).md
01. 個人/01. Daily/2021/05/2021-05-28(週五).md
01. 個人/01. Daily/2021/05/2021-05-29(週六).md
01. 個人/01. Daily/2021/06/2021-06-02(週三).md
01. 個人/01. Daily/2021/06/2021-06-03(週四).md
01. 個人/01. Daily/2021/06/2021-06-04(週五).md
01. 個人/01. Daily/2021/06/2021-06-05(週六).md
01. 個人/01. Daily/2021/06/2021-06-06(週日).md
01. 個人/01. Daily/2021/06/2021-06-07(週一).md
01. 個人/01. Daily/2021/06/2021-06-08(週二).md
01. 個人/01. Daily/2021/06/2021-06-09(週三).md
01. 個人/01. Daily/2021/06/2021-06-10(週四).md
01. 個人/01. Daily/2021/06/2021-06-11(週五).md
01. 個人/01. Daily/2021/06/2021-06-12(週六).md
01. 個人/01. Daily/2021/06/2021-06-15(週二).md
02. 工作/01. Logitech/AutoStation.md
02. 工作/01. Logitech/Kong.md
02. 工作/01. Logitech/Sega.md
02. 工作/01. Logitech/Sentinel.md
02. 工作/01. Logitech/TestCam.md
2022-09-28 17:08:53 +08:00

5.6 KiB
Raw Blame History

tags, aliases, date, time, description
tags aliases date time description
2021-05-12 00:00:00

Build

Setup

Quickly setup

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...

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

adb root ;\
adb shell setenforce 0 ;\
adb shell setprop persist.logitech.platform.security.app_whitelist_enable false

Keep screen on

adb shell settings put system screen_off_timeout 0 ;\
adb shell svc power stayon true ;\
adb shell dumpsys battery set ac 1

AICV

Disable
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
adb shell setprop persist.logi.lss.no-start-at-boot false

Disable SELinux

adb root ; adb shell "setenforce 0"

Show frogbar

adb shell settings put global frogger-dev:frogger-nav:show-other 1

Developer mode

  • Turn on
adb shell settings put global frogger-dev:developer_mode 1
  • Turn off
adb shell settings put global frogger-dev:developer_mode 0

Update firmware

adb reboot-bootloader ; fastboot wait-device ; fastboot devices ;\
./fastboot_script.sh

參考:[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
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
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
adb shell "screenrecord /sdcard/screen_recod.mp4" ;\
adb pull /sdcard/screen_recod.mp4 C:\RobotRun\Output\

Fixed UVC pattern

  • 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

KongQA TODO

  • Add version informations on main screen (2021/01/06-)
  • Rename to "VCDroidTester" (2021/01/30-) ^561a6a
  • 把VCDroidTest加到RobotRunSite裡面 (2021/02/22-) ^cc0bf4
  • 更新disable whitelist的command (2021/02/22-) ^0754e4
  • 給Corleone可以直接叫起VCDroidTest的command (2021/02/22-) ^698615
    • adb shell am start -n com.logitech.kongqa/.MainActivity
  • 請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
  • 做VCDroidTester的簡報 (2021/02/22-2021/03/02)
    • Purpose
    • funtions
    • 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

  • UVC class讀取pan/tilt的方法 (2021/02/23-2021/02/24)

Archives

  • Fix WIFI name & ETH status ^9a787b
  • Add PTZ control in full screen activity ^d9bdf7
  • Microphone & speaker 加上label
  • Present KongQA code to Juiwen(2021/01/07-2021/01/08)