feat: 关闭自启
This commit is contained in:
		
							parent
							
								
									042214e764
								
							
						
					
					
						commit
						13baec4c2f
					
				
							
								
								
									
										13
									
								
								Makefile
									
									
									
									
									
								
							
							
						
						
									
										13
									
								
								Makefile
									
									
									
									
									
								
							| @ -1,6 +1,7 @@ | ||||
| TOOLCHAIN_PATH=./mac | ||||
| DOWNLOAD_PATH=../logs | ||||
| SCAN_PATH=../scan | ||||
| SELFSTART_PATH=../selfstart | ||||
| # 下载轨迹
 | ||||
| stud: | ||||
| 	cd $(TOOLCHAIN_PATH) && \
 | ||||
| @ -39,7 +40,17 @@ 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
									
								
							
							
						
						
									
										
											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