Compare commits

...

13 Commits

Author SHA1 Message Date
Simon1511 d9b0fbf5f9 a52q: call correct script in setup-makefiles.sh 2 months ago
Simon1511 0f7eeb4f8a a52q: switch to AIDL fingerprint HAL 3 months ago
Simon1511 47b94c89d4 a52q: pull everything from A525FXXU6EWL3 (U) 4 months ago
Tim Zimmermann a807384551 a52q: Switch to hardware/samsung camera provider HAL 4 months ago
Simon1511 3730084bd5 a52q: A525FXXS5DWD1 12 months ago
Simon1511 bfa0208316 a52q: Fully redo extract-files and setup-makesfiles scripts 1 year ago
Simon1511 03323993d0 a52q: A525FXXU4CVJB 1 year ago
LuK1337 970349981e a52q: Set a default Settings.Global.DEVICE_NAME 2 years ago
Sal Savage 98761a2706 a52q: Replace BTM_DEF_LOCAL_NAME with a sysprop 2 years ago
Simon1511 9ee70e2659 a52q: Replace LOCAL_PATH with DEVICE_PATH 2 years ago
Simon1511 6ec48526c1 a52q: Move camera.qcom out of common tree 2 years ago
Simon1511 6cd48d7567 a52q: Move fingerprint into tree 2 years ago
Simon1511 d0227342e8 a52q: A525FXXU4BVG1 2 years ago
  1. 11
      BoardConfig.mk
  2. 95
      configs/audio/mixer_paths.xml
  3. 6
      device.mk
  4. 64
      extract-files.sh
  5. 9
      lineage_a52q.mk
  6. 7
      overlay/frameworks/base/core/res/res/values/config.xml
  7. 22
      overlay/frameworks/base/packages/SettingsProvider/res/values/defaults.xml
  8. 4
      proprietary-files.txt
  9. 45
      setup-makefiles.sh
  10. 5
      vendor.prop

@ -14,7 +14,7 @@
# limitations under the License.
#
LOCAL_PATH := device/samsung/a52q
DEVICE_PATH := device/samsung/a52q
include device/samsung/sm7125-common/BoardConfigCommon.mk
@ -22,8 +22,17 @@ include device/samsung/sm7125-common/BoardConfigCommon.mk
TARGET_KERNEL_CONFIG := vendor/lineage-a52q_defconfig
BOARD_NAME := SRPTH31C002
# Camera
SOONG_CONFIG_NAMESPACES += samsungCameraVars
SOONG_CONFIG_samsungCameraVars += extra_ids
# ID=54 is macro
SOONG_CONFIG_samsungCameraVars_extra_ids := 54
# Display
TARGET_SCREEN_DENSITY := 420
# OTA assert
TARGET_OTA_ASSERT_DEVICE := a52q
# Properties
TARGET_VENDOR_PROP += $(DEVICE_PATH)/vendor.prop

