Compare commits

..

21 commits

Author SHA1 Message Date
Anand S
8875e1d8a0
bangkk: Don't throttle early
Change-Id: Ie94e3c36697ea3297e0b92d22c0ec3183a372867
2025-05-12 00:14:26 +05:30
Anand S
7b33453529
bangkk: Drop unused 32-bit camera binaries
Change-Id: Ie9778998a8e98ce4c0751e1f77ddce1a74c5c012
2025-04-21 21:35:50 +05:30
Marc Bourgoin
95fdcd5cb6
bangkk: Swap thermal config for bangkk-game-perf
The default thermal-engine-bangkk.conf is way too agressive with throttling that the performance
is way too low for any users trying to play 3D games, so let's swap to the bangkk-game-perf config as when we compared the configs it
allows for a better performance to thermal balance.

Change-Id: Id5c991a198ef6be61009a9785b5e8604aa1fdc91
2025-04-18 15:39:36 +05:30
Anand S
4710579c81
fogos: Move thermal config to device tree
Change-Id: I00bfb0b2bf9e7109339a8330c5f46a3236980843
2025-04-18 15:37:52 +05:30
Michael Bestas
37afffeab8
bangkk: Shim sensors.moto with libbase_shim
See: 46fc805282

Change-Id: I5127020e18114a13515d9dc382c95d689634243d
2025-04-08 02:16:54 +05:30
Anand S
dea2f92ad8
bangkk: Fix a few ELF checks
Change-Id: If3e587da2f28603aa78363fb880a6384227e3a86
2025-01-26 22:36:19 +05:30
Anand S
f1debf2d18
bangkk: Drop duplicate blobs
* Already in sm6375-common.

Change-Id: I0a1fa0e5be16d0033c9bf23501fd0d98a15d3603
2025-01-26 14:43:57 +05:30
Anand S
60082b03dd
bangkk: Drop unused camera blobs
Change-Id: I7520d6e9ddc295c33de9ad5e4c2732faa2d790a6
2025-01-26 14:33:29 +05:30
Anand S
e9dc780c6c
bangkk: Update from MMI-U1TCS34M.22-64-19-4-2
* From bangkk_g-user 14 U1TCS34M.22-64-19-4-2 9c98b release-keys.

Change-Id: I937d9869fc835a56a5ede4ed27a178a05acac112
2025-01-20 20:44:04 +05:30
Anand S
7dc1ef5b7f
bangkk: Disable elf checks for libs with undefined symbols
Change-Id: Iad49f41de91c58dccda6ee158a68bb4130e8755f
2025-01-20 20:36:30 +05:30
Anand S
d9e14d39fb
bangkk: Remove duplicate blobs
Change-Id: I2a4f0e2e99a14dc349c74da772a561c66e8be2be
2025-01-20 20:35:31 +05:30
Michael Bestas
f866a7b705
bangkk: Remove unused Android.mk
Change-Id: I98105c127066f7de7012a1895d19c96356105921
2025-01-20 20:26:49 +05:30
Nolen Johnson
cddd6fd5a1
bangkk: Nuke update-sha1sums.py
* We have py extract to do this now.

Change-Id: I031938ddb78e8f343864da521dc577cfcb67ee45
2025-01-20 20:25:07 +05:30
Michael Bestas
589a1d35fa
bangkk: ruff format --config
Change-Id: I134c16aaa825feab7aee7057f524818f58603681
2025-01-20 20:24:32 +05:30
LuK1337
2962eac378
bangkk: Use common lib_fixups
Change-Id: I862e547f3375184729eb1a909bb7d6f676d45dfe
2025-01-20 20:24:18 +05:30
LuK1337
39c67d81e3
bangkk: Switch to py extract utils
Change-Id: I5618bf10c107df579a540e2393b222128961e670
2025-01-20 20:21:45 +05:30
Michael Bestas
2b6da076a5
bangkk: Libraries are now automatically added to PRODUCT_PACKAGES
Change-Id: Ie92fe02b7e6279195bf28944942c815db773b798
2025-01-20 20:19:14 +05:30
Michael Bestas
3ba1bc6213
bangkk: Disable OMX service
Change-Id: I5381e098af64271f9d71c484262e1710e8fcacea
2025-01-17 15:25:54 +05:30
Beverly
a19823eadc
bangkk: overlay: Update pixel pitch
Bug: 319894241
Flag: ACONFIG com.android.systemui.device_entry_udfps_refactor DEVELOPMENT
Test: manual

Change-Id: Iaa9576cb95ebe73043b7030b2b176f67bc90e3a1
2024-11-13 00:40:00 +05:30
pjgowtham
3dbd325f92
bangkk: fingerprint: Set dim layer zOrder
Requires: I367b2c395aeb8cb7cb9e3cc38eca98477befe007

Change-Id: I881db78186fa9c7b350e79ac4ef90f53ee4cfbcf
2024-11-12 15:48:56 +05:30
LuK1337
6bf93b2d32
bangkk: Adjust override prop key names
Change-Id: I436bbf425023dbe54cf3e2c35f50a5575511bc38
2024-11-11 13:05:04 +05:30
14 changed files with 295 additions and 229 deletions

View file

@ -1,21 +0,0 @@
#
# Copyright (C) 2022 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 := $(call my-dir)
ifeq ($(TARGET_DEVICE),bangkk)
include $(call all-makefiles-under,$(LOCAL_PATH))
endif

