diff --git a/selfStart/Launcher.hap b/start/Launcher.hap similarity index 100% rename from selfStart/Launcher.hap rename to start/Launcher.hap diff --git a/selfStart/Launcher_Settings.hap b/start/Launcher_Settings.hap similarity index 100% rename from selfStart/Launcher_Settings.hap rename to start/Launcher_Settings.hap diff --git a/下载hilog.bat b/下载hilog.bat index 7249b69..2d2d5dd 100644 --- a/下载hilog.bat +++ b/下载hilog.bat @@ -2,20 +2,27 @@ set TOOLCHAIN_PATH=.\win set DOWNLOAD_PATH=..\logs -@REM 生成时间戳 + for /f "tokens=2 delims==" %%I in ('"wmic os get localdatetime /value | findstr ="') do set TIMESTAMP=%%I set TIMESTAMP=%TIMESTAMP:~0,8%_%TIMESTAMP:~8,6% -@REM 切换到工具链目录 -cd .\win\ -@REM 执行下载操作 + +cd %TOOLCHAIN_PATH% + .\hdc.exe shell "tar -czvf /data/%TIMESTAMP%_log.tar.gz /data/log/" -@REM 接受日志 +echo "Success 1" + + .\hdc.exe file recv /data/%TIMESTAMP%_log.tar.gz %DOWNLOAD_PATH% -@REM 删除日志 -.\hdc.exe "rm -rf /data/%TIMESTAMP%_log.tar.gz" +echo "Success 2" -echo 操作完成! + +.\hdc.exe shell "rm -rf /data/%TIMESTAMP%_log.tar.gz" + +echo "Success 3" + + +echo "all success!" pause diff --git a/下载轨迹.bat b/下载轨迹.bat index 4c40086..854b0c9 100644 --- a/下载轨迹.bat +++ b/下载轨迹.bat @@ -3,11 +3,11 @@ set TOOLCHAIN_PATH=.\win set DOWNLOAD_PATH=..\logs -@REM 切换到工具链目录 + cd %TOOLCHAIN_PATH% .\hdc.exe file recv /mnt/hmdfs/100/account/device_view/local/files/duolun/logs %DOWNLOAD_PATH% -echo "操作完成" +echo "all success" pause \ No newline at end of file diff --git a/关闭媒体扫描.bat b/关闭媒体扫描.bat index 772aac1..869403c 100644 --- a/关闭媒体扫描.bat +++ b/关闭媒体扫描.bat @@ -1,18 +1,12 @@ @echo off set TOOLCHAIN_PATH=.\win -set DOWNLOAD_PATH=..\download +set DOWNLOAD_PATH=..\scan -@REM 切换到工具链目录 cd %TOOLCHAIN_PATH% - -@REM 重新挂载根目录为可读写 .\hdc.exe shell mount -o remount,rw / .\hdc.exe file send %DOWNLOAD_PATH%/libmedia_library.z.so /system/lib/platformsdk/libmedia_library.z.so .\hdc.exe file send %DOWNLOAD_PATH%/libmedialibrary_data_extension.z.so /system/lib/libmedialibrary_data_extension.z.so .\hdc.exe 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 - -@REM 重启设备 .\hdc.exe shell reboot - -echo "操作完成" +echo "all success" pause \ No newline at end of file diff --git a/关闭自动拉起.bat b/关闭自动拉起.bat new file mode 100644 index 0000000..33eda62 --- /dev/null +++ b/关闭自动拉起.bat @@ -0,0 +1,7 @@ +@echo off +set TOOLCHAIN_PATH=.\win + +cd %TOOLCHAIN_PATH% +.\hdc.exe shell param set persist.autostart.dts 1 +echo "all success" +pause \ No newline at end of file diff --git a/图片落盘.bat b/图片落盘.bat index c7fb1de..03eb934 100644 --- a/图片落盘.bat +++ b/图片落盘.bat @@ -2,11 +2,8 @@ set TOOLCHAIN_PATH=.\win set DOWNLOAD_PATH=..\sprecord -@REM 切换到工具链目录 cd %TOOLCHAIN_PATH% -@REM 重新挂载根目录为可读写 .\hdc.exe shell mount -o remount,rw / -.\hdc.exe file send %DOWNLOAD_PATH%/librtsprecord.z.so /system/lib/module/librtsprecord.z.so - -echo "操作完成" +.\hdc.exe file send %DOWNLOAD_PATH%/librtsprecord.z.so /system/lib/module/ +echo "all success" pause diff --git a/开启自动拉起.bat b/开启自动拉起.bat new file mode 100644 index 0000000..d689302 --- /dev/null +++ b/开启自动拉起.bat @@ -0,0 +1,7 @@ +@echo off +set TOOLCHAIN_PATH=.\win + +cd %TOOLCHAIN_PATH% +.\hdc.exe shell param set persist.autostart.dts 0 +echo "all success" +pause \ No newline at end of file diff --git a/打开hilog.bat b/打开hilog.bat index f653e0a..b1ce0b7 100644 --- a/打开hilog.bat +++ b/打开hilog.bat @@ -2,9 +2,7 @@ set TOOLCHAIN_PATH=.\win -@REM 切换到工具链目录 cd %TOOLCHAIN_PATH% - .\hdc.exe kill .\hdc.exe shell hilog -w stop .\hdc.exe shell hilog -r @@ -14,6 +12,5 @@ cd %TOOLCHAIN_PATH% .\hdc.exe shell hilog -b D .\hdc.exe shell hilog -w start -t kmsg -m none -echo "操作完成" - +echo "all success!" pause \ No newline at end of file diff --git a/自动拉起app.bat b/自动拉起app.bat deleted file mode 100644 index 39ad7f0..0000000 --- a/自动拉起app.bat +++ /dev/null @@ -1,17 +0,0 @@ -@echo off -set filepath=.\SelfStart -set hdc=hdc -%hdc% shell mount -o remount,rw / - -%hdc% shell rm -rf /data/* - -%hdc% shell rm -rf /system/app/com.ohos.launcher/* -%hdc% file send %filepath%\Launcher.hap /system/app/com.ohos.launcher -%hdc% file send %filepath%\Launcher_Settings.hap /system/app/com.ohos.launcher - -%hdc% shell sync - -::%hdc% shell /system/bin/udevadm trigger - -%hdc% shell reboot -