|
1 // Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). |
|
2 // All rights reserved. |
|
3 // This component and the accompanying materials are made available |
|
4 // under the terms of "Eclipse Public License v1.0" |
|
5 // which accompanies this distribution, and is available |
|
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
7 // |
|
8 // Initial Contributors: |
|
9 // Nokia Corporation - initial contribution. |
|
10 // |
|
11 // Contributors: |
|
12 // |
|
13 // Description: |
|
14 // Modified default resource file to test apparc functionality |
|
15 // during critical startup |
|
16 // WARNING: Any changes made to this resource file must be |
|
17 // checked against the sysstart apparc test cases listed |
|
18 // T_TestStartApp2L |
|
19 // T_TestStartApp3L |
|
20 // T_TestStartApp4L |
|
21 // T_TestStartApp5L |
|
22 // T_TestStartApp6L |
|
23 // T_TestStartApp7L |
|
24 // T_TestInsertDataTypeL |
|
25 // T_TestAppForDataTypeL |
|
26 // T_TestDeleteDataTypeL |
|
27 // T_TestServiceDiscovery |
|
28 // T_TestGetAppInfo |
|
29 // T_TestGetAllApps |
|
30 // T_TestCreateDoc |
|
31 // |
|
32 // |
|
33 |
|
34 #include "startup.rh" |
|
35 |
|
36 // |
|
37 // ENTRY POINT |
|
38 // |
|
39 |
|
40 // THIS MUST BE THE FIRST RESOURCE. The system relies on |
|
41 // this having a resource ID of 1 |
|
42 |
|
43 RESOURCE STARTUP_ENTRY_POINT r_entry_point |
|
44 { |
|
45 entry_point = r_startup_state_critical_static; |
|
46 } |
|
47 // |
|
48 |
|
49 |
|
50 |
|
51 // |
|
52 // CRITICAL-STATIC startup state |
|
53 // |
|
54 RESOURCE STATE_INFO r_startup_state_critical_static |
|
55 { |
|
56 id = EStartupStateCriticalStatic; |
|
57 name = "Critical Static"; |
|
58 command_list = r_critical_static_commands; |
|
59 next = r_startup_state_critical_dynamic; |
|
60 } |
|
61 |
|
62 RESOURCE COMMAND_ARRAY r_critical_static_commands |
|
63 { |
|
64 commands = |
|
65 { |
|
66 START_PROCESS_INFO |
|
67 { |
|
68 path = "Z:\\sys\\bin\\SysAgt2Svr.exe"; |
|
69 start_method = EWaitForStart; |
|
70 no_of_retries_on_failure = 2; |
|
71 }, |
|
72 START_PROCESS_INFO |
|
73 { |
|
74 path = "Z:\\sys\\bin\\fbserv.exe"; |
|
75 start_method = EWaitForStart; |
|
76 no_of_retries_on_failure = 1; |
|
77 }, |
|
78 START_PROCESS_INFO |
|
79 { |
|
80 path = "Z:\\sys\\bin\\ewsrv.exe"; |
|
81 args = "-NoShell"; |
|
82 start_method = EWaitForStart; |
|
83 }, |
|
84 SPLASH_SCREEN |
|
85 { |
|
86 path = "Z:\\sys\\bin\\splash.exe"; |
|
87 }, |
|
88 START_PROCESS_INFO |
|
89 { |
|
90 path = "Z:\\sys\\bin\\eiksrvs.exe"; |
|
91 args = "-OnlyStartDependentServers"; |
|
92 start_method = EWaitForStart; |
|
93 }, |
|
94 START_PROCESS_INFO |
|
95 { |
|
96 path = "Z:\\sys\\bin\\sisregistryserver.exe"; |
|
97 start_method = EWaitForStart; |
|
98 }, |
|
99 START_PROCESS_INFO |
|
100 { |
|
101 path = "Z:\\sys\\bin\\tzserver.exe"; |
|
102 start_method = EWaitForStart; |
|
103 }, |
|
104 START_PROCESS_INFO |
|
105 { |
|
106 path = "Z:\\sys\\bin\\tssaac.exe"; |
|
107 } |
|
108 }; |
|
109 } |
|
110 |
|
111 // |
|
112 // CRITICAL-DYNAMIC startup state |
|
113 // |
|
114 RESOURCE STATE_INFO r_startup_state_critical_dynamic |
|
115 { |
|
116 id = EStartupStateCriticalDynamic; |
|
117 name = "Critical Dynamic"; |
|
118 command_list = r_critical_dynamic_commands; |
|
119 next = r_startup_state_networking_critical; |
|
120 } |
|
121 |
|
122 RESOURCE COMMAND_ARRAY r_critical_dynamic_commands |
|
123 { |
|
124 commands = |
|
125 { |
|
126 START_PROCESS_INFO |
|
127 { |
|
128 path = "Z:\\sys\\bin\\apsexe.exe"; |
|
129 start_method = EWaitForStart; // this is the only method allowable for apsexe.exe |
|
130 }, |
|
131 START_APP_INFO |
|
132 { |
|
133 path = "Z:\\sys\\bin\\shell.exe"; // Requires apparc to be properly started |
|
134 start_method = EDeferredWaitForStart; |
|
135 viewless = 1; |
|
136 }, |
|
137 MULTIPLE_WAIT |
|
138 { |
|
139 timeout = 10000; |
|
140 fail_on_error = EPanicOnCommandFailure; |
|
141 }, |
|
142 SPLASH_SCREEN |
|
143 { |
|
144 kill = 1; |
|
145 } |
|
146 }; |
|
147 } |
|
148 |
|
149 // |
|
150 // Networking-CRITICAL startup state |
|
151 // |
|
152 RESOURCE STATE_INFO r_startup_state_networking_critical |
|
153 { |
|
154 id = EStartupStateNetworkingCritical; |
|
155 name = "Networking-Critical"; |
|
156 command_list = r_networking_critical_commands; |
|
157 next = r_startup_state_non_critical; |
|
158 } |
|
159 |
|
160 RESOURCE COMMAND_ARRAY r_networking_critical_commands |
|
161 { |
|
162 commands = |
|
163 { |
|
164 START_PROCESS_INFO |
|
165 { |
|
166 path = "Z:\\sys\\bin\\c32start.exe"; |
|
167 start_method = EWaitForStart; |
|
168 }, |
|
169 START_PROCESS_INFO |
|
170 { |
|
171 path = "Z:\\sys\\bin\\msexe.exe"; |
|
172 start_method = EWaitForStart; |
|
173 }, |
|
174 START_PROCESS_INFO |
|
175 { |
|
176 path = "Z:\\sys\\bin\\watcher.exe"; |
|
177 start_method = EWaitForStart; |
|
178 } |
|
179 }; |
|
180 } |
|
181 |
|
182 // |
|
183 // NON-CRITICAL startup state |
|
184 // |
|
185 RESOURCE STATE_INFO r_startup_state_non_critical |
|
186 { |
|
187 id = EStartupStateNonCritical; |
|
188 name = "Non-critical"; |
|
189 command_list = r_non_critical_commands; |
|
190 next = 0; // No more state transitions |
|
191 } |
|
192 |
|
193 RESOURCE COMMAND_ARRAY r_non_critical_commands |
|
194 { |
|
195 commands = |
|
196 { |
|
197 START_APP_INFO |
|
198 { |
|
199 path = "Z:\\sys\\bin\\eshell.exe"; |
|
200 viewless = 1; |
|
201 }, |
|
202 START_PROCESS_INFO |
|
203 { |
|
204 path = "Z:\\sys\\bin\\SystemAMS.exe"; |
|
205 args = "-boot"; |
|
206 fail_on_error = EIgnoreCommandFailure; |
|
207 }, |
|
208 START_PROCESS_INFO |
|
209 { |
|
210 path = "Z:\\sys\\bin\\swidaemon.exe"; |
|
211 start_method = EWaitForStart; |
|
212 }, |
|
213 START_PROCESS_INFO |
|
214 { |
|
215 path = "Z:\\sys\\bin\\cntsrv.exe"; |
|
216 args = "-nontransient"; |
|
217 fail_on_error = 0; |
|
218 }, |
|
219 START_PROCESS_INFO |
|
220 { |
|
221 path = "Z:\\sys\\bin\\agsvexe.exe"; |
|
222 args = "-nontransient"; |
|
223 fail_on_error = 0; |
|
224 }, |
|
225 START_PROCESS_INFO |
|
226 { |
|
227 path = "Z:\\sys\\bin\\fotaagent.exe"; |
|
228 fail_on_error = EIgnoreCommandFailure; |
|
229 } |
|
230 }; |
|
231 } |
|
232 |
|
233 |