miatoll: Initial commit

Co-authored-by: Demon000 <demonsingur@gmail.com>
Change-Id: Ia0d3ae0deb9ac8549065f2ae25d8f28ce9b5dd02
This commit is contained in:
Alexander Winkowski 2020-08-13 18:02:57 +03:00
commit 4df7bca082
No known key found for this signature in database
GPG Key ID: 72762A66704CDE44
8 changed files with 149 additions and 0 deletions

20
Android.mk Normal file
View File

@ -0,0 +1,20 @@
#
# Copyright (C) 2021 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),miatoll)
include $(call all-makefiles-under,$(LOCAL_PATH))
endif

13
AndroidProducts.mk Normal file
View File

@ -0,0 +1,13 @@
#
# Copyright (C) 2021 The LineageOS Project
#
# SPDX-License-Identifier: Apache-2.0
#
PRODUCT_MAKEFILES := \
$(LOCAL_DIR)/lineage_miatoll.mk
COMMON_LUNCH_CHOICES := \
lineage_miatoll-user \
lineage_miatoll-userdebug \
lineage_miatoll-eng

19
BoardConfig.mk Normal file
View File

@ -0,0 +1,19 @@
#
# Copyright (C) 2021 The LineageOS Project
#
# SPDX-License-Identifier: Apache-2.0
#
# Inherit from sm6250-common
include device/xiaomi/sm6250-common/BoardConfigCommon.mk
DEVICE_PATH := device/xiaomi/miatoll
# Display
TARGET_SCREEN_DENSITY := 440
# OTA assert
TARGET_OTA_ASSERT_DEVICE := curtana,excalibur,gram,joyeuse,miatoll
# Inherit proprietary blobs
include vendor/xiaomi/miatoll/BoardConfigVendor.mk

29
device.mk Normal file
View File

@ -0,0 +1,29 @@
#
# Copyright (C) 2021 The LineageOS Project
#
# SPDX-License-Identifier: Apache-2.0
#
# Overlays
DEVICE_PACKAGE_OVERLAYS += \
$(LOCAL_PATH)/overlay
# 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
PRODUCT_SHIPPING_API_LEVEL := 29
# Soong namespaces
PRODUCT_SOONG_NAMESPACES += \
$(LOCAL_PATH)
# Inherit from sm6250-common
$(call inherit-product, device/xiaomi/sm6250-common/atoll.mk)
# Inherit proprietary targets
$(call inherit-product, vendor/xiaomi/miatoll/miatoll-vendor.mk)

20
extract-files.sh Executable file
View File

@ -0,0 +1,20 @@
#!/bin/bash
#
# Copyright (C) 2021 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=miatoll
export DEVICE_COMMON=sm6250-common
export VENDOR=xiaomi
"./../../${VENDOR}/${DEVICE_COMMON}/extract-files.sh" "$@"

6
lineage.dependencies Normal file
View File

@ -0,0 +1,6 @@
[
{
"repository": "android_device_xiaomi_sm6250-common",
"target_path": "device/xiaomi/sm6250-common"
}
]

28
lineage_miatoll.mk Normal file
View File

@ -0,0 +1,28 @@
#
# Copyright (C) 2021 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 miatoll device
$(call inherit-product, device/xiaomi/miatoll/device.mk)
PRODUCT_NAME := lineage_miatoll
PRODUCT_DEVICE := miatoll
PRODUCT_MANUFACTURER := Xiaomi
PRODUCT_BRAND := Redmi
PRODUCT_MODEL := SM6250
PRODUCT_GMS_CLIENTID_BASE := android-xiaomi
PRODUCT_BUILD_PROP_OVERRIDES += \
PRIVATE_BUILD_DESC="miatoll-user 11 RKQ1.200826.002 V12.0.4.0.RJWMIXM release-keys"
BUILD_FINGERPRINT := Redmi/miatoll_global/miatoll:11/RKQ1.200826.002/V12.0.4.0.RJWMIXM:user/release-keys

14
setup-makefiles.sh Executable file
View File

@ -0,0 +1,14 @@
#!/bin/bash
#
# Copyright (C) 2021 The LineageOS Project
#
# SPDX-License-Identifier: Apache-2.0
#
set -e
export DEVICE=miatoll
export DEVICE_COMMON=sm6250-common
export VENDOR=xiaomi
"./../../${VENDOR}/${DEVICE_COMMON}/setup-makefiles.sh" "$@"