@ -265,6 +265,7 @@
<!-- Incall Music -->
<ctl name="Incall_Music Audio Mixer MultiMedia2" value="0" />
<ctl name="Incall_Music Audio Mixer MultiMedia9" value="0" />
<ctl name="Incall_Music_2 Audio Mixer MultiMedia9" value="0" />
<!-- Incall Music End -->
<!-- compress-voip-call start -->
@ -4076,5 +4077,99 @@
<path name="incall_music_uplink bt-a2dp">
<path name="incall_music_uplink" />
</path>
<path name="incall_music_uplink afe-proxy">
<path name="incall_music_uplink" />
</path>
<path name="incall_music_uplink call-proxy">
<path name="incall_music_uplink" />
</path>
<path name="incall_music_uplink2">
<ctl name="Incall_Music_2 Audio Mixer MultiMedia9" value="1" />
</path>
<path name="incall_music_uplink2 speaker">
<path name="incall_music_uplink2" />
</path>
<path name="incall_music_uplink2 handset">
<path name="incall_music_uplink2" />
</path>
<path name="incall_music_uplink2 handset-hac">
<path name="incall_music_uplink2" />
</path>
<path name="incall_music_uplink2 display-port">
<path name="incall_music_uplink2" />
</path>
<path name="incall_music_uplink2 bt-sco">
<path name="incall_music_uplink2" />
</path>
<path name="incall_music_uplink2 bt-sco-wb">
<path name="incall_music_uplink2" />
</path>
<path name="incall_music_uplink2 speaker-and-display-port">
<path name="incall_music_uplink2" />
</path>
<path name="incall_music_uplink2 afe-proxy">
<path name="incall_music_uplink2" />
</path>
<path name="incall_music_uplink2 usb-headphones">
<path name="incall_music_uplink2" />
</path>
<path name="incall_music_uplink2 usb-headset">
<path name="incall_music_uplink2" />
</path>
<path name="incall_music_uplink2 speaker-and-usb-headphones">
<path name="incall_music_uplink2" />
</path>
<path name="incall_music_uplink2 headphones">
<path name="incall_music_uplink2" />
</path>
<path name="incall_music_uplink2 speaker-and-headphones">
<path name="incall_music_uplink2" />
</path>
<path name="incall_music_uplink2 speaker-and-bt-sco">
<path name="incall_music_uplink2" />
</path>
<path name="incall_music_uplink2 voice-tty-hco-handset">
<path name="incall_music_uplink2" />
</path>
<path name="incall_music_uplink2 speaker-and-bt-a2dp">
<path name="incall_music_uplink2" />
</path>
<path name="incall_music_uplink2 bt-a2dp">
<path name="incall_music_uplink2" />
</path>
<path name="incall_music_uplink2 afe-proxy">
<path name="incall_music_uplink2" />
</path>
<path name="incall_music_uplink2 call-proxy">
<path name="incall_music_uplink2" />
</path>
<path name="call-proxy">
</path>
<path name="call-proxy-in">
</path>
</mixer>

@ -14,9 +14,9 @@
# limitations under the License.
#
LOCAL_PATH := device/samsung/a52q
DEVICE_PATH := device/samsung/a52q
DEVICE_PACKAGE_OVERLAYS += $(LOCAL_PATH)/overlay
DEVICE_PACKAGE_OVERLAYS += $(DEVICE_PATH)/overlay
# call the common setup
$(call inherit-product, device/samsung/sm7125-common/common.mk)
@ -30,4 +30,4 @@ PRODUCT_PACKAGES += \
# Audio
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/configs/audio/mixer_paths.xml:$(TARGET_COPY_OUT_VENDOR)/etc/mixer_paths.xml
$(DEVICE_PATH)/configs/audio/mixer_paths.xml:$(TARGET_COPY_OUT_VENDOR)/etc/mixer_paths.xml

@ -1,63 +1,21 @@
#!/bin/bash
#
# Copyright (C) 2018-2020 The LineageOS Project
# Copyright (C) 2016 The CyanogenMod Project
# Copyright (C) 2017-2023 The LineageOS Project
#
# SPDX-License-Identifier: Apache-2.0
#
set -e
DEVICE_COMMON=a52q
VENDOR=samsung
# Load extractutils 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"
# 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
# Initialize the helper
setup_vendor "${DEVICE_COMMON}" "${VENDOR}" "${ANDROID_ROOT}" true "${CLEAN_VENDOR}"
extract "${MY_DIR}/proprietary-files.txt" "${SRC}" "${KANG}" --section "${SECTION}"
set -e
# Fix proprietary blobs
BLOB_ROOT="$ANDROID_ROOT"/vendor/"$VENDOR"/"$DEVICE_COMMON"/proprietary
export DEVICE=a52q
export DEVICE_COMMON=sm7125-common
export VENDOR=samsung
"${MY_DIR}/setup-makefiles.sh"
"./../../${VENDOR}/${DEVICE_COMMON}/extract-files.sh" "$@"

