apple-data 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,35 @@
1
+ ---
2
+ description: Lightning Accessory IDs and protocols
3
+ credit:
4
+ - https://nyansatan.github.io/lightning/
5
+ accessory_id:
6
+ reset:
7
+ description: Causes the Hydra/Tristar to pull the device through reset
8
+ id: E00A00000000
9
+ dfu:
10
+ description: Casues the Hydra/Tristar to assert the FORCE_DFU pin
11
+ id: 000002000000
12
+ dcsd:
13
+ description: Apple diagnostic cable from the factory
14
+ id: 200000000000
15
+ kong_swd_astris:
16
+ description: The ID presented by a Kong cable to enter serial wire debug with Astris running
17
+ id: 200200000000
18
+ kong_swd:
19
+ description: Apple Kong debug cable
20
+ id: A00000000000
21
+ kanzi_swd_astris:
22
+ description: Apple Kanzi cable in SWD single wire debug with Astris running
23
+ id: 200E00000000
24
+ kanzi_swd:
25
+ description: Apple Kanzi cable in SWD single wire debug
26
+ id: A00C00000000
27
+ haywire:
28
+ description: Apple HDMI adapter
29
+ id: 0BF000000000
30
+ uart:
31
+ description: UART serial
32
+ id: 200010000000
33
+ headphone:
34
+ description: Apple 3.5mm headphone adapter
35
+ id: 04F100000000
@@ -0,0 +1,79 @@
1
+ ---
2
+ clients:
3
+ - AMPDeviceDiscoveryAgent
4
+ - Safari
5
+ - SpringBoard
6
+ - accountsd
7
+ - atwakeup
8
+ - backupd
9
+ domains:
10
+ - name: com.apple.Accessibility
11
+ description:
12
+ properties:
13
+ - ClosedCaptioningEnabledByiTunes
14
+ - InvertDisplayEnabledByiTunes
15
+ - MonoAudioEnabledByiTunes
16
+ - SpeakAutoCorrectionsEnabledByiTunes
17
+ - VoiceOverTouchEnabledByiTunes
18
+ - ZoomTouchEnabledByiTunes
19
+ - name: com.apple.MobileDeviceCrashCopy
20
+ description:
21
+ properties: []
22
+ - name: com.apple.TerminalFlashr
23
+ description:
24
+ properties: []
25
+ - name: com.apple.mobile.backup
26
+ description:
27
+ properties:
28
+ - CloudBackupEnabled
29
+ - LastCloudBackupDate
30
+ - LastCloudBackupTZ
31
+ - WillEncrypt
32
+ - name: com.apple.mobile.data_sync
33
+ description:
34
+ properties: []
35
+ - name: com.apple.mobile.iTunes
36
+ description:
37
+ properties: []
38
+ - name: com.apple.mobile.iTunes.accessories
39
+ description:
40
+ properties: []
41
+ - name: com.apple.mobile.restriction
42
+ description:
43
+ properties:
44
+ - ClosedCaptioningEnabledByiTunes
45
+ - CloudBackupEnabled
46
+ - DeveloperStatus
47
+ - EnableWifiConnections
48
+ - EnableWifiDebugging
49
+ - InvertDisplayEnabledByiTunes
50
+ - LastCloudBackupDate
51
+ - LastCloudBackupTZ
52
+ - MonoAudioEnabledByiTunes
53
+ - Notes
54
+ - ProhibitAppDelete
55
+ - ProhibitAppInstall
56
+ - RestoreState
57
+ - SetupState
58
+ - SpeakAutoCorrectionsEnabledByiTunes
59
+ - VoiceOverTouchEnabledByiTunes
60
+ - WillEncrypt
61
+ - ZoomTouchEnabledByiTunes
62
+ - name: com.apple.mobile.tethered_sync
63
+ description:
64
+ properties:
65
+ - Notes
66
+ - name: com.apple.mobile.wireless_lockdown
67
+ description:
68
+ properties:
69
+ - EnableWifiConnections
70
+ - EnableWifiDebugging
71
+ - name: com.apple.purplebuddy
72
+ description:
73
+ properties:
74
+ - RestoreState
75
+ - SetupState
76
+ - name: com.apple.xcode.developerdomain
77
+ description:
78
+ properties:
79
+ - DeveloperStatus
data/share/mach_o.yaml ADDED
@@ -0,0 +1,428 @@
1
+ ---
2
+ cpu_types:
3
+ file_types:
4
+ MH_OBJECT:
5
+ description: An intermediate object file that results from a compile unit (e.g. single .c file)
6
+ value: 1
7
+ MH_EXECUTE:
8
+ description: A complete executable MachO file (typically a user mode binary)
9
+ value: 2
10
+ MH_FVMLIB:
11
+ description: A FVM (fixed virtual memory, or non-relocatable/non-position independenct code PIC) dynamic library
12
+ value: 3
13
+ MH_CORE:
14
+ description: A core dump (user or kernel)
15
+ value: 4
16
+ MH_PRELOAD:
17
+ description: \"Preloaded\" images. Used for firmware payloads
18
+ value: 5
19
+ MH_DYLIB:
20
+ description: A dynamic (read bound at runtime) library
21
+ value: 6
22
+ MH_DYLINKER:
23
+ description: A dynamic linker (typically only one exists and is
24
+ value: 7
25
+ MH_BUNDLE:
26
+ description: A loadable bundle (often essentially a plugin) should be a complete closure on symbols such as a
27
+ executable but intended to be loaded into another process's virtual memory space. A reason for the usage of
28
+ `MH_BUNDLE` is that the object must be explicitly late bound by calling `dlopen` or related APIs, it cannot
29
+ be linked to as though it were a library.
30
+ value: 8
31
+ MH_DYLIB_STUB:
32
+ description: An object used for linking that contains no content. Somewhat similar in nature to a `.tlb` file and
33
+ no longer in common usage as Apple uses TLB files as a replacement.
34
+ value: 9
35
+ MH_DSYM:
36
+ description: A compile unit containing only debugging symbols
37
+ value: 10
38
+ MH_KEXT_BUNDLE:
39
+ description: A kernel extension bundle. Name comes from 32bit lineage where MH_BUNDLE were kexts on non-64bit
40
+ platforms
41
+ value: 11
42
+ MH_FILESET:
43
+ description: A collection of other MachO files, used by KernelCollections
44
+ value: 12
45
+ segments:
46
+ __TEXT:
47
+ description: The text region contains any executable code (in the machine code
48
+ of the platform for this binary) and therefore will always be a read-only (write
49
+ protected) region of memory when mapped into a process. (r-x)
50
+ __text:
51
+ description: Generic code region. This area will have the execute flag set
52
+ on it's content
53
+ __const:
54
+ description: Constant variables. This region will be non-execute on platforms
55
+ that support execute never, DEP or NX concepts. See `__DATA_CONST.__const`
56
+ __cstring:
57
+ description: ASCII strings null terminated. This region can be split on `\0`
58
+ into strings.
59
+ __os_log:
60
+ description: Specific support for Apple OSLog facility containing the patterns
61
+ used
62
+ __eh_frame:
63
+ description: Execption handling frame
64
+ __stubs:
65
+ description: Locations that text calls that initially point to a helper thunk (see __stub_helper) but will be
66
+ late bound to the dynamic symbol
67
+ __stub_helper:
68
+ description: A helper function that when called binds the prior call site to the proper dyld import
69
+ __info_plist:
70
+ description:
71
+ __unwind_info:
72
+ description: Information to help debuggers / exception handlers unwind the stack (info about prolouge etc)
73
+ allowing for parts of the stack to remain a compiler implementation detail.
74
+ __auth_stubs:
75
+ description:
76
+ __init_offsets:
77
+ description:
78
+ __objc_methlist:
79
+ description:
80
+ __gcc_except_tab:
81
+ description: GCC exception handler table
82
+ __objc_classname:
83
+ description: A collection of strings that provide the names for Objective-C classes in this object file
84
+ __objc_methname:
85
+ description: A colleciton of strings that provide the names of Objective-C methods for a given class (selectors)
86
+ __objc_methtype:
87
+ description:
88
+ __DATA:
89
+ description: Mutable data region (rw-)
90
+ __data:
91
+ description: General purpose mutable data region
92
+ __lock_grp:
93
+ description:
94
+ __percpu:
95
+ description: Local storage per CPU allowing for lock free globals
96
+ __llvm_prf_cnts:
97
+ description:
98
+ __llvm_prf_data:
99
+ description:
100
+ __llvm_prf_names:
101
+ description:
102
+ __llvm_prf_vnds:
103
+ description:
104
+ __llvm_orderfile:
105
+ description:
106
+ __sdt_cstring:
107
+ description:
108
+ __sdt:
109
+ description:
110
+ __common:
111
+ description:
112
+ __bss:
113
+ description: Basic initialized data section
114
+ __got:
115
+ description: Global offset table
116
+ __mod_init_func:
117
+ description: Module initializer function (called at load)
118
+ __mod_term_func:
119
+ description: Module termination function (called at unload)
120
+ __const:
121
+ description: Constant data, no longer in common usage, see __DATA_CONST.__const
122
+ __nl_symbol_ptr:
123
+ description: Non-lazy symbol pointers
124
+ __la_symbol_ptr:
125
+ description: Lazy symbol pointers
126
+ __objc_imageinfo:
127
+ description:
128
+ __objc_selrefs:
129
+ description:
130
+ __objc_classrefs:
131
+ description:
132
+ __objc_superrefs:
133
+ description:
134
+ __objc_ivar:
135
+ description: ObjC instance variables (ivar)
136
+ __DATA_CONST:
137
+ description: Immutable data region (r--)
138
+ __got:
139
+ description: Global offset table
140
+ __mod_init_func:
141
+ description: Module initializer function
142
+ __const:
143
+ description: Constant initialized data
144
+ __kalloc_type:
145
+ description:
146
+ __objc_classlist:
147
+ description: List of ObjC classes exported
148
+ __objc_protolist:
149
+ description: List of ObjC protocols (like interfaces)
150
+ __objc_imageinfo:
151
+ description:
152
+ __objc_const:
153
+ description: Constant ObjC data
154
+ __KLDDATA:
155
+ description: Data region for KLD or kernel linker
156
+ __init:
157
+ description:
158
+ __init_entry_set:
159
+ description:
160
+ __cstring:
161
+ description: C-Style (null terminated) strings for the kernel linker
162
+ __const:
163
+ description: Constant data
164
+ __mod_init_func:
165
+ description: Module initializer funtion
166
+ __mod_term_func:
167
+ description: Module termination function
168
+ __bss:
169
+ description: Initialized data
170
+ __HIB:
171
+ description: Hardware specific information for coming out of hibernation. This section is solely responsable for
172
+ ensuring that the sleepimage is restored. Note that it all operates at the same protection levels (code, const,
173
+ and data) and therefore doesn't take advantage of some hardware protections.
174
+ __text:
175
+ description: Executable code used to pull a machine out of hibernation
176
+ __bootPT:
177
+ description: Initial page table for use during boot up from a hibernation for protected mode
178
+ __desc:
179
+ description:
180
+ __data:
181
+ description: General purpose data region for hibernation restore
182
+ __const:
183
+ description: Constant data
184
+ __cstring:
185
+ description: C-Style strings for the sleep image restore function
186
+ __bss:
187
+ description: Initialized mutable data
188
+ __common:
189
+ description:
190
+ __VECTORS:
191
+ description: Vector table. Often used to configure a kernel / coprocessor for reset, exception etc. See ARM-M
192
+ profile for an example
193
+ __recover:
194
+ description:
195
+ __KLD:
196
+ description: The kernel linker (used to dynamiclly bind a kernel extension) analagous to dyld in user-mode
197
+ __text:
198
+ description: The executable code for the kernel linker
199
+ __LASTDATA_CONST:
200
+ description: Last exported symbol from the const region of the kernel or object
201
+ __mod_init_func:
202
+ description: Module initialization function
203
+ __LAST:
204
+ description: Segment that contains the last kernel symbol exported
205
+ __last:
206
+ description: Contains `_last_kernel_symbol` which is the last exported kernel symbol
207
+ __PRELINK_TEXT:
208
+ description: A region of executable code that is the combination of multiple linkable objects having been prebound
209
+ __text:
210
+ description: The prelinked, executable code region
211
+ __PRELINK_INFO:
212
+ description: Descriptive information about the prelinked region of this object
213
+ __info:
214
+ description:
215
+ __LINKINFO:
216
+ description:
217
+ __symbolsets:
218
+ description:
219
+ __CTF:
220
+ description: Compact C Type Format
221
+ __ctf:
222
+ description: https://github.com/apple-oss-distributions/dtrace/tree/main/tools/ctfconvert
223
+ __LINKEDIT:
224
+ description: Though named "LINKEDIT" this segment actually contains any metadata of this Mach-O object. For example
225
+ this area contains code signature, as well as dynamic linker opcodes. This area is always read only. The
226
+ contents of this area are described by various `LC_` load commands.
227
+ __TEXT_EXEC:
228
+ description:
229
+ __PAGEZERO:
230
+ description: A dummy page used to mark addresses at low memory as not readable. This causes a dereference of a low
231
+ integer to cause a page fault helping not propogate type errors when casting pointers.
232
+ __AUTH_CONST:
233
+ description: Used by arm64e pointer authentication codes (PAC) and read only
234
+ __const:
235
+ description: Authenticated constants
236
+ __auth_got:
237
+ description: Authenticated Global offset Table
238
+ __cfstring:
239
+ description: Authenticated CoreFoundation strings
240
+ __auth_ptr:
241
+ description:
242
+ __objc_const:
243
+ description: Authenticated Objective-C constant values
244
+ __got:
245
+ description: Global offset Table
246
+ __AUTH:
247
+ description: Used by arm64e for pointer authenticaton codes (PAC) mutable data
248
+ __data:
249
+ description: General purpose PAC authenticated data
250
+ __objc_data:
251
+ description: ObjC specific PAC authenticated data
252
+ __OBJC_CONST:
253
+ description: A region of Objective-C metadata that is read-only
254
+ __objc_class_ro:
255
+ description: ObjC class info that is read-only to prevent runtime tampering (swizzling for example)
256
+ commands:
257
+ LC_SEGMENT:
258
+ description: Causes the loading of a 32bit segment with a given protection level. Contains 0 or more sections
259
+ value: 1
260
+ LC_SYMTAB:
261
+ description: Classical symbol table (direct symbols defined in this object)
262
+ value: 2
263
+ LC_SYMSEG:
264
+ description: Classical GCC compatible "symbol segment". Not commonly used as it is replaced with dyld opcodes.
265
+ value: 3
266
+ LC_THREAD:
267
+ description: Initial state of the Mach thread for a executable Mach-O
268
+ value: 4
269
+ LC_UNIXTHREAD:
270
+ description: Initial state of the Unix / POSIX thread for an executable Mach-O
271
+ value: 5
272
+ LC_LOADFVMLIB:
273
+ description:
274
+ value: 6
275
+ LC_IDFVMLIB:
276
+ description:
277
+ value: 7
278
+ LC_IDENT:
279
+ description: Identity of this Mach-O object
280
+ value: 8
281
+ LC_FVMFILE:
282
+ description:
283
+ value: 9
284
+ LC_PREPAGE:
285
+ description:
286
+ value: 10
287
+ LC_DYSYMTAB:
288
+ description: Dynamic or indirect symbol table.
289
+ value: 11
290
+ LC_LOAD_DYLIB:
291
+ description: Load a dynamic library (dylib) by it's identity. This occurs before process start.
292
+ value: 12
293
+ LC_ID_DYLIB:
294
+ description: Unique identifier for this dynamic library to be used in locating it for import
295
+ value: 13
296
+ LC_LOAD_DYLINKER:
297
+ description: Command to load a specific dynamic linker to bind dylibs into this object
298
+ value: 14
299
+ LC_ID_DYLINKER:
300
+ description: The identity of the dynamic linker (dyld) expected to be used to bind this object in memory
301
+ value: 15
302
+ LC_PREBOUND_DYLIB:
303
+ description:
304
+ value: 16
305
+ LC_ROUTINES:
306
+ description: Used to define initialize / finalize functions on 32bit platforms. Historical as _init_func/_term_func
307
+ are now how this is handled.
308
+ value: 17
309
+ LC_SUB_FRAMEWORK:
310
+ description: Used by "Umbrella Frameworks" to declare the frameworks that the umbrella re-exports. For an example
311
+ see Cocoa, AppKit and Foundation
312
+ value: 18
313
+ LC_SUB_UMBRELLA:
314
+ description: Used by "Umbrella Frameworks" that re-export other frameworks (Cocoa exports Foundation, AppKit for
315
+ example of this)
316
+ value: 19
317
+ LC_SUB_CLIENT:
318
+ description:
319
+ value: 20
320
+ LC_SUB_LIBRARY:
321
+ description:
322
+ value: 21
323
+ LC_TWOLEVEL_HINTS:
324
+ description: Two level namespacing allows for the binding to a symbol that may have the same name in two different
325
+ libraries. The first namespace is the dylib contining the symbol and the second namespace is the symbol itself.
326
+ value: 22
327
+ LC_PREBIND_CKSUM:
328
+ description: Checksum data to know if this "optimized" or prebound object is still valid for the files it was
329
+ generated from.
330
+ value: 23
331
+ LC_LOAD_WEAK_DYLIB:
332
+ description: Attempt to load a Dylib but do not fail if binding cannot occur due to its absence
333
+ value: 2147483672
334
+ LC_SEGMENT_64:
335
+ description: Causes the loading of a 64bit segment with a given protection level. Contains 0 or more sections
336
+ value: 25
337
+ LC_ROUTINES_64:
338
+ description: Used to define initialize / finalize functions on 64bit platforms. Historical as _init_func/_term_func
339
+ are now how this is handled.
340
+ value: 26
341
+ LC_UUID:
342
+ description: A UUID (GUID) that uniquely identifies this object. Should only occur once
343
+ value: 27
344
+ LC_RPATH:
345
+ description:
346
+ value: 2147483676
347
+ LC_CODE_SIGNATURE:
348
+ description: Section of mach-o that contains a signature for the object
349
+ value: 29
350
+ LC_SEGMENT_SPLIT_INFO:
351
+ description:
352
+ value: 30
353
+ LC_REEXPORT_DYLIB:
354
+ description: Used to export symbols from an object file that this object imported
355
+ value: 2147483679
356
+ LC_LAZY_LOAD_DYLIB:
357
+ description: Dylibs that should be included in this objects dependencies but should only be loaded and bound when
358
+ a reference is made to them
359
+ value: 32
360
+ LC_ENCRYPTION_INFO:
361
+ description: Used by FairPlay / DSMOS to protect a binary from dump / reverse engineering (DRM, be mindful of DMCA)
362
+ value: 33
363
+ LC_DYLD_INFO:
364
+ description:
365
+ value: 34
366
+ LC_DYLD_INFO_ONLY:
367
+ description:
368
+ value: 2147483682
369
+ LC_LOAD_UPWARD_DYLIB:
370
+ description:
371
+ value: 2147483683
372
+ LC_VERSION_MIN_MACOSX:
373
+ description: A declared minimum SDK for macOS
374
+ value: 36
375
+ LC_VERSION_MIN_IPHONEOS:
376
+ description: A declared minimum SDK for iOS
377
+ value: 37
378
+ LC_FUNCTION_STARTS:
379
+ description:
380
+ value: 38
381
+ LC_DYLD_ENVIRONMENT:
382
+ description:
383
+ value: 39
384
+ LC_MAIN:
385
+ description: Mach-O binary entry point
386
+ value: 2147483688
387
+ LC_DATA_IN_CODE:
388
+ description: Generic region of a Mach-O file that can contain arbitrary data
389
+ value: 41
390
+ LC_SOURCE_VERSION:
391
+ description: The verion of source code this Mach-O file was built from
392
+ value: 42
393
+ LC_DYLIB_CODE_SIGN_DRS:
394
+ description: Classical code signing "designated requirements". No longer in common usage as this is now in a
395
+ LC_CODE_SIGNATURE "magic page"
396
+ value: 43
397
+ LC_ENCRYPTION_INFO_64:
398
+ description: Used by FairPlay / DSMOS to protect a binary from dump / reverse engineering (DRM, be mindful of DMCA)
399
+ value: 44
400
+ LC_LINKER_OPTION:
401
+ description:
402
+ value: 45
403
+ LC_LINKER_OPTIMIZATION_HINT:
404
+ description:
405
+ value: 46
406
+ LC_VERSION_MIN_TVOS:
407
+ description: The minimum tvOS to load and execute this binary
408
+ value: 47
409
+ LC_VERSION_MIN_WATCHOS:
410
+ description: The minimum watchOS to laod and execute this binary
411
+ value: 48
412
+ LC_NOTE:
413
+ description: An arbitrary human readable text note included in this Mach-O. These should not be used by automated
414
+ tooling as their unstructured
415
+ value: 49
416
+ LC_BUILD_VERSION:
417
+ description: Contains information about the binaries platform, it's target and minimum SDK
418
+ value: 50
419
+ LC_DYLD_EXPORTS_TRIE:
420
+ description: The exporeted DYLD symbols from this dylib
421
+ value: 2147483699
422
+ LC_DYLD_CHAINED_FIXUPS:
423
+ description:
424
+ value: 2147483700
425
+ LC_FILESET_ENTRY:
426
+ description: An entry of a Mach-O object containing other Mach-O files. Current usage is in macOS
427
+ 11+ KernelCollections
428
+ value: 2147483701