Files
Obsidian-Main/30. 工作 - Logitech/project - Kong.md

4.5 KiB

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

Fastboot

Document