forked from fi01/android_run_root_shell
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathAndroid.mk
85 lines (64 loc) · 1.65 KB
/
Android.mk
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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
LOCAL_PATH := $(call my-dir)
include $(CLEAR_VARS)
LOCAL_SRC_FILES := \
cred.c \
kallsyms.c \
main.c \
ptmx.c \
backdoor_mmap.c
LOCAL_CFLAGS += -DROOT_COMMAND=\"/system/bin/sh\"
LOCAL_MODULE := run_root_shell
LOCAL_MODULE_TAGS := optional
LOCAL_FORCE_STATIC_EXECUTABLE := true
LOCAL_STATIC_LIBRARIES += libcutils libc
include $(BUILD_EXECUTABLE)
include $(CLEAR_VARS)
LOCAL_SRC_FILES := \
cred.c \
kallsyms.c \
main.c \
ptmx.c \
backdoor_mmap.c
LOCAL_CFLAGS += -DROOT_COMMAND=\"/data/local/tmp/autoexec\"
LOCAL_MODULE := run_autoexec
LOCAL_MODULE_TAGS := optional
LOCAL_FORCE_STATIC_EXECUTABLE := true
LOCAL_STATIC_LIBRARIES += libcutils libc
include $(BUILD_EXECUTABLE)
include $(CLEAR_VARS)
LOCAL_SRC_FILES := \
cred.c \
kallsyms.c \
main.c \
ptmx.c \
backdoor_mmap.c
LOCAL_CFLAGS += -DROOT_COMMAND=\"/system/bin/sh\"
LOCAL_CFLAGS += -DENABLE_USER_COMMAND
LOCAL_MODULE := run_root_exec
LOCAL_MODULE_TAGS := optional
LOCAL_FORCE_STATIC_EXECUTABLE := true
LOCAL_STATIC_LIBRARIES += libcutils libc
include $(BUILD_EXECUTABLE)
include $(CLEAR_VARS)
LOCAL_SRC_FILES := \
sec_unlock_sc04e.c \
backdoor_mmap.c
LOCAL_MODULE := sec_unlock_sc04e
LOCAL_MODULE_TAGS := optional
LOCAL_FORCE_STATIC_EXECUTABLE := true
LOCAL_STATIC_LIBRARIES += libcutils libc
include $(BUILD_EXECUTABLE)
include $(CLEAR_VARS)
LOCAL_SRC_FILES := \
install_backdoor.c \
backdoor_mmap.c \
kallsyms.c \
perf_swevent.c \
ptmx.c \
mm.c
LOCAL_MODULE := install_backdoor
LOCAL_MODULE_TAGS := optional
LOCAL_FORCE_STATIC_EXECUTABLE := true
LOCAL_STATIC_LIBRARIES += libcutils libc
include $(BUILD_EXECUTABLE)
include $(call all-makefiles-under,$(LOCAL_PATH))