feat: 关闭自启

This commit is contained in:
wangzhongjie 2025-04-29 16:58:14 +08:00
parent 042214e764
commit 13baec4c2f
4 changed files with 29 additions and 1 deletions

View File

@ -1,6 +1,7 @@
TOOLCHAIN_PATH=./mac
DOWNLOAD_PATH=../logs
SCAN_PATH=../scan
SELFSTART_PATH=../selfstart
# 下载轨迹
stud:
cd $(TOOLCHAIN_PATH) && \
@ -39,6 +40,16 @@ record:
cd $(TOOLCHAIN_PATH) && \
./hdc shell mount -o remount,rw / \
./hdc file send ../sprecord/librtsprecord.z.so /system/lib/module/libhiserialsdk.z.so
# 关闭自启
selfstart:
cd $(TOOLCHAIN_PATH) && \
./hdc shell mount -o remount,rw / \
./hdc shell rm -rf /data/* \
./hdc shell rm -rf /system/app/com.ohos.launcher/* \
./hdc file send ${SELFSTART_PATH}\Launcher.hap /system/app/com.ohos.launcher \
./hdc file send ${SELFSTART_PATH}\Launcher_Settings.hap /system/app/com.ohos.launcher \
./hdc shell sync \
./hdc shell reboot

BIN
selfStart/Launcher.hap Normal file

Binary file not shown.

Binary file not shown.

17
自动拉起app.bat Normal file
View File

@ -0,0 +1,17 @@
@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