-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathextract-files.py
executable file
·49 lines (42 loc) · 1.03 KB
/
extract-files.py
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
#!/usr/bin/env -S PYTHONPATH=../../../tools/extract-utils python3
#
# Copyright (C) 2024 The LineageOS Project
#
# SPDX-License-Identifier: Apache-2.0
#
from extract_utils.fixups_lib import lib_fixups
from extract_utils.main import (
ExtractUtils,
ExtractUtilsModule,
)
from extract_utils.fixups_blob import (
blob_fixups_user_type,
blob_fixup,
)
from extract_utils.module import lib_fixups_user_type
namespace_imports = [
'hardware/qcom-caf/sm8550',
'vendor/qcom/opensource/commonsys-intf/display',
'vendor/sony/sm8550-common',
]
blob_fixups: blob_fixups_user_type = {
'vendor/lib64/libarcsoft_hdr_adapter.so': blob_fixup()
.add_needed(
'liblog.so',
)
.add_needed(
'libcutils.so',
),
}
module = ExtractUtilsModule(
'pdx234',
'sony',
blob_fixups=blob_fixups,
lib_fixups=lib_fixups,
namespace_imports=namespace_imports,
)
if __name__ == '__main__':
utils = ExtractUtils.device_with_common(
module, 'sm8550-common', module.vendor
)
utils.run()