Commit 4a0b119
committed
fix(ios): verify livesync payload delivery on physical devices and stop swallowing upload errors
On physical iOS devices a full sync transfers the app as a single
sync.zip over AFC (house_arrest) which the runtime's TKLiveSync
extracts at next boot. When that delivery failed, nothing noticed:
upload errors whose deviceId didn't exactly match the target device
(including errors with no deviceId at all) were silently dropped,
there was no post-transfer verification, and "Successfully synced"
printed regardless — leaving the app running the stale JavaScript
baked into the installed .app payload with no indication anywhere.
- After transferring sync.zip, list the LiveSync directory on the
device and confirm the zip actually landed; retry the transfer once,
then fail the sync loudly (with a --clean remediation hint) instead
of reporting success over stale code. Note: the listing targets the
LiveSync ROOT — getDeviceProjectRootPath() returns .../LiveSync/app,
one level below where the zip is uploaded.
- uploadFilesCore now rethrows unattributed upload errors and logs
errors attributed to other devices instead of ignoring them.
- New optional IDeviceFileSystem.getDirectoryEntries(), implemented
for physical iOS devices (AFC), backs the verification.1 parent ee2b2f1 commit 4a0b119
3 files changed
Lines changed: 215 additions & 43 deletions
File tree
- lib
- common
- definitions
- mobile/ios/device
- services/livesync
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
258 | 258 | | |
259 | 259 | | |
260 | 260 | | |
261 | | - | |
262 | | - | |
| 261 | + | |
263 | 262 | | |
264 | 263 | | |
265 | 264 | | |
| |||
284 | 283 | | |
285 | 284 | | |
286 | 285 | | |
287 | | - | |
288 | | - | |
| 286 | + | |
289 | 287 | | |
290 | 288 | | |
291 | 289 | | |
| |||
429 | 427 | | |
430 | 428 | | |
431 | 429 | | |
| 430 | + | |
| 431 | + | |
| 432 | + | |
| 433 | + | |
| 434 | + | |
| 435 | + | |
| 436 | + | |
| 437 | + | |
| 438 | + | |
| 439 | + | |
432 | 440 | | |
433 | 441 | | |
434 | 442 | | |
| |||
533 | 541 | | |
534 | 542 | | |
535 | 543 | | |
536 | | - | |
537 | | - | |
| 544 | + | |
538 | 545 | | |
539 | 546 | | |
540 | 547 | | |
| |||
1261 | 1268 | | |
1262 | 1269 | | |
1263 | 1270 | | |
1264 | | - | |
1265 | | - | |
| 1271 | + | |
1266 | 1272 | | |
1267 | 1273 | | |
1268 | 1274 | | |
| |||
1388 | 1394 | | |
1389 | 1395 | | |
1390 | 1396 | | |
1391 | | - | |
1392 | | - | |
| 1397 | + | |
1393 | 1398 | | |
1394 | 1399 | | |
1395 | 1400 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
| 12 | + | |
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
| 17 | + | |
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| |||
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
34 | 57 | | |
35 | 58 | | |
36 | 59 | | |
37 | | - | |
| 60 | + | |
38 | 61 | | |
39 | 62 | | |
40 | 63 | | |
| |||
50 | 73 | | |
51 | 74 | | |
52 | 75 | | |
53 | | - | |
| 76 | + | |
54 | 77 | | |
55 | 78 | | |
56 | 79 | | |
57 | 80 | | |
58 | 81 | | |
59 | 82 | | |
60 | | - | |
| 83 | + | |
61 | 84 | | |
62 | 85 | | |
63 | 86 | | |
| |||
73 | 96 | | |
74 | 97 | | |
75 | 98 | | |
76 | | - | |
| 99 | + | |
77 | 100 | | |
78 | 101 | | |
79 | 102 | | |
| |||
86 | 109 | | |
87 | 110 | | |
88 | 111 | | |
89 | | - | |
| 112 | + | |
90 | 113 | | |
91 | 114 | | |
92 | 115 | | |
| |||
98 | 121 | | |
99 | 122 | | |
100 | 123 | | |
101 | | - | |
| 124 | + | |
102 | 125 | | |
103 | 126 | | |
104 | 127 | | |
105 | 128 | | |
106 | | - | |
| 129 | + | |
107 | 130 | | |
108 | 131 | | |
109 | | - | |
| 132 | + | |
110 | 133 | | |
111 | 134 | | |
112 | 135 | | |
113 | 136 | | |
114 | 137 | | |
115 | | - | |
| 138 | + | |
116 | 139 | | |
117 | 140 | | |
118 | 141 | | |
119 | | - | |
| 142 | + | |
120 | 143 | | |
121 | 144 | | |
122 | 145 | | |
| |||
137 | 160 | | |
138 | 161 | | |
139 | 162 | | |
140 | | - | |
| 163 | + | |
141 | 164 | | |
142 | 165 | | |
143 | 166 | | |
144 | 167 | | |
145 | 168 | | |
146 | 169 | | |
147 | 170 | | |
148 | | - | |
| 171 | + | |
149 | 172 | | |
150 | 173 | | |
151 | 174 | | |
152 | 175 | | |
153 | 176 | | |
154 | | - | |
| 177 | + | |
155 | 178 | | |
156 | 179 | | |
157 | 180 | | |
158 | 181 | | |
159 | | - | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
160 | 194 | | |
161 | 195 | | |
162 | | - | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
163 | 200 | | |
164 | 201 | | |
165 | 202 | | |
0 commit comments