fix: 完善脚本

This commit is contained in:
wangzhongjie 2025-04-29 14:14:46 +08:00
parent 736b6f0379
commit 849951249c
4 changed files with 3 additions and 42 deletions

View File

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

View File

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

View File

@ -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 "操作完成"

View File

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