View file

@ -49,7 +49,7 @@ TARGET_VENDOR_PROP += $(DEVICE_PATH)/vendor.prop
TARGET_RECOVERY_UI_MARGIN_HEIGHT := 90 TARGET_RECOVERY_UI_MARGIN_HEIGHT := 90
# Security patch level # Security patch level
VENDOR_SECURITY_PATCH := 2024-08-01 VENDOR_SECURITY_PATCH := 2024-12-01
# inherit from the proprietary version # inherit from the proprietary version
include vendor/motorola/bangkk/BoardConfigVendor.mk include vendor/motorola/bangkk/BoardConfigVendor.mk

View file

@ -0,0 +1,190 @@
[FRONT_TEMP]
algo_type virtual
trip_sensor xo_therm
thresholds -18000
thresholds_clr -20000
sensors battery quiet_therm soc_usr
weights 24 67 9
offsets 1000 700 0
sampling 1000
math 0
sys_temp
[REPORT-FRONT-TEMP]
algo_type monitor
sampling 300000
sensor FRONT_TEMP
thresholds 45000
thresholds_clr 43000
actions report
action_info 1
[BACK_TEMP]
algo_type virtual
trip_sensor xo_therm
thresholds -18000
thresholds_clr -20000
sensors battery msm_therm quiet_therm soc_usr
weights 63 8 39 -10
offsets -1200 -1200 -1200 0
sampling 1000
math 0
sys_temp
[REPORT-BACK-TEMP]
algo_type monitor
sampling 300000
sensor BACK_TEMP
thresholds 45000
thresholds_clr 43000
actions report
action_info 1
[DETECT-STANDBY]
algo_type virtual
trip_sensor quiet_therm
thresholds -18000
thersholds_clr -20000
sensors cpu_utilization lcd_brightness_value
weights 15 50
sampling 1000
less_than
math 7
[OVERRIDE-CHG]
algo_type monitor
sampling 1000
sensor DETECT-STANDBY
thresholds 1
thresholds_clr 0
actions internal_override
action_info 1
[FREEZE-CHG]
algo_type monitor
sampling 1000
descending
sensor DETECT-STANDBY
thresholds 0
thresholds_clr 1
actions freeze_rule
action_info 1
[Virt-MSM]
algo_type virtual
sensors msm_therm
weights 100
trip_sensor chg_therm
thresholds 18000
thresholds_clr 16000
offsets 0
sampling 1000
math 0
[Virt-CHG]
algo_type virtual
sensors chg_therm
weights 100
trip_sensor msm_therm
thresholds 18000
thresholds_clr 16000
offsets 0
sampling 1000
math 0
[MON-PDPOWER2]
algo_type monitor
sampling 1000
sensor battery
thresholds 44500 44600
thresholds_clr 41000 42600
actions mmi_chrg_manager battery
action_info 1 2
override_c 15000
[MON-PDPOWER3]
algo_type monitor
sampling 1000
sensor quiet_therm
thresholds 35000 36000 38200 38700 40000 42000 43000 50000
thresholds_clr 34000 35000 36000 38200 38700 40000 42000 49000
actions mmi_chrg_manager mmi_chrg_manager mmi_chrg_manager mmi_chrg_manager mmi_chrg_manager mmi_chrg_manager mmi_chrg_manager mmi_chrg_manager
action_info 10 9 7 6 5 3 2 2
freezing
[MON-QCPOWER4]
algo_type monitor
sampling 1000
sensor quiet_therm
thresholds 39000 41000 44000 46000 48000 50000
thresholds_clr 37000 39000 42000 44000 46000 48000
actions battery battery battery battery battery battery
action_info 7 6 5 4 3 1
freezing
[MON-PDPOWER5]
algo_type monitor
sampling 1000
sensor BACK_TEMP
thresholds 35000 36000 37000 39000
thresholds_clr 33000 35000 36000 37000
actions mmi_chrg_manager mmi_chrg_manager mmi_chrg_manager mmi_chrg_manager
action_info 9 3 2 1
override_c 15000
[MON-PDPOWER6]
algo_type monitor
sampling 1000
sensor Virt-MSM
thresholds 43000 45000 51000
thresholds_clr 41000 43000 49000
actions battery battery battery
action_info 3 2 1
override_c 15000
[MON-MSM-CPU0]
algo_type monitor
sampling 1000
sensor BACK_TEMP
thresholds 42000 44000 46000
thresholds_clr 40000 42000 44000
actions cpu0 cpu0 cpu0
action_info 1651200 1516800 1324800
override_b 4000
[MON-MSM-CPU6]
algo_type monitor
sampling 1000
sensor BACK_TEMP
thresholds 42000 44000 46000 47000
thresholds_clr 40000 42000 44000 46000
actions cpu6 cpu6 cpu6 cpu6
action_info 1900800 1804800 1401600 1228800
override_b 4000
[MONITOR-CAMERA-MSM]
algo_type monitor
sampling 1000
sensor quiet_therm
thresholds 55000 60000
thresholds_clr 53000 55000
actions camera camera
action_info 1 2
[MON-MODEM]
algo_type monitor
sampling 1000
sensor Virt-MSM
thresholds 80000 85000
thresholds_clr 78000 80000
actions modem_skin modem_skin
action_info 1 2
[MODEM-PA-FR]
algo_type monitor
sampling 5000
sensor xo_therm
thresholds 65000 70000
thresholds_clr 60000 65000
actions modem_pa_fr1 modem_pa_fr1
action_info 1 2

