products: Add OnePlus 9R

Change-Id: I5de85550663f2fe84eeb3220de9221e6cda055d7
Signed-off-by: Yuan Si <do4suki@gmail.com>
This commit is contained in:
Yuan Si 2023-01-12 18:06:03 +08:00
parent 833b8b5af2
commit 188fab8cd5
3 changed files with 122 additions and 0 deletions

View File

@ -26,6 +26,7 @@ PRODUCT_MAKEFILES += \
$(LOCAL_DIR)/mini5g/aospa_mini5g.mk \
$(LOCAL_DIR)/oneplus9/aospa_oneplus9.mk \
$(LOCAL_DIR)/oneplus9pro/aospa_oneplus9pro.mk \
$(LOCAL_DIR)/oneplus9r/aospa_oneplus9r.mk \
$(LOCAL_DIR)/oriole/aospa_oriole.mk \
$(LOCAL_DIR)/panther/aospa_panther.mk \
$(LOCAL_DIR)/phoenix/aospa_phoenix.mk \
@ -47,6 +48,7 @@ COMMON_LUNCH_CHOICES += \
aospa_mini5g-userdebug \
aospa_oneplus9-userdebug \
aospa_oneplus9pro-userdebug \
aospa_oneplus9r-userdebug \
aospa_oriole-userdebug \
aospa_panther-userdebug \
aospa_phoenix-userdebug \

View File

@ -0,0 +1,75 @@
[
{
"remote": "aospa",
"repository": "AOSPA/android_device_oneplus_sm8250-common",
"target_path": "device/oneplus/sm8250-common",
"revision": "topaz"
},
{
"remote": "aospa",
"repository": "AOSPA/android_device_oneplus_oneplus9r",
"target_path": "device/oneplus/oneplus9r",
"revision": "topaz"
},
{
"remote": "aospa",
"repository": "AOSPA/android_hardware_oplus",
"target_path": "hardware/oplus",
"revision": "topaz"
},
{
"remote": "aospa",
"repository": "AOSPA/android_hardware_qcom_audio",
"target_path": "vendor/qcom/opensource/audio-hal/primary-hal",
"revision": "topaz-865"
},
{
"remote": "aospa",
"repository": "AOSPA/android_hardware_qcom_display",
"target_path": "hardware/qcom/display",
"revision": "topaz-865"
},
{
"remote": "aospa",
"repository": "AOSPA/android_hardware_qcom_gps",
"target_path": "hardware/qcom/gps",
"revision": "topaz-865"
},
{
"remote": "aospa",
"repository": "AOSPA/android_hardware_qcom_media",
"target_path": "hardware/qcom/media",
"revision": "topaz-865"
},
{
"remote": "aospa",
"repository": "AOSPA/android_kernel_oneplus_sm8250",
"target_path": "kernel/msm-4.19",
"revision": "topaz"
},
{
"remote": "aospa",
"repository": "AOSPA/android_packages_resources_devicesettings",
"target_path": "packages/resources/devicesettings",
"revision": "topaz"
},
{
"remote": "aospa",
"repository": "AOSPA/android_vendor_nxp_opensource_halimpl",
"target_path": "vendor/nxp/opensource/halimpl",
"revision": "topaz-SN100X-legacy"
},
{
"remote": "aospa",
"repository": "AOSPA/android_vendor_nxp_opensource_hidlimpl",
"target_path": "vendor/nxp/opensource/hidlimpl",
"revision": "topaz-SN100X-legacy"
},
{
"remote": "blobs",
"repository": "proprietary_vendor_oneplus",
"target_path": "vendor/oneplus",
"revision": "topaz",
"clone-depth": "1"
}
]

View File

@ -0,0 +1,45 @@
# Copyright (C) 2023 Paranoid Android
#
# 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.
ifeq (aospa_oneplus9r,$(TARGET_PRODUCT))
# 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/aosp_base_telephony.mk)
# Inherit from the custom device configuration.
$(call inherit-product, device/oneplus/oneplus9r/device.mk)
# Inherit from the AOSPA configuration.
$(call inherit-product, vendor/aospa/target/product/aospa-target.mk)
PRODUCT_BRAND := OnePlus
PRODUCT_DEVICE := oneplus9r
PRODUCT_MANUFACTURER := OnePlus
PRODUCT_MODEL := LE2101
PRODUCT_NAME := aospa_oneplus9r
PRODUCT_SYSTEM_NAME := OnePlus9R
PRODUCT_SYSTEM_DEVICE := OnePlus9R
PRODUCT_BUILD_PROP_OVERRIDES += \
TARGET_DEVICE=$(PRODUCT_SYSTEM_DEVICE) \
TARGET_PRODUCT=$(PRODUCT_SYSTEM_NAME)
PRODUCT_GMS_CLIENTID_BASE := android-oneplus
# Boot animation resolution.
TARGET_BOOT_ANIMATION_RES := 1080
endif