apple-data 0.1.0 → 1.0.1

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.
Files changed (85) hide show
  1. checksums.yaml +4 -4
  2. data/lib/apple_data/boot_args.rb +5 -0
  3. data/lib/apple_data/fdr.rb +30 -0
  4. data/lib/apple_data/ioreg.rb +57 -0
  5. data/lib/apple_data/ipsw.rb +25 -0
  6. data/lib/apple_data/keybag.rb +56 -0
  7. data/lib/apple_data/lockdown.rb +48 -0
  8. data/lib/apple_data/macho.rb +5 -0
  9. data/lib/apple_data/version.rb +5 -0
  10. data/lib/apple_data.rb +8 -0
  11. data/share/4cc.yaml +297 -293
  12. data/share/apns.yaml +367 -364
  13. data/share/backup.yaml +47 -44
  14. data/share/baseband/qualcomm/mav13.yaml +26 -0
  15. data/share/baseband/qualcomm/mav20.yaml +45 -0
  16. data/share/baseband/qualcomm/mav21.yaml +254 -0
  17. data/share/baseband.yaml +290 -1
  18. data/share/bluetooth.yaml +75 -71
  19. data/share/boot_args.yaml +863 -855
  20. data/share/bridgeos.yaml +174 -131
  21. data/share/bundles.yaml +56 -60
  22. data/share/coprocessor.yaml +64 -0
  23. data/share/cores.yaml +72 -47
  24. data/share/debug.yaml +13 -0
  25. data/share/defaults.yaml +5 -0
  26. data/share/dnssd.yaml +171 -166
  27. data/share/entitlements.yaml +10391 -0
  28. data/share/environment_variables.yaml +354 -0
  29. data/share/esim.yaml +7 -0
  30. data/share/fdr.yaml +150 -148
  31. data/share/firmware.yaml +1310 -0
  32. data/share/homekit.yaml +14 -14
  33. data/share/iboot.yaml +143 -0
  34. data/share/icloud.yaml +11 -8
  35. data/share/img4.yaml +454 -453
  36. data/share/ioreg.yaml +5647 -5642
  37. data/share/ipsw.yaml +51505 -1099
  38. data/share/kext.yaml +3491 -1718
  39. data/share/keybags/7000.yaml +44342 -0
  40. data/share/keybags/7001.yaml +19430 -0
  41. data/share/keybags/7002.yaml +292 -0
  42. data/share/keybags/8000.yaml +82065 -0
  43. data/share/keybags/8001.yaml +29655 -0
  44. data/share/keybags/8004.yaml +295 -0
  45. data/share/keybags/8006.yaml +65 -0
  46. data/share/keybags/8010.yaml +23899 -0
  47. data/share/keybags/8011.yaml +4409 -0
  48. data/share/keybags/8015.yaml +23626 -0
  49. data/share/keybags/8020.yaml +4488 -0
  50. data/share/keybags/8027.yaml +43 -0
  51. data/share/keybags/8030.yaml +8687 -0
  52. data/share/keybags/8101.yaml +8595 -0
  53. data/share/keybags/8720.yaml +2026 -0
  54. data/share/keybags/8900.yaml +2344 -0
  55. data/share/keybags/8920.yaml +6761 -0
  56. data/share/keybags/8922.yaml +3141 -0
  57. data/share/keybags/8930.yaml +20583 -0
  58. data/share/keybags/8940.yaml +36319 -0
  59. data/share/keybags/8942.yaml +17343 -0
  60. data/share/keybags/8945.yaml +23360 -0
  61. data/share/keybags/8947.yaml +1384 -0
  62. data/share/keybags/8950.yaml +16258 -0
  63. data/share/keybags/8955.yaml +52163 -0
  64. data/share/keybags/8960.yaml +49499 -0
  65. data/share/keys.yaml +56 -0
  66. data/share/lightning.yaml +26 -23
  67. data/share/lockdownd.yaml +74 -71
  68. data/share/mach_o.yaml +204 -172
  69. data/share/mobile_assets.yaml +113 -127
  70. data/share/mobile_gestalt.yaml +2447 -2444
  71. data/share/nvram.yaml +463 -441
  72. data/share/ota.yaml +4 -1
  73. data/share/pki.yaml +103 -99
  74. data/share/platforms.yaml +35 -31
  75. data/share/pmu.yaml +52 -26
  76. data/share/registers.yaml +1579 -1603
  77. data/share/resources.yaml +202 -198
  78. data/share/sep.yaml +210 -206
  79. data/share/services.yaml +641 -636
  80. data/share/sip.yaml +64 -0
  81. data/share/smc.yaml +7 -0
  82. data/share/syscfg.yaml +4 -1
  83. data/share/tipw_sync.yaml +79103 -0
  84. data/share/vmapple.yaml +35 -0
  85. metadata +80 -15
