-
Notifications
You must be signed in to change notification settings - Fork 16
/
config_template.yml
97 lines (82 loc) · 3.62 KB
/
config_template.yml
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
86
87
88
89
90
91
92
93
94
# Boot Animation Maker config template
#
# Magisk Module output filename
'module_export_filename': 'BootAniMagiskModule.zip'
# Screen size [w x h], use the maximum size
'device_size': [1080, 1920]
# For some phone model,the location of Bootanimation.zip may be different e.g. Google Pixel
# Uncomment it when use custom path
#'media_dir_path': ['system', 'product', 'media']
# Specify the FPS, it should be matched to gif,
# For animation contains only one part, If it doesn't match, the script will ask if to replace the this FPS with the actual FPS.
# For animation contains more than one part, each gif needs to have the same or similar FPS (diff<=5), the script will use the average of FPS instead,If the difference is too large, stop generating.
'fps': 10
# ******************************************************
# Layer config 'anime'
# - {part0}
# - {part1}
# - {...}
# ******************************************************
'anime':
- 'gif_path': './example/e1.gif' # gif file path,Absolute path is recommended. if use relative path, the path relatives to the running environment.
# Image config
'cpnt_conf':
# Background (= Screen size)
'bg_cpnt':
'bg_color': 'rgba(0,0,0,255)' # background color, 'rgba(r, g, b, a)' or 'auto'(yet not supported)
# Dynamic component, only contains one gif
'dyn_cpnt':
'resize_mode': 'scale' # Resize method, 'scale' or 'trim'
'target_size': [1080, 1] # target size [w x h],when use scale, 'w' prevails
'c_pos': [540, 756] # Central coordinates of gif(Relative to background)
'on_top': True # The upper and lower relations between dynamic component and static components
# Static components,this section can contain more than one PNG pictures
'sta_cpnt': # Layer relationships for static components are determined by order, the image at the bottom of the list is on the top layer.
- 'im_path': './example/e2.png' # images file path
'resize_mode': 'scale' # Resize method, 'scale' or 'trim'
'target_size': [674, 1] # target size [w x h],when use scale, 'w' prevails
'c_pos': [540, 956] # Central coordinates of png(Relative to background)
- 'im_path': './example/e3.png'
'resize_mode': 'scale'
'target_size': [320, 1]
'c_pos': [540, 1700]
# desc.txt file setting. Description: https://android.googlesource.com/platform/frameworks/base/+/master/cmds/bootanimation/FORMAT.md
'desc_conf':
'type': 'p'
'count': '0'
'pause': '0'
- 'gif_path': './example/e4.gif'
'cpnt_conf':
'bg_cpnt':
'bg_color': 'rgba(0,0,0,255)'
'dyn_cpnt':
'resize_mode': 'scale'
'target_size': [1080, 1]
'c_pos': [540, 756]
'sta_cpnt':
- 'im_path': './example/e5.png'
'resize_mode': 'scale'
'target_size': [674, 1]
'c_pos': [540, 956]
- 'im_path': './example/e6.png'
'resize_mode': 'scale'
'target_size': [320, 1]
'c_pos': [540, 1700]
'desc_conf':
'type': 'c'
'count': '0'
'pause': '0'
# Magisk module custom setting in module.prop
'module_prop_conf':
'mid': 'bootanimation-000'
'name': 'BootAnimation'
'version': '1.0'
'versionCode': '2018103101'
'author': 'Zarcher'
'description': 'A Boot Animation Magisk Module'
# Magisk module custom setting in install.sh
'module_config_conf':
'ui_print': 'ui_print " Boot Animation "\n'
'REPLACE': 'REPLACE="\n\n"'
# FOR DEBUG, DO NOT MODIFY UNLESS YOU KNOW WHAT YOU ARE DOING
'check_gif': True # check the gif FPS setting