mirror of
				https://github.com/meizu-m86/twrp_multirom_m86
				synced 2025-11-04 06:15:41 +08:00 
			
		
		
		
	
		
			
				
	
	
		
			22 lines
		
	
	
		
			502 B
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			22 lines
		
	
	
		
			502 B
		
	
	
	
		
			C
		
	
	
	
	
	
 | 
						|
#include <string.h>
 | 
						|
#include <stdio.h>
 | 
						|
#include <stdlib.h>
 | 
						|
 | 
						|
#include <cutils/properties.h>
 | 
						|
 | 
						|
int start_main(int argc, char *argv[])
 | 
						|
{
 | 
						|
    if(argc > 1) {
 | 
						|
        property_set("ctl.start", argv[1]);
 | 
						|
    } else {
 | 
						|
        /* defaults to starting the common services stopped by stop.c */
 | 
						|
        property_set("ctl.start", "netd");
 | 
						|
        property_set("ctl.start", "surfaceflinger");
 | 
						|
        property_set("ctl.start", "zygote");
 | 
						|
        property_set("ctl.start", "zygote_secondary");
 | 
						|
    }
 | 
						|
 | 
						|
    return 0;
 | 
						|
}
 |