From ddfb7d08b47e2a659c6cca0ceb724bcd30292e5d Mon Sep 17 00:00:00 2001 From: Haky86 Date: Tue, 30 Jul 2024 11:58:03 +0200 Subject: [PATCH] a71: Initial commit Change-Id: Icea581844f6e1c5652ab3a984ccccda4b7103517 --- Android.mk | 22 ++++ AndroidProducts.mk | 13 +++ BoardConfig.mk | 27 +++++ README.md | 29 +++++ bluetooth/bdroid_buildcfg.h | 15 +++ device.mk | 17 +++ extract-files.sh | 20 ++++ lineage.dependencies | 6 + lineage_a71.mk | 29 +++++ .../base/core/res/res/values/config.xml | 33 ++++++ .../base/core/res/res/xml/power_profile.xml | 107 ++++++++++++++++++ proprietary-files.txt | 1 + setup-makefiles.sh | 14 +++ 13 files changed, 333 insertions(+) create mode 100644 Android.mk create mode 100644 AndroidProducts.mk create mode 100644 BoardConfig.mk create mode 100644 README.md create mode 100644 bluetooth/bdroid_buildcfg.h create mode 100644 device.mk create mode 100755 extract-files.sh create mode 100644 lineage.dependencies create mode 100644 lineage_a71.mk create mode 100644 overlay/frameworks/base/core/res/res/values/config.xml create mode 100644 overlay/frameworks/base/core/res/res/xml/power_profile.xml create mode 100755 proprietary-files.txt create mode 100755 setup-makefiles.sh diff --git a/Android.mk b/Android.mk new file mode 100644 index 0000000..655b625 --- /dev/null +++ b/Android.mk @@ -0,0 +1,22 @@ +# +# Copyright (C) 2024 The LineageOS Project +# +# SPDX-License-Identifier: Apache-2.0 +# + +# This contains the module build definitions for the hardware-specific +# components for this device. +# +# As much as possible, those components should be built unconditionally, +# with device-specific names to avoid collisions, to avoid device-specific +# bitrot and build breakages. Building a component unconditionally does +# *not* include it on all devices, so it is safe even with hardware-specific +# components. + +LOCAL_PATH := $(call my-dir) + +ifneq ($(filter a71, $(TARGET_DEVICE)),) + +include $(call all-makefiles-under,$(LOCAL_PATH)) + +endif diff --git a/AndroidProducts.mk b/AndroidProducts.mk new file mode 100644 index 0000000..7a2af11 --- /dev/null +++ b/AndroidProducts.mk @@ -0,0 +1,13 @@ +# +# Copyright (C) 2024 The LineageOS Project +# +# SPDX-License-Identifier: Apache-2.0 +# + +PRODUCT_MAKEFILES := \ + $(LOCAL_DIR)/lineage_a71.mk + +COMMON_LUNCH_CHOICES := \ + lineage_a71-eng \ + lineage_a71-userdebug \ + lineage_a71-user diff --git a/BoardConfig.mk b/BoardConfig.mk new file mode 100644 index 0000000..61c861f --- /dev/null +++ b/BoardConfig.mk @@ -0,0 +1,27 @@ +# +# Copyright (C) 2024 The LineageOS Project +# +# SPDX-License-Identifier: Apache-2.0 +# + +-include device/samsung/a71-common/BoardConfigCommon.mk + +DEVICE_PATH := device/samsung/a71 + +# Assert +TARGET_OTA_ASSERT_DEVICE := a71 + +# Bluetooth +BOARD_BLUETOOTH_BDROID_BUILDCFG_INCLUDE_DIR := $(DEVICE_PATH)/bluetooth + +# Board +TARGET_BOARD_NAME := SRPSF18B010 + +# Kernel +TARGET_KERNEL_CONFIG := a71_defconfig + +# Security Patch Level +VENDOR_SECURITY_PATCH := 2024-02-01 + +# Get non-open-source specific aspects +include vendor/samsung/a71/BoardConfigVendor.mk diff --git a/README.md b/README.md new file mode 100644 index 0000000..14226c4 --- /dev/null +++ b/README.md @@ -0,0 +1,29 @@ +# Samsung Galaxy A71 4G Device Tree + +Basic |Spec Sheet +-------------:|:------------------------------------------------------------------------------------------------------------------------------------------------------- +Network | GSM / HSPA / LTE +Announced |2019, December 12 +Launch |Available. Released 2020, January 17 +Body |163.6 x 76 x 7.7 mm (6.44 x 2.99 x 0.30 in); 179 g (6.31 oz); Glass front (Gorilla Glass 3), plastic back, plastic frame; Single SIM (Nano-SIM) or Dual SIM (Nano-SIM, dual stand-by) +Display |Super AMOLED; 6.7 inches, 108.4 cm2 (~87.2% screen-to-body ratio); 1080 x 2400 pixels, 20:9 ratio (~393 ppi density); Corning Gorilla Glass 3 +Platform |Android 10, upgradable to Android 13, One UI 5 +Chipset |Qualcomm SDM730 Snapdragon 730 (8 nm) - Global; Qualcomm SDM730 Snapdragon 730G (8 nm) - Philippines +CPU |Octa-core (2x2.2 GHz Kryo 470 Gold & 6x1.8 GHz Kryo 470 Silver) +GPU |Adreno 618 +Memory |microSDXC (dedicated slot); 128GB 6GB RAM, 128GB 8GB RAM; UFS 2.1 +Main Camera |64 MP, f/1.8, 26mm (wide), 1/1.72", 0.8µm, PDAF; 12 MP, f/2.2, 123˚ (ultrawide); ; 5 MP, f/2.4, (macro); 5 MP, f/2.2, (depth); LED flash, panorama, HDR; 4K@30fps, 1080p@30/240fps, 1080p@960fps; gyro-EIS +Selfie Camera |32 MP, f/2.2, 26mm (wide), 1/2.8", 0.8µm; HDR; 4K@30fps, 1080p@30fps +Loudspeaker |Yes +3.5mm jack |Yes +WLAN |Wi-Fi 802.11 a/b/g/n/ac, dual-band, Wi-Fi Direct, hotspot +Bluetooth |5.0, A2DP, LE +GPS |Yes, with A-GPS, GLONASS, GALILEO, BDS +NFC |Yes (market/region dependent) +Radio |FM radio +USB |USB Type-C 2.0, OTG +Sensors |Fingerprint (under display, optical), accelerometer, gyro, proximity, compass; ANT+; Bixby natural language commands and dictation +Colors |Prism Crush Black, Prism Crush Silver, Prism Crush Blue, Prism Crush Pink +Battery |Li-Po 4500 mAh, non-removable; Fast charging 25W + +![Samsung Galaxy A71](https://fdn2.gsmarena.com/vv/pics/samsung/samsung-galaxy-a71-1.jpg "Samsung Galaxy A71") diff --git a/bluetooth/bdroid_buildcfg.h b/bluetooth/bdroid_buildcfg.h new file mode 100644 index 0000000..eec02d9 --- /dev/null +++ b/bluetooth/bdroid_buildcfg.h @@ -0,0 +1,15 @@ +/* + * Copyright (C) 2024 The LineageOS Project + * + * SPDX-License-Identifier: Apache-2.0 + */ + +#ifndef _BDROID_BUILDCFG_H +#define _BDROID_BUILDCFG_H + +#define BTM_DEF_LOCAL_NAME "Galaxy A71" + +#define BLE_VND_INCLUDED TRUE +#define DISABLE_WBS TRUE + +#endif diff --git a/device.mk b/device.mk new file mode 100644 index 0000000..d54bcee --- /dev/null +++ b/device.mk @@ -0,0 +1,17 @@ +# +# Copyright (C) 2024 The LineageOS Project +# +# SPDX-License-Identifier: Apache-2.0 +# + +DEVICE_PATH := device/samsung/a71 + +# Inherit Common Device Tree +$(call inherit-product, device/samsung/a71-common/common.mk) + +# Overlays +PRODUCT_PACKAGE_OVERLAYS += \ + $(DEVICE_PATH)/overlay \ + +# Get non-open-source specific aspects +$(call inherit-product, vendor/samsung/a71/a71-vendor.mk) diff --git a/extract-files.sh b/extract-files.sh new file mode 100755 index 0000000..264dfd5 --- /dev/null +++ b/extract-files.sh @@ -0,0 +1,20 @@ +#!/bin/bash +# +# Copyright (C) 2024 The LineageOS Project +# +# SPDX-License-Identifier: Apache-2.0 +# + +# If we're being sourced by the common script that we called, +# stop right here. No need to go down the rabbit hole. +if [ "${BASH_SOURCE[0]}" != "${0}" ]; then + return +fi + +set -e + +export DEVICE=a71 +export DEVICE_COMMON=a71-common +export VENDOR=samsung + +"./../../${VENDOR}/${DEVICE_COMMON}/extract-files.sh" "$@" diff --git a/lineage.dependencies b/lineage.dependencies new file mode 100644 index 0000000..b7ede56 --- /dev/null +++ b/lineage.dependencies @@ -0,0 +1,6 @@ +[ + { + "repository": "android_device_samsung_a71-common", + "target_path": "device/samsung/a71-common" + } +] diff --git a/lineage_a71.mk b/lineage_a71.mk new file mode 100644 index 0000000..07ac6c0 --- /dev/null +++ b/lineage_a71.mk @@ -0,0 +1,29 @@ +# +# Copyright (C) 2024 The LineageOS Project +# +# SPDX-License-Identifier: Apache-2.0 +# + +# Inherit from a71 device +$(call inherit-product, device/samsung/a71/device.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_NAME := lineage_a71 +PRODUCT_DEVICE := a71 +PRODUCT_BRAND := samsung +PRODUCT_MODEL := SM-A715F +PRODUCT_MANUFACTURER := samsung + +# Use the latest approved GMS identifiers +PRODUCT_GMS_CLIENTID_BASE := android-samsung + +PRODUCT_BUILD_PROP_OVERRIDES += \ + PRIVATE_BUILD_DESC="a71naxx-user 13 TP1A.220624.014 A715FXXSBDXB1 release-keys" \ + PRODUCT_DEVICE=a71 \ + PRODUCT_NAME=a71naxx \ + TARGET_BOOTLOADER_BOARD_NAME=sm6150 \ + +BUILD_FINGERPRINT := "samsung/a71naxx/qssi:13/TP1A.220624.014/A715FXXSBDXB1:user/release-keys" diff --git a/overlay/frameworks/base/core/res/res/values/config.xml b/overlay/frameworks/base/core/res/res/values/config.xml new file mode 100644 index 0000000..f662b31 --- /dev/null +++ b/overlay/frameworks/base/core/res/res/values/config.xml @@ -0,0 +1,33 @@ + + + + + + M 0,0 H -62 V 92 H 62 V 0 H 0 Z + 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..9e7e7be --- /dev/null +++ b/overlay/frameworks/base/core/res/res/xml/power_profile.xml @@ -0,0 +1,107 @@ + + + + 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 + 748800 + 1017600 + 1209600 + 1363200 + 1516800 + 1593600 + 1708800 + + + 10 + 15 + 17 + 25 + 32 + 42 + 55 + 60 + 70 + + + 300000 + 652800 + 768000 + 979200 + 1017600 + 1209600 + 1363200 + 1516800 + 1708800 + 1900800 + 2016000 + + + 15 + 35 + 45 + 52 + 65 + 85 + 113 + 135 + 155 + 187 + 212 + + 5.7 + 14 + 4400 + 4500 + 0 + 0 + 0 + 0 + 0 + 0 + + 0 + + 0 + + .0002 + .002 + .02 + .2 + 2 + + diff --git a/proprietary-files.txt b/proprietary-files.txt new file mode 100755 index 0000000..d8eb1b3 --- /dev/null +++ b/proprietary-files.txt @@ -0,0 +1 @@ +# All unpinned blobs below are extracted from a71naxx-user 13 TP1A.220624.014 A715FXXSBDXB1 release-keys diff --git a/setup-makefiles.sh b/setup-makefiles.sh new file mode 100755 index 0000000..0f37760 --- /dev/null +++ b/setup-makefiles.sh @@ -0,0 +1,14 @@ +#!/bin/bash +# +# Copyright (C) 2024 The LineageOS Project +# +# SPDX-License-Identifier: Apache-2.0 +# + +set -e + +export DEVICE=a71 +export DEVICE_COMMON=a71-common +export VENDOR=samsung + +"./../../${VENDOR}/${DEVICE_COMMON}/setup-makefiles.sh" "$@"