data/share/keys.yaml ADDED
@@ -0,0 +1,56 @@
1
+ ---
2
+ metadata:
3
+ description:
4
+ credits:
5
+ keys:
6
+ 0x07D0: uid
7
+ 0x03E8: gid
8
+ derrived_keys:
9
+ 0x835:
10
+ type: uid
11
+ data: 0x01010101010101010101010101010101
12
+ description: |
13
+ Used for data protection.
14
+ 0x836:
15
+ type: uid
16
+ data: 0x00E5A0E6526FAE66C5C1C6D4F16D6180
17
+ description: |
18
+ This is computed by the kernel during a restore, but is zeroed out during a normal boot. It is also computed by
19
+ the Secure Bootloader, and its only known use is to decrypt LLB in NOR. Like `0x835`, it is different
20
+ for each device.
21
+ 0x837:
22
+ type: gid
23
+ chip_id: 8900
24
+ data: 0x345A2D6C5050D058780DA431F0710E15
25
+ value: 0x188458A6D15034DFE386F23B61D43774
26
+ description: |
27
+ It is used as the encryption key for IMG2 files. With the introduction of IMG3 in iPhone OS 2.0, KBAGs are now
28
+ used instead of the `0x837` key. Because iPhone OS versions 1.x were used only on the iPhone and iPod touch
29
+ (both use the S5L8900) the encrypted values for other processors don't matter.
30
+ 0x838:
31
+ type: uid
32
+ data: 0x8C8318A27D7F030717D2B8FC5514F8E1
33
+ description: |
34
+ Another UID-AES-key-based key, it is used to encrypt everything but LLB in the NOR (iBoot,
35
+ DeviceTree, pictures).
36
+ 0x899:
37
+ type: uid
38
+ data: 0xD1E8FCB53937BF8DEFC74CD1D0F1D4B0
39
+ description: Usage unknown.
40
+ 0x89A:
41
+ type: uid
42
+ data: 0xDB1F5B33606C5F1C1934AA66589C0661
43
+ description: |
44
+ Used on A4 devices. A device-specific key. It is used to encrypt the SHSH blobs on the device.
45
+ 0x89B:
46
+ type: uid
47
+ data: 0x183E99676BB03C546FA468F51C0CBD49
48
+ description: |
49
+ It is used to encrypt the data partition key.
50
+ 0x8A3:
51
+ type: uid
52
+ mode: AES-256-CBC
53
+ data: 0x568241656551e0cdf56ff84cc11a79ef
54
+ description: |
55
+ It is used during software upgrades on A12 and later to encrypt the "generator" value (using AES-128-CBC)
56
+ before hashing it to become the nonce.
data/share/lightning.yaml CHANGED
@@ -1,35 +1,38 @@
1
1
  ---
2
- description: Lightning Accessory IDs and protocols
3
- credit:
2
+ metadata:
3
+ description: Lightning Accessory IDs and protocols
4
+ credits: []
5
+ credit:
4
6
  - https://nyansatan.github.io/lightning/
5
7
  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
8
  dcsd:
13
9
  description: Apple diagnostic cable from the factory
14
10
  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
11
+ dfu:
12
+ description: Casues the Hydra/Tristar to assert the FORCE_DFU pin
13
+ id: 524288
27
14
  haywire:
