lief 0.16.5__cp313-cp313-musllinux_1_2_i686.whl → 0.16.7__cp313-cp313-musllinux_1_2_i686.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/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[io.IOBase | os.PathLike]) -> 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: lief.OAT.HEADER_KEYS
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 INSTRUCTION_SETS(enum.Enum):
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
- @property
272
- def name(self) -> str: ...
268
+ location: str
273
269
 
274
- @property
275
- def oat_class(self) -> Class: ...
270
+ checksum: int
276
271
 
277
- @property
278
- def dex_method(self) -> lief.DEX.Method: ...
272
+ dex_offset: int
279
273
 
280
274
  @property
281
- def has_dex_method(self) -> bool: ...
275
+ def has_dex_file(self) -> bool: ...
282
276
 
283
277
  @property
284
- def is_dex2dex_optimized(self) -> bool: ...
278
+ def dex_file(self) -> lief.DEX.File: ...
285
279
 
286
- @property
287
- def is_compiled(self) -> bool: ...
280
+ def __str__(self) -> str: ...
288
281
 
289
- quick_code: list[int]
282
+ class Class(lief.Object):
283
+ def __init__(self) -> None: ...
290
284
 
291
- def __str__(self) -> str: ...
285
+ class it_methods:
286
+ def __getitem__(self, arg: int, /) -> Method: ...
292
287
 
293
- class OAT_CLASS_STATUS(enum.Enum):
294
- RETIRED = -2
288
+ def __len__(self) -> int: ...
295
289
 
296
- ERROR = -1
290
+ def __iter__(self) -> Class.it_methods: ...
297
291
 
298
- NOTREADY = 0
292
+ def __next__(self) -> Method: ...
299
293
 
300
- IDX = 1
294
+ def has_dex_class(self) -> bool: ...
301
295
 
302
- LOADED = 2
296
+ @property
297
+ def status(self) -> OAT_CLASS_STATUS: ...
303
298
 
304
- RESOLVING = 3
299
+ @property
300
+ def type(self) -> OAT_CLASS_TYPES: ...
305
301
 
306
- RESOLVED = 4
302
+ @property
303
+ def fullname(self) -> str: ...
307
304
 
308
- VERIFYING = 5
305
+ @property
306
+ def index(self) -> int: ...
309
307
 
310
- VERIFICATION_AT_RUNTIME = 6
308
+ @property
309
+ def methods(self) -> Class.it_methods: ...
311
310
 
312
- VERIFYING_AT_RUNTIME = 7
311
+ @property
312
+ def bitmap(self) -> list[int]: ...
313
313
 
314
- VERIFIED = 8
314
+ @overload
315
+ def is_quickened(self, dex_method: lief.DEX.Method) -> bool: ...
315
316
 
316
- INITIALIZING = 9
317
+ @overload
318
+ def is_quickened(self, method_index: int) -> bool: ...
317
319
 
318
- INITIALIZED = 10
320
+ @overload
321
+ def method_offsets_index(self, arg: lief.DEX.Method, /) -> int: ...
319
322
 
320
- class OAT_CLASS_TYPES(enum.Enum):
321
- ALL_COMPILED = 0
323
+ @overload
324
+ def method_offsets_index(self, arg: int, /) -> int: ...
322
325
 
323
- SOME_COMPILED = 1
326
+ def __str__(self) -> str: ...
324
327
 
325
- NONE_COMPILED = 2
328
+ class Method(lief.Object):
329
+ def __init__(self) -> None: ...
326
330
 
327
- def android_version(arg: int, /) -> lief.Android.ANDROID_VERSIONS: ...
331
+ @property
332
+ def name(self) -> str: ...
328
333
 
329
- @overload
330
- def parse(oat_file: str) -> Optional[Binary]: ...
334
+ @property
335
+ def oat_class(self) -> Class: ...
331
336
 
332
- @overload
333
- def parse(oat_file: str, vdex_file: str) -> Optional[Binary]: ...
337
+ @property
338
+ def dex_method(self) -> lief.DEX.Method: ...
334
339
 
335
- @overload
336
- def parse(raw: Sequence[int]) -> Optional[Binary]: ...
340
+ @property
341
+ def has_dex_method(self) -> bool: ...
337
342
 
338
- @overload
339
- def parse(obj: Union[io.IOBase | os.PathLike]) -> Optional[Binary]: ...
343
+ @property
344
+ def is_dex2dex_optimized(self) -> bool: ...
340
345
 
341
- @overload
342
- def version(binary: lief.ELF.Binary) -> int: ...
346
+ @property
347
+ def is_compiled(self) -> bool: ...
343
348
 
344
- @overload
345
- def version(file: str) -> int: ...
349
+ quick_code: list[int]
346
350
 
347
- @overload
348
- def version(raw: Sequence[int]) -> int: ...
351
+ def __str__(self) -> str: ...