forked from fedya/bootmenu
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathextendedcommands.h
More file actions
70 lines (51 loc) · 1.4 KB
/
extendedcommands.h
File metadata and controls
70 lines (51 loc) · 1.4 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
enum {
MODE_NORMAL,
MODE_2NDINIT,
MODE_2NDBOOT,
MODE_BOOTMENU
};
static const char *FILE_2NDINIT = "/system/bootmenu/script/2nd-init.sh";
static const char *FILE_2NDBOOT = "/system/bootmenu/script/2nd-boot.sh";
static const char *FILE_ADBD = "/system/bootmenu/script/adbd.sh";
static const char *FILE_ROOT = "/system/bootmenu/script/unroot.sh";
static const char *FILE_UNINSTALL = "/system/bootmenu/script/uninstall.sh";
static const char *FILE_OVERCLOCK = "/system/bootmenu/script/overclock.sh";
static const char *FILE_CUSTOMRECOVERY = "/system/bootmenu/script/recovery.sh";
static const char *FILE_DEFAULTBOOTMODE = "/system/bootmenu/config/default_bootmode.conf";
static const char *FILE_OVERCLOCK_CONF = "/system/bootmenu/config/overclock.conf";
static const char *FILE_BYPASS = "/data/.bootmenu_bypass";
static const char *FILE_STOCKRECOVERY = "/system/bin/reboot";
int
show_menu_boot(void);
int
show_menu_system(void);
int
show_menu_tools(void);
int
show_menu_recovery(void);
int
mount_usb_storage(void);
int
snd_init(int ui);
int
snd_boot(int ui);
int
show_config_bootmode(void);
int
set_bootmode(int mode);
int
get_bootmode(void);
int
bootmode_write(const char* str);
int
led_alert(const char* color, int value);
int
bypass_sign(const char* mode);
int
bypass_check(void);
int
exec_and_wait(char** argp);
int
exec_script(const char* filename, int ui);
int
real_execute(int r_argc, char** r_argv);