lief 0.16.5__cp39-cp39-manylinux2014_aarch64.whl → 0.17.0__cp39-cp39-manylinux2014_aarch64.whl
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.
Potentially problematic release.
This version of lief might be problematic. Click here for more details.
- lief/ART/__init__.pyi +19 -18
- lief/COFF/__init__.pyi +708 -0
- lief/DEX/__init__.pyi +165 -159
- lief/ELF/__init__.pyi +2807 -2348
- lief/MachO/__init__.pyi +1877 -1457
- lief/OAT/__init__.pyi +153 -150
- lief/PE/__init__.pyi +2633 -2021
- lief/PE/unwind_aarch64/__init__.pyi +58 -0
- lief/PE/unwind_x64/__init__.pyi +53 -0
- lief/VDEX/__init__.pyi +10 -8
- lief/__init__.py +1 -1
- lief/__init__.pyi +280 -249
- lief/_lief.so +0 -0
- lief/assembly/__init__.pyi +17 -0
- lief/assembly/aarch64/__init__.pyi +11015 -8889
- lief/assembly/aarch64/operands/__init__.pyi +5 -5
- lief/assembly/arm/__init__.pyi +4521 -4491
- lief/assembly/ebpf/__init__.pyi +535 -481
- lief/assembly/mips/__init__.pyi +2926 -2888
- lief/assembly/powerpc/__init__.pyi +2958 -2846
- lief/assembly/riscv/__init__.pyi +14788 -13826
- lief/assembly/x86/__init__.pyi +24970 -19926
- lief/assembly/x86/operands/__init__.pyi +5 -5
- lief/dsc/__init__.pyi +31 -25
- lief/dwarf/__init__.pyi +160 -146
- lief/dwarf/editor/__init__.pyi +138 -0
- lief/dwarf/parameters/__init__.pyi +3 -3
- lief/dwarf/types/__init__.pyi +49 -49
- lief/logging/__init__.pyi +12 -12
- lief/objc/__init__.pyi +26 -26
- lief/pdb/__init__.pyi +272 -38
- lief/pdb/types/__init__.pyi +22 -22
- {lief-0.16.5.dist-info → lief-0.17.0.dist-info}/METADATA +1 -1
- lief-0.17.0.dist-info/RECORD +37 -0
- lief-0.16.5.dist-info/RECORD +0 -33
- {lief-0.16.5.dist-info → lief-0.17.0.dist-info}/WHEEL +0 -0
lief/OAT/__init__.pyi
CHANGED
|
@@ -5,8 +5,108 @@ import os
|
|
|
5
5
|
from typing import Iterator, Optional, Union, overload
|
|
6
6
|
|
|
7
7
|
import lief
|
|
8
|
+
import lief.Android
|
|
9
|
+
import lief.DEX
|
|
10
|
+
import lief.ELF
|
|
8
11
|
|
|
9
12
|
|
|
13
|
+
class OAT_CLASS_TYPES(enum.Enum):
|
|
14
|
+
ALL_COMPILED = 0
|
|
15
|
+
|
|
16
|
+
SOME_COMPILED = 1
|
|
17
|
+
|
|
18
|
+
NONE_COMPILED = 2
|
|
19
|
+
|
|
20
|
+
class OAT_CLASS_STATUS(enum.Enum):
|
|
21
|
+
RETIRED = -2
|
|
22
|
+
|
|
23
|
+
ERROR = -1
|
|
24
|
+
|
|
25
|
+
NOTREADY = 0
|
|
26
|
+
|
|
27
|
+
IDX = 1
|
|
28
|
+
|
|
29
|
+
LOADED = 2
|
|
30
|
+
|
|
31
|
+
RESOLVING = 3
|
|
32
|
+
|
|
33
|
+
RESOLVED = 4
|
|
34
|
+
|
|
35
|
+
VERIFYING = 5
|
|
36
|
+
|
|
37
|
+
VERIFICATION_AT_RUNTIME = 6
|
|
38
|
+
|
|
39
|
+
VERIFYING_AT_RUNTIME = 7
|
|
40
|
+
|
|
41
|
+
VERIFIED = 8
|
|
42
|
+
|
|
43
|
+
INITIALIZING = 9
|
|
44
|
+
|
|
45
|
+
INITIALIZED = 10
|
|
46
|
+
|
|
47
|
+
class HEADER_KEYS(enum.Enum):
|
|
48
|
+
IMAGE_LOCATION = 0
|
|
49
|
+
|
|
50
|
+
DEX2OAT_CMD_LINE = 1
|
|
51
|
+
|
|
52
|
+
DEX2OAT_HOST = 2
|
|
53
|
+
|
|
54
|
+
PIC = 3
|
|
55
|
+
|
|
56
|
+
HAS_PATCH_INFO = 4
|
|
57
|
+
|
|
58
|
+
DEBUGGABLE = 5
|
|
59
|
+
|
|
60
|
+
NATIVE_DEBUGGABLE = 6
|
|
61
|
+
|
|
62
|
+
COMPILER_FILTER = 7
|
|
63
|
+
|
|
64
|
+
CLASS_PATH = 8
|
|
65
|
+
|
|
66
|
+
BOOT_CLASS_PATH = 9
|
|
67
|
+
|
|
68
|
+
CONCURRENT_COPYING = 10
|
|
69
|
+
|
|
70
|
+
class INSTRUCTION_SETS(enum.Enum):
|
|
71
|
+
NONE = 0
|
|
72
|
+
|
|
73
|
+
ARM = 1
|
|
74
|
+
|
|
75
|
+
ARM_64 = 2
|
|
76
|
+
|
|
77
|
+
THUMB2 = 3
|
|
78
|
+
|
|
79
|
+
X86 = 4
|
|
80
|
+
|
|
81
|
+
X86_64 = 5
|
|
82
|
+
|
|
83
|
+
MIPS = 6
|
|
84
|
+
|
|
85
|
+
MIPS_64 = 7
|
|
86
|
+
|
|
87
|
+
@overload
|
|
88
|
+
def version(binary: lief.ELF.Binary) -> int: ...
|
|
89
|
+
|
|
90
|
+
@overload
|
|
91
|
+
def version(file: str) -> int: ...
|
|
92
|
+
|
|
93
|
+
@overload
|
|
94
|
+
def version(raw: Sequence[int]) -> int: ...
|
|
95
|
+
|
|
96
|
+
def android_version(arg: int, /) -> lief.Android.ANDROID_VERSIONS: ...
|
|
97
|
+
|
|
98
|
+
@overload
|
|
99
|
+
def parse(oat_file: str) -> Optional[Binary]: ...
|
|
100
|
+
|
|
101
|
+
@overload
|
|
102
|
+
def parse(oat_file: str, vdex_file: str) -> Optional[Binary]: ...
|
|
103
|
+
|
|
104
|
+
@overload
|
|
105
|
+
def parse(raw: Sequence[int]) -> Optional[Binary]: ...
|
|
106
|
+
|
|
107
|
+
@overload
|
|
108
|
+
def parse(obj: Union[str | io.IOBase | os.PathLike | bytes | list[int]]) -> Optional[Binary]: ...
|
|
109
|
+
|
|
10
110
|
class Binary(lief.ELF.Binary):
|
|
11
111
|
class it_dex_files:
|
|
12
112
|
def __getitem__(self, arg: int, /) -> lief.DEX.File: ...
|
|
@@ -72,92 +172,6 @@ class Binary(lief.ELF.Binary):
|
|
|
72
172
|
|
|
73
173
|
def __str__(self) -> str: ...
|
|
74
174
|
|
|
75
|
-
class Class(lief.Object):
|
|
76
|
-
def __init__(self) -> None: ...
|
|
77
|
-
|
|
78
|
-
class it_methods:
|
|
79
|
-
def __getitem__(self, arg: int, /) -> Method: ...
|
|
80
|
-
|
|
81
|
-
def __len__(self) -> int: ...
|
|
82
|
-
|
|
83
|
-
def __iter__(self) -> Class.it_methods: ...
|
|
84
|
-
|
|
85
|
-
def __next__(self) -> Method: ...
|
|
86
|
-
|
|
87
|
-
def has_dex_class(self) -> bool: ...
|
|
88
|
-
|
|
89
|
-
@property
|
|
90
|
-
def status(self) -> OAT_CLASS_STATUS: ...
|
|
91
|
-
|
|
92
|
-
@property
|
|
93
|
-
def type(self) -> OAT_CLASS_TYPES: ...
|
|
94
|
-
|
|
95
|
-
@property
|
|
96
|
-
def fullname(self) -> str: ...
|
|
97
|
-
|
|
98
|
-
@property
|
|
99
|
-
def index(self) -> int: ...
|
|
100
|
-
|
|
101
|
-
@property
|
|
102
|
-
def methods(self) -> Class.it_methods: ...
|
|
103
|
-
|
|
104
|
-
@property
|
|
105
|
-
def bitmap(self) -> list[int]: ...
|
|
106
|
-
|
|
107
|
-
@overload
|
|
108
|
-
def is_quickened(self, dex_method: lief.DEX.Method) -> bool: ...
|
|
109
|
-
|
|
110
|
-
@overload
|
|
111
|
-
def is_quickened(self, method_index: int) -> bool: ...
|
|
112
|
-
|
|
113
|
-
@overload
|
|
114
|
-
def method_offsets_index(self, arg: lief.DEX.Method, /) -> int: ...
|
|
115
|
-
|
|
116
|
-
@overload
|
|
117
|
-
def method_offsets_index(self, arg: int, /) -> int: ...
|
|
118
|
-
|
|
119
|
-
def __str__(self) -> str: ...
|
|
120
|
-
|
|
121
|
-
class DexFile(lief.Object):
|
|
122
|
-
def __init__(self) -> None: ...
|
|
123
|
-
|
|
124
|
-
location: str
|
|
125
|
-
|
|
126
|
-
checksum: int
|
|
127
|
-
|
|
128
|
-
dex_offset: int
|
|
129
|
-
|
|
130
|
-
@property
|
|
131
|
-
def has_dex_file(self) -> bool: ...
|
|
132
|
-
|
|
133
|
-
@property
|
|
134
|
-
def dex_file(self) -> lief.DEX.File: ...
|
|
135
|
-
|
|
136
|
-
def __str__(self) -> str: ...
|
|
137
|
-
|
|
138
|
-
class HEADER_KEYS(enum.Enum):
|
|
139
|
-
IMAGE_LOCATION = 0
|
|
140
|
-
|
|
141
|
-
DEX2OAT_CMD_LINE = 1
|
|
142
|
-
|
|
143
|
-
DEX2OAT_HOST = 2
|
|
144
|
-
|
|
145
|
-
PIC = 3
|
|
146
|
-
|
|
147
|
-
HAS_PATCH_INFO = 4
|
|
148
|
-
|
|
149
|
-
DEBUGGABLE = 5
|
|
150
|
-
|
|
151
|
-
NATIVE_DEBUGGABLE = 6
|
|
152
|
-
|
|
153
|
-
COMPILER_FILTER = 7
|
|
154
|
-
|
|
155
|
-
CLASS_PATH = 8
|
|
156
|
-
|
|
157
|
-
BOOT_CLASS_PATH = 9
|
|
158
|
-
|
|
159
|
-
CONCURRENT_COPYING = 10
|
|
160
|
-
|
|
161
175
|
class Header(lief.Object):
|
|
162
176
|
def __init__(self) -> None: ...
|
|
163
177
|
|
|
@@ -171,7 +185,7 @@ class Header(lief.Object):
|
|
|
171
185
|
def __next__(self) -> Header.element_t: ...
|
|
172
186
|
|
|
173
187
|
class element_t:
|
|
174
|
-
key:
|
|
188
|
+
key: HEADER_KEYS
|
|
175
189
|
|
|
176
190
|
value: str
|
|
177
191
|
|
|
@@ -248,101 +262,90 @@ class Header(lief.Object):
|
|
|
248
262
|
|
|
249
263
|
def __str__(self) -> str: ...
|
|
250
264
|
|
|
251
|
-
class
|
|
252
|
-
NONE = 0
|
|
253
|
-
|
|
254
|
-
ARM = 1
|
|
255
|
-
|
|
256
|
-
ARM_64 = 2
|
|
257
|
-
|
|
258
|
-
THUMB2 = 3
|
|
259
|
-
|
|
260
|
-
X86 = 4
|
|
261
|
-
|
|
262
|
-
X86_64 = 5
|
|
263
|
-
|
|
264
|
-
MIPS = 6
|
|
265
|
-
|
|
266
|
-
MIPS_64 = 7
|
|
267
|
-
|
|
268
|
-
class Method(lief.Object):
|
|
265
|
+
class DexFile(lief.Object):
|
|
269
266
|
def __init__(self) -> None: ...
|
|
270
267
|
|
|
271
|
-
|
|
272
|
-
def name(self) -> str: ...
|
|
268
|
+
location: str
|
|
273
269
|
|
|
274
|
-
|
|
275
|
-
def oat_class(self) -> Class: ...
|
|
270
|
+
checksum: int
|
|
276
271
|
|
|
277
|
-
|
|
278
|
-
def dex_method(self) -> lief.DEX.Method: ...
|
|
272
|
+
dex_offset: int
|
|
279
273
|
|
|
280
274
|
@property
|
|
281
|
-
def
|
|
275
|
+
def has_dex_file(self) -> bool: ...
|
|
282
276
|
|
|
283
277
|
@property
|
|
284
|
-
def
|
|
278
|
+
def dex_file(self) -> lief.DEX.File: ...
|
|
285
279
|
|
|
286
|
-
|
|
287
|
-
def is_compiled(self) -> bool: ...
|
|
280
|
+
def __str__(self) -> str: ...
|
|
288
281
|
|
|
289
|
-
|
|
282
|
+
class Class(lief.Object):
|
|
283
|
+
def __init__(self) -> None: ...
|
|
290
284
|
|
|
291
|
-
|
|
285
|
+
class it_methods:
|
|
286
|
+
def __getitem__(self, arg: int, /) -> Method: ...
|
|
292
287
|
|
|
293
|
-
|
|
294
|
-
RETIRED = -2
|
|
288
|
+
def __len__(self) -> int: ...
|
|
295
289
|
|
|
296
|
-
|
|
290
|
+
def __iter__(self) -> Class.it_methods: ...
|
|
297
291
|
|
|
298
|
-
|
|
292
|
+
def __next__(self) -> Method: ...
|
|
299
293
|
|
|
300
|
-
|
|
294
|
+
def has_dex_class(self) -> bool: ...
|
|
301
295
|
|
|
302
|
-
|
|
296
|
+
@property
|
|
297
|
+
def status(self) -> OAT_CLASS_STATUS: ...
|
|
303
298
|
|
|
304
|
-
|
|
299
|
+
@property
|
|
300
|
+
def type(self) -> OAT_CLASS_TYPES: ...
|
|
305
301
|
|
|
306
|
-
|
|
302
|
+
@property
|
|
303
|
+
def fullname(self) -> str: ...
|
|
307
304
|
|
|
308
|
-
|
|
305
|
+
@property
|
|
306
|
+
def index(self) -> int: ...
|
|
309
307
|
|
|
310
|
-
|
|
308
|
+
@property
|
|
309
|
+
def methods(self) -> Class.it_methods: ...
|
|
311
310
|
|
|
312
|
-
|
|
311
|
+
@property
|
|
312
|
+
def bitmap(self) -> list[int]: ...
|
|
313
313
|
|
|
314
|
-
|
|
314
|
+
@overload
|
|
315
|
+
def is_quickened(self, dex_method: lief.DEX.Method) -> bool: ...
|
|
315
316
|
|
|
316
|
-
|
|
317
|
+
@overload
|
|
318
|
+
def is_quickened(self, method_index: int) -> bool: ...
|
|
317
319
|
|
|
318
|
-
|
|
320
|
+
@overload
|
|
321
|
+
def method_offsets_index(self, arg: lief.DEX.Method, /) -> int: ...
|
|
319
322
|
|
|
320
|
-
|
|
321
|
-
|
|
323
|
+
@overload
|
|
324
|
+
def method_offsets_index(self, arg: int, /) -> int: ...
|
|
322
325
|
|
|
323
|
-
|
|
326
|
+
def __str__(self) -> str: ...
|
|
324
327
|
|
|
325
|
-
|
|
328
|
+
class Method(lief.Object):
|
|
329
|
+
def __init__(self) -> None: ...
|
|
326
330
|
|
|
327
|
-
|
|
331
|
+
@property
|
|
332
|
+
def name(self) -> str: ...
|
|
328
333
|
|
|
329
|
-
@
|
|
330
|
-
def
|
|
334
|
+
@property
|
|
335
|
+
def oat_class(self) -> Class: ...
|
|
331
336
|
|
|
332
|
-
@
|
|
333
|
-
def
|
|
337
|
+
@property
|
|
338
|
+
def dex_method(self) -> lief.DEX.Method: ...
|
|
334
339
|
|
|
335
|
-
@
|
|
336
|
-
def
|
|
340
|
+
@property
|
|
341
|
+
def has_dex_method(self) -> bool: ...
|
|
337
342
|
|
|
338
|
-
@
|
|
339
|
-
def
|
|
343
|
+
@property
|
|
344
|
+
def is_dex2dex_optimized(self) -> bool: ...
|
|
340
345
|
|
|
341
|
-
@
|
|
342
|
-
def
|
|
346
|
+
@property
|
|
347
|
+
def is_compiled(self) -> bool: ...
|
|
343
348
|
|
|
344
|
-
|
|
345
|
-
def version(file: str) -> int: ...
|
|
349
|
+
quick_code: list[int]
|
|
346
350
|
|
|
347
|
-
|
|
348
|
-
def version(raw: Sequence[int]) -> int: ...
|
|
351
|
+
def __str__(self) -> str: ...
|