Skip to content
This repository has been archived by the owner on Mar 7, 2021. It is now read-only.

Commit

Permalink
begoniain: Initial commit
Browse files Browse the repository at this point in the history
Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
  • Loading branch information
theimpulson committed Dec 11, 2020
0 parents commit 5c4598f
Show file tree
Hide file tree
Showing 10 changed files with 233 additions and 0 deletions.
32 changes: 32 additions & 0 deletions Android.mk
Original file line number Diff line number Diff line change
@@ -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
23 changes: 23 additions & 0 deletions AndroidProducts.mk
Original file line number Diff line number Diff line change
@@ -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
23 changes: 23 additions & 0 deletions BoardConfig.mk
Original file line number Diff line number Diff line change
@@ -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
23 changes: 23 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -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**
25 changes: 25 additions & 0 deletions device.mk
Original file line number Diff line number Diff line change
@@ -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)
24 changes: 24 additions & 0 deletions extract-files.sh
Original file line number Diff line number Diff line change
@@ -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 $@
6 changes: 6 additions & 0 deletions lineage.dependencies
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
[
{
"repository": "android_device_xiaomi_mt6785-common",
"target_path": "device/xiaomi/mt6785-common"
}
]
51 changes: 51 additions & 0 deletions lineage_begoniain.mk
Original file line number Diff line number Diff line change
@@ -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
1 change: 1 addition & 0 deletions proprietary-files.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# Dummpy proprietary-files
25 changes: 25 additions & 0 deletions setup-makefiles.sh
Original file line number Diff line number Diff line change
@@ -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 $@

0 comments on commit 5c4598f

Please sign in to comment.