Compare commits
No commits in common. "fifteen" and "fourteen" have entirely different histories.
14 changed files with 229 additions and 295 deletions
21
Android.mk
Normal file
21
Android.mk
Normal file
|
@ -0,0 +1,21 @@
|
||||||
|
#
|
||||||
|
# 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
|
|
@ -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-12-01
|
VENDOR_SECURITY_PATCH := 2024-08-01
|
||||||
|
|
||||||
# inherit from the proprietary version
|
# inherit from the proprietary version
|
||||||
include vendor/motorola/bangkk/BoardConfigVendor.mk
|
include vendor/motorola/bangkk/BoardConfigVendor.mk
|
||||||
|
|
|
@ -1,190 +0,0 @@
|
||||||
[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
|
|
|
@ -115,9 +115,5 @@ 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)
|
||||||
|
|
|
@ -1,64 +0,0 @@
|
||||||
#!/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()
|
|
38
extract-files.sh
Executable file
38
extract-files.sh
Executable file
|
@ -0,0 +1,38 @@
|
||||||
|
#!/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" "$@"
|
|
@ -7,10 +7,6 @@
|
||||||
#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;
|
||||||
|
|
|
@ -6,7 +6,6 @@
|
||||||
|
|
||||||
# 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
|
||||||
|
@ -24,6 +23,7 @@ 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 += \
|
||||||
BuildDesc="bangkk_g-user 14 U1TCS34M.22-64-19-4-2 9c98b release-keys" \
|
TARGET_PRODUCT=bangkk_g \
|
||||||
BuildFingerprint=motorola/bangkk_g/bangkk:11/U1TCS34.22-64-19-4-2/305d4a:user/release-keys \
|
PRIVATE_BUILD_DESC="bangkk_g-user 14 U1TCS34M.22-64-18-3 aa936 release-keys"
|
||||||
DeviceProduct=bangkk_g
|
|
||||||
|
BUILD_FINGERPRINT := motorola/bangkk_g/bangkk:11/U1TCS34.22-64-18-3/37e073:user/release-keys
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
# All unpinned blobs are extracted from bangkk_g-user 14 U1TCS34M.22-64-19-4-2 9c98b release-keys
|
# All unpinned blobs are extracted from bangkk_g-user 14 U1TCS34M.22-64-18-3 aa936 release-keys
|
||||||
|
|
||||||
# ACDB-data
|
# ACDB-data
|
||||||
vendor/etc/acdbdata/Bluetooth_cal.acdb
|
vendor/etc/acdbdata/Bluetooth_cal.acdb
|
||||||
|
@ -31,14 +31,19 @@ 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;DISABLE_CHECKELF
|
vendor/lib/hw/camera.qcom.so
|
||||||
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
|
||||||
|
@ -54,7 +59,8 @@ 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;DISABLE_CHECKELF
|
vendor/lib/libBSTSWAD.so
|
||||||
|
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
|
||||||
|
@ -68,6 +74,9 @@ 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
|
||||||
|
@ -76,8 +85,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;DISABLE_CHECKELF
|
vendor/lib/libmmcamera_faceproc.so
|
||||||
vendor/lib/libmmcamera_faceproc2.so;DISABLE_CHECKELF
|
vendor/lib/libmmcamera_faceproc2.so
|
||||||
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
|
||||||
|
@ -91,8 +100,15 @@ 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
|
||||||
|
@ -111,9 +127,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;DISABLE_CHECKELF
|
vendor/lib64/hw/camera.qcom.so
|
||||||
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;DISABLE_CHECKELF
|
vendor/lib64/hw/motorola.hardware.camera.imgtuner@2.0-impl.so
|
||||||
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
|
||||||
|
@ -125,18 +141,25 @@ 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
|
||||||
|
@ -146,8 +169,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;DISABLE_CHECKELF
|
vendor/lib64/libmmcamera_faceproc.so
|
||||||
vendor/lib64/libmmcamera_faceproc2.so;DISABLE_CHECKELF
|
vendor/lib64/libmmcamera_faceproc2.so
|
||||||
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
|
||||||
|
@ -158,30 +181,36 @@ 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;DISABLE_CHECKELF
|
vendor/lib/hw/motorola.hardware.camera.imgtuner@2.0-impl.so
|
||||||
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;DISABLE_CHECKELF
|
vendor/lib/motorola.hardware.camera.imgtuner@1.0.so
|
||||||
vendor/lib/motorola.hardware.camera.imgtuner@2.0.so;DISABLE_CHECKELF
|
vendor/lib/motorola.hardware.camera.imgtuner@2.0.so
|
||||||
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;DISABLE_CHECKELF
|
vendor/lib64/motorola.hardware.camera.imgtuner@1.0.so
|
||||||
vendor/lib64/motorola.hardware.camera.imgtuner@2.0.so;DISABLE_CHECKELF
|
vendor/lib64/motorola.hardware.camera.imgtuner@2.0.so
|
||||||
|
|
||||||
# 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;DISABLE_CHECKELF
|
vendor/lib/camera/components/com.mot.node.c2d.so
|
||||||
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
|
||||||
|
@ -231,8 +260,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;DISABLE_CHECKELF
|
vendor/lib/camera/components/com.vidhance.node.ica.so
|
||||||
vendor/lib/camera/components/com.vidhance.node.processing.so;DISABLE_CHECKELF
|
vendor/lib/camera/components/com.vidhance.node.processing.so
|
||||||
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
|
||||||
|
@ -285,8 +314,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;DISABLE_CHECKELF
|
vendor/lib64/camera/components/com.vidhance.node.ica.so
|
||||||
vendor/lib64/camera/components/com.vidhance.node.processing.so;DISABLE_CHECKELF
|
vendor/lib64/camera/components/com.vidhance.node.processing.so
|
||||||
vendor/lib64/camera/components/libdepthmapwrapper_secure.so
|
vendor/lib64/camera/components/libdepthmapwrapper_secure.so
|
||||||
|
|
||||||
# Camera - feature2
|
# Camera - feature2
|
||||||
|
@ -350,6 +379,10 @@ 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
|
||||||
|
@ -359,6 +392,15 @@ 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
|
||||||
|
@ -380,7 +422,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;DISABLE_CHECKELF
|
vendor/bin/hw/android.hardware.biometrics.fingerprint@2.1-service-ets
|
||||||
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
|
||||||
|
@ -398,8 +440,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
|
||||||
|
|
||||||
|
@ -446,7 +488,7 @@ vendor/etc/vhw.xml
|
||||||
|
|
||||||
# Sensors
|
# Sensors
|
||||||
vendor/lib64/sensors.moto.so
|
vendor/lib64/sensors.moto.so
|
||||||
vendor/lib64/sensors.ssc.so;DISABLE_CHECKELF
|
vendor/lib64/sensors.ssc.so
|
||||||
|
|
||||||
# Sensors Configs
|
# Sensors Configs
|
||||||
vendor/bin/capsense_reset
|
vendor/bin/capsense_reset
|
||||||
|
@ -585,4 +627,8 @@ 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
|
||||||
|
|
1
resource-overlay/Android.mk
Normal file
1
resource-overlay/Android.mk
Normal file
|
@ -0,0 +1 @@
|
||||||
|
include $(call all-subdir-makefiles)
|
|
@ -4,10 +4,6 @@
|
||||||
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 +0,0 @@
|
||||||
#!./extract-files.py --regenerate_makefiles
|
|
22
setup-makefiles.sh
Executable file
22
setup-makefiles.sh
Executable file
|
@ -0,0 +1,22 @@
|
||||||
|
#!/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" "$@"
|
73
update-sha1sums.py
Executable file
73
update-sha1sums.py
Executable file
|
@ -0,0 +1,73 @@
|
||||||
|
#!/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')
|
Loading…
Reference in a new issue