@ -30,8 +30,6 @@ $(call inherit-product, vendor/lineage/config/common_full_phone.mk)
$(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
@ -44,3 +42,10 @@ PRODUCT_MANUFACTURER := samsung
PRODUCT_GMS_CLIENTID_BASE := android-samsung
PRODUCT_SHIPPING_API_LEVEL := 30
# Vendor fingerprint
BUILD_FINGERPRINT := "samsung/a52qnsxx/a52q:11/RP1A.200720.012/A525FXXU6EWL3:user/release-keys"
PRIVATE_BUILD_DESC := "a52qnsxx-user 11 RP1A.200720.012 A525FXXU6EWL3 release-keys"
# Security patch
VENDOR_SECURITY_PATCH := 2023-12-01

@ -40,11 +40,4 @@
@see https://www.w3.org/TR/SVG/paths.html#PathData
-->
<string translatable="false" name="config_mainBuiltInDisplayCutout">M 0,0 M 0,12.25101276465640 a 10.60613009248640,10.60613009248640 0 1,0 0,21.21226018497290 a 10.60613009248640,10.60613009248640 0 1,0 0,-21.21226018497290 Z @dp</string>
<!-- The properties of a UDFPS sensor in pixels, in the order listed below: -->
<integer-array name="config_udfps_sensor_props">
<item>540</item>
<item>2137</item>
<item>119</item>
</integer-array>
</resources>

@ -0,0 +1,22 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
/**
* Copyright (c) 2016, The Android Open Source 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.
*/
-->
<resources>
<!-- Default for Settings.Global.DEVICE_NAME $1=MODEL-->
<string name="def_device_name_simple">Galaxy A52 4G</string>
</resources>

@ -1,4 +1,4 @@
# All blobs are from A525FXXS4BVA2, unless pinned
# All blobs are from A525FXXU6EWL3 (U), unless pinned
# ACDB
vendor/etc/audconf/ODM/Global_cal.acdb
@ -55,6 +55,8 @@ vendor/lib/camera/ois_mcu_stm32g_fw.bin
vendor/lib/camera/uw_dual_calibration.bin
vendor/lib/hw/com.samsung.chi.override.so
vendor/lib64/hw/com.samsung.chi.override.so
vendor/lib/hw/camera.qcom.so
vendor/lib64/hw/camera.qcom.so
vendor/lib/libsec2qc_conversion.so
vendor/lib64/libsec2qc_conversion.so
vendor/lib/libvdis_interface.so

@ -1,44 +1,21 @@
#!/bin/bash
#
# Copyright (C) 2017-2021 The LineageOS Project
# Copyright (C) 2016 The CyanogenMod Project
# Copyright (C) 2017-2023 The LineageOS Project
#
# SPDX-License-Identifier: Apache-2.0
#
set -e
DEVICE_COMMON=a52q
VENDOR=samsung
# Load extractutils 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
# 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
source "${HELPER}"
# Initialize the helper
setup_vendor "${DEVICE_COMMON}" "${VENDOR}" "${ANDROID_ROOT}" true
# Warning headers and guards
write_headers "a52q"
write_makefiles "${MY_DIR}/proprietary-files.txt" true
###################################################################################################
# CUSTOM PART START #
###################################################################################################
set -e
OUTDIR=vendor/$VENDOR/$DEVICE_COMMON
export DEVICE=a52q
export DEVICE_COMMON=sm7125-common
export VENDOR=samsung
###################################################################################################
# CUSTOM PART END #
###################################################################################################
# Done
write_footers
"./../../${VENDOR}/${DEVICE_COMMON}/setup-makefiles.sh" "$@"

@ -0,0 +1,5 @@
# Bluetooth
bluetooth.device.default_name=Galaxy A52 4G
# Fingerprint
ro.vendor.fingerprint.sensor_location=540|2137|119
Loading…
Cancel
Save