Compare commits
10 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 42fefb3281 | |||
|
|
aae01bc6d7 | ||
|
|
673c6b5b76 | ||
|
|
5debfee5c4 | ||
|
|
b91564a938 | ||
|
|
4170ae9cc6 | ||
|
|
f22ec4b7eb | ||
|
|
507f69d3ee | ||
|
|
e7707f6019 | ||
|
|
c0ea33a37a |
@@ -21,3 +21,6 @@ BOARD_VENDOR_SEPOLICY_DIRS += $(DEVICE_PATH)/sepolicy/vendor
|
||||
|
||||
# inherit from the proprietary version
|
||||
include vendor/oneplus/dumpling/BoardConfigVendor.mk
|
||||
|
||||
TARGET_SYSTEM_PROP += \
|
||||
$(DEVICE_PATH)/system.prop
|
||||
|
||||
@@ -805,8 +805,8 @@
|
||||
</path>
|
||||
|
||||
<path name="low-latency-playback speaker-and-headphones">
|
||||
<ctl name="SLIMBUS_6_RX Audio Mixer MultiMedia5" value="1" />
|
||||
<ctl name="QUAT_MI2S_RX Audio Mixer MultiMedia5" value="1" />
|
||||
<path name="low-latency-playback headphones" />
|
||||
<path name="low-latency-playback" />
|
||||
</path>
|
||||
|
||||
<path name="low-latency-playback speaker-and-bt-sco">
|
||||
|
||||
@@ -39,7 +39,7 @@ PRODUCT_SOONG_NAMESPACES += \
|
||||
|
||||
# Touch
|
||||
PRODUCT_PACKAGES += \
|
||||
vendor.lineage.touch@1.0-service.oneplus
|
||||
vendor.lineage.touch-service.oneplus
|
||||
|
||||
# Wifi
|
||||
PRODUCT_PACKAGES += \
|
||||
|
||||
10
evolution.dependencies
Normal file
10
evolution.dependencies
Normal file
@@ -0,0 +1,10 @@
|
||||
[
|
||||
{
|
||||
"repository": "device_oneplus_msm8998-common",
|
||||
"target_path": "device/oneplus/msm8998-common"
|
||||
},
|
||||
{
|
||||
"repository": "vendor_oneplus_dumpling",
|
||||
"target_path": "vendor/oneplus/dumpling"
|
||||
}
|
||||
]
|
||||
42
extract-files.py
Executable file
42
extract-files.py
Executable file
@@ -0,0 +1,42 @@
|
||||
#!/usr/bin/env -S PYTHONPATH=../../../tools/extract-utils python3
|
||||
#
|
||||
# SPDX-FileCopyrightText: 2024 The LineageOS Project
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
#
|
||||
|
||||
from extract_utils.main import (
|
||||
ExtractUtils,
|
||||
ExtractUtilsModule,
|
||||
)
|
||||
from extract_utils.fixups_blob import (
|
||||
blob_fixup,
|
||||
blob_fixups_user_type,
|
||||
)
|
||||
|
||||
namespace_imports = [
|
||||
'hardware/oneplus',
|
||||
'hardware/qcom-caf/msm8998',
|
||||
'vendor/oneplus/msm8998-common',
|
||||
]
|
||||
|
||||
blob_fixups: blob_fixups_user_type = {
|
||||
(
|
||||
'vendor/lib/hw/fingerprint.goodix.so',
|
||||
'vendor/lib64/hw/fingerprint.goodix.so',
|
||||
): blob_fixup()
|
||||
.binary_regex_replace(b'\x00goodix.fingerprint\x00', b'\x00fingerprint\x00\x00\x00\x00\x00\x00\x00\x00'),
|
||||
} # fmt: skip
|
||||
|
||||
module = ExtractUtilsModule(
|
||||
'dumpling',
|
||||
'oneplus',
|
||||
blob_fixups=blob_fixups,
|
||||
namespace_imports=namespace_imports,
|
||||
add_firmware_proprietary_file=True,
|
||||
)
|
||||
|
||||
if __name__ == '__main__':
|
||||
utils = ExtractUtils.device_with_common(
|
||||
module, 'msm8998-common', module.vendor
|
||||
)
|
||||
utils.run()
|
||||
@@ -1,35 +0,0 @@
|
||||
#!/bin/bash
|
||||
#
|
||||
# SPDX-FileCopyrightText: 2016 The CyanogenMod Project
|
||||
# SPDX-FileCopyrightText: 2017-2024 The LineageOS Project
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
#
|
||||
|
||||
function blob_fixup() {
|
||||
case "${1}" in
|
||||
vendor/lib/hw/fingerprint.goodix.so | vendor/lib64/hw/fingerprint.goodix.so)
|
||||
[ "$2" = "" ] && return 0
|
||||
sed -i "s|\x00goodix.fingerprint\x00|\x00fingerprint\x00\x00\x00\x00\x00\x00\x00\x00|" "${2}"
|
||||
;;
|
||||
*)
|
||||
return 1
|
||||
;;
|
||||
esac
|
||||
|
||||
return 0
|
||||
}
|
||||
|
||||
# If we're being sourced by the common script that we called,
|
||||
# stop right here. No need to go down the rabbit hole.
|
||||
if [ "${BASH_SOURCE[0]}" != "${0}" ]; then
|
||||
return
|
||||
fi
|
||||
|
||||
set -e
|
||||
|
||||
export DEVICE=dumpling
|
||||
export DEVICE_COMMON=msm8998-common
|
||||
export VENDOR=oneplus
|
||||
export VENDOR_COMMON=${VENDOR}
|
||||
|
||||
"./../../${VENDOR_COMMON}/${DEVICE_COMMON}/extract-files.sh" "$@"
|
||||
@@ -1,6 +0,0 @@
|
||||
[
|
||||
{
|
||||
"repository": "android_device_oneplus_msm8998-common",
|
||||
"target_path": "device/oneplus/msm8998-common"
|
||||
}
|
||||
]
|
||||
@@ -19,6 +19,8 @@ PRODUCT_DEVICE := dumpling
|
||||
PRODUCT_MANUFACTURER := OnePlus
|
||||
PRODUCT_BRAND := OnePlus
|
||||
PRODUCT_MODEL := ONEPLUS A5010
|
||||
PRODUCT_BOARD_PLATFORM := msm8998
|
||||
PRODUCT_USES_QCOM_HARDWARE := true
|
||||
|
||||
PRODUCT_GMS_CLIENTID_BASE := android-oneplus
|
||||
|
||||
|
||||
@@ -63,6 +63,6 @@ vendor/etc/oneplus5T_vstab_db_720p_video_1_30fps.config
|
||||
vendor/lib64/libgf_ca.so|a085af23228a871d67a6aa3122561f742a7bb822
|
||||
|
||||
# Fingerprint sensor
|
||||
vendor/lib64/hw/goodix.fingerprint.msm8998.so:vendor/lib64/hw/fingerprint.msm8998.so
|
||||
vendor/lib64/hw/goodix.fingerprint.msm8998.so:vendor/lib64/hw/fingerprint.msm8998.so;FIX_SONAME
|
||||
vendor/lib64/libgf_hal.so
|
||||
vendor/lib64/libgoodixfingerprintd_binder.so
|
||||
|
||||
4
sepolicy/vendor/file_contexts
vendored
4
sepolicy/vendor/file_contexts
vendored
@@ -1,6 +1,6 @@
|
||||
# Fingerprint
|
||||
/dev/goodix_fp u:object_r:fingerprint_device:s0
|
||||
/sys/devices/soc/soc:goodix_fp/proximity_state u:object_r:sysfs_proximity:s0
|
||||
/sys/devices/platform/soc/soc:goodix_fp/proximity_state u:object_r:sysfs_proximity:s0
|
||||
|
||||
# Touch
|
||||
/(vendor|system/vendor)/bin/hw/vendor\.lineage\.touch@1\.0-service\.oneplus u:object_r:hal_touch_oneplus_msm8998_exec:s0
|
||||
/(vendor|system/vendor)/bin/hw/vendor\.lineage\.touch-service\.oneplus u:object_r:hal_touch_oneplus_msm8998_exec:s0
|
||||
|
||||
1
setup-makefiles.py
Executable file
1
setup-makefiles.py
Executable file
@@ -0,0 +1 @@
|
||||
#!./extract-files.py --regenerate_makefiles
|
||||
@@ -1,21 +0,0 @@
|
||||
#!/bin/bash
|
||||
#
|
||||
# SPDX-FileCopyrightText: 2016 The CyanogenMod Project
|
||||
# SPDX-FileCopyrightText: 2017-2024 The LineageOS Project
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
#
|
||||
|
||||
# If we're being sourced by the common script that we called,
|
||||
# stop right here. No need to go down the rabbit hole.
|
||||
if [ "${BASH_SOURCE[0]}" != "${0}" ]; then
|
||||
return
|
||||
fi
|
||||
|
||||
set -e
|
||||
|
||||
export DEVICE=dumpling
|
||||
export DEVICE_COMMON=msm8998-common
|
||||
export VENDOR=oneplus
|
||||
export VENDOR_COMMON=${VENDOR}
|
||||
|
||||
"./../../${VENDOR_COMMON}/${DEVICE_COMMON}/setup-makefiles.sh" "$@"
|
||||
3
system.prop
Normal file
3
system.prop
Normal file
@@ -0,0 +1,3 @@
|
||||
ro.display.series="OnePlus 5T"
|
||||
vendor.boot.project_name=17801
|
||||
ro.hardware.fingerprint=goodix
|
||||
Reference in New Issue
Block a user