View file

@ -115,5 +115,9 @@ PRODUCT_COPY_FILES += \
# Soong namespaces # Soong namespaces
PRODUCT_SOONG_NAMESPACES += $(LOCAL_PATH) PRODUCT_SOONG_NAMESPACES += $(LOCAL_PATH)
# Thermal
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/configs/thermal-engine-bangkk-game-perf.conf:$(TARGET_COPY_OUT_VENDOR)/etc/thermal-engine-bangkk.conf
# Inherit from vendor blobs # Inherit from vendor blobs
$(call inherit-product, vendor/motorola/bangkk/bangkk-vendor.mk) $(call inherit-product, vendor/motorola/bangkk/bangkk-vendor.mk)

64
extract-files.py Executable file
View file

@ -0,0 +1,64 @@
#!/usr/bin/env -S PYTHONPATH=../../../tools/extract-utils python3
#
# SPDX-FileCopyrightText: 2024 The LineageOS Project
# SPDX-License-Identifier: Apache-2.0
#
from extract_utils.fixups_blob import (
blob_fixup,
blob_fixups_user_type,
)
from extract_utils.fixups_lib import (
lib_fixup_remove,
lib_fixups,
lib_fixups_user_type,
)
from extract_utils.main import (
ExtractUtils,
ExtractUtilsModule,
)
namespace_imports = [
'vendor/motorola/sm6375-common',
'device/motorola/sm6375-common',
'hardware/qcom-caf/common/libqti-perfd-client',
'hardware/qcom-caf/sm8350',
'hardware/qcom-caf/wlan',
'hardware/motorola',
'vendor/qcom/opensource/commonsys/display',
'vendor/qcom/opensource/commonsys-intf/display',
'vendor/qcom/opensource/dataservices',
'vendor/qcom/opensource/display',
]
lib_fixups: lib_fixups_user_type = {
**lib_fixups,
(
'vendor.egistec.hardware.fingerprint@4.0',
'libsensorslog',
'libsnsapi',
'libc2d_helper',
): lib_fixup_remove,
}
blob_fixups: blob_fixups_user_type = {
('vendor/lib/libmot_chi_desktop_helper.so', 'vendor/lib64/libmot_chi_desktop_helper.so'): blob_fixup()
.add_needed('libgui_shim_vendor.so'),
'vendor/lib64/sensors.moto.so': blob_fixup()
.add_needed('libbase_shim.so'),
} # fmt: skip
module = ExtractUtilsModule(
'bangkk',
'motorola',
namespace_imports=namespace_imports,
blob_fixups=blob_fixups,
lib_fixups=lib_fixups,
add_firmware_proprietary_file=False,
)
if __name__ == '__main__':
utils = ExtractUtils.device_with_common(
module, 'sm6375-common', module.vendor
)
utils.run()

View file

