-
Notifications
You must be signed in to change notification settings - Fork 9
/
Makefile
46 lines (37 loc) · 1.5 KB
/
Makefile
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
all: build
build:
ndk-build NDK_PROJECT_PATH=. APP_BUILD_SCRIPT=./Android.mk
log:
adb logcat | grep -a farm-root
pull_boot: build
adb push toolbox_pull_boot /data/local/tmp/toolbox
adb push libs/arm64-v8a/farm /data/local/tmp/farm
adb push till /data/local/tmp/till
adb push libs/arm64-v8a/bridge_pull_boot /data/local/tmp/bridge
adb shell chmod 0777 /data/local/tmp/bridge /data/local/tmp/till /data/local/tmp/farm /data/local/tmp/toolbox
adb shell /data/local/tmp/farm
adb pull /data/local/tmp/boot_pull.img
adb reboot
pull: build
adb push toolbox_pull /data/local/tmp/toolbox
adb push libs/arm64-v8a/farm /data/local/tmp/farm
adb push till /data/local/tmp/till
adb push libs/arm64-v8a/bridge_pull /data/local/tmp/bridge
adb shell chmod 0777 /data/local/tmp/bridge /data/local/tmp/till /data/local/tmp/farm /data/local/tmp/toolbox
adb shell /data/local/tmp/farm
adb pull /data/local/tmp/recovery_pull.img
adb reboot
push: build recovery_push.img
adb push recovery_push.img /data/local/tmp/recovery_push.img
adb push toolbox_push /data/local/tmp/toolbox
adb push libs/arm64-v8a/farm /data/local/tmp/farm
adb push till /data/local/tmp/till
adb push libs/arm64-v8a/bridge_push /data/local/tmp/bridge
adb shell chmod 0777 /data/local/tmp/bridge /data/local/tmp/till /data/local/tmp/farm /data/local/tmp/toolbox /data/local/tmp/recovery_push.img
adb shell /data/local/tmp/farm
adb reboot
recovery_push.img:
@echo "place recovery_push.img in the farm-root directory"
clean:
rm -rf libs
rm -rf obj