Compare commits

10 Commits
vic ... bka

Author SHA1 Message Date
42fefb3281 dumpling: Setup for EvolutionX 11.x
Signed-off-by: Onelots <onelots@onelots.fr>
2025-11-02 00:19:12 +01:00
Edrick Sinsuan
aae01bc6d7 Merge branch 'LineageOS:lineage-22.2' into a16 2025-08-10 19:35:41 -04:00
Bruno Martins
673c6b5b76 dumpling: Switch to Touch AIDL
Change-Id: I92a19fedb9ea482616c2e3d550e30b69d2a3a5c7
2025-07-16 17:58:40 +00:00
Timi Rautamäki
5debfee5c4 dumpling: sepolicy: update file_contexts for 4.14
Change-Id: Ie7651771b6b29770c434f5d47f9f95c637933ab4
2025-04-28 18:26:03 -04:00
Roberto Sartori
b91564a938 dumpling: audio: update mixer config for kernel 4.14
Signed-off-by: Roberto Sartori <roberto.sartori.android@gmail.com>
2025-04-28 18:26:03 -04:00
Roberto Sartori
4170ae9cc6 dumpling: add properties for Dumpling
Needed to get rotation and fingerprint working on Dumpling.

Signed-off-by: Roberto Sartori <roberto.sartori.android@gmail.com>
2025-04-28 18:26:03 -04:00
Edrick Sinsuan
f22ec4b7eb dumpling: Initial bringup
Signed-off-by: Edrick Sinsuan <evcsinsuan@gmail.com>
2025-04-28 18:26:03 -04:00
LuK1337
507f69d3ee dumpling: Setup ELF checks
Change-Id: I528a53be6ef3518bc04ee0a3115e076460064630
2025-03-30 23:55:40 +02:00
Sebastiano Barezzi
e7707f6019 dumpling: Fix soname of renamed libraries
Change-Id: Ibdea10aa05af9e8183b72632705b6268ff3b7387
2025-03-23 14:26:51 +01:00
LuK1337
c0ea33a37a dumpling: Switch to py extract utils
Change-Id: Ia13b728464495ff208ca1a706847b11af5c93ae8
2025-03-23 14:10:43 +01:00
13 changed files with 67 additions and 68 deletions

View File

@@ -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

View File

@@ -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">

View File

@@ -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
View 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
View 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()

View File

@@ -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" "$@"

View File

@@ -1,6 +0,0 @@
[
{
"repository": "android_device_oneplus_msm8998-common",
"target_path": "device/oneplus/msm8998-common"
}
]

View File

@@ -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

View File

@@ -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

View File

@@ -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
View File

@@ -0,0 +1 @@
#!./extract-files.py --regenerate_makefiles

View File

@@ -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
View File

@@ -0,0 +1,3 @@
ro.display.series="OnePlus 5T"
vendor.boot.project_name=17801
ro.hardware.fingerprint=goodix