28
15
  description: Apple HDMI adapter
29
16
  id: 0BF000000000
17
+ headphone:
18
+ description: Apple 3.5mm headphone adapter
19
+ id: 04F100000000
20
+ kanzi_swd:
21
+ description: Apple Kanzi cable in SWD single wire debug
22
+ id: A00C00000000
23
+ kanzi_swd_astris:
24
+ description: Apple Kanzi cable in SWD single wire debug with Astris running
25
+ id: 200E00000000
26
+ kong_swd:
27
+ description: Apple Kong debug cable
28
+ id: A00000000000
29
+ kong_swd_astris:
30
+ description: The ID presented by a Kong cable to enter serial wire debug with
31
+ Astris running
32
+ id: 200200000000
33
+ reset:
34
+ description: Causes the Hydra/Tristar to pull the device through reset
35
+ id: E00A00000000
30
36
  uart:
31
37
  description: UART serial
32
38
  id: 200010000000
33
- headphone:
34
- description: Apple 3.5mm headphone adapter
35
- id: 04F100000000
data/share/lockdownd.yaml CHANGED
@@ -1,4 +1,7 @@
1
1
  ---
2
+ metadata:
3
+ description:
4
+ credits:
2
5
  clients:
3
6
  - AMPDeviceDiscoveryAgent
4
7
  - Safari
@@ -6,74 +9,74 @@ clients:
6
9
  - accountsd
7
10
  - atwakeup
8
11
  - 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
12
+ lockdownd_domains:
13
+ com.apple.Accessibility:
14
+ description:
15
+ properties:
16
+ - ClosedCaptioningEnabledByiTunes
17
+ - InvertDisplayEnabledByiTunes
18
+ - MonoAudioEnabledByiTunes
19
+ - SpeakAutoCorrectionsEnabledByiTunes
20
+ - VoiceOverTouchEnabledByiTunes
21
+ - ZoomTouchEnabledByiTunes
22
+ com.apple.mobile.backup:
23
+ description:
24
+ properties:
25
+ - CloudBackupEnabled
26
+ - LastCloudBackupDate
27
+ - LastCloudBackupTZ
28
+ - WillEncrypt
29
+ com.apple.mobile.data_sync:
30
+ description:
31
+ properties: []
32
+ com.apple.mobile.iTunes:
33
+ description:
34
+ properties: []
35
+ com.apple.mobile.iTunes.accessories:
36
+ description:
37
+ properties: []
38
+ com.apple.mobile.restriction:
39
+ description:
40
+ properties:
41
+ - ClosedCaptioningEnabledByiTunes
42
+ - CloudBackupEnabled
43
+ - DeveloperStatus
44
+ - EnableWifiConnections
45
+ - EnableWifiDebugging
46
+ - InvertDisplayEnabledByiTunes
47
+ - LastCloudBackupDate
48
+ - LastCloudBackupTZ
49
+ - MonoAudioEnabledByiTunes
50
+ - Notes
51
+ - ProhibitAppDelete
52
+ - ProhibitAppInstall
53
+ - RestoreState
54
+ - SetupState
55
+ - SpeakAutoCorrectionsEnabledByiTunes
56
+ - VoiceOverTouchEnabledByiTunes
57
+ - WillEncrypt
58
+ - ZoomTouchEnabledByiTunes
59
+ com.apple.mobile.tethered_sync:
60
+ description:
61
+ properties:
62
+ - Notes
63
+ com.apple.mobile.wireless_lockdown:
64
+ description:
65
+ properties:
66
+ - EnableWifiConnections
67
+ - EnableWifiDebugging
68
+ com.apple.MobileDeviceCrashCopy:
69
+ description:
70
+ properties: []
71
+ com.apple.purplebuddy:
72
+ description:
73
+ properties:
74
+ - RestoreState
75
+ - SetupState
76
+ com.apple.TerminalFlashr:
77
+ description:
78
+ properties: []
79
+ com.apple.xcode.developerdomain:
80
+ description:
81
+ properties:
82
+ - DeveloperStatus