spartan: Initial conversion

Signed-off-by: provasishh <iambumba3@gmail.com>
This commit is contained in:
provasishh
2025-07-04 10:49:01 +05:30
parent a0fcc17829
commit bee531bcf7
10 changed files with 23 additions and 26 deletions

View File

@@ -5,4 +5,4 @@
#
PRODUCT_MAKEFILES := \
$(LOCAL_DIR)/lineage_lemonades.mk
$(LOCAL_DIR)/lineage_spartan.mk

View File

@@ -7,7 +7,7 @@
# Include the common OEM chipset BoardConfig.
include device/oneplus/sm8250-common/BoardConfigCommon.mk
DEVICE_PATH := device/oneplus/lemonades
DEVICE_PATH := device/oneplus/spartan
# Display
TARGET_SCREEN_DENSITY := 450
@@ -17,17 +17,18 @@ DEVICE_MANIFEST_FILE += $(DEVICE_PATH)/manifest.xml
# Properties
TARGET_VENDOR_PROP += $(DEVICE_PATH)/vendor.prop
TARGET_SYSTEM_PROP += $(DEVICE_PATH)/system.prop
# Partitions
ifeq (,$(filter true, $(WITHOUT_RESERVED_SIZE) $(WITH_GMS)))
BOARD_PRODUCTIMAGE_PARTITION_RESERVED_SIZE := 900000000
endif
BOARD_ONEPLUS_DYNAMIC_PARTITIONS_SIZE := 3753902080
BOARD_SUPER_PARTITION_SIZE := 7516192768
BOARD_ONEPLUS_DYNAMIC_PARTITIONS_SIZE := 11270094848
BOARD_SUPER_PARTITION_SIZE := 11274289152
# Recovery
TARGET_RECOVERY_FSTAB := $(DEVICE_PATH)/init/fstab.qcom
TARGET_RECOVERY_UI_MARGIN_HEIGHT := 103
# Include the proprietary files BoardConfig.
include vendor/oneplus/lemonades/BoardConfigVendor.mk
include vendor/oneplus/spartan/BoardConfigVendor.mk

View File

@@ -1 +1 @@
require board=kona|OnePlus9R
require board=kona|RMX3371

View File

@@ -54,4 +54,4 @@ $(call soong_config_set,OPLUS_LINEAGE_TOUCH_HAL,INCLUDE_DIR,$(LOCAL_PATH)/touch/
$(call inherit-product, device/oneplus/sm8250-common/common.mk)
# Inherit from the proprietary files makefile.
$(call inherit-product, vendor/oneplus/lemonades/lemonades-vendor.mk)
$(call inherit-product, vendor/oneplus/spartan/spartan-vendor.mk)

View File

@@ -14,7 +14,7 @@ namespace_imports = [
]
module = ExtractUtilsModule(
'lemonades',
'spartan',
'oneplus',
namespace_imports=namespace_imports,
)

View File

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

View File

@@ -9,24 +9,24 @@ $(call inherit-product, $(SRC_TARGET_DIR)/product/core_64_bit.mk)
TARGET_SUPPORTS_OMX_SERVICE := false
$(call inherit-product, $(SRC_TARGET_DIR)/product/full_base_telephony.mk)
# Inherit from lemonades device
$(call inherit-product, device/oneplus/lemonades/device.mk)
# Inherit from spartan device
$(call inherit-product, device/oneplus/spartan/device.mk)
# Inherit some common Lineage stuff.
$(call inherit-product, vendor/lineage/config/common_full_phone.mk)
PRODUCT_NAME := lineage_lemonades
PRODUCT_DEVICE := lemonades
PRODUCT_NAME := lineage_spartan
PRODUCT_DEVICE := spartan
PRODUCT_MANUFACTURER := OnePlus
PRODUCT_BRAND := OnePlus
PRODUCT_MODEL := LE2101
PRODUCT_MODEL := RMX3371
PRODUCT_GMS_CLIENTID_BASE := android-oneplus
PRODUCT_BUILD_PROP_OVERRIDES += \
BuildDesc="OnePlus9R_IND-user 14 UKQ1.230924.001 R.1b68875-1-5727a release-keys" \
BuildFingerprint=OnePlus/OnePlus9R_IND/OnePlus9R:14/UKQ1.230924.001/R.1b68875-1-5727a:user/release-keys \
DeviceName=OnePlus9R \
DeviceProduct=OnePlus9R \
SystemDevice=OnePlus9R \
SystemName=OnePlus9R
DeviceName=RE54E4L1 \
DeviceProduct=RMX3371 \
SystemDevice=RE54E4L1 \
SystemName=RMX3371

View File

@@ -6,6 +6,6 @@
<resources>
<!-- Default for Settings.Global.DEVICE_NAME $1=MODEL-->
<string name="def_device_name_simple" translatable="false">OnePlus 9R</string>
<string name="def_device_name_simple" translatable="false">realme GT NEO 3T</string>
</resources>

2
system.prop Normal file
View File

@@ -0,0 +1,2 @@
# Display
sys.brightness.disable_gamma_conversion=true

View File

@@ -1,9 +1,9 @@
# Bluetooth
bluetooth.device.default_name=OnePlus 9R
bluetooth.device.default_name=realme GT NEO 3T
# Crypto
ro.crypto.dm_default_key.options_format.version=2
ro.crypto.volume.metadata.method=dm-default-key
# USB
vendor.usb.product_string=OnePlus 9R
vendor.usb.product_string=realme GT NEO 3T