aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Android.mk11
-rw-r--r--AndroidProducts.mk13
-rw-r--r--BoardConfig.mk16
-rw-r--r--README.md24
-rw-r--r--device.mk21
-rwxr-xr-xextract-files.sh21
-rw-r--r--lineage.dependencies6
-rw-r--r--lineage_veux.mk28
-rwxr-xr-xsetup-makefiles.sh15
9 files changed, 155 insertions, 0 deletions
diff --git a/Android.mk b/Android.mk
new file mode 100644
index 0000000..5f8f29f
--- /dev/null
+++ b/Android.mk
@@ -0,0 +1,11 @@
+#
+# Copyright (C) 2022 The LineageOS Project
+#
+# SPDX-License-Identifier: Apache-2.0
+#
+
+LOCAL_PATH := $(call my-dir)
+
+ifeq ($(TARGET_DEVICE),veux)
+include $(call all-makefiles-under,$(LOCAL_PATH))
+endif
diff --git a/AndroidProducts.mk b/AndroidProducts.mk
new file mode 100644
index 0000000..81d851e
--- /dev/null
+++ b/AndroidProducts.mk
@@ -0,0 +1,13 @@
+#
+# Copyright (C) 2022 The LineageOS Project
+#
+# SPDX-License-Identifier: Apache-2.0
+#
+
+PRODUCT_MAKEFILES := \
+ $(LOCAL_DIR)/lineage_veux.mk
+
+COMMON_LUNCH_CHOICES := \
+ lineage_veux-user \
+ lineage_veux-userdebug \
+ lineage_veux-eng
diff --git a/BoardConfig.mk b/BoardConfig.mk
new file mode 100644
index 0000000..6035292
--- /dev/null
+++ b/BoardConfig.mk
@@ -0,0 +1,16 @@
+#
+# Copyright (C) 2022 The LineageOS Project
+#
+# SPDX-License-Identifier: Apache-2.0
+#
+
+DEVICE_PATH := device/xiaomi/veux
+
+# Inherit from sm6375-common
+include device/xiaomi/sm6375-common/BoardConfigCommon.mk
+
+# Display
+TARGET_SCREEN_DENSITY := 440
+
+# Inherit from the proprietary version
+include vendor/xiaomi/veux/BoardConfigVendor.mk
diff --git a/README.md b/README.md
new file mode 100644
index 0000000..a4b117c
--- /dev/null
+++ b/README.md
@@ -0,0 +1,24 @@
+# Device Tree for POCO X4 Pro 5G/Redmi Note 11E Pro/Redmi Note 11 Pro 5G/Redmi Note 11 Pro+ 5G (peux/veux)
+
+## Spec Sheet
+
+| Feature | Specification |
+| :---------------------- | :-------------------------------- |
+| CPU | Octa-core (2x2.2 GHz Kryo 660 Gold & 6x1.7 GHz Kryo 660 Silver) |
+| Chipset | Qualcomm SM6375 Snapdragon 695G (6 nm) |
+| GPU | Adreno 619 |
+| Memory | 4 GB / 8 GB |
+| Shipped Software | Android 11, MIUI 13 |
+| Storage | 64 GB / 256 GB |
+| Battery | 5000 mAh |
+| Dimensions | 165.1 x 76.4 x 9.3 mm (6.5 x 3.01 x 0.37 in) |
+| Display | 6.67 inches, 107.4 cm2 (~86.0% screen-to-body ratio) |
+| Rear Camera | 108 MP, f/1.9, 26mm (wide), 1/1.52", 0.7µm, PDAF |
+| | 8 MP, f/2.2, 118˚ (ultrawide) |
+| | 2 MP, f/2.4, (macro) |
+| Front Camera | 16 MP, f/2.5, (wide), 1/3.06" 1.0µm |
+| Release Date | February 2022 |
+
+## Device Picture
+
+![POCO X4 Pro 5G/Redmi Note 11E Pro/Redmi Note 11 Pro 5G/Redmi Note 11 Pro+ 5G](https://fdn2.gsmarena.com/vv/pics/xiaomi/xiaomi-poco-x4-pro-2.jpg "POCO X4 Pro 5G/Redmi Note 11E Pro/Redmi Note 11 Pro 5G/Redmi Note 11 Pro+ 5G")
diff --git a/device.mk b/device.mk
new file mode 100644
index 0000000..0cbb4a7
--- /dev/null
+++ b/device.mk
@@ -0,0 +1,21 @@
+#
+# Copyright (C) 2022 The LineageOS Project
+#
+# SPDX-License-Identifier: Apache-2.0
+#
+
+# Inherit from sm6375-common
+$(call inherit-product, device/xiaomi/sm6375-common/holi.mk)
+
+PRODUCT_SHIPPING_API_LEVEL := 30
+
+# Device uses high-density artwork where available
+PRODUCT_AAPT_CONFIG := normal
+PRODUCT_AAPT_PREF_CONFIG := xhdpi
+
+# Boot animation
+TARGET_SCREEN_HEIGHT := 2400
+TARGET_SCREEN_WIDTH := 1080
+
+# Inherit from vendor blobs
+$(call inherit-product, vendor/xiaomi/veux/veux-vendor.mk)
diff --git a/extract-files.sh b/extract-files.sh
new file mode 100755
index 0000000..7d85c26
--- /dev/null
+++ b/extract-files.sh
@@ -0,0 +1,21 @@
+#!/bin/bash
+#
+# Copyright (C) 2016 The CyanogenMod Project
+# Copyright (C) 2017-2020 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=veux
+export DEVICE_COMMON=sm6375-common
+export VENDOR=xiaomi
+
+"./../../${VENDOR}/${DEVICE_COMMON}/extract-files.sh" "$@"
diff --git a/lineage.dependencies b/lineage.dependencies
new file mode 100644
index 0000000..37f142d
--- /dev/null
+++ b/lineage.dependencies
@@ -0,0 +1,6 @@
+[
+ {
+ "repository": "android_device_xiaomi_sm6375-common",
+ "target_path": "device/xiaomi/sm6375-common"
+ }
+]
diff --git a/lineage_veux.mk b/lineage_veux.mk
new file mode 100644
index 0000000..25775b1
--- /dev/null
+++ b/lineage_veux.mk
@@ -0,0 +1,28 @@
+#
+# Copyright (C) 2022 The LineageOS Project
+#
+# SPDX-License-Identifier: Apache-2.0
+#
+
+# Inherit from those products. Most specific first.
+$(call inherit-product, $(SRC_TARGET_DIR)/product/core_64_bit.mk)
+$(call inherit-product, $(SRC_TARGET_DIR)/product/full_base_telephony.mk)
+
+# Inherit some common Lineage stuff.
+$(call inherit-product, vendor/lineage/config/common_full_phone.mk)
+
+# Inherit from veux device
+$(call inherit-product, device/xiaomi/veux/device.mk)
+
+PRODUCT_NAME := lineage_veux
+PRODUCT_DEVICE := veux
+PRODUCT_MANUFACTURER := Xiaomi
+PRODUCT_BRAND := POCO
+PRODUCT_MODEL := POCO X4 Pro 5G
+
+PRODUCT_GMS_CLIENTID_BASE := android-xiaomi
+
+PRODUCT_BUILD_PROP_OVERRIDES += \
+ PRIVATE_BUILD_DESC="veux-user 11 RKQ1.211001.001 V13.0.10.0.RKCMIXM release-keys"
+
+BUILD_FINGERPRINT := Redmi/veux_global/veux:11/RKQ1.211001.001/V13.0.10.0.RKCMIXM:user/release-keys
diff --git a/setup-makefiles.sh b/setup-makefiles.sh
new file mode 100755
index 0000000..488689c
--- /dev/null
+++ b/setup-makefiles.sh
@@ -0,0 +1,15 @@
+#!/bin/bash
+#
+# Copyright (C) 2016 The CyanogenMod Project
+# Copyright (C) 2017-2020 The LineageOS Project
+#
+# SPDX-License-Identifier: Apache-2.0
+#
+
+set -e
+
+export DEVICE=veux
+export DEVICE_COMMON=sm6375-common
+export VENDOR=xiaomi
+
+"./../../${VENDOR}/${DEVICE_COMMON}/setup-makefiles.sh" "$@"