script/设置自动拉起_执行两次.bat
2025-05-08 09:53:59 +08:00

16 lines
432 B
Batchfile

@echo off
set FILE_PATH=..\start
set TOOLCHAIN_PATH=.\win
cd %TOOLCHAIN_PATH%
.\hdc.exe shell mount -o remount,rw /
.\hdc.exe shell rm -rf /data/*
.\hdc.exe shell rm -rf /system/app/com.ohos.launcher/*
.\hdc.exe file send %FILE_PATH%\Launcher.hap /system/app/com.ohos.launcher
.\hdc.exe file send %FILE_PATH%\Launcher_Settings.hap /system/app/com.ohos.launcher
.\hdc.exe shell sync
.\hdc.exe shell reboot
echo "all success"
pause