Skip to content

Commit 2726b0c

Browse files
committed
RMX1901: Add initial device tree configuration files
Signed-off-by: SagarMakhar <sagarmakhar@gmail.com>
0 parents  commit 2726b0c

9 files changed

Lines changed: 178 additions & 0 deletions

Android.mk

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
#
2+
# Copyright (C) 2019 The LineageOS Project
3+
#
4+
# SPDX-License-Identifier: Apache-2.0
5+
#
6+
7+
#
8+
# This contains the module build definitions for the hardware-specific
9+
# components for this device.
10+
#
11+
# As much as possible, those components should be built unconditionally,
12+
# with device-specific names to avoid collisions, to avoid device-specific
13+
# bitrot and build breakages. Building a component unconditionally does
14+
# *not* include it on all devices, so it is safe even with hardware-specific
15+
# components.
16+
#
17+
18+
LOCAL_PATH := $(call my-dir)
19+
20+
ifeq ($(TARGET_DEVICE),RMX1901)
21+
include $(call all-makefiles-under,$(LOCAL_PATH))
22+
endif

AndroidProducts.mk

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
#
2+
# Copyright (C) 2019 The LineageOS Project
3+
#
4+
# SPDX-License-Identifier: Apache-2.0
5+
#
6+
7+
PRODUCT_MAKEFILES := \
8+
$(LOCAL_DIR)/lineage_RMX1901.mk

BoardConfig.mk

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
#
2+
# Copyright (C) 2019 The LineageOS Project
3+
#
4+
# SPDX-License-Identifier: Apache-2.0
5+
#
6+
7+
# Inherit from Xiaomi sdm710-common
8+
include device/realme/sdm710-common/BoardConfigCommon.mk
9+
10+
DEVICE_PATH := device/realme/RMX1901
11+
12+
# Assert
13+
TARGET_OTA_ASSERT_DEVICE := RMX1901
14+
15+
# Inherit from the proprietary version
16+
-include vendor/realme/RMX1901/BoardConfigVendor.mk

