Mount USB storage
[platform/core/system/system-recovery.git] / src / system-recovery / system-recovery.cfg.m4.in
1 // -*- mode: conf; indent-tabs-mode: nil -*-
2
3 m4_define(`confirm_action',`({
4             label = "Yes";
5             action_handler = "$1";
6             exit_after_action = $2;
7         },{
8             label = "No";
9             screen_switch_to = "BACK";
10         })')m4_dnl
11
12 action_handlers = {
13         reboot = "reboot -f";
14         factory-reset = "touch -f /opt/.factoryreset";
15         safeboot = "touch -f /opt/etc/.safeboot";
16 }
17
18 headless_action = "factory-reset";
19
20 colors = {
21     background = "#000000ff";
22     title = "#1bc7ccff";
23     ruler = "#1bc7ccff";
24     white = "#ffffffff";
25 };
26
27 ruler_styles = {
28     common = {
29         c_ruler = "ruler";
30     };
31 };
32
33 menu_styles = {
34     common = {
35             item_height = 80;
36             item_spacing = 8;
37             text_pos_x = 15;
38             c_bg_selected = "title";
39             c_bg_unselected = "background";
40             c_text_selected = "white";
41             c_text_unselected = "white";
42     };
43 };
44
45 screen_styles = {
46     common = {
47         c_background = "background";
48     };
49 };
50
51 description_styles = {
52     common = {
53         c_title = "title";
54         c_text = "white";
55     };
56 };
57
58 rulers = {
59         main = (
60         {
61                 pos_x = 0;
62                 pos_y = 80;
63                 height = 2;
64                 style = "common";
65         }, {
66                 pos_x = 0;
67                 pos_y = 420;
68                 height = 2;
69                 style = "common";
70         });
71
72         confirm = (
73         {
74                 pos_x = 0;
75                 pos_y = 80;
76                 height = 2;
77                 style = "common";
78         });
79 };
80
81 images = {
82     background_default = {
83         fname = "@SYSTEM_RECOVERY_IMAGE_DIR@/warning.png";
84         c_bg = "background"; // reference to colors
85         align_hor = "center";
86         align_ver = "bottom";
87         offset_x = 0;
88         offset_y = 0;
89         img_type = "alpha"; // alt: "no-alpha";
90         // surface = ;
91     };
92     menu_title = {
93         fname = "@SYSTEM_RECOVERY_IMAGE_DIR@/menu-title.png";
94         c_bg = "title";
95         align_hor = "center";
96         align_ver = "top";
97         offset_x = 0;
98         offset_y = 20;
99         img_type = "no-alpha"; // alt: "no-alpha";
100         // surface = ;
101     };
102 };
103
104 animations = {
105     working = {
106         fname = "@SYSTEM_RECOVERY_IMAGE_DIR@/tizen-anim.png";
107         c_bg = "background";
108         align_hor = "center";
109         align_ver = "middle";
110         offset_x = 0;
111         offset_y = 0;
112         frames_num = 0;
113         current_frame = 0;
114         img_type = "no-alpha"; // alt: "no-alpha";
115         // surface = ;
116     };
117 };
118
119 menus = {
120     main = {
121         pos_x = 0; // use M4 macros
122         pos_y = 100; // use M4 macros
123         style = "common";
124         // item_selected = ;
125         // item_default = ;
126         actions = ({
127             label = "Reboot system now";
128             screen_switch_to = "reboot";
129             // action_handler = ;
130         },{
131             label = "Safe mode";
132             screen_switch_to = "safe";
133             // action_handler = ;
134         },{
135             label = "Phone reinitialisation";
136             screen_switch_to = "factory";
137             // action_handler = ;
138         });
139     };
140     reboot = {
141         pos_x = 0; // use M4 macros
142         pos_y = 480; // use M4 macros
143         style = "common";
144         item_selected = 1;
145         item_default = 1;
146         actions = confirm_action(`reboot', 0);
147     };
148     safe = {
149         pos_x = 0; // use M4 macros
150         pos_y = 480; // use M4 macros
151         style = "common";
152         item_selected = 1;
153         item_default = 1;
154         actions = confirm_action(`safeboot', 1);
155     };
156     factory = {
157         pos_x = 0; // use M4 macros
158         pos_y = 480; // use M4 macros
159         style = "common";
160         item_selected = 1;
161         item_default = 1;
162         actions = ({
163             label = "Yes";
164             screen_switch_to = "factory-run";
165             action_handler = "factory-reset";
166             exit_after_action = 1;
167         },{
168             label = "No";
169             screen_switch_to = "BACK";
170         });
171     };
172 };
173
174 descriptions = {
175         main = {
176                 pos_x = 15;
177                 pos_y = 480;
178                 style = "common";
179                 title = "Controls:";
180                 text = "Volume Up/Down to move menu cursor\n"
181                         "Power button to select";
182         };
183
184         reboot = {
185                 pos_x = 15;
186                 pos_y = 100;
187                 title = "The phone will be restarted.";
188                 text = "Continue?";
189                 style = "common";
190         };
191
192         safe = {
193                 pos_x = 15;
194                 pos_y = 100;
195                 title = "Safe mode:",
196                 text = "The phone will be started in safe mode.\n"
197                         "Home screen will be changed to default\n"
198                         "setting and just allow a user to use\n"
199                         "only preloaded applications.\n"
200                         "Continue?";
201                 style = "common";
202         };
203
204         factory = {
205                 pos_x = 15;
206                 pos_y = 100;
207                 title = "Factory reset (except SD-card)";
208                 text = "This will erase all data from your\n"
209                         "phone's internal storage, including\n"
210                         "settings of downloaded and preloaded\n"
211                         "applications and system configuration.\n"
212                         "Continue?";
213                 style = "common";
214         };
215
216         factory-run = {
217                 pos_x = 15;
218                 pos_y = 100;
219                 style = "common";
220                 title = "Restoring settings to factory default.";
221                 text = "Please wait. Do not turn off.\n"
222                         "(Hold power button for 3 seconds\n"
223                         "to reboot the device. Not recommended.)";
224         }
225 };
226
227 screens = {
228     main = {
229         style = "common";
230         menu = "main";
231         rulers = "main";
232         description = "main";
233         // progress_bar = ;
234         images = ("background_default", "menu_title");
235         // animations = ;
236         // on_enter = ;
237         // draw = ;
238         screen_back = "CURRENT";
239     };
240     reboot = {
241         style = "common";
242         menu = "reboot";
243         description = "reboot"
244         rulers = "confirm" ;
245         // progress_bar = ;
246         images = ("background_default", "menu_title");
247         // animations = ;
248         // on_enter = ;
249         // draw = ;
250         screen_back = "main";
251     };
252     safe = {
253         style = "common";
254         menu = "safe";
255         description = "safe";
256         rulers = "confirm";
257         // progress_bar = ;
258         images = ("background_default", "menu_title");
259         // animations = ;
260         // on_enter = ;
261         // draw = ;
262         screen_back = "main";
263     };
264     factory = {
265         style = "common";
266         menu = "factory";
267         description = "factory";
268         rulers = "confirm";
269         // progress_bar = ;
270         images = ("background_default", "menu_title");
271         // animations = ;
272         // on_enter = ;
273         // draw = ;
274         screen_back = "main";
275     };
276     factory-run = {
277         style = "common";
278         description = "factory-run";
279         rulers = "confirm";
280         images = ("background_default", "menu_title");
281         animations = ("working");
282         screen_back = "main";
283         allow_force_reboot = 1;
284     };
285 };