From 5c4598fee2e6b2243a4f583e4d36da4ce8ff7af7 Mon Sep 17 00:00:00 2001 From: Aayush Gupta Date: Fri, 11 Dec 2020 17:10:07 +0530 Subject: [PATCH] begoniain: Initial commit Signed-off-by: Aayush Gupta --- Android.mk | 32 +++++++++++++++++++++++++++ AndroidProducts.mk | 23 +++++++++++++++++++ BoardConfig.mk | 23 +++++++++++++++++++ README.md | 23 +++++++++++++++++++ device.mk | 25 +++++++++++++++++++++ extract-files.sh | 24 ++++++++++++++++++++ lineage.dependencies | 6 +++++ lineage_begoniain.mk | 51 +++++++++++++++++++++++++++++++++++++++++++ proprietary-files.txt | 1 + setup-makefiles.sh | 25 +++++++++++++++++++++ 10 files changed, 233 insertions(+) create mode 100644 Android.mk create mode 100644 AndroidProducts.mk create mode 100644 BoardConfig.mk create mode 100644 README.md create mode 100644 device.mk create mode 100755 extract-files.sh create mode 100644 lineage.dependencies create mode 100644 lineage_begoniain.mk create mode 100644 proprietary-files.txt create mode 100755 setup-makefiles.sh diff --git a/Android.mk b/Android.mk new file mode 100644 index 0000000..93b3197 --- /dev/null +++ b/Android.mk @@ -0,0 +1,32 @@ +# +# Copyright (C) 2020 The LineageOS Project +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# + +# +# 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),begoniain) +include $(call all-makefiles-under,$(LOCAL_PATH)) +endif diff --git a/AndroidProducts.mk b/AndroidProducts.mk new file mode 100644 index 0000000..034840a --- /dev/null +++ b/AndroidProducts.mk @@ -0,0 +1,23 @@ +# +# Copyright (C) 2020 The LineageOS Project +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# + +PRODUCT_MAKEFILES := \ + $(LOCAL_DIR)/lineage_begoniain.mk + +COMMON_LUNCH_CHOICES := \ + lineage_begoniain-user \ + lineage_begoniain-userdebug \ + lineage_begoniain-eng diff --git a/BoardConfig.mk b/BoardConfig.mk new file mode 100644 index 0000000..041181c --- /dev/null +++ b/BoardConfig.mk @@ -0,0 +1,23 @@ +# +# Copyright (C) 2019 The LineageOS Project +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# + +DEVICE_PATH := device/xiaomi/begoniain + +# Inherit from common tree +-include device/xiaomi/mt6785-common/BoardConfigCommon.mk + +# Get non-open-source specific aspects +-include vendor/xiaomi/begoniain/BoardConfigVendor.mk diff --git a/README.md b/README.md new file mode 100644 index 0000000..2dda01e --- /dev/null +++ b/README.md @@ -0,0 +1,23 @@ +Device Tree for Redmi Note 8 Pro (begoniain) +========================================== + +The Redmi Note 8 Pro (codenamed _"begoniain"_) is a high-end, mid-range smartphone from Xiaomi. +It was released in September 2019. + +| Basic | Spec Sheet | +| -----------------------:|:------------------------------------------------------------------------------------------------------------------------------ | +| CPU | Octa-core | +| Chipset | Mediatek Helio G90T | +| GPU | Mali-G76 MC4 | +| Memory | 6/8 GB RAM | +| Shipped Android Version | 9.0 | +| Storage | 64/128/256 GB | +| Battery | Non-removable Li-Po 4500 mAh battery | +| Display | 1080 x 2340 pixels, 19.5:9 ratio (~395 ppi density) | +| Camera (Back)(Main) | 64 MP, f/1.9, 26mm (wide), 1/1.7", 0.8µm, PDAF | +| Camera (Front) | 20 MP, f/2.0, 0.9µm | + +## Device picture +![begonia](https://fdn2.gsmarena.com/vv/pics/xiaomi/xiaomi-redmi-note-8-pro-01.jpg) + +**Copyright 2020 The The LineageOS Project** diff --git a/device.mk b/device.mk new file mode 100644 index 0000000..8969d67 --- /dev/null +++ b/device.mk @@ -0,0 +1,25 @@ +# +# Copyright (C) 2020 The LineageOS Project +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +DEVICE_PATH := device/xiaomi/begoniain + +# Set Shipping API level +$(call inherit-product, $(SRC_TARGET_DIR)/product/product_launched_with_p.mk) + +# Inherit from common device makefile +$(call inherit-product, device/xiaomi/mt6785-common/mt6785.mk) + +# Get non-open-source specific aspects +$(call inherit-product, vendor/xiaomi/begoniain/begoniain-vendor.mk) diff --git a/extract-files.sh b/extract-files.sh new file mode 100755 index 0000000..b32ae97 --- /dev/null +++ b/extract-files.sh @@ -0,0 +1,24 @@ +#!/bin/bash +# +# Copyright (C) 2019 The LineageOS Project +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +set -e + +export DEVICE=begoniain +export DEVICE_COMMON=mt6785-common +export VENDOR=xiaomi +export DEVICE_BRINGUP_YEAR=2019 + +./../../$VENDOR/$DEVICE_COMMON/extract-files.sh $@ diff --git a/lineage.dependencies b/lineage.dependencies new file mode 100644 index 0000000..c4f52aa --- /dev/null +++ b/lineage.dependencies @@ -0,0 +1,6 @@ +[ + { + "repository": "android_device_xiaomi_mt6785-common", + "target_path": "device/xiaomi/mt6785-common" + } +] diff --git a/lineage_begoniain.mk b/lineage_begoniain.mk new file mode 100644 index 0000000..00fc9de --- /dev/null +++ b/lineage_begoniain.mk @@ -0,0 +1,51 @@ +# +# Copyright (C) 2020 The LineageOS Project +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# + +# Release name +PRODUCT_RELEASE_NAME := begoniain + +# 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 from device makefile +$(call inherit-product, device/xiaomi/begoniain/device.mk) + +# Inherit from our custom product configuration +$(call inherit-product, vendor/lineage/config/common_full_phone.mk) + +# Screen density +PRODUCT_AAPT_CONFIG := normal +PRODUCT_AAPT_PREF_CONFIG := xxhdpi + +# Boot Animation +TARGET_SCREEN_HEIGHT := 2340 +TARGET_SCREEN_WIDTH := 1080 + +## Device identifier. This must come after all inclusions +PRODUCT_DEVICE := begoniain +PRODUCT_NAME := lineage_begoniain +PRODUCT_BRAND := Redmi +PRODUCT_MODEL := Redmi Note 8 Pro +PRODUCT_MANUFACTURER := Xiaomi + +BUILD_FINGERPRINT := "Redmi/begoniain/begoniain:10/QP1A.190711.020/V11.0.2.0.QGGINXM:user/release-keys" + +PRODUCT_BUILD_PROP_OVERRIDES += \ + PRIVATE_BUILD_DESC="begoniain-user 10 QP1A.190711.020 V11.0.2.0.QGGINXM release-keys" \ + PRODUCT_NAME="begoniain" + +PRODUCT_GMS_CLIENTID_BASE := android-xiaomi diff --git a/proprietary-files.txt b/proprietary-files.txt new file mode 100644 index 0000000..a24fb36 --- /dev/null +++ b/proprietary-files.txt @@ -0,0 +1 @@ +# Dummpy proprietary-files diff --git a/setup-makefiles.sh b/setup-makefiles.sh new file mode 100755 index 0000000..d37c104 --- /dev/null +++ b/setup-makefiles.sh @@ -0,0 +1,25 @@ +#!/bin/bash +# +# Copyright (C) 2019 The LineageOS Project +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +set -e + +# Required! +export DEVICE=begoniain +export DEVICE_COMMON=mt6785-common +export VENDOR=xiaomi +export DEVICE_BRINGUP_YEAR=2019 + +./../../$VENDOR/$DEVICE_COMMON/setup-makefiles.sh $@