-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
AldairSoraki
committed
Sep 25, 2022
0 parents
commit 2512f8b
Showing
13 changed files
with
756 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# | ||
# Copyright (C) 2022 The Android Open Source Project | ||
# Copyright (C) 2022 SebaUbuntu's TWRP device tree generator | ||
# | ||
# SPDX-License-Identifier: Apache-2.0 | ||
# | ||
|
||
LOCAL_PATH := $(call my-dir) | ||
|
||
ifeq ($(TARGET_DEVICE),HWDRA-MG) | ||
include $(call all-subdir-makefiles,$(LOCAL_PATH)) | ||
endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
# | ||
# Copyright (C) 2022 The Android Open Source Project | ||
# Copyright (C) 2022 SebaUbuntu's TWRP device tree generator | ||
# | ||
# SPDX-License-Identifier: Apache-2.0 | ||
# | ||
|
||
PRODUCT_MAKEFILES := \ | ||
$(LOCAL_DIR)/omni_dura.mk | ||
|
||
COMMON_LUNCH_CHOICES := \ | ||
omni_dura-user \ | ||
omni_dura-userdebug \ | ||
omni_dura-eng |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
# | ||
# Copyright (C) 2022 The Android Open Source Project | ||
# Copyright (C) 2022 SebaUbuntu's TWRP device tree generator | ||
# | ||
# SPDX-License-Identifier: Apache-2.0 | ||
# | ||
|
||
DEVICE_PATH := device/huawei/dura | ||
|
||
# For building with minimal manifest | ||
ALLOW_MISSING_DEPENDENCIES := true | ||
|
||
# Architecture | ||
TARGET_ARCH := arm | ||
TARGET_ARCH_VARIANT := armv7-a-neon | ||
TARGET_CPU_ABI := armeabi-v7a | ||
TARGET_CPU_ABI2 := armeabi | ||
TARGET_CPU_VARIANT := generic | ||
|
||
# Assert | ||
TARGET_OTA_ASSERT_DEVICE := dura | ||
|
||
# File systems | ||
EMUI_USE_ERECOVERY_AS_CUSTOM_RECOVERY := true | ||
BOARD_HAS_LARGE_FILESYSTEM := true | ||
#BOARD_RECOVERYIMAGE_PARTITION_SIZE := 27739760 # This is the maximum known partition size, but it can be higher, so we just omit it | ||
BOARD_SYSTEMIMAGE_PARTITION_TYPE := ext4 | ||
BOARD_USERDATAIMAGE_FILE_SYSTEM_TYPE := ext4 | ||
BOARD_VENDORIMAGE_FILE_SYSTEM_TYPE := ext4 | ||
TARGET_USERIMAGES_USE_EXT4 := true | ||
TARGET_USERIMAGES_USE_F2FS := true | ||
TARGET_COPY_OUT_VENDOR := vendor | ||
|
||
# Kernel | ||
BOARD_KERNEL_CMDLINE := bootopt=64S3,32S1,32S1 product.type=normal androidboot.selinux=enforcing buildvariant=user | ||
TARGET_PREBUILT_KERNEL := $(DEVICE_PATH)/prebuilt/zImage-dtb | ||
BOARD_KERNEL_BASE := 0x40000000 | ||
BOARD_KERNEL_PAGESIZE := 2048 | ||
BOARD_RAMDISK_OFFSET := 0x05000000 | ||
BOARD_KERNEL_TAGS_OFFSET := 0x04000000 | ||
BOARD_FLASH_BLOCK_SIZE := 131072 # (BOARD_KERNEL_PAGESIZE * 64) | ||
BOARD_MKBOOTIMG_ARGS += --ramdisk_offset $(BOARD_RAMDISK_OFFSET) | ||
BOARD_MKBOOTIMG_ARGS += --tags_offset $(BOARD_KERNEL_TAGS_OFFSET) | ||
BOARD_KERNEL_IMAGE_NAME := zImage-dtb | ||
TARGET_KERNEL_ARCH := arm | ||
TARGET_KERNEL_HEADER_ARCH := arm | ||
TARGET_KERNEL_SOURCE := kernel/huawei/dura | ||
TARGET_KERNEL_CONFIG := dura_defconfig | ||
|
||
# Platform | ||
TARGET_BOARD_PLATFORM := mt6739 | ||
|
||
# Bootloader | ||
TARGET_NO_BOOTLOADER := true | ||
TARGET_BOOTLOADER_BOARD_NAME := mt6739 | ||
|
||
# Hack: prevent anti rollback | ||
PLATFORM_SECURITY_PATCH := 2099-12-31 | ||
VENDOR_SECURITY_PATCH := 2099-12-31 | ||
PLATFORM_VERSION := 16.1.0 | ||
|
||
# TWRP Configuration | ||
TW_THEME := portrait_hdpi | ||
TW_EXTRA_LANGUAGES := true | ||
TW_SCREEN_BLANK_ON_BOOT := true | ||
TW_INPUT_BLACKLIST := "hbtp_vm" | ||
TW_USE_TOOLBOX := true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# Device Tree for Huawei Y5 2018 (dura) | ||
|
||
Copyright 2022, TeamWin Recovery Project | ||
|
||
The Huawei Y5 2018 lite (codenamed _"dura"_) is a budget smartphone from Huawei. | ||
It was released in June 2018. | ||
|
||
| Basic | Spec Sheet | | ||
| ----------------------: | :------------------------------------------------------------ | | ||
| Chipset | MediaTek MT6739 | | ||
| CPU | Quad-core 1.5 GHz Cortex-A53 | | ||
| GPU | PowerVR GE8100 | | ||
| RAM | 1 GB | | ||
| Storage | 16 GB | | ||
| Battery | Li-Ion 3020 mAh | | ||
| Dimensions | 146.5 x 70.9 x 8.3 mm | | ||
| Display | LCD, 720 x 1440 pixels, 5.45 inches (~295 ppi density) | | ||
| Rear camera | 8 MP, f/2.0, PDAF, LED flash | | ||
| Front camera | 5 MP, No flash | | ||
| Shipped Android Version | 8.1.0 | | ||
|
||
<img src="https://user-images.githubusercontent.com/67373913/169615300-663a14f9-cdf9-466a-9f15-3cfee98ca5c4.png" width="40%"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# | ||
# Copyright (C) 2022 The Android Open Source Project | ||
# Copyright (C) 2022 SebaUbuntu's TWRP device tree generator | ||
# | ||
# SPDX-License-Identifier: Apache-2.0 | ||
# | ||
|
||
LOCAL_PATH := device/huawei/dura |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
# | ||
# Copyright (C) 2022 The Android Open Source Project | ||
# Copyright (C) 2022 SebaUbuntu's TWRP device tree generator | ||
# | ||
# SPDX-License-Identifier: Apache-2.0 | ||
# | ||
|
||
# Inherit from those products. Most specific first. | ||
$(call inherit-product-if-exists, $(SRC_TARGET_DIR)/product/embedded.mk) | ||
$(call inherit-product, $(SRC_TARGET_DIR)/product/full_base_telephony.mk) | ||
$(call inherit-product, $(SRC_TARGET_DIR)/product/languages_full.mk) | ||
|
||
# Inherit from dura device | ||
$(call inherit-product, device/huawei/dura/device.mk) | ||
|
||
# Inherit some common Omni stuff. | ||
$(call inherit-product, vendor/omni/config/common.mk) | ||
$(call inherit-product, vendor/omni/config/gsm.mk) | ||
|
||
# Device identifier. This must come after all inclusions | ||
PRODUCT_DEVICE := dura | ||
PRODUCT_NAME := omni_dura | ||
PRODUCT_BRAND := HUAWEI | ||
PRODUCT_MODEL := DRA-LX5 | ||
PRODUCT_MANUFACTURER := huawei |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
/newsys ext4 /dev/block/platform/bootdevice/by-name/system flags=display=newsys | ||
/system ext4 /dev/block/platform/bootdevice/by-name/system flags=display=system | ||
/vendor ext4 /dev/block/platform/bootdevice/by-name/vendor flags=display=vendor | ||
/cust ext4 /dev/block/platform/bootdevice/by-name/cust flags=display=cust | ||
/data f2fs /dev/block/platform/bootdevice/by-name/userdata flags=display=data | ||
/cache ext4 /dev/block/platform/bootdevice/by-name/cache flags=display=cache | ||
/log ext4 /dev/block/platform/bootdevice/by-name/log flags=display=log | ||
auto vfat /devices/bootdevice* flags=display=auto | ||
auto auto /devices/platform/externdevice* flags=display=auto | ||
auto vfat /devices/platform/mt_usb* flags=display=auto | ||
/proinfo emmc /dev/block/platform/bootdevice/by-name/proinfo flags=display=proinfo | ||
/bootloader emmc /dev/block/platform/bootdevice/by-name/lk flags=display=bootloader | ||
/misc emmc /dev/block/platform/bootdevice/by-name/para flags=display=misc | ||
/boot emmc /dev/block/platform/bootdevice/by-name/boot flags=display=boot | ||
/recovery emmc /dev/block/platform/bootdevice/by-name/recovery flags=display=recovery | ||
/logo emmc /dev/block/platform/bootdevice/by-name/logo flags=display=logo | ||
/tee1 emmc /dev/block/platform/bootdevice/by-name/tee1 flags=display=tee1 | ||
/tee2 emmc /dev/block/platform/bootdevice/by-name/tee2 flags=display=tee2 | ||
/md1img emmc /dev/block/platform/bootdevice/by-name/md1img flags=display=md1img | ||
/md1dsp emmc /dev/block/platform/bootdevice/by-name/md1dsp flags=display=md1dsp | ||
/md1arm7 emmc /dev/block/platform/bootdevice/by-name/md1arm7 flags=display=md1arm7 | ||
/md3img emmc /dev/block/platform/bootdevice/by-name/md3img flags=display=md3img | ||
/spmfw emmc /dev/block/platform/bootdevice/by-name/spmfw flags=display=spmfw | ||
/mcupmfw emmc /dev/block/platform/bootdevice/by-name/mcupmfw flags=display=mcupmfw | ||
/odmdtbo emmc /dev/block/platform/bootdevice/by-name/odmdtbo flags=display=odmdtbo | ||
/loader_ext1 emmc /dev/block/platform/bootdevice/by-name/loader_ext1 flags=display=loader_ext1 | ||
/loader_ext2 emmc /dev/block/platform/bootdevice/by-name/loader_ext2 flags=display=loader_ext2 | ||
/sdcard vfat /dev/block/mmcblk1p1 flags=display=sdcard |
Oops, something went wrong.