hiphi: Rebrand to TWRP

Co-authored-by: Carlo Dee <109793453+carlodeeCrypton@users.noreply.github.com>
Co-authored-by: sekaiacg <sekaiacg@gmail.com>
Co-authored-by: TheMalachite <eliasgheeraert@gmail.com>
Signed-off-by: 7Soldier <reg.fm4@gmail.com>
This commit is contained in:
7Soldier 2022-09-13 19:20:35 +03:00
parent bfa2b50714
commit 575701c2d4
5 changed files with 9 additions and 116 deletions

View file

@ -6,9 +6,9 @@
# #
PRODUCT_MAKEFILES := \ PRODUCT_MAKEFILES := \
$(LOCAL_DIR)/omni_hiphi.mk $(LOCAL_DIR)/twrp_hiphi.mk
COMMON_LUNCH_CHOICES := \ COMMON_LUNCH_CHOICES := \
omni_hiphi-user \ twrp_hiphi-user \
omni_hiphi-userdebug \ twrp_hiphi-userdebug \
omni_hiphi-eng twrp_hiphi-eng

View file

@ -1,61 +0,0 @@
#!/bin/bash
#
# Copyright (C) 2016 The CyanogenMod Project
# Copyright (C) 2017-2020 The LineageOS Project
#
# SPDX-License-Identifier: Apache-2.0
#
set -e
DEVICE=hiphi
VENDOR=motorola
# Load extract_utils and do some sanity checks
MY_DIR="${BASH_SOURCE%/*}"
if [[ ! -d "${MY_DIR}" ]]; then MY_DIR="${PWD}"; fi
ANDROID_ROOT="${MY_DIR}/../../.."
HELPER="${ANDROID_ROOT}/tools/extract-utils/extract_utils.sh"
if [ ! -f "${HELPER}" ]; then
echo "Unable to find helper script at ${HELPER}"
exit 1
fi
source "${HELPER}"
# Default to sanitizing the vendor folder before extraction
CLEAN_VENDOR=true
KANG=
SECTION=
while [ "${#}" -gt 0 ]; do
case "${1}" in
-n | --no-cleanup )
CLEAN_VENDOR=false
;;
-k | --kang )
KANG="--kang"
;;
-s | --section )
SECTION="${2}"; shift
CLEAN_VENDOR=false
;;
* )
SRC="${1}"
;;
esac
shift
done
if [ -z "${SRC}" ]; then
SRC="adb"
fi
# Initialize the helper
setup_vendor "${DEVICE}" "${VENDOR}" "${ANDROID_ROOT}" false "${CLEAN_VENDOR}"
extract "${MY_DIR}/proprietary-files.txt" "${SRC}" "${KANG}" --section "${SECTION}"
"${MY_DIR}/setup-makefiles.sh"

View file

@ -1,36 +0,0 @@
#!/bin/bash
#
# Copyright (C) 2016 The CyanogenMod Project
# Copyright (C) 2017-2020 The LineageOS Project
#
# SPDX-License-Identifier: Apache-2.0
#
set -e
DEVICE=hiphi
VENDOR=motorola
# Load extract_utils and do some sanity checks
MY_DIR="${BASH_SOURCE%/*}"
if [[ ! -d "${MY_DIR}" ]]; then MY_DIR="${PWD}"; fi
ANDROID_ROOT="${MY_DIR}/../../.."
HELPER="${ANDROID_ROOT}/tools/extract-utils/extract_utils.sh"
if [ ! -f "${HELPER}" ]; then
echo "Unable to find helper script at ${HELPER}"
exit 1
fi
source "${HELPER}"
# Initialize the helper
setup_vendor "${DEVICE}" "${VENDOR}" "${ANDROID_ROOT}"
# Warning headers and guards
write_headers
write_makefiles "${MY_DIR}/proprietary-files.txt" true
# Finish
write_footers

View file

@ -6,17 +6,17 @@
# #
# Inherit from those products. Most specific first. # 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/base.mk)
$(call inherit-product, $(SRC_TARGET_DIR)/product/full_base_telephony.mk) $(call inherit-product, $(SRC_TARGET_DIR)/product/core_64_bit_only.mk)
# Inherit some common Omni stuff. # Inherit some common TWRP stuff.
$(call inherit-product, vendor/omni/config/common.mk) $(call inherit-product, vendor/twrp/config/common.mk)
# Inherit from hiphi device # Inherit from hiphi device
$(call inherit-product, device/motorola/hiphi/device.mk) $(call inherit-product, device/motorola/hiphi/device.mk)
PRODUCT_DEVICE := hiphi PRODUCT_DEVICE := hiphi
PRODUCT_NAME := omni_hiphi PRODUCT_NAME := twrp_hiphi
PRODUCT_BRAND := motorola PRODUCT_BRAND := motorola
PRODUCT_MODEL := motorola edge 30 pro PRODUCT_MODEL := motorola edge 30 pro
PRODUCT_MANUFACTURER := motorola PRODUCT_MANUFACTURER := motorola

View file

@ -1,10 +0,0 @@
#
# Copyright (C) 2023 The Android Open Source Project
# Copyright (C) 2023 SebaUbuntu's TWRP device tree generator
#
# SPDX-License-Identifier: Apache-2.0
#
add_lunch_combo omni_hiphi-user
add_lunch_combo omni_hiphi-userdebug
add_lunch_combo omni_hiphi-eng