Compare commits

..

No commits in common. "d8a81e2732c645be7e1cdc97273c234697fc109f" and "4a8e0de88464529655f2c1549a0baa092171610b" have entirely different histories.

4 changed files with 2 additions and 22 deletions

1
.gitignore vendored
View File

@ -1 +0,0 @@
logs

View File

@ -1,10 +1,9 @@
TOOLCHAIN_PATH=./mac
DOWNLOAD_PATH=../logs
SCAN_PATH=../scan
stud:
logd:
cd $(TOOLCHAIN_PATH) && \
./hdc file recv /mnt/hmdfs/100/account/device_view/local/files/duolun/logs $(DOWNLOAD_PATH)
hilog:
hilogd:
cd $(TOOLCHAIN_PATH) && \
TIMESTAMP=$$(date +%Y%m%d%H%M%S) && \
./hdc shell "tar -czvf /data/$${TIMESTAMP}_log.tar.gz /data/log/" && \
@ -18,21 +17,3 @@ open:
./hdc shell hilog -Q pidoff && \
./hdc shell hilog -p off && \
./hdc shell hilog -b D
./hdc shell hilog -w start -t kmsg -m none
delete:
# 删除当前目录的data文件夹
rm -rf $(DOWNLOAD_PATH)/data
scan:
cd $(TOOLCHAIN_PATH) && \
./hdc shell mount -o remount,rw / \
./hdc file send $(DOWNLOAD_PATH)/ibmedia_library.z.so /system/lib/platformsdk/libmedia_library.z.so \
./hdc file send $(DOWNLOAD_PATH)/libmedialibrary_data_extension.z.so /system/lib/libmedialibrary_data_extension.z.so \
./hdc file send $(DOWNLOAD_PATH)/libmedialibrary_data_extension.z.so /data/app/el1/bundle/public/com.ohos.medialibrary.medialibrarydata/libs/arm/libmedialibrary_data_extension.z.so \
./hdc shell reboot

Binary file not shown.