RMX2170: Initial device tree for Realme 7 pro

Signed-off-by: SagarMakhar <sagarmakhar@gmail.com>
This commit is contained in:
SagarMakhar
2021-06-21 03:15:19 +00:00
commit a15917fcf8
10 changed files with 161 additions and 0 deletions

5
Android.bp Normal file
View File

@@ -0,0 +1,5 @@
soong_namespace {
imports: [
"device/realme/sm7125-common",
],
}

20
Android.mk Normal file
View File

@@ -0,0 +1,20 @@
#
# Copyright (C) 2020 The LineageOS Project
#
# SPDX-License-Identifier: Apache-2.0
#
# This contains the module build definitions for the hardware-specific
# components for this device.
#
# As much as possible, those components should be built unconditionally,
# with device-specific names to avoid collisions, to avoid device-specific
# bitrot and build breakages. Building a component unconditionally does
# *not* include it on all devices, so it is safe even with hardware-specific
# components.
LOCAL_PATH := $(call my-dir)
ifeq ($(TARGET_DEVICE),RMX2170)
include $(call all-makefiles-under,$(LOCAL_PATH))
endif

8
AndroidProducts.mk Normal file
View File

@@ -0,0 +1,8 @@
#
# Copyright (C) 2020 The DotOS
#
# SPDX-License-Identifier: Apache-2.0
#
PRODUCT_MAKEFILES := \
$(LOCAL_DIR)/aosp_RMX2170.mk

16
BoardConfig.mk Normal file
View File

@@ -0,0 +1,16 @@
#
# Copyright (C) 2020 The LineageOS Project
#
# SPDX-License-Identifier: Apache-2.0
#
# Inherit from sm7125-common
include device/realme/sm7125-common/BoardConfigCommon.mk
# Inherit proprietary blobs
-include vendor/realme/RMX2170/BoardConfigVendor.mk
DEVICE_PATH := device/realme/RMX2170
# OTA assert
#TARGET_OTA_ASSERT_DEVICE := RMX2170

25
README.md Normal file
View File

@@ -0,0 +1,25 @@
The Realme 7 Pro (codenamed _"RMX2170"_) is a mid-range smartphone from OPPO's sub-brand Realme launched in Sept. 2020.
## Device specifications
| Device | Realme 7 Pro |
| ----------------------- | :---------------------------------------------------------- |
| SoC | Qualcomm SM7125 Snapdragon 720G |
| CPU | Qualcomm® Kryo™ 465, 2x Gold @ 2.3GHz & 6x Silver @ 1.8GHz |
| GPU | Adreno 618 |
| Memory | 6/8 GB RAM (LPDDR4X) |
| Shipped Android version | 10 with RealmeUI 1.0 |
| Storage | 128GB eMMC 5.1 flash storage |
| MicroSD | Up to 512 GB |
| Battery | Non-removable Li-Ion 4500 mAh |
| Dimensions | 160.90 x 74.30 x 8.70 mm |
| Display | 2400 x 1080 (20:9), 6.40 inch |
| Rear camera 1 | 64 MP, f/1.8, standard, 1/1.72", 1.12µm, PDAF |
| Rear camera 2 | 8 MP, f/2.3, wideangle, 1/4", 1.12µm |
| Rear camera 4 | 2 MP, f/2.4, portrait, 1.75µm |
| Front camera | 32 MP, f/2.5, macro, 1/4", 1.00µm |
## Device picture
![Realme 7 Pro](https://st1.bgr.in/wp-content/uploads/2020/09/realme-7-pro.jpg)

32
aosp_RMX2170.mk Normal file
View File

@@ -0,0 +1,32 @@
#
# Copyright (C) 2020 The DotOS
#
# SPDX-License-Identifier: Apache-2.0
#
# Inherit from RMX2170 device
$(call inherit-product, device/realme/RMX2170/device.mk)
# Inherit some common AospExtended stuff
$(call inherit-product, vendor/aosp/common.mk)
# Bootanimation Resolution
TARGET_BOOT_ANIMATION_RES := 1080
# Device identifier
PRODUCT_NAME := aosp_RMX2170
PRODUCT_DEVICE := RMX2170
PRODUCT_BRAND := Realme
PRODUCT_MODEL := Realme 7 Pro
PRODUCT_MANUFACTURER := Xiaomi
PRODUCT_GMS_CLIENTID_BASE := android-realme
PRODUCT_BUILD_PROP_OVERRIDES += \
PRIVATE_BUILD_DESC="atoll-user 11 RKQ1.200903.002/ eng.root.04080114.013112 release-keys"
BUILD_FINGERPRINT := "qti/atoll/atoll:11/RKQ1.200903.002/root04080114:user/release-keys"
PRODUCT_BUILD_PROP_OVERRIDES += \
PRODUCT_NAME="RMX2170" \
TARGET_DEVICE="RMX2170"

15
device.mk Normal file
View File

@@ -0,0 +1,15 @@
#
# Copyright (C) 2020 The LineageOS Project
#
# SPDX-License-Identifier: Apache-2.0
#
# Inherit from sm7125-common
$(call inherit-product, device/realme/sm7125-common/common.mk)
# Inherit proprietary targets
$(call inherit-product-if-exists, vendor/realme/RMX2170/RMX2170-vendor.mk)
# Soong namespaces
PRODUCT_SOONG_NAMESPACES += \
$(LOCAL_PATH)

23
extract-files.sh Executable file
View File

@@ -0,0 +1,23 @@
#!/bin/bash
#
# Copyright (C) 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
# Required!
export DEVICE=RMX2170
export DEVICE_COMMON=sm7125-common
export VENDOR=realme
export DEVICE_BRINGUP_YEAR=2020
"./../../${VENDOR}/${DEVICE_COMMON}/extract-files.sh" "$@"

0
proprietary-files.txt Normal file
View File

17
setup-makefiles.sh Executable file
View File

@@ -0,0 +1,17 @@
#!/bin/bash
#
# Copyright (C) 2020 The LineageOS Project
#
# SPDX-License-Identifier: Apache-2.0
#
set -e
# Required!
export DEVICE=RMX2170
export DEVICE_COMMON=sm7125-common
export VENDOR=realme
export DEVICE_BRINGUP_YEAR=2020
"./../../${VENDOR}/${DEVICE_COMMON}/setup-makefiles.sh" "$@"