README.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# Device Tree files for Realme X
2+
3+
The Realme X (codenamed _"RMX1901"_) is a mid-range smartphone from Realme. It was released in July 2019.
4+
5+
## Device specifications
6+
7+
| Device | Realme X |
8+
| ----------------------- | :------------------------------------------------------------------------------- |
9+
| SoC | Qualcomm SDM710 Snapdragon 710 |
10+
| CPU | Dual-core 2.2 GHz Kryo 360 Gold + Hexa-core 1.7 GHz Kryo 360 Silver |
11+
| GPU | 550 MHz Adreno 616 |
12+
| Memory | 4/6/8 GB RAM (LPDDR4X 1866 MHz dual-channel) |
13+
| Shipped Android Version | 9 with ColorOS 6.0 |
14+
| Storage | 64/128/256 GB UFS 2.1 |
15+
| Battery | Non-removable Li-Po 3765 mAh |
16+
| Dimensions | 161.2 x 76 x 9.4 mm |
17+
| Display | 2340 x 1080 (19.5:9), 6.53 inch, AMOLED |
18+
| Rear camera 1 | 48 MP f/1.7, 1/2", 0.8-micron pixels, PDAF, dual-LED flash |
19+
| Rear camera 2 | 5 MP f/2.4 |
20+
| Front camera | Motorized pop-up 16 MP f/2.0, 1.0-micron pixels |
21+
22+
## Device Picture
23+
24+
![Realme X](https://fdn2.gsmarena.com/vv/pics/realme/realme-x-1.jpg "Realme X")

device.mk

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
#
2+
# Copyright (C) 2019 The LineageOS Project
3+
#
4+
# SPDX-License-Identifier: Apache-2.0
5+
#
6+
7+
#
8+
# This file sets variables that control the way modules are built
9+
# thorughout the system. It should not be used to conditionally
10+
# disable makefiles (the proper mechanism to control what gets
11+
# included in a build is to use PRODUCT_PACKAGES in a product
12+
# definition file).
13+
#
14+
15+
$(call inherit-product, $(SRC_TARGET_DIR)/product/product_launched_with_p.mk)
16+
17+
# Boot animation
18+
TARGET_SCREEN_HEIGHT := 2340
19+
TARGET_SCREEN_WIDTH := 1080
20+
21+
# Overlays
22+
DEVICE_PACKAGE_OVERLAYS += \
23+
$(LOCAL_PATH)/overlay
24+
25+
# Screen density
26+
PRODUCT_AAPT_CONFIG := normal
27+
PRODUCT_AAPT_PREF_CONFIG := xxhdpi
28+
29+
# Inherit from Realme sdm710-common
30+
$(call inherit-product, device/realme/sdm710-common/sdm710.mk)
31+
32+
# Inherit from proprietary version
33+
$(call inherit-product-if-exists, vendor/realme/RMX1901/RMX1901-vendor.mk)

extract-files.sh

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
#!/bin/bash
2+
#
3+
# Copyright (C) 2019 The LineageOS Project
4+
#
5+
# SPDX-License-Identifier: Apache-2.0
6+
#
7+
8+
# If we're being sourced by the common script that we called,
9+
# stop right here. No need to go down the rabbit hole.
10+
if [ "${BASH_SOURCE[0]}" != "${0}" ]; then
11+
return
12+
fi
13+
14+
set -e
15+
16+
# Required!
17+
export DEVICE=RMX1901
18+
export DEVICE_COMMON=sdm710-common
19+
export VENDOR=realme
20+
21+
export DEVICE_BRINGUP_YEAR=2019
22+
23+
"./../../${VENDOR}/${DEVICE_COMMON}/extract-files.sh" "$@"

lineage.dependencies

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
[
2+
{
3+
"repository": "android_device_realme_sdm710-common",
4+
"target_path": "device/realme/sdm710-common"
5+
}
6+
]

lineage_RMX1901.mk

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
#
2+
# Copyright (C) 2019 The LineageOS Project
3+
#
4+
# SPDX-License-Identifer: Apache-2.0
5+
#
6+
7+
# Inherit some common LineageOS stuff.
8+
$(call inherit-product, vendor/lineage/config/common_full_phone.mk)
9+
10+
# Inherit from RMX1901 device.
11+
$(call inherit-product, $(LOCAL_PATH)/device.mk)
12+
13+
# Device identifier. This must come after all inclusions.
14+
PRODUCT_DEVICE := RMX1901
15+
PRODUCT_NAME := lineage_RMX1901
16+
PRODUCT_BRAND := Realme
17+
PRODUCT_MODEL := Realme X
18+
PRODUCT_MANUFACTURER := Realme
19+
20+
PRODUCT_GMS_CLIENTID_BASE := android-realme
21+
22+
PRODUCT_BUILD_PROP_OVERRIDES += \
23+
PRIVATE_BUILD_DESC="sdm710-user 9 PKQ1.190101.001 eng.root.20190809.034843 release-keys"
24+
25+
BUILD_FINGERPRINT := "Realme/sdm710-user/sdm710-user:9/PKQ1.190101.001/eng.root.20190809.034843:user/release-keys"
26+
27+
PRODUCT_BUILD_PROP_OVERRIDES += \
28+
PRODUCT_NAME="RMX1901" \
29+
TARGET_DEVICE="RMX1901"

setup-makefiles.sh

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
#!/bin/bash
2+
#
3+
# Copyright (C) 2019 The LineageOS Project
4+
#
5+
# SPDX-License-Identifier: Apache-2.0
6+
#
7+
8+
set -e
9+
10+
# Required!
11+
export DEVICE=RMX1901
12+
export DEVICE_COMMON=sdm710-common
13+
export VENDOR=realme
14+
15+
export DEVICE_BRINGUP_YEAR=2019
16+
17+
"./../../${VENDOR}/${DEVICE_COMMON}/setup-makefiles.sh" "$@"

0 commit comments

Comments
 (0)