From 849951249c5ed6ac3b633448ab0e5a3cce4ae882 Mon Sep 17 00:00:00 2001 From: wangzhongjie Date: Tue, 29 Apr 2025 14:14:46 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=AE=8C=E5=96=84=E8=84=9A=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 下载hilog.sh | 14 -------------- 下载轨迹.sh | 11 ----------- 图片落盘.bat | 5 +++-- 打开hilog.sh | 15 --------------- 4 files changed, 3 insertions(+), 42 deletions(-) delete mode 100644 下载hilog.sh delete mode 100644 下载轨迹.sh delete mode 100644 打开hilog.sh diff --git a/下载hilog.sh b/下载hilog.sh deleted file mode 100644 index d0881e9..0000000 --- a/下载hilog.sh +++ /dev/null @@ -1,14 +0,0 @@ -#!/bin/bash - -TOOLCHAIN_PATH=./shell -DOWNLOAD_PATH=../logs - -hilog() { - cd $TOOLCHAIN_PATH && \ - TIMESTAMP=$(date +%Y%m%d_%H%M%S) && \ - ./hdc shell "tar -czvf /data/${TIMESTAMP}_log.tar.gz /data/log/" && \ - ./hdc file recv /data/${TIMESTAMP}_log.tar.gz $DOWNLOAD_PATH && \ - ./hdc shell "rm -rf /data/${TIMESTAMP}_log.tar.gz" -} - -hilog diff --git a/下载轨迹.sh b/下载轨迹.sh deleted file mode 100644 index f69653f..0000000 --- a/下载轨迹.sh +++ /dev/null @@ -1,11 +0,0 @@ -#!/bin/bash - -TOOLCHAIN_PATH=./shell -DOWNLOAD_PATH=../logs - -logs() { - cd $TOOLCHAIN_PATH && \ - ./hdc file recv /mnt/hmdfs/100/account/device_view/local/files/duolun/logs $DOWNLOAD_PATH -} - -logs diff --git a/图片落盘.bat b/图片落盘.bat index 4c0954f..6224815 100644 --- a/图片落盘.bat +++ b/图片落盘.bat @@ -1,10 +1,11 @@ @echo off -set TOOLCHAIN_PATH=./win +set TOOLCHAIN_PATH=.\win +set DOWNLOAD_PATH=..\sprecord @REM 切换到工具链目录 cd %TOOLCHAIN_PATH% @REM 重新挂载根目录为可读写 .\hdc.exe shell mount -o remount,rw / -.\hdc.exe file send ../sprecord/librtsprecord.z.so /system/lib/module/libhiserialsdk.z.so +.\hdc.exe file send %DOWNLOAD_PATH%/librtsprecord.z.so /system/lib/module/libhiserialsdk.z.so echo "操作完成" \ No newline at end of file diff --git a/打开hilog.sh b/打开hilog.sh deleted file mode 100644 index 48a789a..0000000 --- a/打开hilog.sh +++ /dev/null @@ -1,15 +0,0 @@ -#!/bin/bash - -TOOLCHAIN_PATH=./shell - -open() { - cd $TOOLCHAIN_PATH && \ - ./hdc shell hilog -w stop && \ - ./hdc shell hilog -r && \ - ./hdc shell hilog -w start -l 100M -m none && \ - ./hdc shell hilog -Q pidoff && \ - ./hdc shell hilog -p off && \ - ./hdc shell hilog -b D -} - -open