Skip to content

Commit

Permalink
whyred: Superior Bringup
Browse files Browse the repository at this point in the history
Signed-off-by: Sipun Ku Mahanta <[email protected]>
Change-Id: I39cd58076a0a7644df4427f56e9cae4d1445316e
  • Loading branch information
Darkstar085 committed Oct 8, 2021
1 parent 26e5ed2 commit d81eb38
Show file tree
Hide file tree
Showing 6 changed files with 35 additions and 16 deletions.
8 changes: 4 additions & 4 deletions AndroidProducts.mk
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
#

PRODUCT_MAKEFILES := \
$(LOCAL_DIR)/aosp_whyred.mk
$(LOCAL_DIR)/superior_whyred.mk

COMMON_LUNCH_CHOICES := \
aosp_whyred-user \
aosp_whyred-userdebug \
aosp_whyred-eng
superior_whyred-user \
superior_whyred-userdebug \
superior_whyred-eng
4 changes: 2 additions & 2 deletions BoardConfig.mk
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@ TARGET_SCREEN_HEIGHT := 2160
TARGET_SCREEN_WIDTH := 1080

# Display
TARGET_SCREEN_DENSITY := 440
TARGET_SCREEN_DENSITY := 420

# Kernel
TARGET_KERNEL_SOURCE := kernel/xiaomi/whyred
TARGET_KERNEL_CONFIG := whyred_defconfig
TARGET_KERNEL_CONFIG := whyred-oldcam_defconfig

# Manifest
DEVICE_MANIFEST_FILE += $(DEVICE_PATH)/manifest.xml
Expand Down
2 changes: 1 addition & 1 deletion device.mk
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ PRODUCT_PACKAGES += \
# Overlays
DEVICE_PACKAGE_OVERLAYS += \
$(DEVICE_PATH)/overlay \
$(DEVICE_PATH)/overlay-pe
$(DEVICE_PATH)/overlay-superior

# Powerhint
EAS_POWERHINT_VARIANT := sdm636
Expand Down
24 changes: 24 additions & 0 deletions superior.dependencies
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
[
{
"repository":"device_xiaomi_whyred-common",
"target_path":"device/xiaomi/sdm660-common"
},
{
"repository":"kernel_xiaomi_whyred",
"target_path":"kernel/xiaomi/whyred"
},
{
"repository":"vendor_xiaomi_whyred",
"target_path":"vendor/xiaomi/whyred"
},
{
"repository":"vendor_xiaomi_whyred-common",
"target_path":"vendor/xiaomi/sdm660-common"
},
{
"repository":"Darkstar085/vendor_xiaomi_MiuiCamera",
"target_path":"vendor/MiuiCamera",
"branch":"eleven",
"remote":"github"
}
]
13 changes: 4 additions & 9 deletions aosp_whyred.mk → superior_whyred.mk
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,8 @@ $(call inherit-product, $(SRC_TARGET_DIR)/product/core_64_bit.mk)
$(call inherit-product, $(SRC_TARGET_DIR)/product/full_base_telephony.mk)
$(call inherit-product, $(SRC_TARGET_DIR)/product/product_launched_with_o_mr1.mk)

# Inherit some common PixelExperience stuff.
$(call inherit-product, vendor/aosp/config/common_full_phone.mk)

# PixelExperience Properties
TARGET_INCLUDE_WIFI_EXT := true
TARGET_GAPPS_ARCH := arm64
TARGET_BOOT_ANIMATION_RES := 1080
TARGET_INCLUDE_LIVE_WALLPAPERS := false
# Inherit some common superior stuff
$(call inherit-product, vendor/superior/config/common.mk)

# Inherit from whyred device
$(call inherit-product, $(LOCAL_PATH)/device.mk)
Expand All @@ -27,9 +21,10 @@ $(call inherit-product, vendor/MiuiCamera/config.mk)
PRODUCT_BRAND := Xiaomi
PRODUCT_DEVICE := whyred
PRODUCT_MANUFACTURER := Xiaomi
PRODUCT_NAME := aosp_whyred
PRODUCT_NAME := superior_whyred
PRODUCT_MODEL := Redmi Note 5

PRODUCT_GMS_CLIENTID_BASE := android-xiaomi

TARGET_VENDOR_PRODUCT_NAME := whyred
TARGET_BOOT_ANIMATION_RES := 1080

0 comments on commit d81eb38

Please sign in to comment.