From 34390e1cea2ef0e74de9be3a0d61621ebe795a3d Mon Sep 17 00:00:00 2001 From: Stricted Date: Sat, 22 Sep 2018 20:54:11 +0200 Subject: [PATCH] x1slte: initial device tree Change-Id: Ie96634d5524f4b0a7673d1f8fb0e0f14c7a69949 --- Android.bp | 2 ++ Android.mk | 28 ++++++++++++++++++++++++++++ AndroidProducts.mk | 22 ++++++++++++++++++++++ BoardConfig.mk | 28 ++++++++++++++++++++++++++++ README.md | 22 ++++++++++++++++++++++ device.mk | 30 ++++++++++++++++++++++++++++++ lineage_x1slte.mk | 46 ++++++++++++++++++++++++++++++++++++++++++++++ 7 files changed, 178 insertions(+) create mode 100644 Android.bp create mode 100644 Android.mk create mode 100644 AndroidProducts.mk create mode 100644 BoardConfig.mk create mode 100644 README.md create mode 100644 device.mk create mode 100644 lineage_x1slte.mk diff --git a/Android.bp b/Android.bp new file mode 100644 index 0000000..722b775 --- /dev/null +++ b/Android.bp @@ -0,0 +1,2 @@ +soong_namespace { +} \ No newline at end of file diff --git a/Android.mk b/Android.mk new file mode 100644 index 0000000..bd42ec2 --- /dev/null +++ b/Android.mk @@ -0,0 +1,28 @@ +# +# Copyright (C) 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. + +# WARNING: Everything listed here will be built on ALL platforms, +# including x86, the emulator, and the SDK. Modules must be uniquely +# named (liblights.tuna), and must build everywhere, or limit themselves +# to only building on ARM if they include assembly. Individual makefiles +# are responsible for having their own logic, for fine-grained control. + +LOCAL_PATH := $(call my-dir) + +ifeq ($(TARGET_DEVICE),x1slte) + +include $(call all-makefiles-under,$(LOCAL_PATH)) + +endif diff --git a/AndroidProducts.mk b/AndroidProducts.mk new file mode 100644 index 0000000..cb3eeef --- /dev/null +++ b/AndroidProducts.mk @@ -0,0 +1,22 @@ +# +# Copyright (C) 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)/lineage_x1slte.mk + +COMMON_LUNCH_CHOICES := \ + lineage_x1slte-user \ + lineage_x1slte-userdebug \ + lineage_x1slte-eng diff --git a/BoardConfig.mk b/BoardConfig.mk new file mode 100644 index 0000000..ef12972 --- /dev/null +++ b/BoardConfig.mk @@ -0,0 +1,28 @@ +# +# Copyright (C) 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. + +# inherit from common +include device/samsung/universal990-common/BoardConfigCommon.mk + +DEVICE_PATH := device/samsung/x1slte + +# Display +TARGET_SCREEN_DENSITY := 480 + +# OTA +TARGET_OTA_ASSERT_DEVICE := x1slte + +# inherit from the proprietary version +-include vendor/samsung/x1slte/BoardConfigVendor.mk diff --git a/README.md b/README.md new file mode 100644 index 0000000..680131c --- /dev/null +++ b/README.md @@ -0,0 +1,22 @@ +Copyright 2023 - The LineageOS Project + +Device configuration for Samsung Galaxy S20 LTE (SM-G980F). +======================================== + +Basic | Specification List +-------:|:------------------------- +CPU | Octa-core 2x2.73 GHz Mongoose M5 & 2x2.50 GHz Cortex-A76 & 4x2.0 GHz Cortex-A55 +Chipset | Samsung Exynos 990 +GPU | ARM Mali-G77 MP11 +Memory | 8 GB +Shipped Android Version | 10 +Storage | 128 GB +MicroSD | Up to 256 GB +Battery | Li-Ion 4000 mAh +Dimensions | 151,7 mm x 69,1 mm x 7,9 mm +Display | 3200 x 1440 pixel, 6.2" +Rear Camera | 12 MP, f/1.8, 26mm (wide), 64 MP, f/2.0, 29mm (telephoto), 12 MP, f/2.2, 13mm, 120˚ (ultrawide), LED flash, auto-HDR, panorama +Front Camera | 10 MP, f/2.2, 26mm, Dual video call, Auto-HDR +Release Date | 11 February 2020 + +![Samsung Galaxy S20](https://fdn2.gsmarena.com/vv/pics/samsung/samsung-galaxy-s20-2.jpg "Samsung Galaxy S20") diff --git a/device.mk b/device.mk new file mode 100644 index 0000000..7f0ae24 --- /dev/null +++ b/device.mk @@ -0,0 +1,30 @@ +# +# Copyright (C) 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. +# + +DEVICE_PATH := device/samsung/x1slte + +# Boot Animation +TARGET_SCREEN_HEIGHT := 3200 +TARGET_SCREEN_WIDTH := 1440 + +# Soong namespaces +PRODUCT_SOONG_NAMESPACES += $(DEVICE_PATH) + +# Inherit from common +$(call inherit-product, device/samsung/universal990-common/device-common.mk) + +# Inherit from the proprietary version +$(call inherit-product-if-exists, vendor/samsung/x1slte/x1slte-vendor.mk) diff --git a/lineage_x1slte.mk b/lineage_x1slte.mk new file mode 100644 index 0000000..df79dd5 --- /dev/null +++ b/lineage_x1slte.mk @@ -0,0 +1,46 @@ +# +# Copyright (C) 2023 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 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.mk) + +# Inherit from x1slte device +$(call inherit-product, device/samsung/x1slte/device.mk) +$(call inherit-product, $(SRC_TARGET_DIR)/product/full_base_telephony.mk) + +# Inherit some common Lineage stuff. +$(call inherit-product, vendor/lineage/config/common_full_phone.mk) + +# Device identifier. This must come after all inclusions +PRODUCT_DEVICE := x1slte +PRODUCT_NAME := lineage_x1slte +PRODUCT_BRAND := samsung +PRODUCT_MODEL := SM-G980F +PRODUCT_MANUFACTURER := samsung + +PRODUCT_GMS_CLIENTID_BASE := android-samsung + +# Use the latest approved GMS identifiers +PRODUCT_BUILD_PROP_OVERRIDES += \ + PRODUCT_NAME=x1sxx \ + PRIVATE_BUILD_DESC="x1sltexx-user 11 RP1A.200720.012 G980FXXSADUH5 release-keys" + +BUILD_FINGERPRINT := samsung/x1sxx/x1s:11/RP1A.200720.012/G980FXXSADUH5:user/release-keys + +# Define PDA property for camera +PRODUCT_SYSTEM_PROPERTIES += \ + ro.build.PDA=G980FXXSADUH5