Skip to content
Open

Dt #1

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 0 additions & 16 deletions Android.mk
Original file line number Diff line number Diff line change
@@ -1,19 +1,3 @@
#
# Copyright (C) 2018-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.
#

LOCAL_PATH := $(call my-dir)

ifeq ($(TARGET_DEVICE),whyred)
Expand Down
23 changes: 4 additions & 19 deletions AndroidProducts.mk
Original file line number Diff line number Diff line change
@@ -1,22 +1,7 @@
#
# Copyright (C) 2018-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.

PRODUCT_MAKEFILES := \
$(LOCAL_DIR)/corvus_whyred.mk
$(LOCAL_DIR)/lighthouse_whyred.mk

COMMON_LUNCH_CHOICES := \
corvus_whyred-user \
corvus_whyred-userdebug \
corvus_whyred-eng
lighthouse_whyred-user \
lighthouse_whyred-userdebug \
lighthouse_whyred-eng
18 changes: 18 additions & 0 deletions AndroidProducts.mk.save
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
#
# Copyright (C) 2018-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

PRODUCT_MAKEFILES := \
$(LOCAL_DIR)/corvus_whyred.mk

COMMON_LUNCH_CHOICES := \
corvus_whyred-user \
corvus_whyred-userdebug \
corvus_whyred-eng
32 changes: 6 additions & 26 deletions BoardConfig.mk
Original file line number Diff line number Diff line change
@@ -1,27 +1,3 @@
#
# Copyright (C) 2018-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.
#

#
# This file sets variables that control the way modules are built
# thorughout the system. It should not be used to conditionally
# disable makefiles (the proper mechanism to control what gets
# included in a build is to use PRODUCT_PACKAGES in a product
# definition file).
#

# Inherit from sdm660-common
-include device/xiaomi/sdm660-common/BoardConfigCommon.mk

Expand All @@ -33,12 +9,16 @@ TARGET_OTA_ASSERT_DEVICE := whyred
# Boot animation
TARGET_SCREEN_HEIGHT := 2160
TARGET_SCREEN_WIDTH := 1080
TARGET_BOOT_ANIMATION_RES := 1080p

#Build
BUILD_BROKEN_DUP_RULES := true

# Crypto
TARGET_HW_DISK_ENCRYPTION := true

# Kernel
TARGET_KERNEL_CONFIG := deagle_whyred_defconfig
TARGET_KERNEL_CONFIG := whyred_defconfig

# Manifest
DEVICE_MANIFEST_FILE += $(DEVICE_PATH)/configs/manifest.xml
Expand All @@ -47,7 +27,7 @@ BOARD_SYSTEMIMAGE_PARTITION_SIZE := 3221225472
BOARD_VENDORIMAGE_PARTITION_SIZE := 2147483648

# IPA
#USE_DEVICE_SPECIFIC_DATA_IPA_CFG_MGR := true
USE_DEVICE_SPECIFIC_DATA_IPA_CFG_MGR := true


# Recovery
Expand Down
10 changes: 10 additions & 0 deletions configs/pixel_ul_photos.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<?xml version="1.0" encoding="utf-8"?>

<!-- These are configurations that should exist on Google's 2016 Pixel devices. -->
<config>
<!-- Both versions of this string are needed due to a miscommunication. b/29978934 -->
<feature name="com.google.android.apps.photos.NEXUS_PRELOAD" />
<feature name="com.google.android.apps.photos.nexus_preload" />

</config>

26 changes: 0 additions & 26 deletions corvus.dependencies

This file was deleted.

46 changes: 0 additions & 46 deletions corvus_whyred.mk

This file was deleted.

4 changes: 4 additions & 0 deletions device.mk
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,10 @@ $(call inherit-product-if-exists, frameworks/native/build/phone-xhdpi-4096-dalvi
# Inherit properties.mk
$(call inherit-product, $(DEVICE_PATH)/properties.mk)

#Google unlimited photos backup
PRODUCT_COPY_FILES += \
$(DEVICE_PATH)/configs/pixel_ul_photos.xml:$(TARGET_COPY_OUT_SYSTEM)/etc/sysconfig/pixel_ul_photos.xml

# AuthSecret
PRODUCT_PACKAGES += \
[email protected]
Expand Down
33 changes: 33 additions & 0 deletions lighthouse_whyred.mk
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# 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)
$(call inherit-product, $(SRC_TARGET_DIR)/product/product_launched_with_o_mr1.mk)

# Inherit some common lighthouse stuff
$(call inherit-product, vendor/lighthouse/config/common_full_phone.mk)
LIGHTHOUSE_BUILD_TYPE := OFFICIAL
LIGHTHOUSE_BUILD_MAINTAINER := Drkstar0145

# Inherit from custom vendor.
$(call inherit-product, vendor/MiuiCamera/config.mk)

# Inherit from whyred device
$(call inherit-product, $(LOCAL_PATH)/device.mk)

PRODUCT_BRAND := Xiaomi
PRODUCT_DEVICE := whyred
PRODUCT_MANUFACTURER := Xiaomi
PRODUCT_NAME := lighthouse_whyred
PRODUCT_MODEL := Redmi Note 5 Pro

PRODUCT_GMS_CLIENTID_BASE := android-xiaomi

TARGET_VENDOR_PRODUCT_NAME := whyred

PRODUCT_BUILD_PROP_OVERRIDES += \
PRODUCT_NAME="whyred" \
TARGET_DEVICE="whyred" \
PRIVATE_BUILD_DESC="whyred-user 8.1.0 OPM1.171019.011 V9.5.11.0.OEIMIFA release-keys"

BUILD_FINGERPRINT := xiaomi/whyred/whyred:8.1.0/OPM1.171019.011/V9.5.11.0.OEIMIFA:user/release-keys

2 changes: 2 additions & 0 deletions vendorsetup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,5 @@ git clone https://github.com/LineageOS/android_hardware_qcom_audio.git -b lineag
git clone https://github.com/LineageOS/android_hardware_qcom_media.git -b lineage-18.1-caf-msm8998 hardware/qcom-caf/msm8998/media


lunch lighthouse_whyred-userdebug
lunch lighthouse_whyred-eng