-
Notifications
You must be signed in to change notification settings - Fork 2
/
kkadd.mk
40 lines (27 loc) · 1.08 KB
/
kkadd.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
include $(PORT_BUILD)/localvar.mk
include $(PORT_BUILD)/porting.mk
RELEASE_FLASHABLE = $(PORT_ROOT)/customize_tools/release_flashablezip.sh
RELEASE_OTA = $(PORT_ROOT)/customize_tools/release_ota.sh
FORMAT_FRAMEWORK = $(PORT_ROOT)/customize_tools/formatframework.sh
BUILD_NUMBER_CURRENT = 3.1.18
BUILD_NUMBER := $(BUILD_NUMBER_CURRENT)
fullota: BUILD_NUMBER := $(BUILD_NUMBER_CURRENT)
releasezip: flashzip otazip
flashzip: out/fullota.zip
$(RELEASE_FLASHABLE) $(BUILD_NUMBER) $(PORT_PRODUCT) $(PORT_ROOT)
otazip: out/target_files.zip
$(RELEASE_OTA) $(BUILD_NUMBER) $(PORT_PRODUCT) $(PORT_ROOT)
workspacefix: workspace
$(FORMAT_FRAMEWORK) patch
firstpatchfix: firstpatch
$(FORMAT_FRAMEWORK) make
%.phone: out/%
adb remount
adb push $< /system/framework/$*
adb shell chmod 644 /system/framework/$*
adb shell busybox killall system_server
%.platform: out/%
java -jar $(TOOL_DIR)/signapk.jar $(PORT_ROOT)/build/security/platform.x509.pem $(PORT_ROOT)/build/security/platform.pk8 $< $<.signed
adb remount
adb push $<.signed /system/app/$*
adb shell chmod 644 /system/app/$*