@ -1,38 +0,0 @@
#!/bin/bash
#
# SPDX-FileCopyrightText: 2016 The CyanogenMod Project
# SPDX-FileCopyrightText: 2017-2024 The LineageOS Project
#
# SPDX-License-Identifier: Apache-2.0
#
function blob_fixup() {
case "${1}" in
vendor/lib/libmot_chi_desktop_helper.so | vendor/lib64/libmot_chi_desktop_helper.so)
[ "$2" = "" ] && return 0
grep -q "libgui_shim_vendor.so" "${2}" || "${PATCHELF}" --add-needed "libgui_shim_vendor.so" "${2}"
;;
*)
return 1
;;
esac
return 0
}
function blob_fixup_dry() {
blob_fixup "$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
set -e
export DEVICE=bangkk
export DEVICE_COMMON=sm6375-common
export VENDOR=motorola
export VENDOR_COMMON=${VENDOR}
"./../../${VENDOR_COMMON}/${DEVICE_COMMON}/extract-files.sh" "$@"

View file

@ -7,6 +7,10 @@
#include <compositionengine/UdfpsExtension.h> #include <compositionengine/UdfpsExtension.h>
#include <display/drm/sde_drm.h> #include <display/drm/sde_drm.h>
uint32_t getUdfpsDimZOrder(uint32_t z) {
return z;
}
uint32_t getUdfpsZOrder(uint32_t z, bool touched) { uint32_t getUdfpsZOrder(uint32_t z, bool touched) {
if (touched) { if (touched) {
z |= FOD_PRESSED_LAYER_ZORDER; z |= FOD_PRESSED_LAYER_ZORDER;

View file

@ -6,6 +6,7 @@
# Inherit from those products. Most specific first. # 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/core_64_bit.mk)
TARGET_SUPPORTS_OMX_SERVICE := false
$(call inherit-product, $(SRC_TARGET_DIR)/product/full_base_telephony.mk) $(call inherit-product, $(SRC_TARGET_DIR)/product/full_base_telephony.mk)
# Inherit from bangkk device # Inherit from bangkk device
@ -23,7 +24,6 @@ PRODUCT_MODEL := moto g84 5G
PRODUCT_GMS_CLIENTID_BASE := android-motorola PRODUCT_GMS_CLIENTID_BASE := android-motorola
PRODUCT_BUILD_PROP_OVERRIDES += \ PRODUCT_BUILD_PROP_OVERRIDES += \
TARGET_PRODUCT=bangkk_g \ BuildDesc="bangkk_g-user 14 U1TCS34M.22-64-19-4-2 9c98b release-keys" \
PRIVATE_BUILD_DESC="bangkk_g-user 14 U1TCS34M.22-64-18-3 aa936 release-keys" BuildFingerprint=motorola/bangkk_g/bangkk:11/U1TCS34.22-64-19-4-2/305d4a:user/release-keys \
DeviceProduct=bangkk_g
BUILD_FINGERPRINT := motorola/bangkk_g/bangkk:11/U1TCS34.22-64-18-3/37e073:user/release-keys

View file

@ -1,4 +1,4 @@
# All unpinned blobs are extracted from bangkk_g-user 14 U1TCS34M.22-64-18-3 aa936 release-keys # All unpinned blobs are extracted from bangkk_g-user 14 U1TCS34M.22-64-19-4-2 9c98b release-keys
# ACDB-data # ACDB-data
vendor/etc/acdbdata/Bluetooth_cal.acdb vendor/etc/acdbdata/Bluetooth_cal.acdb
@ -31,19 +31,14 @@ system_ext/lib/vendor.qti.hardware.seccam@1.0.so
system_ext/lib64/libarcsoft_calibverify_TriCamera.so system_ext/lib64/libarcsoft_calibverify_TriCamera.so
system_ext/lib64/libarcsoft_tricam_calibration.so system_ext/lib64/libarcsoft_tricam_calibration.so
system_ext/lib64/libarcsoft_tricam_verification.so system_ext/lib64/libarcsoft_tricam_verification.so
system_ext/lib64/motorola.hardware.camera.imgtuner@2.0.so
system_ext/lib64/vendor.qti.hardware.seccam@1.0.so system_ext/lib64/vendor.qti.hardware.seccam@1.0.so
vendor/etc/camera/mot_engine_config.bin vendor/etc/camera/mot_engine_config.bin
vendor/lib/camera/components/com.mot.node.hdr.so vendor/lib/camera/components/com.mot.node.hdr.so
vendor/lib/camera/components/com.mot.node.scene_detect.so vendor/lib/camera/components/com.mot.node.scene_detect.so
vendor/lib/camera/fdconfigpreview.bin
vendor/lib/camera/fdconfigpreviewlite.bin
vendor/lib/camera/fdconfigvideo.bin
vendor/lib/camera/fdconfigvideolite.bin
vendor/lib/camera/com.qti.flash.aw36514.so vendor/lib/camera/com.qti.flash.aw36514.so
vendor/lib/camera/com.qti.flash.ocp81373.so vendor/lib/camera/com.qti.flash.ocp81373.so
vendor/lib/com.qti.chiusecaseselector.so vendor/lib/com.qti.chiusecaseselector.so
vendor/lib/hw/camera.qcom.so vendor/lib/hw/camera.qcom.so;DISABLE_CHECKELF
vendor/lib/hw/com.qti.chi.override.so vendor/lib/hw/com.qti.chi.override.so
vendor/lib/com.qti.settings.mannar.so vendor/lib/com.qti.settings.mannar.so
vendor/lib/com.qti.stats.common.so vendor/lib/com.qti.stats.common.so
@ -59,8 +54,7 @@ vendor/lib/libarcsoft_high_dynamic_range.so
vendor/lib/libarcsoft_low_light_shot.so vendor/lib/libarcsoft_low_light_shot.so
vendor/lib/libbitmlengine.so vendor/lib/libbitmlengine.so
vendor/lib/libbitmlenginev2.so vendor/lib/libbitmlenginev2.so
vendor/lib/libBSTSWAD.so vendor/lib/libBSTSWAD.so;DISABLE_CHECKELF
vendor/lib/libc2d_helper.so
vendor/lib/libcamera_nn_stub.so vendor/lib/libcamera_nn_stub.so
vendor/lib/libcamerapostproc.so vendor/lib/libcamerapostproc.so
vendor/lib/libcamxexternalformatutils.so vendor/lib/libcamxexternalformatutils.so
@ -74,9 +68,6 @@ vendor/lib/libcamxstatscore.so
vendor/lib/libcamxswispiqmodule.so vendor/lib/libcamxswispiqmodule.so
vendor/lib/libcamxswprocessalgo.so vendor/lib/libcamxswprocessalgo.so
vendor/lib/libcamxtintlessalgo.so vendor/lib/libcamxtintlessalgo.so
vendor/lib/libcapiv2svacnn.so
vendor/lib/libcapiv2svarnn.so
vendor/lib/libcapiv2vop.so
vendor/lib/libchilog.so vendor/lib/libchilog.so
vendor/lib/libcom.qti.chinodeutils.so vendor/lib/libcom.qti.chinodeutils.so
vendor/lib/libipebpsstriping.so vendor/lib/libipebpsstriping.so
@ -85,8 +76,8 @@ vendor/lib/libjpege.so
vendor/lib/liblowlight_ai_portrait.arcsoft.so vendor/lib/liblowlight_ai_portrait.arcsoft.so
vendor/lib/libmmcamera_bestats.so vendor/lib/libmmcamera_bestats.so
vendor/lib/libmmcamera_cac3.so vendor/lib/libmmcamera_cac3.so
vendor/lib/libmmcamera_faceproc.so vendor/lib/libmmcamera_faceproc.so;DISABLE_CHECKELF
vendor/lib/libmmcamera_faceproc2.so vendor/lib/libmmcamera_faceproc2.so;DISABLE_CHECKELF
vendor/lib/libmmcamera_lscv35.so vendor/lib/libmmcamera_lscv35.so
vendor/lib/libmmcamera_mfnr.so vendor/lib/libmmcamera_mfnr.so
vendor/lib/libmmcamera_mfnr_t4.so vendor/lib/libmmcamera_mfnr_t4.so
@ -100,15 +91,8 @@ vendor/lib/libofflinelog.so
vendor/lib/libopencv.so vendor/lib/libopencv.so
vendor/lib/libopestriping.so vendor/lib/libopestriping.so
vendor/lib/libremosaic_wrapper.so vendor/lib/libremosaic_wrapper.so
vendor/lib/libsensorslog.so
vendor/lib/libsns_device_mode_stub.so
vendor/lib/libsns_fastRPC_util.so
vendor/lib/libsns_low_lat_stream_stub.so
vendor/lib/libsnsapi.so
vendor/lib/libsnsdiaglog.so
vendor/lib/libswregistrationalgo.so vendor/lib/libswregistrationalgo.so
vendor/lib/libundistort_impl.so vendor/lib/libundistort_impl.so
vendor/lib/libvideooptfeature.so
vendor/lib/libvideoutils.so vendor/lib/libvideoutils.so
vendor/lib/libvidhance.so vendor/lib/libvidhance.so
vendor/lib/vendor.qti.hardware.camera.postproc@1.0-service-impl.so vendor/lib/vendor.qti.hardware.camera.postproc@1.0-service-impl.so
@ -127,9 +111,9 @@ vendor/lib64/com.qualcomm.mcx.distortionmapper.so
vendor/lib64/com.qualcomm.mcx.linearmapper.so vendor/lib64/com.qualcomm.mcx.linearmapper.so
vendor/lib64/com.qualcomm.mcx.policy.mfl.so vendor/lib64/com.qualcomm.mcx.policy.mfl.so
vendor/lib64/com.qualcomm.qti.mcx.usecase.extension.so vendor/lib64/com.qualcomm.qti.mcx.usecase.extension.so
vendor/lib64/hw/camera.qcom.so vendor/lib64/hw/camera.qcom.so;DISABLE_CHECKELF
vendor/lib64/hw/com.qti.chi.override.so vendor/lib64/hw/com.qti.chi.override.so
vendor/lib64/hw/motorola.hardware.camera.imgtuner@2.0-impl.so vendor/lib64/hw/motorola.hardware.camera.imgtuner@2.0-impl.so;DISABLE_CHECKELF
vendor/lib64/libBSTSWAD.so vendor/lib64/libBSTSWAD.so
vendor/lib64/libarcsoft_chi_utils.so vendor/lib64/libarcsoft_chi_utils.so
vendor/lib64/libarcsoft_hdr_detection.so vendor/lib64/libarcsoft_hdr_detection.so
@ -141,25 +125,18 @@ vendor/lib64/libarcsoft_super_night_raw.so
vendor/lib64/libarcsoft_super_night_se_raw.so vendor/lib64/libarcsoft_super_night_se_raw.so
vendor/lib64/libbitmlengine.so vendor/lib64/libbitmlengine.so
vendor/lib64/libbitmlenginev2.so vendor/lib64/libbitmlenginev2.so
vendor/lib64/libc2d_helper.so
vendor/lib64/libc2d_helper.so
vendor/lib64/libcamera_nn_stub.so vendor/lib64/libcamera_nn_stub.so
vendor/lib64/libcamerapostproc.so vendor/lib64/libcamerapostproc.so
vendor/lib64/libcamxexternalformatutils.so vendor/lib64/libcamxexternalformatutils.so
vendor/lib64/libcamxfacialfeatures.so vendor/lib64/libcamxfacialfeatures.so
vendor/lib64/libcamxfdalgo.so vendor/lib64/libcamxfdalgo.so
vendor/lib64/libcamxfdengine.so vendor/lib64/libcamxfdengine.so
vendor/lib64/libcamxifestriping.so
vendor/lib64/libcamxifestriping.so
vendor/lib64/libcamximageformatutils.so vendor/lib64/libcamximageformatutils.so
vendor/lib64/libcamxqsatalgo.so vendor/lib64/libcamxqsatalgo.so
vendor/lib64/libcamxstatscore.so vendor/lib64/libcamxstatscore.so
vendor/lib64/libcamxswispiqmodule.so vendor/lib64/libcamxswispiqmodule.so
vendor/lib64/libcamxswprocessalgo.so vendor/lib64/libcamxswprocessalgo.so
vendor/lib64/libcamxtintlessalgo.so vendor/lib64/libcamxtintlessalgo.so
vendor/lib64/libcapiv2svacnn.so
vendor/lib64/libcapiv2svarnn.so
vendor/lib64/libcapiv2vop.so
vendor/lib64/libchilog.so vendor/lib64/libchilog.so
vendor/lib64/libcom.qti.chinodeutils.so vendor/lib64/libcom.qti.chinodeutils.so
vendor/lib64/libjpege.so vendor/lib64/libjpege.so
@ -169,8 +146,8 @@ vendor/lib64/libmot_chi_desktop_helper.so
vendor/lib64/libmot_engine_settings.so vendor/lib64/libmot_engine_settings.so
vendor/lib64/libmmcamera_bestats.so vendor/lib64/libmmcamera_bestats.so
vendor/lib64/libmmcamera_cac3.so vendor/lib64/libmmcamera_cac3.so
vendor/lib64/libmmcamera_faceproc.so vendor/lib64/libmmcamera_faceproc.so;DISABLE_CHECKELF
vendor/lib64/libmmcamera_faceproc2.so vendor/lib64/libmmcamera_faceproc2.so;DISABLE_CHECKELF
vendor/lib64/libmmcamera_lscv35.so vendor/lib64/libmmcamera_lscv35.so
vendor/lib64/libmmcamera_mfnr.so vendor/lib64/libmmcamera_mfnr.so
vendor/lib64/libmmcamera_mfnr_t4.so vendor/lib64/libmmcamera_mfnr_t4.so
@ -181,36 +158,30 @@ vendor/lib64/libofflinelog.so
vendor/lib64/libopencv.so vendor/lib64/libopencv.so
vendor/lib64/libopestriping.so vendor/lib64/libopestriping.so
vendor/lib64/libremosaic_wrapper.so vendor/lib64/libremosaic_wrapper.so
vendor/lib64/libsns_device_mode_stub.so
vendor/lib64/libsns_fastRPC_util.so
vendor/lib64/libsns_low_lat_stream_stub.so
vendor/lib64/libsnsdiaglog.so
vendor/lib64/libswregistrationalgo.so vendor/lib64/libswregistrationalgo.so
vendor/lib64/libtfestriping.so vendor/lib64/libtfestriping.so
vendor/lib64/libundistort_impl.so vendor/lib64/libundistort_impl.so
vendor/lib64/libvideooptfeature.so
vendor/lib64/libvidhance.so vendor/lib64/libvidhance.so
vendor/lib64/vendor.qti.hardware.camera.postproc@1.0-service-impl.so vendor/lib64/vendor.qti.hardware.camera.postproc@1.0-service-impl.so
# Camera - Motorola # Camera - Motorola
system_ext/lib/motorola.hardware.camera.imgtuner@2.0.so
vendor/bin/hw/motorola.hardware.camera.desktop@2.0-service vendor/bin/hw/motorola.hardware.camera.desktop@2.0-service
vendor/bin/hw/motorola.hardware.camera.imgtuner@2.0-service vendor/bin/hw/motorola.hardware.camera.imgtuner@2.0-service
vendor/etc/init/motorola.hardware.camera.desktop@2.0-service.rc vendor/etc/init/motorola.hardware.camera.desktop@2.0-service.rc
vendor/etc/init/motorola.hardware.camera.imgtuner@2.0-service.rc vendor/etc/init/motorola.hardware.camera.imgtuner@2.0-service.rc
vendor/lib/hw/motorola.hardware.camera.imgtuner@2.0-impl.so vendor/lib/hw/motorola.hardware.camera.imgtuner@2.0-impl.so;DISABLE_CHECKELF
vendor/lib/motorola.hardware.camera.desktop@1.0.so vendor/lib/motorola.hardware.camera.desktop@1.0.so
vendor/lib/motorola.hardware.camera.desktop@2.0.so vendor/lib/motorola.hardware.camera.desktop@2.0.so
vendor/lib/motorola.hardware.camera.imgtuner@1.0.so vendor/lib/motorola.hardware.camera.imgtuner@1.0.so;DISABLE_CHECKELF
vendor/lib/motorola.hardware.camera.imgtuner@2.0.so vendor/lib/motorola.hardware.camera.imgtuner@2.0.so;DISABLE_CHECKELF
vendor/lib64/motorola.hardware.camera.desktop@1.0.so vendor/lib64/motorola.hardware.camera.desktop@1.0.so
vendor/lib64/motorola.hardware.camera.desktop@2.0.so vendor/lib64/motorola.hardware.camera.desktop@2.0.so
vendor/lib64/motorola.hardware.camera.imgtuner@1.0.so vendor/lib64/motorola.hardware.camera.imgtuner@1.0.so;DISABLE_CHECKELF
vendor/lib64/motorola.hardware.camera.imgtuner@2.0.so vendor/lib64/motorola.hardware.camera.imgtuner@2.0.so;DISABLE_CHECKELF
# Camera - Components # Camera - Components
vendor/lib/camera/components/com.arcsoft.node.mfnr.so vendor/lib/camera/components/com.arcsoft.node.mfnr.so
vendor/lib/camera/components/com.mot.node.c2d.so vendor/lib/camera/components/com.mot.node.c2d.so;DISABLE_CHECKELF
vendor/lib/camera/components/com.mot.node.dc_capture.so vendor/lib/camera/components/com.mot.node.dc_capture.so
vendor/lib/camera/components/com.mot.node.dc_preview.so vendor/lib/camera/components/com.mot.node.dc_preview.so
vendor/lib/camera/components/com.qti.camx.chiiqutils.so vendor/lib/camera/components/com.qti.camx.chiiqutils.so
@ -260,8 +231,8 @@ vendor/lib/camera/components/com.qtistatic.stats.aec.so
vendor/lib/camera/components/com.qtistatic.stats.af.so vendor/lib/camera/components/com.qtistatic.stats.af.so
vendor/lib/camera/components/com.qtistatic.stats.awb.so vendor/lib/camera/components/com.qtistatic.stats.awb.so
vendor/lib/camera/components/com.qtistatic.stats.pdlib.so vendor/lib/camera/components/com.qtistatic.stats.pdlib.so
vendor/lib/camera/components/com.vidhance.node.ica.so vendor/lib/camera/components/com.vidhance.node.ica.so;DISABLE_CHECKELF
vendor/lib/camera/components/com.vidhance.node.processing.so vendor/lib/camera/components/com.vidhance.node.processing.so;DISABLE_CHECKELF
vendor/lib64/camera/components/com.arcsoft.node.mfnr.so vendor/lib64/camera/components/com.arcsoft.node.mfnr.so
vendor/lib64/camera/components/com.arcsoft.node.supernightraw.so vendor/lib64/camera/components/com.arcsoft.node.supernightraw.so
vendor/lib64/camera/components/com.mot.node.c2d.so vendor/lib64/camera/components/com.mot.node.c2d.so
@ -314,8 +285,8 @@ vendor/lib64/camera/components/com.qtistatic.stats.aec.so
vendor/lib64/camera/components/com.qtistatic.stats.af.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.awb.so
vendor/lib64/camera/components/com.qtistatic.stats.pdlib.so vendor/lib64/camera/components/com.qtistatic.stats.pdlib.so
vendor/lib64/camera/components/com.vidhance.node.ica.so vendor/lib64/camera/components/com.vidhance.node.ica.so;DISABLE_CHECKELF
vendor/lib64/camera/components/com.vidhance.node.processing.so vendor/lib64/camera/components/com.vidhance.node.processing.so;DISABLE_CHECKELF
vendor/lib64/camera/components/libdepthmapwrapper_secure.so vendor/lib64/camera/components/libdepthmapwrapper_secure.so
# Camera - feature2 # Camera - feature2
@ -379,10 +350,6 @@ vendor/lib64/camera/com.mot.eeprom.mot_gt24p64b_ov16a1q_eeprom.so
vendor/lib/camera/com.qti.sensor.mot_ov16a1q.so vendor/lib/camera/com.qti.sensor.mot_ov16a1q.so
vendor/lib/camera/com.qti.sensor.mot_s5k4h7.so vendor/lib/camera/com.qti.sensor.mot_s5k4h7.so
vendor/lib/camera/com.qti.sensor.mot_s5kgn9.so vendor/lib/camera/com.qti.sensor.mot_s5kgn9.so
vendor/lib/camera/com.qti.sensormodule.mot_bangkk_ov16a1q_ofilm.bin
vendor/lib/camera/com.qti.sensormodule.mot_bangkk_s5k4h7_qtech.bin
vendor/lib/camera/com.qti.sensormodule.mot_bangkk_s5kgn9_ak7377.bin
vendor/lib/camera/com.qti.sensormodule.mot_bangkk_s5kgn9_ofilm.bin
vendor/lib64/camera/com.qti.sensor.mot_ov16a1q.so vendor/lib64/camera/com.qti.sensor.mot_ov16a1q.so
vendor/lib64/camera/com.qti.sensor.mot_s5k4h7.so vendor/lib64/camera/com.qti.sensor.mot_s5k4h7.so
vendor/lib64/camera/com.qti.sensor.mot_s5kgn9.so vendor/lib64/camera/com.qti.sensor.mot_s5kgn9.so
@ -392,15 +359,6 @@ vendor/lib64/camera/com.qti.sensormodule.mot_bangkk_s5kgn9_ak7377.bin
vendor/lib64/camera/com.qti.sensormodule.mot_bangkk_s5kgn9_ofilm.bin vendor/lib64/camera/com.qti.sensormodule.mot_bangkk_s5kgn9_ofilm.bin
# Camera - tuned # Camera - tuned
vendor/lib/camera/com.qti.tuned.default.bin
vendor/lib/camera/com.qti.tuned.mot_bangkk_ov16a1q.bin
vendor/lib/camera/com.qti.tuned.mot_bangkk_ov16a1q_india.bin
vendor/lib/camera/com.qti.tuned.mot_bangkk_s5k4h7af.bin
vendor/lib/camera/com.qti.tuned.mot_bangkk_s5k4h7af_india.bin
vendor/lib/camera/com.qti.tuned.mot_bangkk_s5kgn9.bin
vendor/lib/camera/com.qti.tuned.mot_bangkk_s5kgn9_ak7377.bin
vendor/lib/camera/com.qti.tuned.mot_bangkk_s5kgn9_ak7377_india.bin
vendor/lib/camera/com.qti.tuned.mot_bangkk_s5kgn9_india.bin
vendor/lib64/camera/com.qti.tuned.default.bin vendor/lib64/camera/com.qti.tuned.default.bin
vendor/lib64/camera/com.qti.tuned.mot_bangkk_ov16a1q.bin vendor/lib64/camera/com.qti.tuned.mot_bangkk_ov16a1q.bin
vendor/lib64/camera/com.qti.tuned.mot_bangkk_ov16a1q_india.bin vendor/lib64/camera/com.qti.tuned.mot_bangkk_ov16a1q_india.bin
@ -422,7 +380,7 @@ product/etc/permissions/privapp-permissions-com.google.android.euicc.xml
product/priv-app/EuiccGoogle/EuiccGoogle.apk product/priv-app/EuiccGoogle/EuiccGoogle.apk
# Fingerprint # Fingerprint
vendor/bin/hw/android.hardware.biometrics.fingerprint@2.1-service-ets vendor/bin/hw/android.hardware.biometrics.fingerprint@2.1-service-ets;DISABLE_CHECKELF
vendor/etc/init/android.hardware.biometrics.fingerprint@2.1-service-ets.rc vendor/etc/init/android.hardware.biometrics.fingerprint@2.1-service-ets.rc
vendor/lib64/libRbsFlow.so vendor/lib64/libRbsFlow.so
vendor/lib64/libets_teeclient_v3.so vendor/lib64/libets_teeclient_v3.so
@ -440,8 +398,8 @@ vendor/firmware/sec_s3nrn4v_firmware.bin
vendor/firmware/tm_goodix_cfg_group.bin vendor/firmware/tm_goodix_cfg_group.bin
# HotwordEnrollment # HotwordEnrollment
-product/priv-app/HotwordEnrollmentOKGoogleHEXAGON_WIDEBAND/HotwordEnrollmentOKGoogleHEXAGON_WIDEBAND.apk product/priv-app/HotwordEnrollmentOKGoogleHEXAGON_WIDEBAND/HotwordEnrollmentOKGoogleHEXAGON_WIDEBAND.apk
-product/priv-app/HotwordEnrollmentXGoogleHEXAGON_WIDEBAND/HotwordEnrollmentXGoogleHEXAGON_WIDEBAND.apk product/priv-app/HotwordEnrollmentXGoogleHEXAGON_WIDEBAND/HotwordEnrollmentXGoogleHEXAGON_WIDEBAND.apk
system_ext/etc/permissions/com.android.hotwordenrollment.common.util.xml system_ext/etc/permissions/com.android.hotwordenrollment.common.util.xml
system_ext/framework/com.android.hotwordenrollment.common.util.jar system_ext/framework/com.android.hotwordenrollment.common.util.jar
@ -488,7 +446,7 @@ vendor/etc/vhw.xml
# Sensors # Sensors
vendor/lib64/sensors.moto.so vendor/lib64/sensors.moto.so
vendor/lib64/sensors.ssc.so vendor/lib64/sensors.ssc.so;DISABLE_CHECKELF
# Sensors Configs # Sensors Configs
vendor/bin/capsense_reset vendor/bin/capsense_reset
@ -627,8 +585,4 @@ vendor/etc/sensors/proto/tcs3708.proto
vendor/etc/sensors/sns_reg_config vendor/etc/sensors/sns_reg_config
# Thermal configs # Thermal configs
vendor/etc/thermal-engine-bangkk-camera.conf
vendor/etc/thermal-engine-bangkk-game-normal.conf
vendor/etc/thermal-engine-bangkk-game-perf.conf
vendor/etc/thermal-engine-bangkk.conf
vendor/etc/thermal-engine.conf vendor/etc/thermal-engine.conf

View file

@ -1 +0,0 @@
include $(call all-subdir-makefiles)

View file

@ -4,6 +4,10 @@
SPDX-License-Identifier: Apache-2.0 SPDX-License-Identifier: Apache-2.0
--> -->
<resources> <resources>
<!-- Microns/ums (1000 um = 1mm) per pixel for the given device. If unspecified, UI that
relies on this value will not be sized correctly. -->
<item name="pixel_pitch" format="float" type="dimen">62.73</item>
<!-- the padding on the start of the statusbar --> <!-- the padding on the start of the statusbar -->
<dimen name="status_bar_padding_start">8.0dip</dimen> <dimen name="status_bar_padding_start">8.0dip</dimen>

1
setup-makefiles.py Executable file
View file

@ -0,0 +1 @@
#!./extract-files.py --regenerate_makefiles

View file

@ -1,22 +0,0 @@
#!/bin/bash
#
# SPDX-FileCopyrightText: 2016 The CyanogenMod Project
# SPDX-FileCopyrightText: 2017-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=bangkk
export DEVICE_COMMON=sm6375-common
export VENDOR=motorola
export VENDOR_COMMON=${VENDOR}
"./../../${VENDOR_COMMON}/${DEVICE_COMMON}/setup-makefiles.sh" "$@"

View file

@ -1,73 +0,0 @@
#!/usr/bin/env python
#
# Copyright (C) 2016 The CyanogenMod Project
# Copyright (C) 2017-2020 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.
#
import os
import sys
from hashlib import sha1
device='bangkk'
vendor='motorola'
with open('proprietary-files.txt', 'r') as f:
lines = f.read().splitlines()
vendorPath = '../../../vendor/' + vendor + '/' + device + '/proprietary'
needSHA1 = False
def cleanup():
for index, line in enumerate(lines):
# Skip empty or commented lines
if len(line) == 0 or line[0] == '#' or '|' not in line:
continue
# Drop SHA1 hash, if existing
lines[index] = line.split('|')[0]
def update():
for index, line in enumerate(lines):
# Skip empty lines
if len(line) == 0:
continue
# Check if we need to set SHA1 hash for the next files
if line[0] == '#':
needSHA1 = (' - from' in line)
continue
if needSHA1:
# Remove existing SHA1 hash
line = line.split('|')[0]
filePath = line.split(';')[0].split(':')[-1]
if filePath[0] == '-':
filePath = filePath[1:]
with open(os.path.join(vendorPath, filePath), 'rb') as f:
hash = sha1(f.read()).hexdigest()
lines[index] = '%s|%s' % (line, hash)
if len(sys.argv) == 2 and sys.argv[1] == '-c':
cleanup()
else:
update()
with open('proprietary-files.txt', 'w') as file:
file.write('\n'.join(lines) + '\n')