From b53cf8fdbeeefe999bd758f4eb8dfafd98a7afcf Mon Sep 17 00:00:00 2001 From: chaptsand Date: Fri, 6 Oct 2023 16:09:18 +0800 Subject: [PATCH] dm3q: Inherit from common tree Change-Id: Ib4d9913df70195ac1efd2f117c3efbbeb4e2e75a --- Android.bp | 2 + Android.mk | 22 + AndroidProducts.mk | 13 + BoardConfig.mk | 19 + board-info.txt | 1 + device.mk | 31 + extract-files.sh | 27 + init/Android.bp | 11 + init/init.dm3q.rc | 276 ++++ lineage_dm3q.mk | 28 + overlay/FrameworksResDm3q/Android.bp | 10 + overlay/FrameworksResDm3q/AndroidManifest.xml | 12 + .../FrameworksResDm3q/res/values/config.xml | 1398 +++++++++++++++++ .../FrameworksResDm3q/res/values/dimens.xml | 21 + .../res/xml/power_profile.xml | 180 +++ proprietary-files.txt | 204 +++ setup-makefiles.sh | 16 + sort-blobs-list.py | 46 + 18 files changed, 2317 insertions(+) create mode 100644 Android.bp create mode 100644 Android.mk create mode 100644 AndroidProducts.mk create mode 100644 BoardConfig.mk create mode 100644 board-info.txt create mode 100644 device.mk create mode 100755 extract-files.sh create mode 100644 init/Android.bp create mode 100644 init/init.dm3q.rc create mode 100644 lineage_dm3q.mk create mode 100644 overlay/FrameworksResDm3q/Android.bp create mode 100644 overlay/FrameworksResDm3q/AndroidManifest.xml create mode 100644 overlay/FrameworksResDm3q/res/values/config.xml create mode 100644 overlay/FrameworksResDm3q/res/values/dimens.xml create mode 100644 overlay/FrameworksResDm3q/res/xml/power_profile.xml create mode 100644 proprietary-files.txt create mode 100755 setup-makefiles.sh create mode 100755 sort-blobs-list.py diff --git a/Android.bp b/Android.bp new file mode 100644 index 0000000..9515b25 --- /dev/null +++ b/Android.bp @@ -0,0 +1,2 @@ +soong_namespace { +} diff --git a/Android.mk b/Android.mk new file mode 100644 index 0000000..276d005 --- /dev/null +++ b/Android.mk @@ -0,0 +1,22 @@ +# +# Copyright (C) 2023 The LineageOS Project +# +# SPDX-License-Identifier: Apache-2.0 +# + +LOCAL_PATH := $(call my-dir) + +ifneq ($(filter dm3q,$(TARGET_DEVICE)),) + +WIFI_FIRMWARE_SYMLINKS := $(TARGET_OUT_VENDOR)/firmware/ +$(WIFI_FIRMWARE_SYMLINKS): $(LOCAL_INSTALLED_MODULE) + @echo "Creating WiFi firmware symlinks: $@" + @mkdir -p $@/wlan/qca_cld/kiwi_v2 + $(hide) ln -sf /data/vendor/firmware/wlanmdsp.mbn $@/wlanmdsp.otaupdate + $(hide) ln -sf /mnt/vendor/persist/kiwi_v2/wlan_mac.bin $@/wlan/qca_cld/kiwi_v2/wlan_mac.bin + $(hide) ln -sf /vendor/etc/wifi/kiwi_v2/WCNSS_qcom_cfg.ini $@/wlan/qca_cld/kiwi_v2/WCNSS_qcom_cfg.ini + +ALL_DEFAULT_INSTALLED_MODULES += \ + $(WIFI_FIRMWARE_SYMLINKS) + +endif diff --git a/AndroidProducts.mk b/AndroidProducts.mk new file mode 100644 index 0000000..ecdaee4 --- /dev/null +++ b/AndroidProducts.mk @@ -0,0 +1,13 @@ +# +# Copyright (C) 2023 The LineageOS Project +# +# SPDX-License-Identifier: Apache-2.0 +# + +PRODUCT_MAKEFILES := \ + $(LOCAL_DIR)/lineage_dm3q.mk + +COMMON_LUNCH_CHOICES := \ + lineage_dm3q-eng \ + lineage_dm3q-user \ + lineage_dm3q-userdebug diff --git a/BoardConfig.mk b/BoardConfig.mk new file mode 100644 index 0000000..eb38604 --- /dev/null +++ b/BoardConfig.mk @@ -0,0 +1,19 @@ +# +# Copyright (C) 2023 The LineageOS Project +# +# SPDX-License-Identifier: Apache-2.0 +# + +# Include the common OEM chipset BoardConfig. +include device/samsung/sm8550-common/BoardConfigCommon.mk + +DEVICE_PATH := device/samsung/dm3q + +# Assert +TARGET_OTA_ASSERT_DEVICE := dm3q + +# Display +TARGET_SCREEN_DENSITY := 450 + +# Include the proprietary files BoardConfig. +include vendor/samsung/dm3q/BoardConfigVendor.mk diff --git a/board-info.txt b/board-info.txt new file mode 100644 index 0000000..3090f05 --- /dev/null +++ b/board-info.txt @@ -0,0 +1 @@ +require board=kalama|dm3q diff --git a/device.mk b/device.mk new file mode 100644 index 0000000..d18a6bd --- /dev/null +++ b/device.mk @@ -0,0 +1,31 @@ +# +# Copyright (C) 2023 The LineageOS Project +# +# SPDX-License-Identifier: Apache-2.0 +# + +# AAPT +PRODUCT_AAPT_CONFIG := normal +PRODUCT_AAPT_PREF_CONFIG := xxxhdpi + +# Boot animation +TARGET_SCREEN_HEIGHT := 2340 +TARGET_SCREEN_WIDTH := 1080 + +# Init +PRODUCT_PACKAGES += \ + init.dm3q.rc + +# Namespaces +PRODUCT_SOONG_NAMESPACES += \ + $(LOCAL_PATH) + +# Overlays +PRODUCT_PACKAGES += \ + FrameworksResDm2q + +# Inherit from the common OEM chipset makefile. +$(call inherit-product, device/samsung/sm8550-common/common.mk) + +# Inherit from the proprietary files makefile. +$(call inherit-product, vendor/samsung/dm3q/dm3q-vendor.mk) diff --git a/extract-files.sh b/extract-files.sh new file mode 100755 index 0000000..0664255 --- /dev/null +++ b/extract-files.sh @@ -0,0 +1,27 @@ +#!/bin/bash +# +# Copyright (C) 2016 The CyanogenMod Project +# Copyright (C) 2017-2020 The LineageOS Project +# +# SPDX-License-Identifier: Apache-2.0 +# + +function blob_fixup() { + case "${1}" in + esac +} + +# 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=dm3q +export DEVICE_COMMON=sm8550-common +export VENDOR=samsung +export VENDOR_COMMON=${VENDOR} + +"./../../${VENDOR_COMMON}/${DEVICE_COMMON}/extract-files.sh" "$@" diff --git a/init/Android.bp b/init/Android.bp new file mode 100644 index 0000000..fac1148 --- /dev/null +++ b/init/Android.bp @@ -0,0 +1,11 @@ +// +// Copyright (C) 2023 The LineageOS Project +// SPDX-License-Identifier: Apache-2.0 +// + +prebuilt_etc { + name: "init.dm3q.rc", + src: "init.dm3q.rc", + sub_dir: "init/hw", + vendor: true, +} diff --git a/init/init.dm3q.rc b/init/init.dm3q.rc new file mode 100644 index 0000000..1a44a08 --- /dev/null +++ b/init/init.dm3q.rc @@ -0,0 +1,276 @@ + +# Copyright (c) 2019-2021, The Linux Foundation. All rights reserved. +# +# Redistribution and use in source and binary forms, with or without +# modification, are permitted provided that the following conditions are +# met: +# * Redistributions of source code must retain the above copyright +# notice, this list of conditions and the following disclaimer. +# * Redistributions in binary form must reproduce the above +# copyright notice, this list of conditions and the following +# disclaimer in the documentation and/or other materials provided +# with the distribution. +# * Neither the name of The Linux Foundation nor the names of its +# contributors may be used to endorse or promote products derived +# from this software without specific prior written permission. +# +# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESS OR IMPLIED +# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF +# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT +# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS +# BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR +# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF +# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR +# BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, +# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE +# OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN +# IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# +# + +on early-init + +on init + +on late-init + +on post-fs + +on late-fs + +on post-fs-data +# Samsung Pay + mkdir /efs/pfw_data 0760 vendor_spay vendor_spay + +# MST/NFC Switch + chown vendor_spay system /dev/mst_ctrl + chmod 0660 /dev/mst_ctrl + +#mAFPC + mkdir /efs/afc 0760 system system + exec - system system -- /system/bin/mafpc_write + +on boot +# SDHMS Slowdown : Cpuset + mkdir /dev/cpuset/abnormal + write /dev/cpuset/abnormal/cpus 0-2 + copy /dev/cpuset/mems /dev/cpuset/abnormal/mems + + chown system system /dev/cpuset/abnormal + chown system system /dev/cpuset/abnormal/tasks + chown system system /dev/cpuset/abnormal/cpus + chown system system /dev/cpuset/abnormal/cgroup.procs + chmod 0664 /dev/cpuset/abnormal/tasks + chmod 0664 /dev/cpuset/abnormal/cpus + chmod 0664 /dev/cpuset/abnormal/cgroup.procs + + mkdir /dev/cpuset/moderate + write /dev/cpuset/moderate/cpus 0-2 + copy /dev/cpuset/mems /dev/cpuset/moderate/mems + + chown system system /dev/cpuset/moderate + chown system system /dev/cpuset/moderate/tasks + chown system system /dev/cpuset/moderate/cpus + chown system system /dev/cpuset/moderate/cgroup.procs + chmod 0664 /dev/cpuset/moderate/tasks + chmod 0664 /dev/cpuset/moderate/cpus + chmod 0664 /dev/cpuset/moderate/cgroup.procs + + write /proc/sys/vm/swappiness 130 + write /sys/module/zram/parameters/zram_balance_ratio 0 + +# [ Permissions for Range Sensor Sensor +# Range Sensor + chown system radio /sys/class/sensors/range_sensor/ambient + chown system radio /sys/class/sensors/range_sensor/cal01 + chown system radio /sys/class/sensors/range_sensor/cal02 + chown system radio /sys/class/sensors/range_sensor/cal_uid + chown system radio /sys/class/sensors/range_sensor/open_calibration + chown system radio /sys/class/sensors/range_sensor/calibration + chown system radio /sys/class/sensors/range_sensor/enable + chown system radio /sys/class/sensors/range_sensor/frame_rate + chown system radio /sys/class/sensors/range_sensor/fw_version + chown system radio /sys/class/sensors/range_sensor/mode + chown system radio /sys/class/sensors/range_sensor/name + chown system radio /sys/class/sensors/range_sensor/range_sigma + chown system radio /sys/class/sensors/range_sensor/status + chown system radio /sys/class/sensors/range_sensor/target_status + chown system radio /sys/class/sensors/range_sensor/temp + chown system radio /sys/class/sensors/range_sensor/test01 + chown system radio /sys/class/sensors/range_sensor/test02 + chown system radio /sys/class/sensors/range_sensor/test03 + chown system radio /sys/class/sensors/range_sensor/test_mode + chown system radio /sys/class/sensors/range_sensor/uid + chown system radio /sys/class/sensors/range_sensor/vendor + chown system radio /sys/class/sensors/range_sensor/zone + chown system radio /sys/class/sensors/range_sensor/file_cal + chown system radio /sys/class/sensors/range_sensor/file_p2p + chown system radio /sys/class/sensors/range_sensor/file_shape + chown system radio /sys/class/sensors/range_sensor/interrupt + chown system radio /sys/class/sensors/range_sensor/error +# ] Permissions for Range Sensor + +on shutdown + +# service definition + +# on property triggers + +# Create carrier folder for HiddenMenu +on post-fs + mkdir /efs/carrier 0755 radio system + chown radio system /efs/carrier + chown radio system /efs/carrier/HiddenMenu + + #permission for cache reclaim feature + chown system system /proc/proc_caches_reclaim + +# For Range Sensor + chmod 0660 /dev/range_sensor + chown system system /dev/range_sensor + mkdir /efs/range_sensor 0770 system system + chown system system /efs/range_sensor/cal_data.bin + chmod 0660 /efs/range_sensor/cal_data.bin + chown system system /efs/range_sensor/vl53l5_cal_shape.bin + chmod 0660 /efs/range_sensor/vl53l5_cal_shape.bin + chown system system /efs/range_sensor/vl53l5_cal_p2p.bin + chmod 0660 /efs/range_sensor/vl53l5_cal_p2p.bin + +# Range Sensor +on property:sys.boot_completed=1 + write /sys/class/sensors/range_sensor/calibration 0 + +# Pageboostd +on property:sys.boot_completed=1 + start pageboostd + +service pageboostd /system/bin/pageboostd + class main + user system + group system mount radio net_bt sdcard_rw shell media media_rw + socket pageboostd seqpacket 0660 system system + disabled + +#Enable MGLRU +on early-init + write /sys/kernel/mm/lru_gen/enabled 7 + +# some priv-apps of DSH bind mount to DSA priv-apps +on post-fs-data && property:ro.csc.sales_code=DSA + umount /system/carrier + mkdir /mnt/temp + mount none /system/carrier/DSH /mnt/temp bind + mount none /system/carrier/DSA /system/carrier bind + mount none /mnt/temp/priv-app/VisualVoicemailDsh_Stub /system/carrier/priv-app/VisualVoicemailDsh_Stub bind + umount /mnt/temp + rmdir /mnt/temp + +# some priv-apps of DSH & DSA bind mount to DSG priv-apps +on post-fs-data && property:ro.csc.sales_code=DSG + umount /system/carrier + mkdir /mnt/temp1 + mkdir /mnt/temp2 + mount none /system/carrier/DSH /mnt/temp1 bind + mount none /system/carrier/DSA /mnt/temp2 bind + mount none /system/carrier/DSG /system/carrier bind + mount none /mnt/temp1/priv-app/NetworkCompanion /system/carrier/priv-app/NetworkCompanion bind + mount none /mnt/temp1/priv-app/VisualVoicemailDsh_Stub /system/carrier/priv-app/VisualVoicemailDsh_Stub bind + mount none /mnt/temp2/priv-app/Opportunistic /system/carrier/priv-app/Opportunistic bind + umount /mnt/temp1 + umount /mnt/temp2 + rmdir /mnt/temp1 + rmdir /mnt/temp2 + +# some priv-apps of TMB bind mount to ASR priv-apps +on post-fs-data && property:ro.csc.sales_code=ASR + umount /system/carrier + mkdir /mnt/temp + mount none /system/carrier/TMB /mnt/temp bind + mount none /system/carrier/ASR /system/carrier bind + mount none /mnt/temp/priv-app/SprintAndroidExtension2_TMB /system/carrier/priv-app/SprintAndroidExtension2_TMB bind + umount /mnt/temp + rmdir /mnt/temp + + +# some priv-apps of TMB bind mount to TMK priv-apps +on post-fs-data && property:ro.csc.sales_code=TMK + umount /system/carrier + mkdir /mnt/temp + mount none /system/carrier/TMB /mnt/temp bind + mount none /system/carrier/TMK /system/carrier bind + mount none /mnt/temp/priv-app/SprintAndroidExtension2_TMB /system/carrier/priv-app/SprintAndroidExtension2_TMB bind + umount /mnt/temp + rmdir /mnt/temp + +# some priv-apps of DSA bind mount to DSH priv-apps +on post-fs-data && property:ro.csc.sales_code=DSH + umount /system/carrier + mkdir /mnt/temp + mount none /system/carrier/DSA /mnt/temp bind + mount none /system/carrier/DSH /system/carrier bind + mount none /mnt/temp/priv-app/Opportunistic /system/carrier/priv-app/Opportunistic bind + umount /mnt/temp + rmdir /mnt/temp + +# DCK properties based on target +# DigitalKey (Supported Country) : KR,US,GB,DE,FR,IT,ES,AE,CH,KZ,SE,VN,ZA,AU,BR,CA,HK,IN,MY,SG,TW,SA +on property:sys.boot_completed=1 && property:ro.csc.countryiso_code=KR + setprop ro.gms.dck.eligible_wcc 3 +on property:sys.boot_completed=1 && property:ro.csc.countryiso_code=US + setprop ro.gms.dck.eligible_wcc 3 +on property:sys.boot_completed=1 && property:ro.csc.countryiso_code=GB + setprop ro.gms.dck.eligible_wcc 3 +on property:sys.boot_completed=1 && property:ro.csc.countryiso_code=GB && property:ro.oem.key2=MET + setprop ro.gms.dck.eligible_wcc 0 +on property:sys.boot_completed=1 && property:ro.csc.countryiso_code=GB && property:ro.oem.key2=VDI + setprop ro.gms.dck.eligible_wcc 0 +on property:sys.boot_completed=1 && property:ro.csc.countryiso_code=GB && property:ro.oem.key2=TSI + setprop ro.gms.dck.eligible_wcc 0 +on property:sys.boot_completed=1 && property:ro.csc.countryiso_code=GB && property:ro.oem.key2=3IE + setprop ro.gms.dck.eligible_wcc 0 +on property:sys.boot_completed=1 && property:ro.csc.countryiso_code=DE + setprop ro.gms.dck.eligible_wcc 3 +on property:sys.boot_completed=1 && property:ro.csc.countryiso_code=FR + setprop ro.gms.dck.eligible_wcc 3 +on property:sys.boot_completed=1 && property:ro.csc.countryiso_code=IT + setprop ro.gms.dck.eligible_wcc 3 +on property:sys.boot_completed=1 && property:ro.csc.countryiso_code=ES + setprop ro.gms.dck.eligible_wcc 3 +on property:sys.boot_completed=1 && property:ro.csc.countryiso_code=AE + setprop ro.gms.dck.eligible_wcc 3 +on property:sys.boot_completed=1 && property:ro.csc.countryiso_code=AE && property:ro.oem.key2=AFR + setprop ro.gms.dck.eligible_wcc 0 +on property:sys.boot_completed=1 && property:ro.csc.countryiso_code=CH + setprop ro.gms.dck.eligible_wcc 3 +on property:sys.boot_completed=1 && property:ro.csc.countryiso_code=KZ + setprop ro.gms.dck.eligible_wcc 3 +on property:sys.boot_completed=1 && property:ro.csc.countryiso_code=SE + setprop ro.gms.dck.eligible_wcc 3 +on property:sys.boot_completed=1 && property:ro.csc.countryiso_code=SE && property:ro.oem.key2=TEN + setprop ro.gms.dck.eligible_wcc 0 +on property:sys.boot_completed=1 && property:ro.csc.countryiso_code=VN + setprop ro.gms.dck.eligible_wcc 3 +on property:sys.boot_completed=1 && property:ro.csc.countryiso_code=VN && property:ro.oem.key2=XEV + setprop ro.gms.dck.eligible_wcc 0 +on property:sys.boot_completed=1 && property:ro.csc.countryiso_code=ZA + setprop ro.gms.dck.eligible_wcc 3 +on property:sys.boot_completed=1 && property:ro.csc.countryiso_code=ZA && property:ro.oem.key2=XFE + setprop ro.gms.dck.eligible_wcc 0 +on property:sys.boot_completed=1 && property:ro.csc.countryiso_code=AU + setprop ro.gms.dck.eligible_wcc 3 +on property:sys.boot_completed=1 && property:ro.csc.countryiso_code=BR + setprop ro.gms.dck.eligible_wcc 3 +on property:sys.boot_completed=1 && property:ro.csc.countryiso_code=CA + setprop ro.gms.dck.eligible_wcc 3 +on property:sys.boot_completed=1 && property:ro.csc.countryiso_code=HK + setprop ro.gms.dck.eligible_wcc 3 +on property:sys.boot_completed=1 && property:ro.csc.countryiso_code=IN + setprop ro.gms.dck.eligible_wcc 3 +on property:sys.boot_completed=1 && property:ro.csc.countryiso_code=MY + setprop ro.gms.dck.eligible_wcc 3 +on property:sys.boot_completed=1 && property:ro.csc.countryiso_code=SG + setprop ro.gms.dck.eligible_wcc 3 +on property:sys.boot_completed=1 && property:ro.csc.countryiso_code=TW + setprop ro.gms.dck.eligible_wcc 3 +on property:sys.boot_completed=1 && property:ro.csc.countryiso_code=SA + setprop ro.gms.dck.eligible_wcc 3 diff --git a/lineage_dm3q.mk b/lineage_dm3q.mk new file mode 100644 index 0000000..2159c23 --- /dev/null +++ b/lineage_dm3q.mk @@ -0,0 +1,28 @@ +# +# Copyright (C) 2023 The LineageOS Project +# +# SPDX-License-Identifier: Apache-2.0 +# + +# 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_telephony.mk) + +# Inherit from the device configuration. +$(call inherit-product, device/samsung/dm3q/device.mk) + +# Inherit from the Lineage configuration. +$(call inherit-product, vendor/lineage/config/common_full_phone.mk) + +PRODUCT_NAME := lineage_dm3q +PRODUCT_DEVICE := dm3q +PRODUCT_BRAND := Samsung +PRODUCT_MODEL := SM-S918B +PRODUCT_MANUFACTURER := Samsung + +PRODUCT_GMS_CLIENTID_BASE := android-samsung + +PRODUCT_BUILD_PROP_OVERRIDES += \ + PRIVATE_BUILD_DESC="dm3qxxx-user 13 TP1A.220624.014 S918BXXS3AWHR release-keys" + +BUILD_FINGERPRINT := samsung/dm3qxxx/dm3q:13/TP1A.220624.014/S918BXXS3AWHR:user/release-keys diff --git a/overlay/FrameworksResDm3q/Android.bp b/overlay/FrameworksResDm3q/Android.bp new file mode 100644 index 0000000..05540ab --- /dev/null +++ b/overlay/FrameworksResDm3q/Android.bp @@ -0,0 +1,10 @@ +// +// Copyright (C) 2023 The LineageOS Project +// +// SPDX-License-Identifier: Apache-2.0 +// + +runtime_resource_overlay { + name: "FrameworksResDm3q", + device_specific: true, +} diff --git a/overlay/FrameworksResDm3q/AndroidManifest.xml b/overlay/FrameworksResDm3q/AndroidManifest.xml new file mode 100644 index 0000000..b415eff --- /dev/null +++ b/overlay/FrameworksResDm3q/AndroidManifest.xml @@ -0,0 +1,12 @@ + + + + + diff --git a/overlay/FrameworksResDm3q/res/values/config.xml b/overlay/FrameworksResDm3q/res/values/config.xml new file mode 100644 index 0000000..4eedef8 --- /dev/null +++ b/overlay/FrameworksResDm3q/res/values/config.xml @@ -0,0 +1,1398 @@ + + + + + + 120 + + + M 0,0 H -9.466666666666667 V 26.66666666666667‬ H 9.466666666666667 V 0 H 0 Z @dp + + + 0.0 + + + 1.0 + + + 0.5019608 + + + 13 + 0.050980393 + + + + 1 + 2 + 3 + 4 + 5 + 10 + 15 + 20 + 25 + 50 + 100 + 300 + 500 + 1000 + 2000 + 3000 + 4000 + 5000 + 6000 + 7000 + 10000 + 20000 + 50000 + 999999 + + + + + 11 + 15 + 22 + 26 + 31 + 35 + 46 + 62 + 79 + 88 + 93 + 99 + 111 + 130 + 190 + 340 + 500 + 650 + 800 + 1000 + 1100 + 1200 + 1200 + 1200 + 1200 + + + + + 0 + 1 + 2 + 3 + 4 + 5 + 6 + 7 + 8 + 9 + 10 + 11 + 12 + 13 + 14 + 15 + 16 + 17 + 18 + 19 + 20 + 21 + 22 + 23 + 24 + 25 + 26 + 27 + 28 + 29 + 30 + 31 + 32 + 33 + 34 + 35 + 36 + 37 + 38 + 39 + 40 + 41 + 42 + 43 + 44 + 45 + 46 + 47 + 48 + 49 + 50 + 51 + 52 + 53 + 54 + 55 + 56 + 57 + 58 + 59 + 60 + 61 + 62 + 63 + 64 + 65 + 66 + 67 + 68 + 69 + 70 + 71 + 72 + 73 + 74 + 75 + 76 + 77 + 78 + 79 + 80 + 81 + 82 + 83 + 84 + 85 + 86 + 87 + 88 + 89 + 90 + 91 + 92 + 93 + 94 + 95 + 96 + 97 + 98 + 99 + 100 + 101 + 102 + 103 + 104 + 105 + 106 + 107 + 108 + 109 + 110 + 111 + 112 + 113 + 114 + 115 + 116 + 117 + 118 + 119 + 120 + 121 + 122 + 123 + 124 + 125 + 126 + 127 + 128 + 129 + 130 + 131 + 132 + 133 + 134 + 135 + 136 + 137 + 138 + 139 + 140 + 141 + 142 + 143 + 144 + 145 + 146 + 147 + 148 + 149 + 150 + 151 + 152 + 153 + 154 + 155 + 156 + 157 + 158 + 159 + 160 + 161 + 162 + 163 + 164 + 165 + 166 + 167 + 168 + 169 + 170 + 171 + 172 + 173 + 174 + 175 + 176 + 177 + 178 + 179 + 180 + 181 + 182 + 183 + 184 + 185 + 186 + 187 + 188 + 189 + 190 + 191 + 192 + 193 + 194 + 195 + 196 + 197 + 198 + 199 + 200 + 201 + 202 + 203 + 204 + 205 + 206 + 207 + 208 + 209 + 210 + 211 + 212 + 213 + 214 + 215 + 216 + 217 + 218 + 219 + 220 + 221 + 222 + 223 + 224 + 225 + 226 + 227 + 228 + 229 + 230 + 231 + 232 + 233 + 234 + 235 + 236 + 237 + 238 + 239 + 240 + 241 + 242 + 243 + 244 + 245 + 246 + 247 + 248 + 249 + 250 + 251 + 252 + 253 + 254 + 255 + 256 + 257 + 258 + 259 + 260 + 261 + 262 + 263 + 264 + 265 + 266 + 267 + 268 + 269 + 270 + 271 + 272 + 273 + 274 + 275 + 276 + 277 + 278 + 279 + 280 + 281 + 282 + 283 + 284 + 285 + 286 + 287 + 288 + 289 + 290 + 291 + 292 + 293 + 294 + 295 + 296 + 297 + 298 + 299 + 300 + 301 + 302 + 303 + 304 + 305 + 306 + 307 + 308 + 309 + 310 + 311 + 312 + 313 + 314 + 315 + 316 + 317 + 318 + 319 + 320 + 321 + 322 + 323 + 324 + 325 + 326 + 327 + 328 + 329 + 330 + 331 + 332 + 333 + 334 + 335 + 336 + 337 + 338 + 339 + 340 + 341 + 342 + 343 + 344 + 345 + 346 + 347 + 348 + 349 + 350 + 351 + 352 + 353 + 354 + 355 + 356 + 357 + 358 + 359 + 360 + 361 + 362 + 363 + 364 + 365 + 366 + 367 + 368 + 369 + 370 + 371 + 372 + 373 + 374 + 375 + 376 + 377 + 378 + 379 + 380 + 381 + 382 + 383 + 384 + 385 + 386 + 387 + 388 + 389 + 390 + 391 + 392 + 393 + 394 + 395 + 396 + 397 + 398 + 399 + 400 + 401 + 402 + 403 + 404 + 405 + 406 + 407 + 408 + 409 + 410 + 411 + 412 + 413 + 414 + 415 + 416 + 417 + 418 + 419 + 420 + 421 + 422 + 423 + 424 + 425 + 426 + 427 + 428 + 429 + 430 + 431 + 432 + 433 + 434 + 435 + 436 + 437 + 438 + 439 + 440 + 441 + 442 + 443 + 444 + 445 + 446 + 447 + 448 + 449 + 450 + 451 + 452 + 453 + 454 + 455 + 456 + 457 + 458 + 459 + 460 + 461 + 462 + 463 + 464 + 465 + 466 + 467 + 468 + 469 + 470 + 471 + 472 + 473 + 474 + 475 + 476 + 477 + 478 + 479 + 480 + 481 + 482 + 483 + 484 + 485 + 486 + 487 + 488 + 489 + 490 + 491 + 492 + 493 + 494 + 495 + 496 + 497 + 498 + 499 + 500 + 501 + 502 + 503 + 504 + 505 + 506 + 507 + 508 + 509 + 510 + 511 + 512 + 513 + 514 + 515 + 516 + 517 + 518 + 519 + 520 + 521 + 522 + 523 + 524 + 525 + 526 + 527 + 528 + 529 + 530 + 531 + 532 + 533 + 534 + 535 + 536 + 537 + 538 + 539 + 540 + 541 + 542 + 543 + 544 + 545 + 546 + 547 + 548 + 549 + 550 + 551 + 552 + 553 + 554 + 555 + 556 + 557 + 558 + 559 + 560 + 561 + 562 + 563 + 564 + 565 + 566 + 567 + 568 + 569 + 570 + 571 + 572 + 573 + 574 + 575 + 576 + 577 + 578 + 579 + 580 + 581 + 582 + 583 + 584 + 585 + 586 + 587 + 588 + 589 + 590 + 591 + 592 + 593 + 594 + 595 + 596 + 597 + 598 + 599 + 600 + 601 + 602 + 603 + 604 + 605 + 606 + 607 + 608 + 609 + 610 + 611 + 612 + + + + + 1 + 1.371 + 1.914 + 2.548 + 3.25 + 4.008 + 4.812 + 5.658 + 6.541 + 7.458 + 8.406 + 9.383 + 10.387 + 11.417 + 12.47 + 13.546 + 14.644 + 15.763 + 16.902 + 18.06 + 19.236 + 20.43 + 21.642 + 22.87 + 24.114 + 25.374 + 26.649 + 27.938 + 29.243 + 30.561 + 31.893 + 33.238 + 34.596 + 35.968 + 37.351 + 38.747 + 40.155 + 41.575 + 43.007 + 44.449 + 45.903 + 47.368 + 48.843 + 50.33 + 51.826 + 53.333 + 54.85 + 56.377 + 57.913 + 59.459 + 61.015 + 62.58 + 64.154 + 65.738 + 67.33 + 68.931 + 70.541 + 72.16 + 73.787 + 75.423 + 77.067 + 78.719 + 80.379 + 82.048 + 83.724 + 85.408 + 87.1 + 88.8 + 90.508 + 92.223 + 93.945 + 95.675 + 97.412 + 99.156 + 100.908 + 102.667 + 104.432 + 106.205 + 107.985 + 109.771 + 111.564 + 113.364 + 115.171 + 116.984 + 118.804 + 120.631 + 122.464 + 124.303 + 126.149 + 128 + 129.859 + 131.723 + 133.594 + 135.47 + 137.353 + 139.242 + 141.136 + 143.037 + 144.944 + 146.856 + 148.774 + 150.698 + 152.628 + 154.563 + 156.504 + 158.451 + 160.403 + 162.36 + 164.324 + 166.292 + 168.266 + 170.246 + 172.231 + 174.221 + 176.216 + 178.217 + 180.223 + 182.234 + 184.25 + 186.272 + 188.298 + 190.33 + 192.367 + 194.408 + 196.455 + 198.506 + 200.563 + 202.624 + 204.691 + 206.762 + 208.838 + 210.919 + 213.004 + 215.094 + 217.189 + 219.289 + 221.394 + 223.503 + 225.616 + 227.734 + 229.857 + 231.985 + 234.117 + 236.253 + 238.394 + 240.539 + 242.689 + 244.843 + 247.002 + 249.165 + 251.332 + 253.504 + 255.68 + 257.86 + 260.045 + 262.234 + 264.427 + 266.624 + 268.826 + 271.032 + 273.241 + 275.456 + 277.674 + 279.896 + 282.122 + 284.353 + 286.587 + 288.826 + 291.068 + 293.315 + 295.566 + 297.82 + 300.079 + 302.341 + 304.607 + 306.878 + 309.152 + 311.43 + 313.712 + 315.998 + 318.287 + 320.581 + 322.878 + 325.179 + 327.484 + 329.792 + 332.105 + 334.421 + 336.74 + 339.064 + 341.391 + 343.722 + 346.056 + 348.394 + 350.736 + 353.082 + 355.431 + 357.783 + 360.139 + 362.499 + 364.863 + 367.229 + 369.6 + 371.974 + 374.351 + 376.732 + 379.117 + 381.504 + 383.896 + 386.291 + 388.689 + 391.091 + 393.496 + 395.904 + 398.316 + 400.731 + 403.15 + 405.572 + 407.998 + 410.426 + 412.858 + 415.294 + 417.732 + 420.174 + 422.62 + 425.068 + 427.52 + 429.975 + 432.433 + 434.895 + 437.36 + 439.828 + 442.299 + 444.773 + 447.251 + 449.731 + 452.215 + 454.702 + 457.193 + 459.686 + 462.183 + 464.682 + 467.185 + 469.691 + 472.2 + 474.712 + 477.227 + 479.745 + 482.266 + 484.791 + 487.318 + 489.848 + 492.382 + 494.918 + 497.458 + 500 + 501.961 + 503.922 + 505.882 + 507.843 + 509.804 + 511.765 + 513.725 + 515.686 + 517.647 + 519.608 + 521.569 + 523.529 + 525.49 + 527.451 + 529.412 + 531.373 + 533.333 + 535.294 + 537.255 + 539.216 + 541.176 + 543.137 + 545.098 + 547.059 + 549.02 + 550.98 + 552.941 + 554.902 + 556.863 + 558.824 + 560.784 + 562.745 + 564.706 + 566.667 + 568.627 + 570.588 + 572.549 + 574.51 + 576.471 + 578.431 + 580.392 + 582.353 + 584.314 + 586.275 + 588.235 + 590.196 + 592.157 + 594.118 + 596.078 + 598.039 + 600 + 601.961 + 603.922 + 605.882 + 607.843 + 609.804 + 611.765 + 613.725 + 615.686 + 617.647 + 619.608 + 621.569 + 623.529 + 625.49 + 627.451 + 629.412 + 631.373 + 633.333 + 635.294 + 637.255 + 639.216 + 641.176 + 643.137 + 645.098 + 647.059 + 649.02 + 650.98 + 652.941 + 654.902 + 656.863 + 658.824 + 660.784 + 662.745 + 664.706 + 666.667 + 668.627 + 670.588 + 672.549 + 674.51 + 676.471 + 678.431 + 680.392 + 682.353 + 684.314 + 686.275 + 688.235 + 690.196 + 692.157 + 694.118 + 696.078 + 698.039 + 700 + 701.961 + 703.922 + 705.882 + 707.843 + 709.804 + 711.765 + 713.725 + 715.686 + 717.647 + 719.608 + 721.569 + 723.529 + 725.49 + 727.451 + 729.412 + 731.373 + 733.333 + 735.294 + 737.255 + 739.216 + 741.176 + 743.137 + 745.098 + 747.059 + 749.02 + 750.98 + 752.941 + 754.902 + 756.863 + 758.824 + 760.784 + 762.745 + 764.706 + 766.667 + 768.627 + 770.588 + 772.549 + 774.51 + 776.471 + 778.431 + 780.392 + 782.353 + 784.314 + 786.275 + 788.235 + 790.196 + 792.157 + 794.118 + 796.078 + 798.039 + 800 + 801.961 + 803.922 + 805.882 + 807.843 + 809.804 + 811.765 + 813.725 + 815.686 + 817.647 + 819.608 + 821.569 + 823.529 + 825.49 + 827.451 + 829.412 + 831.373 + 833.333 + 835.294 + 837.255 + 839.216 + 841.176 + 843.137 + 845.098 + 847.059 + 849.02 + 850.98 + 852.941 + 854.902 + 856.863 + 858.824 + 860.784 + 862.745 + 864.706 + 866.667 + 868.627 + 870.588 + 872.549 + 874.51 + 876.471 + 878.431 + 880.392 + 882.353 + 884.314 + 886.275 + 888.235 + 890.196 + 892.157 + 894.118 + 896.078 + 898.039 + 900 + 901.961 + 903.922 + 905.882 + 907.843 + 909.804 + 911.765 + 913.725 + 915.686 + 917.647 + 919.608 + 921.569 + 923.529 + 925.49 + 927.451 + 929.412 + 931.373 + 933.333 + 935.294 + 937.255 + 939.216 + 941.176 + 943.137 + 945.098 + 947.059 + 949.02 + 950.98 + 952.941 + 954.902 + 956.863 + 958.824 + 960.784 + 962.745 + 964.706 + 966.667 + 968.627 + 970.588 + 972.549 + 974.51 + 976.471 + 978.431 + 980.392 + 982.353 + 984.314 + 986.275 + 988.235 + 990.196 + 992.157 + 994.118 + 996.078 + 998.039 + 1000 + 1001.961 + 1003.922 + 1005.882 + 1007.843 + 1009.804 + 1011.765 + 1013.725 + 1015.686 + 1017.647 + 1019.608 + 1021.569 + 1023.529 + 1025.49 + 1027.451 + 1029.412 + 1031.373 + 1033.333 + 1035.294 + 1037.255 + 1039.216 + 1041.176 + 1043.137 + 1045.098 + 1047.059 + 1049.02 + 1050.98 + 1052.941 + 1054.902 + 1056.863 + 1058.824 + 1060.784 + 1062.745 + 1064.706 + 1066.667 + 1068.627 + 1070.588 + 1072.549 + 1074.51 + 1076.471 + 1078.431 + 1080.392 + 1082.353 + 1084.314 + 1086.275 + 1088.235 + 1090.196 + 1092.157 + 1094.118 + 1096.078 + 1098.039 + 1100 + 1101.961 + 1103.922 + 1105.882 + 1107.843 + 1109.804 + 1111.765 + 1113.725 + 1115.686 + 1117.647 + 1119.608 + 1121.569 + 1123.529 + 1125.49 + 1127.451 + 1129.412 + 1131.373 + 1133.333 + 1135.294 + 1137.255 + 1139.216 + 1141.176 + 1143.137 + 1145.098 + 1147.059 + 1149.02 + 1150.98 + 1152.941 + 1154.902 + 1156.863 + 1158.824 + 1160.784 + 1162.745 + 1164.706 + 1166.667 + 1168.627 + 1170.588 + 1172.549 + 1174.51 + 1176.471 + 1178.431 + 1180.392 + 1182.353 + 1184.314 + 1186.275 + 1188.235 + 1190.196 + 1192.157 + 1194.118 + 1196.078 + 1198.039 + 1200 + + + + true + + diff --git a/overlay/FrameworksResDm3q/res/values/dimens.xml b/overlay/FrameworksResDm3q/res/values/dimens.xml new file mode 100644 index 0000000..906812e --- /dev/null +++ b/overlay/FrameworksResDm3q/res/values/dimens.xml @@ -0,0 +1,21 @@ + + + + + + 5.069977mm + + + 4.0dip + + + 4.0dip + + diff --git a/overlay/FrameworksResDm3q/res/xml/power_profile.xml b/overlay/FrameworksResDm3q/res/xml/power_profile.xml new file mode 100644 index 0000000..841e056 --- /dev/null +++ b/overlay/FrameworksResDm3q/res/xml/power_profile.xml @@ -0,0 +1,180 @@ + + + 0 + 19.61 + 63.8 + 276.8 + 0 + 0 + 0 + 0 + 0 + 11.4 + 21.75 + 107 + 287 + 37.9 + 177.02 + 92.98 + + 8.77 + 8.77 + + 0 + 0 + 0 + 0 + + 3 + 4 + 1 + + + 307200 + 441600 + 556800 + 672000 + 787200 + 902400 + 1017600 + 1113600 + 1228800 + 1344000 + 1459200 + 1555200 + 1670400 + 1785600 + 1990800 + 2016000 + + + 14 + 16 + 18 + 20 + 22 + 24 + 28 + 29 + 32 + 35 + 39 + 42 + 46 + 50 + 54 + 60 + + + 499200 + 614400 + 729600 + 844800 + 940800 + 1056000 + 1171200 + 1286400 + 1401600 + 1536000 + 1651200 + 1785600 + 1920000 + 2054400 + 2188800 + 2323200 + 2457600 + 2592000 + 2707200 + 2803200 + + + 28 + 33 + 39 + 45 + 49 + 57 + 64 + 72 + 80 + 91 + 101 + 120 + 133 + 153 + 178 + 202 + 238 + 277 + 321 + 321 + + + 595200 + 729600 + 86400 + 998400 + 1132800 + 1248000 + 1363200 + 1478400 + 1593600 + 1708800 + 1843200 + 1977600 + 2092800 + 2227200 + 2342400 + 2476800 + 2592000 + 2726400 + 2841600 + 2956800 + 3360000 + + + 80 + 92 + 109 + 122 + 139 + 157 + 171 + 188 + 205 + 224 + 249 + 281 + 334 + 374 + 404 + 460 + 500 + 560 + 614 + 715 + 1139 + + 7.7 + 19.6 + 4855 + 5000 + 3.5 + 12 + 33 + 4000 + 1 + 120 + 300 + + 0 + + 4000 + + .0002 + .002 + .02 + .2 + 2 + + \ No newline at end of file diff --git a/proprietary-files.txt b/proprietary-files.txt new file mode 100644 index 0000000..eb8caff --- /dev/null +++ b/proprietary-files.txt @@ -0,0 +1,204 @@ +# All unpinned blobs are extracted from S918BXXS3AWHR + +# ACDB +vendor/etc/audconf/OPEN/acdb_cal.acdb +vendor/etc/audconf/OPEN/workspaceFileXml.qwsp + +# Audio configs +vendor/etc/audio/sku_kalama/mixer_paths.xml +vendor/etc/dolby/dax-default.xml + +# Bluetooth firmware +vendor/firmware/bt_nvm_loading.xml + +# Camera +vendor/lib64/camera/com.samsung.ois.mcu_stm32g.so +vendor/lib64/camera/com.samsung.sensormodule.0_lsi_s5khp2.bin +vendor/lib64/camera/com.samsung.sensormodule.12_lsi_s5k3lu_full.bin +vendor/lib64/camera/com.samsung.sensormodule.1_lsi_s5k3lu.bin +vendor/lib64/camera/com.samsung.sensormodule.2_sony_imx564.bin +vendor/lib64/camera/com.samsung.sensormodule.3_sony_imx754_x3.bin +vendor/lib64/camera/com.samsung.sensormodule.6_sony_imx754_x10.bin +vendor/lib64/camera/com.samsung.tuned.lsi_s5khp2.bin +vendor/lib64/camera/com.samsung.tuned.sony_imx754_x10.bin +vendor/lib64/camera/com.samsung.tuned.sony_imx754_x3.bin +vendor/lib64/camera/components/com.qti.eisv2.so +vendor/lib64/camera/components/com.qti.eisv3.so +vendor/lib64/camera/components/com.qti.hvx.addconstant.so +vendor/lib64/camera/components/com.qti.hvx.binning.so +vendor/lib64/camera/components/com.qti.node.afbfusion.so +vendor/lib64/camera/components/com.qti.node.aon.so +vendor/lib64/camera/components/com.qti.node.customhwnode.so +vendor/lib64/camera/components/com.qti.node.depth.so +vendor/lib64/camera/components/com.qti.node.depthprovider.so +vendor/lib64/camera/components/com.qti.node.dewarp.so +vendor/lib64/camera/components/com.qti.node.dummydepth.so +vendor/lib64/camera/components/com.qti.node.dummyrtb.so +vendor/lib64/camera/components/com.qti.node.dummysat.so +vendor/lib64/camera/components/com.qti.node.eisv2.so +vendor/lib64/camera/components/com.qti.node.eisv3.so +vendor/lib64/camera/components/com.qti.node.fcv.so +vendor/lib64/camera/components/com.qti.node.formatconversion.so +vendor/lib64/camera/components/com.qti.node.gme.so +vendor/lib64/camera/components/com.qti.node.gpu.so +vendor/lib64/camera/components/com.qti.node.gyrornn.so +vendor/lib64/camera/components/com.qti.node.hdr10pgen.so +vendor/lib64/camera/components/com.qti.node.hdr10phist.so +vendor/lib64/camera/components/com.qti.node.memcpy.so +vendor/lib64/camera/components/com.qti.node.ml.so +vendor/lib64/camera/components/com.qti.node.muxer.so +vendor/lib64/camera/components/com.qti.node.remosaic.so +vendor/lib64/camera/components/com.qti.node.seg.so +vendor/lib64/camera/components/com.qti.node.stich.so +vendor/lib64/camera/components/com.qti.node.swaidenoiser.so +vendor/lib64/camera/components/com.qti.node.swbestats.so +vendor/lib64/camera/components/com.qti.node.swcac.so +vendor/lib64/camera/components/com.qti.node.swec.so +vendor/lib64/camera/components/com.qti.node.swfusion.so +vendor/lib64/camera/components/com.qti.node.swhme.so +vendor/lib64/camera/components/com.qti.node.swlsc.so +vendor/lib64/camera/components/com.qti.node.swmctf.so +vendor/lib64/camera/components/com.qti.node.swpdpc.so +vendor/lib64/camera/components/com.qti.node.swpreprocess.so +vendor/lib64/camera/components/com.qti.node.swregistration.so +vendor/lib64/camera/components/com.qti.node.swvrt.so +vendor/lib64/camera/components/com.qti.stats.aecxcore.so +vendor/lib64/camera/components/com.qti.stats.af.so +vendor/lib64/camera/components/com.qti.stats.afd.so +vendor/lib64/camera/components/com.qti.stats.afwrapper.so +vendor/lib64/camera/components/com.qti.stats.asd.so +vendor/lib64/camera/components/com.qti.stats.awb.so +vendor/lib64/camera/components/com.qti.stats.awbwrapper.so +vendor/lib64/camera/components/com.qti.stats.cnndriver.so +vendor/lib64/camera/components/com.qti.stats.haf.so +vendor/lib64/camera/components/com.qti.stats.hafoverride.so +vendor/lib64/camera/components/com.qti.stats.localhistogram.so +vendor/lib64/camera/components/com.qti.stats.pdlib.so +vendor/lib64/camera/components/com.qti.stats.pdlibsony.so +vendor/lib64/camera/components/com.qti.stats.pdlibwrapper.so +vendor/lib64/camera/components/com.qti.stats.statsgenerator.so +vendor/lib64/camera/components/com.qti.stats.tracker.so +vendor/lib64/camera/components/com.qtistatic.stats.af.so +vendor/lib64/camera/components/com.qtistatic.stats.awb.so +vendor/lib64/camera/components/com.qtistatic.stats.pdlib.so +vendor/lib64/camera/components/com.samsung.node.capture_fusion.so +vendor/lib64/camera/components/com.samsung.node.realtimebokeh.so +vendor/lib64/camera/components/com.samsung.node.resolution.so +vendor/lib64/camera/components/com.samsung.node.smooth_transition.so +vendor/lib64/camera/components/com.samsung.node.uniplugin_capture.so +vendor/lib64/camera/components/com.samsung.node.uniplugin_preview.so +vendor/lib64/camera/components/com.samsung.node.uniplugin_recording.so +vendor/lib64/camera/components/com.samsung.node.uniplugin_vdis.so +vendor/lib64/camera/components/com.ss.stats.aec.so +vendor/lib64/camera/components/com.ss.stats.af.so +vendor/lib64/camera/components/com.ss.stats.awb.so +vendor/lib64/camera/components/com.ss.stats.pdlib.so +vendor/lib64/camera/components/libTsAeFront_dm3.so +vendor/lib64/camera/components/libTsAe_dm3.so +vendor/lib64/camera/components/libdepthmapwrapper_secure.so +vendor/lib64/camera/t_t10_dual_calibration.bin +vendor/lib64/camera/uw_dual_calibration.bin +vendor/lib64/camera/w_dual_calibration.bin +vendor/lib64/com.qti.camx.chiiqutils.so +vendor/lib64/com.qti.feature2.afbrckt.so +vendor/lib64/com.qti.feature2.anchorsync.so +vendor/lib64/com.qti.feature2.demux.so +vendor/lib64/com.qti.feature2.derivedoffline.so +vendor/lib64/com.qti.feature2.frameselect.so +vendor/lib64/com.qti.feature2.fusion.so +vendor/lib64/com.qti.feature2.generic.so +vendor/lib64/com.qti.feature2.gs.sm8550.so +vendor/lib64/com.qti.feature2.hdr.so +vendor/lib64/com.qti.feature2.mcreprocrt.so +vendor/lib64/com.qti.feature2.memcpy.so +vendor/lib64/com.qti.feature2.mfsr.so +vendor/lib64/com.qti.feature2.ml.so +vendor/lib64/com.qti.feature2.mux.so +vendor/lib64/com.qti.feature2.qcfa.so +vendor/lib64/com.qti.feature2.rawhdr.so +vendor/lib64/com.qti.feature2.realtimeserializer.so +vendor/lib64/com.qti.feature2.rt.so +vendor/lib64/com.qti.feature2.rtmcx.so +vendor/lib64/com.qti.feature2.serializer.so +vendor/lib64/com.qti.feature2.statsregeneration.so +vendor/lib64/com.qti.feature2.stub.so +vendor/lib64/com.qti.feature2.swmf.so +vendor/lib64/com.qualcomm.mcx.linearmapper.so +vendor/lib64/com.qualcomm.mcx.nonlinearmapper.so +vendor/lib64/com.qualcomm.mcx.policy.mfl.so +vendor/lib64/com.qualcomm.mcx.policy.xr.so +vendor/lib64/com.qualcomm.qti.mcx.usecase.extension.so +vendor/lib64/hw/camera.qcom.so +vendor/lib64/hw/com.qti.chi.offline.so +vendor/lib64/hw/com.qti.chi.override.so +vendor/lib64/libPdSdCore.so +vendor/lib64/libSWB.camera.samsung.so +vendor/lib64/libTsAwbFront_DM3.so +vendor/lib64/libTsAwb_DM3.so +vendor/lib64/libcamerapostproc.so +vendor/lib64/libcamxcommonutils.so +vendor/lib64/libcamxexternalformatutils.so +vendor/lib64/libcamximageformatutils.so +vendor/lib64/libcamxsettingsmanager.so +vendor/lib64/libcamxswispiqmodule.so +vendor/lib64/libchifeature2.so +vendor/lib64/libcom.qti.chinodeutils.so +vendor/lib64/libmulticam_image_optical_zoom.so +vendor/lib64/libmulticam_optical_zoom_control.so +vendor/lib64/libmulticam_video_optical_zoom.so +vendor/lib64/libswb_interface.so + +# Camera firmware +vendor/firmware/ois_mcu_stm32g_fw.bin + +# Display calibration data +vendor/etc/display/qdcm_calib_data_DM3_S6E3HAE_AMB681AZ01.json +vendor/firmware/DM3_S6E3HAE_AMB681AZ01.dat + +# NFC +vendor/etc/nfc/libnfc-nxp_RF.conf + +# RIL +vendor/etc/init/init.vendor.onebinary.rc + +# Sensors config +vendor/etc/sensors/config/kailua_ak991x_1.json +vendor/etc/sensors/config/kailua_ak991x_2.json +vendor/etc/sensors/config/kailua_ak991x_3.json +vendor/etc/sensors/config/kailua_ak991x_8.json +vendor/etc/sensors/config/kailua_lsm6dso_0_1.json +vendor/etc/sensors/config/kailua_lsm6dso_0_8.json +vendor/etc/sensors/config/kailua_stk3a9x_0.json +vendor/etc/sensors/config/kailua_tmd4913_2.json + +# Sensors +vendor/bin/factory.ssc +vendor/lib64/sensors.flicker.so +vendor/lib64/sensors.grip.so +vendor/lib64/sensors.ssc.so + +# Touchscreen firmware +vendor/firmware/tsp_stm/fts2ba61y_dm3q.bin + +# Vendor firmware +vendor/firmware/00_generic_xtalk_shape.bin +vendor/firmware/hmtnv20.b21 +vendor/firmware/vl53l8.bin +vendor/firmware/wez02_dm3_c0.bin +vendor/firmware/wez02_dm3_c1.bin +vendor/firmware/wez02_dm3_c2.bin +vendor/firmware/wez02_dm3_c3.bin + +# Wifi firmware +vendor/firmware/Data.msc +vendor/firmware/kiwi/amss20.bin +vendor/firmware/kiwi/bdwlan.elf +vendor/firmware/kiwi/bdwlan.elf1 +vendor/firmware/kiwi/bdwlan.elf10 +vendor/firmware/kiwi/bdwlan.elf2 +vendor/firmware/kiwi/phy_ucode20.elf +vendor/firmware/kiwi/qdss_trace_config_v2.cfg +vendor/firmware/kiwi/regdb.bin + +# WiFi +vendor/etc/wifi/kiwi_v2/WCNSS_qcom_cfg.ini diff --git a/setup-makefiles.sh b/setup-makefiles.sh new file mode 100755 index 0000000..ab9d37f --- /dev/null +++ b/setup-makefiles.sh @@ -0,0 +1,16 @@ +#!/bin/bash +# +# Copyright (C) 2016 The CyanogenMod Project +# Copyright (C) 2017-2020 The LineageOS Project +# +# SPDX-License-Identifier: Apache-2.0 +# + +set -e + +export DEVICE=dm3q +export DEVICE_COMMON=sm8550-common +export VENDOR=samsung +export VENDOR_COMMON=${VENDOR} + +"./../../${VENDOR_COMMON}/${DEVICE_COMMON}/setup-makefiles.sh" "$@" diff --git a/sort-blobs-list.py b/sort-blobs-list.py new file mode 100755 index 0000000..a4ac6cd --- /dev/null +++ b/sort-blobs-list.py @@ -0,0 +1,46 @@ +#!/usr/bin/env python3 +# +# Copyright (C) 2021-2022 The LineageOS Project +# +# SPDX-License-Identifier: Apache-2.0 +# + +import re, sys +from functools import cmp_to_key +from locale import LC_ALL, setlocale, strcoll +from pathlib import Path + + +def strcoll_extract_utils(string1: str, string2: str) -> int: + # Skip logic if one of the string if empty + if not string1 or not string2: + return strcoll(string1, string2) + + # Remove '-' from strings if there, + # it is used to indicate a build target + string1 = re.sub("^-", "", string1) + string2 = re.sub("^-", "", string2) + + # Compare normally + return strcoll(string1, string2) + + +if __name__ == "__main__": + setlocale(LC_ALL, "C") + + for file in sys.argv[1:] or ["proprietary-files.txt"]: + if not Path(file).is_file(): + print(f"File {file} not found") + continue + + with open(file, "r") as f: + sections = f.read().split("\n\n") + + ordered_sections = [] + for section in sections: + section_list = [line.strip() for line in section.splitlines()] + section_list.sort(key=cmp_to_key(strcoll_extract_utils)) + ordered_sections.append("\n".join(section_list)) + + with open(file, "w") as f: + f.write("\n\n".join(ordered_sections).strip() + "\n")