forked from SchemaStore/schemastore
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdatalogic-scan2deploy-android.json
723 lines (723 loc) · 24.6 KB
/
datalogic-scan2deploy-android.json
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
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
{
"definitions": {},
"$schema": "http://json-schema.org/draft-07/schema#",
"$id": "http://example.com/root.json",
"type": "object",
"title": "Android-Scan2Deploy Schema",
"description": "Schema to validate Android JSON files given as input to DL-Config to generate Scan2Deploy barcodes",
"properties": {
"layout": {
"$id": "#/properties/layout",
"type": "object",
"title": "Layout Schema",
"properties": {
"description": {
"$id": "#/properties/layout/properties/description",
"type": "string",
"title": "Description Schema",
"default": "none",
"examples": [
"This is for our Android devices"
],
"maxLength": 350
},
"enroll": {
"$id": "#/properties/layout/properties/enroll",
"type": "boolean",
"title": "Enroll Schema",
"default": false,
"examples": [
true
]
}
}
},
"padlock": {
"$id": "#/properties/padlock",
"type": "object",
"title": "Padlock Schema",
"description": "Section used to configure the staging locking feature",
"properties": {
"valid-until": {
"$id": "#/properties/padlock/properties/valid-until",
"type": "string",
"title": "Valid-Until Schema",
"description": "Specifies the expiration date of the barcode sequence. Device date must be synchronized/configured for expiration date to work properly.",
"default": "20991231235959",
"examples": [
"20991231235959"
]
},
"key": {
"$id": "#/properties/padlock/properties/key",
"type": "string",
"title": "Key Schema",
"description": "Padlock key to be used. If value doesn't match the device, the barcode is rejected. Empty string means no key.",
"default": "",
"examples": [
"ihavenomouthandimustscream"
]
},
"state": {
"$id": "#/properties/padlock/properties/state",
"type": "string",
"enum": [
"locked",
"unlocked"
],
"title": "State Schema",
"description": "Configures the padlock state",
"default": "undefined",
"examples": [
"locked"
]
},
"hide-from-launcher": {
"$id": "#/properties/padlock/properties/hide-from-launcher",
"type": "boolean",
"title": "Hide-From-Launcher Schema",
"description": "Indicates if Scan2Deploy should be disabled after staging is complete. Once disabled, factory reset required to reenable.",
"default": false,
"examples": [
false
]
}
}
},
"global": {
"$id": "#/properties/global",
"type": "object",
"title": "Global Schema",
"description": "Section used to configure application scoped settings",
"properties": {
"target-path": {
"$id": "#/properties/global/properties/target-path",
"type": "string",
"title": "Target-Path Schema",
"description": "Base destination folder where any archive/fill will be inflated/written. Default is device internal SD-card root",
"examples": [
"/mnt/sdcard/airwatch"
]
},
"install-path": {
"$id": "#/properties/global/properties/install-path",
"type": "string",
"title": "Install-Path Schema",
"description": "Folder where the application expects auto-installed/auto-updated APKs to be found. Default is value specified in 'target path'.",
"examples": [
"/mnt/sdcard/airwatch"
]
},
"update-path": {
"$id": "#/properties/global/properties/update-path",
"type": "string",
"title": "Update-Path Schema",
"description": "Folder where the application expects auto-updated OTA packages to be found. Default is value specified in 'target path'.",
"examples": [
"/mnt/sdcard/airwatch"
]
},
"purge-target-path": {
"$id": "#/properties/global/properties/purge-target-path",
"type": "boolean",
"title": "Purge-Target-Path Schema",
"description": "Indicates if target specified in 'target-path' needs to be purged (deleted) prior to inflation of the deployment archive",
"default": true,
"examples": [
true
]
},
"auto-scan": {
"$id": "#/properties/global/properties/auto-scan",
"type": "boolean",
"title": "Auto-Scan Schema",
"description": "Enables/Disables the auto-update of APKs and OTA packages",
"default": false,
"examples": [
true
]
},
"download-preinstalled": {
"$id": "#/properties/global/properties/download-preinstalled",
"type": "boolean",
"title": "Download-Preinstalled Schema",
"description": "Used to force the downgrade of pre-installed application (even System app), if required",
"default": false,
"examples": [
false
]
},
"script": {
"$id": "#/properties/global/properties/script",
"type": [ "string", "array" ],
"title": "Script Schema",
"description": "A string specifying the absolute/relative path of a file, or a JSON array of strings describing the file content line-by-line. The script file will be interpreted last in staging process.",
"items": {
"$id": "#/properties/global/properties/script/items",
"type": "string",
"title": "Items Schema",
"default": "",
"examples": [
"[Install]",
"INSTALL /sdcard/Download/fa.apk",
"[Post-Install]",
"SHELL am start -a android.intent.action.MAIN -n com.example.mchew.fakeapp/.MainActivity"
]
},
"default": "",
"examples": [
"setup.s"
]
},
"action": {
"$id": "#/properties/global/properties/action",
"type": "string",
"enum": [
"none",
"close",
"enterprise-reset",
"factory-reset",
"reset"
],
"title": "Action Schema",
"description": "Specifies the final action performed by the application at the end of the staging process.",
"default": "none",
"examples": [
"close"
]
},
"backup-to-enterprise": {
"$id": "#/properties/global/properties/backup-to-enterprise",
"type": "boolean",
"title": "Backup-To-Enterprise Schema",
"description": "Activates the enterprise backup persistence for the staging data, resulting in both the staging script and archive being copied to the enterprise partition",
"default": false,
"examples": [
true
]
}
}
},
"settings": {
"$id": "#/properties/settings",
"type": "object",
"title": "Settings Schema",
"description": "Section used to control inner device settings that typically need to be changed from the Android defaults",
"properties": {
"date-time": {
"$id": "#/properties/settings/properties/date-time",
"type": "string",
"title": "Date-Time Schema",
"description": "String representation in RFC-1123 format of the date to be set",
"default": "null",
"examples": [
"Thu, 19 Apr 2018 07:51:37 GMT"
]
},
"auto-time": {
"$id": "#/properties/settings/properties/auto-time",
"type": "boolean",
"title": "Auto-Time Schema",
"description": "Controls the 'Date & Time' automatic date-time adjustment setting",
"default": true,
"examples": [
false
]
},
"auto-time-zone": {
"$id": "#/properties/settings/properties/auto-time-zone",
"type": "boolean",
"title": "Auto-Time-Zone Schema",
"description": "Controls the 'Date & Time' automatic time-zone adjustment setting",
"default": true,
"examples": [
false
]
},
"auto-time-server": {
"$id": "#/properties/settings/properties/auto-time-server",
"type": "string",
"title": "Auto-Time-Server Schema",
"description": "Address of the NTP server to be used for date-time synchronization",
"default": "null",
"examples": [
"pool.ntp.org"
]
},
"debug-bridge": {
"$id": "#/properties/settings/properties/debug-bridge",
"type": "boolean",
"title": "Debug-Bridge Schema",
"description": "Controls the state of 'Android Debug Bridge'",
"default": true,
"examples": [
false
]
},
"lock-screen": {
"$id": "#/properties/settings/properties/lock-screen",
"type": "boolean",
"title": " Lock-Screen Schema",
"description": "Controls the state of Android's lock-screen, requiring the user to swipe the display to unlock the device",
"default": true,
"examples": [
false
]
},
"status-bar": {
"$id": "#/properties/settings/properties/status-bar",
"type": "boolean",
"title": "Status-Bar Schema",
"description": "Controls the display of the top status-bar. Note: hiding the status-bar will make notification disappear.",
"default": true,
"examples": [
false
]
},
"navigation-bar": {
"$id": "#/properties/settings/properties/navigation-bar",
"type": "boolean",
"title": "Navigation-Bar Schema",
"description": "Controls the display of the bottom navigation-bar",
"default": true,
"examples": [
true
]
},
"charge-threshold": {
"$id": "#/properties/settings/properties/charge-threshold",
"type": "integer",
"title": "Charge-Threshold Schema",
"description": "Indicates the charge threshold a battery exhausted device needs to reach to automatically boot when recharging",
"default": 5,
"examples": [
0
],
"minimum": 0,
"maximum": 100
},
"usb-profile": {
"$id": "#/properties/settings/properties/usb-profile",
"type": "string",
"enum": [
"NONE",
"BOTH",
"DATA",
"CHARGE"
],
"title": "Usb-Profile Schema",
"description": "USB communication profile in use",
"default": "BOTH",
"examples": [
"NONE"
]
},
"usb-function": {
"$id": "#/properties/settings/properties/usb-function",
"type": "string",
"enum": [
"MTP",
"PTP",
"CHARGING"
],
"title": "Usb-Function Schema",
"description": "USB communication function in use",
"default": "CHARGING",
"examples": [
"CHARGING"
]
}
}
},
"network": {
"$id": "#/properties/network",
"type": "object",
"title": "Network Schema",
"description": "Section used to configure the device Wi-Fi network",
"properties": {
"essid": {
"$id": "#/properties/network/properties/essid",
"type": "string",
"title": "Essid Schema",
"description": "Wireless network ESSID",
"default": "tsunami",
"examples": [
"TESTTKIP"
]
},
"hidden": {
"$id": "#/properties/network/properties/hidden",
"type": "boolean",
"title": "Hidden Schema",
"description": "Indicates if the wireless network is using a hidden ESSID",
"default": false,
"examples": [
false
]
},
"mode": {
"$id": "#/properties/network/properties/mode",
"type": "string",
"enum": [
"open",
"wep-40",
"wep-104",
"wpa-psk",
"wpa2-psk",
"wpa-eap",
"wpa2-eap"
],
"title": "Mode Schema",
"description": "Wireless connection mode",
"default": "open",
"examples": [
"wpa-psk"
]
},
"mode-key": {
"$id": "#/properties/network/properties/mode-key",
"type": "string",
"title": "Mode-Key Schema",
"description": "Wireless network key, if needed",
"default": "",
"examples": [
"datalogic"
]
},
"mode-key-encrypted": {
"$id": "#/properties/network/properties/mode-key-encrypted",
"type": "boolean",
"title": "Mode-Key-Encrypted Schema",
"description": "Indicates if 'mode-key' is written in plain-text or encrypted with a custom encryption algorithm",
"default": false,
"examples": [
false
]
},
"eap-method": {
"$id": "#/properties/network/properties/eap-method",
"type": "string",
"enum": [
"none",
"peap",
"tls",
"ttls",
"pwd",
"sim",
"aka",
"aka-prime"
],
"title": "Eap-Method Schema",
"description": "Configures the EAP authentication method",
"default": "none",
"examples": [
"none"
]
},
"eap-phase2": {
"$id": "#/properties/network/properties/eap-phase2",
"type": "string",
"enum": [
"none",
"pap",
"mschap",
"mschapv2",
"gtc"
],
"title": "Eap-Phase2 Schema",
"description": "Configures the EAP phase 2 authentication method",
"default": "none",
"examples": [
"none"
]
},
"eap-identity": {
"$id": "#/properties/network/properties/eap-identity",
"type": "string",
"title": "Eap-Identity Schema",
"description": "Indicates the EAP identity",
"default": "",
"examples": [
""
]
},
"eap-anonymous-identity": {
"$id": "#/properties/network/properties/eap-anonymous-identity",
"type": "string",
"title": "Eap-Anonymous-Identity Schema",
"description": "Indicates the EAP anonymous identity, used as the unencrypted identity with certain EAP types",
"default": "",
"examples": [
""
]
},
"eap-password": {
"$id": "#/properties/network/properties/eap-password",
"type": "string",
"title": "Eap-Password Schema",
"description": "EAP password, if needed",
"default": "",
"examples": [
""
]
},
"eap-password-encrypted": {
"$id": "#/properties/network/properties/eap-password-encrypted",
"type": "boolean",
"title": "Eap-Password-Encrypted Schema",
"description": "Indicates if the 'eap-password' is encrypted with a custom encryption algorithm",
"default": false,
"examples": [
false
]
},
"eap-certificate": {
"$id": "#/properties/network/properties/eap-certificate",
"type": "string",
"title": "Eap-Certificate Schema",
"description": "Base64 representation of the EAP certificate to use",
"default": "",
"examples": [
""
]
},
"proxy-host": {
"$id": "#/properties/network/properties/proxy-host",
"type": "string",
"title": "Proxy-Host Schema",
"description": "Server name or IP address of the proxy to be used for HTTP/HTTPS communications",
"default": "",
"examples": [
""
]
},
"proxy-port": {
"$id": "#/properties/network/properties/proxy-port",
"type": "integer",
"title": "Proxy-Port Schema",
"description": "Server IP port of the proxy for HTTP/HTTPS communications",
"default": 0,
"examples": [
0
],
"minimum": 0,
"maximum": 65535
},
"purge": {
"$id": "#/properties/network/properties/purge",
"type": "boolean",
"title": "Purge Schema",
"description": "Indicates if any currently configured wireless network needs to be removed. Can be useful to avoid profile roaming.",
"default": true,
"examples": [
true
]
},
"reconfigure": {
"$id": "#/properties/network/properties/reconfigure",
"type": "boolean",
"title": "Reconfigure Schema",
"description": "If true, will reconfigure any existing and matching network. If false, will leave existing network untouched. Setting used when 'purge' is set to false.",
"default": true,
"examples": [
false
]
},
"sleep-policy": {
"$id": "#/properties/network/properties/sleep-policy",
"type": "integer",
"title": "Sleep-Policy Schema",
"description": "Wireless sleep policy for Android's Settings.Global parameter (0-WIFI_SLEEP_POLICY_DEFAULT, 1-WIFI_SLEEP_POLICY_NEVER_WHILE_PLUGGED, 2-WIFI_SLEEP_POLICY_NEVER)",
"default": 2,
"examples": [
2
],
"minimum": 0,
"maximum": 2
},
"frequency-band": {
"$id": "#/properties/network/properties/frequency-band",
"type": "string",
"enum": [
"auto",
"5ghz",
"2ghz"
],
"title": "Frequency-Band Schema",
"description": "Controls the frequency bands supported by the device",
"default": "auto",
"examples": [
"auto"
]
},
"save-to-file": {
"$id": "#/properties/network/properties/save-to-file",
"type": "string",
"title": "Save-To-File Schema",
"description": "Absolute path to the file where the current network configuration will be saved, empty string indicates network configuration won't be serialized to a file",
"default": "",
"examples": [
""
]
},
"ephemeral": {
"$id": "#/properties/network/properties/ephemeral",
"type": "boolean",
"title": "Ephemeral Schema",
"description": "If true, wireless connection profile will be used during staging process, then deleted after staging. If false, wireless connection profile will still be present after staging process.",
"default": true,
"examples": [
false
]
},
"wait-for-connection": {
"$id": "#/properties/network/properties/wait-for-connection",
"type": "boolean",
"title": "Wait-For-Connection Schema",
"description": "Indicates whether a valid Wi-Fi connection has to be waited once the network configuration is complete. Can be useful when device needs to be configured but a valid Wi-Fi connection is not ready yet.",
"default": true,
"examples": [
true
]
}
},
"if": {
"properties": {
"mode": { "enum": [ "wpa-psk", "wpa2-psk", "wep-40", "wep-104" ] }
}
},
"then": { "required": [ "mode-key" ] }
},
"deployment": {
"$id": "#/properties/deployment",
"type": "object",
"title": "Deployment Schema",
"description": "Section can be used to download a ZIP archive from a server and inflate it to the 'target-path' folder",
"properties": {
"scheme": {
"$id": "#/properties/deployment/properties/scheme",
"type": "string",
"enum": [
"http",
"https"
],
"title": "Scheme Schema",
"description": "Deployment download scheme to use",
"default": "http",
"examples": [
"http"
]
},
"host": {
"$id": "#/properties/deployment/properties/host",
"type": "string",
"title": "Host Schema",
"description": "Host-name or internet-protocol address of the server from which the resource is to be fetched",
"examples": [
"172.19.0.77"
]
},
"port": {
"$id": "#/properties/deployment/properties/port",
"type": "integer",
"title": "Port Schema",
"description": "TCP/IP port to be used to contact the server",
"default": 80,
"examples": [
8080
],
"minimum": 0,
"maximum": 65535
},
"path": {
"$id": "#/properties/deployment/properties/path",
"type": "string",
"title": "Path Schema",
"description": "Path to the server resource to download, complete with query string if needed",
"default": "",
"examples": [
"/airwatch.zip"
]
},
"fetch-timeout": {
"$id": "#/properties/deployment/properties/fetch-timeout",
"type": "integer",
"title": "Fetch-Timeout Schema",
"description": "The timeout value used when fetching resource from host",
"default": 60000,
"examples": [
60000
]
},
"check-timeout": {
"$id": "#/properties/deployment/properties/check-timeout",
"type": "integer",
"title": "Check-Timeout Schema",
"description": "The timeout value used when attempting to reach the host server",
"default": 1000,
"examples": [
1000
]
},
"working-archive": {
"$id": "#/properties/deployment/properties/working-archive",
"type": "string",
"title": "Working-Archive Schema",
"description": "String representation of the archive path-file name, once downloaded",
"default": "/mnt/sdcard/scan2deploy.archive",
"examples": [
"/mnt/sdcard/target.zip"
]
},
"skip-inflation": {
"$id": "#/properties/deployment/properties/skip-inflation",
"type": "boolean",
"title": "Skip-Inflation Schema",
"description": "Instructs the application not to inflate the deployment archive once downloaded, can be useful to speed the OTA update process up",
"default": false,
"examples": [
true
]
}
},
"required": [
"host"
]
},
"blobs": {
"$id": "#/properties/blobs",
"type": "array",
"title": "Blobs Schema",
"description": "Section used to transfer binary data to newly created file on device",
"items": {
"$id": "#/properties/blobs/items",
"type": "object",
"title": "Items Schema",
"required": [
"file",
"content"
],
"properties": {
"file": {
"$id": "#/properties/blobs/items/properties/file",
"type": "string",
"title": "File Schema",
"description": "Path to the file to be created. Can be either absolute or relative to the global/target-path parameter value. During file de-serialization, any required (parent) path is automatically created.",
"examples": [
"/mnt/sdcard/airwatch/credentials.bin"
]
},
"content": {
"$id": "#/properties/blobs/items/properties/content",
"type": "string",
"title": "Content Schema",
"description": "Base64 representation of the actual file content",
"examples": [
"fd09B1iL/k4jRWrjrP0/sO44teY+B3UafBLsMsCEqd1KOv6b6JYBXLVv70FmHdZhIVoEOQvHu7O4PUJStpZQ+4PYjPqCO+NQr81M7GOF421Ke8L2u4EYyqDE5qXfLy2shEgaRwRpr2f35/38WZkh6edyiWZQJjyLeZcuI7WiaJPpw7Jcw7ye7mb7Rl+ePNFmfvUrpeRFtN+5kUsx/SbB1v0gDyOOuoep"
]
}
}
}
}
}
}