feat: 关闭自启
This commit is contained in:
parent
042214e764
commit
13baec4c2f
11
Makefile
11
Makefile
@ -1,6 +1,7 @@
|
|||||||
TOOLCHAIN_PATH=./mac
|
TOOLCHAIN_PATH=./mac
|
||||||
DOWNLOAD_PATH=../logs
|
DOWNLOAD_PATH=../logs
|
||||||
SCAN_PATH=../scan
|
SCAN_PATH=../scan
|
||||||
|
SELFSTART_PATH=../selfstart
|
||||||
# 下载轨迹
|
# 下载轨迹
|
||||||
stud:
|
stud:
|
||||||
cd $(TOOLCHAIN_PATH) && \
|
cd $(TOOLCHAIN_PATH) && \
|
||||||
@ -39,6 +40,16 @@ record:
|
|||||||
cd $(TOOLCHAIN_PATH) && \
|
cd $(TOOLCHAIN_PATH) && \
|
||||||
./hdc shell mount -o remount,rw / \
|
./hdc shell mount -o remount,rw / \
|
||||||
./hdc file send ../sprecord/librtsprecord.z.so /system/lib/module/libhiserialsdk.z.so
|
./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
BIN
selfStart/Launcher.hap
Normal file
Binary file not shown.
BIN
selfStart/Launcher_Settings.hap
Normal file
BIN
selfStart/Launcher_Settings.hap
Normal file
Binary file not shown.
17
自动拉起app.bat
Normal file
17
自动拉起app.bat
Normal 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
|
||||||
|
|
||||||
Loading…
x
Reference in New Issue
Block a user