-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathextract-files.py
More file actions
executable file
·37 lines (32 loc) · 922 Bytes
/
Copy pathextract-files.py
File metadata and controls
executable file
·37 lines (32 loc) · 922 Bytes
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
#!/usr/bin/env -S PYTHONPATH=../../../tools/extract-utils python3
#
# SPDX-FileCopyrightText: 2024 The LineageOS Project
# SPDX-License-Identifier: Apache-2.0
#
from extract_utils.fixups_blob import (
blob_fixup,
blob_fixups_user_type,
)
from extract_utils.main import (
ExtractUtils,
ExtractUtilsModule,
)
namespace_imports = [
'vendor/oneplus/sm8650-common',
]
blob_fixups: blob_fixups_user_type = {
'odm/etc/camera/CameraHWConfiguration.config': blob_fixup()
.regex_replace('SystemCamera = 0; 0; 0; 1; 0; 1;', 'SystemCamera = 0; 0; 0; 0; 0; 0;')
} # fmt: skip
module = ExtractUtilsModule(
'waffle',
'oneplus',
namespace_imports=namespace_imports,
blob_fixups=blob_fixups,
add_firmware_proprietary_file=True,
)
if __name__ == '__main__':
utils = ExtractUtils.device_with_common(
module, 'sm8650-common', module.vendor
)
utils.run()