Repository navigation
Expand file tree
/
Copy pathpatch.a6700.json
More file actions
127 lines (127 loc) · 11.6 KB
/
Copy pathpatch.a6700.json
File metadata and controls
127 lines (127 loc) · 11.6 KB
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
{
"schema": "pilot.patch-map.v1",
"title": "A6700 DT_INIT Pilot startup hook",
"purpose": "Load the persistent Pilot bootstrap at appFw DT_INIT return and record the loader result.",
"target": {
"model": "Sony ILCE-6700",
"firmware": "2.00",
"binary_size": 89027992,
"binary_sha256": "e65fd595052be5d0e98ce8000dfcb94f90a2f8309de70ef140375052009b0ef3",
"patched_binary_sha256": "2523b2ad10c9d17f8064be6735718e98d8278e2c85c0e74e1a5a1c4029fbd857",
"coordinate_rule": "PT_LOAD[0] has p_offset=0 and p_vaddr=0, so VA equals file offset for the listed code sites."
},
"analysis": {
"dt_init_va": "0x1769dd0",
"hook_site_va": "0x1769ddc",
"hook_instruction": "ldp x29, x30, [sp], #0x10",
"startup_trace": {
"path": "/tmp_wbshd/pilot-boot.bin",
"format": "PBT1 little-endian <IIQ>: magic, stage, value; optional dlerror text",
"record_bytes": 16,
"mechanism": "Exclusive creation preserves the first attempt until explicitly rearmed."
},
"loader_calls": {
"dlsym_plt": "0x176b3d0",
"dlsym_got_va": "0x4f1fae0",
"dlopen_plt": "0x176b090",
"dlopen_got_va": "0x4f1f940",
"flags": "RTLD_NOW | RTLD_GLOBAL (0x102)"
},
"module_path": "/usr/lib/pilot.so",
"marker_symbol": "pilot_a6700_v1_marker",
"mount_callback_symbol": "pilot_a6700_v1_on_mount",
"required_before_hook": "pilot.so must already exist at /usr/lib/pilot.so before this hook runs.",
"top_level_scheduler": "ELF loader DT_INIT, after the original appFw initialization call; the DSO worker scans for the SD drive."
},
"segment": {
"program_header_index": 0,
"program_header_offset": "0x40",
"p_filesz_field_offset": "0x60",
"p_memsz_field_offset": "0x68",
"original_size": "0x4488eed",
"target_size": "0x4489a00",
"next_load_file_offset": "0x4489aa0",
"overlap_after_extension": false,
"island_va": "0x4489500",
"island_size": "0x500"
},
"patches": [
{
"id": "post_fsys_mount_branch",
"kind": "AArch64 B immediate",
"va": "0x1769ddc",
"file_offset": "0x1769ddc",
"length": 4,
"original_bytes": "fd7bc1a8",
"original_disassembly": "ldp x29, x30, [sp], #0x10",
"target_bytes": "c97db414",
"target_disassembly": "b 0x4489500",
"role": "Enter the DT_INIT startup hook."
},
{
"id": "post_fsys_mount_dlopen_island",
"kind": "AArch64 code and inline strings",
"va": "0x4489500",
"file_offset": "0x4489500",
"length": 1280,
"original_bytes": "0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
"target_bytes": "ff030cd1f36301f9f46701f9f56b01f9e00700a9e20f01a9e41702a9e61f03a9e82704a9ea2f05a9ec3706a9ee3f07a9f04708a9f27b09a912423bd5f25300f912443bd5f25700f932443bd5f25b00f9e00706ade20f07ade41708ade61f09ade8270aadea2f0badec370cadee3f0dadf0470eadf24f0fadf45710adf65f11adf86712adfa6f13adfc7714adfe7f15ad600c8092611e0010221880d2033080d2080780d2010000d4f30300aaf40300aa290080524b000094000080d2211b001084874b97f40300aa4900805245000094540300b5000080d2c11d00107d874b97f50300aae018001041208052a9864b97f40300aa690080523a000094f40100b5d50100b4a0023fd6800100b47301f8b7e10300aa020080d22968623889000034420400915f0003f183ffff54e00313aa080880d2010000d49300f8b7e00313aa280780d2010000d4e00746ade20f47ade41748ade61f49ade8274aadea2f4badec374cadee3f4dadf0474eadf24f4fadf45750adf65f51adf86752adfa6f53adfc7754adfe7f55adf25b40f932441bd5f25740f912441bd5f25340f912421bd5f27b49a9f04748a9ee3f47a9ec3746a9ea2f45a9e82744a9e61f43a9e41742a9e20f41a9e00740a9f36341f9f46741f9f56b41f9ff030c91fd7bc1a8c1814b177301f8b70a4a88528a2aa672eae302b9e9e702b9f47701f9e00313aae1830b91020280d2080880d2010000d4c0035fd6000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002f7573722f6c69622f70696c6f742e736f00000000000000000000000000000070696c6f745f61363730305f76315f6d61726b6572000000000000000000000070696c6f745f61363730305f76315f6f6e5f6d6f756e740000000000000000002f746d705f77627368642f70696c6f742d626f6f742e62696e0000000000000000000000000000000000000000000000646c6572726f72000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
"role": "Record startup loading and replay the original DT_INIT epilogue."
},
{
"id": "pt_load0_p_filesz",
"kind": "ELF64 program-header field",
"file_offset": "0x60",
"length": 8,
"original_bytes": "ed8e480400000000",
"original_value": "0x4488eed",
"target_bytes": "009a480400000000",
"target_value": "0x4489a00"
},
{
"id": "pt_load0_p_memsz",
"kind": "ELF64 program-header field",
"file_offset": "0x68",
"length": 8,
"original_bytes": "ed8e480400000000",
"original_value": "0x4488eed",
"target_bytes": "009a480400000000",
"target_value": "0x4489a00"
}
],
"preconditions": [
"The input image must be an A6700 2.00 appFw.so with the recorded hook-site instruction and island layout.",
"The hook-site instruction and the complete island range must match the recorded original bytes.",
"Both PT_LOAD[0] sizes must match the recorded baseline value before expansion.",
"The bootstrap must be staged at /usr/lib/pilot.so before DT_INIT returns."
],
"cp": {
"patch": {
"schema": "pilot.patch.v1",
"id": "a6700-cp-uipc-v4",
"kind": "file",
"target": {
"model": "Sony ILCE-6700",
"firmware": "2.00",
"component": "cpapp-b.bin",
"sha256": "61b7fe5c0ce227ea865d799b81fe77ae359b7c5dcd39d13c9c2241d9cad23559",
"patched_sha256": "a103a5dc256a7bdba44c3e61f42efefc3865c8729d7cd649758993618fab14e9",
"size_bytes": 17892024
},
"patches": [
{
"id": "receiver-hook",
"offset": 3800658,
"before": "307818b1",
"after": "6af389b7"
},
{
"id": "uipc-v4-handler",
"offset": 11578728,
"before": "00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
"after": "30787e2804d008b195f471b095f473b03046bdf758f80146304600f003f895f477b0d4d42de9f04786b0082904d20127384606b0bde8f087054640780c46042806d16888d5f804a070b30227002647e0142cecd16e680328d5f810a039d195f802800727b8f1040f3ad8012000fa08f010f0160f34d0b8f1020f01d3f0072ed13046414600f0b2f808bb05f1080041463246002941d012f8013b013910f8017bbb42f6d004271be005f10809a4f10808484641460022002600f03cf838b9baf1000f08d048464146012200f033f8074606e0022704e006274ff0000a00e003271248162101220596049702901020adf806000f48cdf80ca0cdf802006846023000f018f8142c28bf1424681e0021002c3ff48eaf0155013cf9e7a94649f8066fa9f8048008f10608c9e700bf48435450a02fc1002de9f84f92465ab14ff0ff32eff3008972b613ee108f03ee102fbff36f8f03e04ff000084ff0000947184ff0000b391a06293ed38588841dbaf1000f01680bd10846294600f038f888bb381ba84230d36019b842ebd329e00a462b46204653b110f8014b147012f8016ba64218bf4ff0050b013bf3e74a1921f01f0107ee3a1f20319142fad3b842d1d30020bff34f8f07ee110f07eed10fbff34f8fbff36f8f03ee108fbff36f8f89f300815846bde8f88f0120bde8f88f19b1091803d303207047072070470a4a904204d3094a914201d200207047b0f5941ff0d3064a9142edd8064a9142f4d305498842e7d9f0e700a01d0175f6ac0100801d01692dc100bf2fc100"
}
]
}
}
}