From da8223ea7dcc850a774496af16fe22db0f1b3de8 Mon Sep 17 00:00:00 2001 From: Simon1511 Date: Sat, 28 Aug 2021 17:18:27 +0200 Subject: [PATCH] Initial a52q tree Change-Id: I7f1c50bda155154412ad0a69ec9bf4c156414f09 --- Android.mk | 15 +++ AndroidProducts.mk | 22 ++++ BoardConfig.mk | 22 ++++ device.mk | 22 ++++ lineage.dependencies | 6 + lineage_a52q.mk | 46 ++++++++ .../base/core/res/res/xml/power_profile.xml | 106 ++++++++++++++++++ 7 files changed, 239 insertions(+) create mode 100644 Android.mk create mode 100644 AndroidProducts.mk create mode 100644 BoardConfig.mk create mode 100644 device.mk create mode 100644 lineage.dependencies create mode 100644 lineage_a52q.mk create mode 100644 overlay/frameworks/base/core/res/res/xml/power_profile.xml diff --git a/Android.mk b/Android.mk new file mode 100644 index 0000000..95b5cf7 --- /dev/null +++ b/Android.mk @@ -0,0 +1,15 @@ +# +# Copyright (C) 2021 The LineageOS Project +# +# SPDX-License-Identifier: Apache-2.0 +# + +LOCAL_PATH := $(call my-dir) + +ifeq ($(TARGET_DEVICE),a52q) + +subdir_makefiles=$(call first-makefiles-under,$(LOCAL_PATH)) + +$(foreach mk,$(subdir_makefiles),$(info including $(mk) ...)$(eval include $(mk))) + +endif diff --git a/AndroidProducts.mk b/AndroidProducts.mk new file mode 100644 index 0000000..4b70820 --- /dev/null +++ b/AndroidProducts.mk @@ -0,0 +1,22 @@ +# +# Copyright (C) 2021 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)/lineage_a52q.mk + +COMMON_LUNCH_CHOICES := \ + lineage_a52q-userdebug \ + lineage_a52q-user \ + lineage_a52q-eng diff --git a/BoardConfig.mk b/BoardConfig.mk new file mode 100644 index 0000000..c58f942 --- /dev/null +++ b/BoardConfig.mk @@ -0,0 +1,22 @@ +# +# Copyright (C) 2021 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 := device/samsung/a52q + +include device/samsung/sm7125-common/BoardConfigCommon.mk + +# OTA assert +TARGET_OTA_ASSERT_DEVICE := a52q diff --git a/device.mk b/device.mk new file mode 100644 index 0000000..89996c1 --- /dev/null +++ b/device.mk @@ -0,0 +1,22 @@ +# +# Copyright (C) 2021 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 := device/samsung/a52q + +DEVICE_PACKAGE_OVERLAYS += $(LOCAL_PATH)/overlay + +# call the common setup +$(call inherit-product, device/samsung/sm7125-common/common.mk) diff --git a/lineage.dependencies b/lineage.dependencies new file mode 100644 index 0000000..50b99fe --- /dev/null +++ b/lineage.dependencies @@ -0,0 +1,6 @@ +[ + { + "repository": "android_device_samsung_sm7125-common", + "target_path": "device/samsung/sm7125-common" + } +] diff --git a/lineage_a52q.mk b/lineage_a52q.mk new file mode 100644 index 0000000..18789cd --- /dev/null +++ b/lineage_a52q.mk @@ -0,0 +1,46 @@ +# +# Copyright (C) 2021 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. +# + +# Inherit device configuration +$(call inherit-product, device/samsung/a52q/device.mk) + +# Inherit from the 64 bit configuration +$(call inherit-product, $(SRC_TARGET_DIR)/product/core_64_bit.mk) + +# Inherit from the common Open Source product configuration +$(call inherit-product, $(SRC_TARGET_DIR)/product/aosp_base_telephony.mk) + +# Inherit some common Lineage stuff +$(call inherit-product, vendor/lineage/config/common_full_phone.mk) + +# Enable updating of APEXes +$(call inherit-product, $(SRC_TARGET_DIR)/product/updatable_apex.mk) + +# Boot animation +TARGET_BOOTANIMATION_PRELOAD := true +TARGET_BOOTANIMATION_TEXTURE_CACHE := true +TARGET_SCREEN_HEIGHT := 2400 +TARGET_SCREEN_WIDTH := 1080 + +## Device identifier. This must come after all inclusions +PRODUCT_NAME := lineage_a52q +PRODUCT_DEVICE := a52q +PRODUCT_BRAND := samsung +PRODUCT_MODEL := SM-A525F +PRODUCT_MANUFACTURER := samsung +PRODUCT_GMS_CLIENTID_BASE := android-samsung + +PRODUCT_SHIPPING_API_LEVEL := 30 diff --git a/overlay/frameworks/base/core/res/res/xml/power_profile.xml b/overlay/frameworks/base/core/res/res/xml/power_profile.xml new file mode 100644 index 0000000..a15def7 --- /dev/null +++ b/overlay/frameworks/base/core/res/res/xml/power_profile.xml @@ -0,0 +1,106 @@ + + + 0 + 25 + 66 + 300 + 29 + 0.4 + 1.2 + 287 + 95 + 6.6 + 15 + 100 + 222 + 76 + 153 + 6.5 + + 2.2 + 2.2 + + 0 + 0 + 0 + 0 + + 6 + 2 + + + 300000 + 576000 + 768000 + 1017600 + 1248000 + 1324800 + 1516800 + 1612800 + 1708800 + 1804800 + + + 10 + 15 + 17 + 25 + 32 + 42 + 55 + 60 + 70 + 75 + + + 652800 + 825600 + 979200 + 1113600 + 1267200 + 1555200 + 1708800 + 1843200 + 1900800 + 1996800 + 2112000 + 2208000 + 2323200 + + + 15 + 35 + 45 + 52 + 65 + 85 + 113 + 135 + 155 + 187 + 212 + 220 + 230 + + 5.7 + 14 + 4370 + 4500 + 0 + 0 + 0 + 0 + 0 + 0 + + 0 + + 0 + + .0002 + .002 + .02 + .2 + 2 + + \ No newline at end of file