fix: 完善脚本
This commit is contained in:
parent
736b6f0379
commit
849951249c
14
下载hilog.sh
14
下载hilog.sh
@ -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
|
|
||||||
11
下载轨迹.sh
11
下载轨迹.sh
@ -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
|
|
||||||
5
图片落盘.bat
5
图片落盘.bat
@ -1,10 +1,11 @@
|
|||||||
@echo off
|
@echo off
|
||||||
set TOOLCHAIN_PATH=./win
|
set TOOLCHAIN_PATH=.\win
|
||||||
|
set DOWNLOAD_PATH=..\sprecord
|
||||||
|
|
||||||
@REM 切换到工具链目录
|
@REM 切换到工具链目录
|
||||||
cd %TOOLCHAIN_PATH%
|
cd %TOOLCHAIN_PATH%
|
||||||
@REM 重新挂载根目录为可读写
|
@REM 重新挂载根目录为可读写
|
||||||
.\hdc.exe shell mount -o remount,rw /
|
.\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 "操作完成"
|
echo "操作完成"
|
||||||
15
打开hilog.sh
15
打开hilog.sh
@ -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
|
|
||||||
Loading…
x
Reference in New Issue
Block a user