Compare commits

...

21 commits

Author SHA1 Message Date
Nolen Johnson
0eadfe6aa4
fogos: Bump power dep to V6
Change-Id: I3b96c12457d8833ac3a9ff4558f9e2553571d9a9
2025-05-09 23:15:41 +05:30
Bruno Martins
e6560fbf16
fogos: Set libperfmgr mode extension lib via soong config
Change-Id: I39ac8867d98808832738f58eb6f50d456d6d34c4
2025-05-09 23:15:16 +05:30
Anand S
34e5ef149c
fogos: Update power profile from XT2363-8
Change-Id: Ib690e8784707ab3cf39c3e4221b987d70b4a83fc
2025-05-08 18:38:50 +05:30
Anand S
3f5eebc722
fogos: Don't throttle early
Change-Id: Ie94e3c36697ea3297e0b92d22c0ec3183a372867
2025-05-08 18:25:03 +05:30
Arian
5e393e1bcb
fogos: Handle dt2w through power HAL extension
Co-authored-by: Anand S <anandzzz360@gmail.com>
Change-Id: I9f6b6300b2595b0cae76f7d2d805c0ea15495936
2025-05-07 20:58:54 +05:30
Marc Bourgoin
a76305f888
fogos: Swap thermal config for fogos-game-perf
The default thermal-engine-fogos.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 fogos-game-perf config as when we compared the configs it
allows for a better performance to thermal balance.

Change-Id: Id5c991a198ef6be61009a9785b5e8604aa1fdc91
2025-04-18 00:13:44 +05:30
Anand S
161417391e
fogos: Move thermal config to device tree
* Drop the unused configs.

Change-Id: Ia9f3939ef90810825ce13841e9830ae09224530e
2025-04-18 00:11:59 +05:30
Michael Bestas
4dd1ef4d21
fogos: Shim sensors.moto with libbase_shim
See: 46fc805282

Change-Id: I5127020e18114a13515d9dc382c95d689634243d
2025-04-09 11:37:17 +05:30
Michael Bestas
4b3457172c
fogos: Remove unused Android.mk
Change-Id: I98105c127066f7de7012a1895d19c96356105921
2025-01-20 20:17:56 +05:30
Anand S
1be537e588
fogos: Disable elf checks for libs with undefined symbols
Change-Id: Iad49f41de91c58dccda6ee158a68bb4130e8755f
2025-01-20 15:28:58 +05:30
Anand S
1c4e2266b7
fogos: Drop duplicate blobs
* Already in sm6375-common.

Change-Id: Ieb4cb969168aae8babf9b588f0c9b75a1e9f255a
2025-01-20 13:22:15 +05:30
Anand S
d090c9daf5
fogos: Drop some unused camera blobs
Change-Id: I14ad958a807325ea91f2050779c93d1d07483462
2025-01-20 03:49:49 +05:30
Nolen Johnson
919f504acf
fogos: Nuke update-sha1sums.py
* We have py extract to do this now.

Change-Id: I031938ddb78e8f343864da521dc577cfcb67ee45
2025-01-18 01:40:26 +05:30
Michael Bestas
2e620b5b43
fogos: ruff format --config
Change-Id: I134c16aaa825feab7aee7057f524818f58603681
2025-01-18 01:39:59 +05:30
LuK1337
c1f6e9c27c
fogos: Use common lib_fixups
Change-Id: I862e547f3375184729eb1a909bb7d6f676d45dfe
2025-01-18 01:38:07 +05:30
Anand S
ccec7ff046
fogos: Remove duplicate blob
Change-Id: I7083d58cd96ca8f1859488dbbc143d7655ea25a3
2025-01-18 01:37:44 +05:30
LuK1337
f70113dce1
fogos: Switch to py extract utils
Change-Id: I5618bf10c107df579a540e2393b222128961e670
2025-01-18 01:36:44 +05:30
Michael Bestas
422e4c9bcd
fogos: Libraries are now automatically added to PRODUCT_PACKAGES
Change-Id: Ie92fe02b7e6279195bf28944942c815db773b798
2025-01-18 00:32:33 +05:30
Michael Bestas
ff9bf3909b
fogos: Disable OMX service
Change-Id: I5381e098af64271f9d71c484262e1710e8fcacea
2025-01-17 15:08:19 +05:30
Anand S
b41c000dcb
fogos: Update from MMI-U1UGS34.23-82-2-6
* From fogos_g-user 14 U1UGS34.23-82-2-6 e21904 release-keys.

Change-Id: I5c8aa286f8c4915ddd2f3cca0e8a9f3480119b4d
2025-01-17 14:48:19 +05:30
LuK1337
ab27adbd99
fogos: Adjust override prop key names
Change-Id: I436bbf425023dbe54cf3e2c35f50a5575511bc38
2024-11-11 13:02:34 +05:30
17 changed files with 342 additions and 178 deletions

View file

@ -1,11 +0,0 @@
#
# Copyright (C) 2022-2023 The LineageOS Project
#
# SPDX-License-Identifier: Apache-2.0
#
LOCAL_PATH := $(call my-dir)
ifeq ($(TARGET_DEVICE),fogos)
include $(call all-makefiles-under,$(LOCAL_PATH))
endif

View file

@ -35,7 +35,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-07-01 VENDOR_SECURITY_PATCH := 2024-11-01
# inherit from the proprietary version # inherit from the proprietary version
include vendor/motorola/fogos/BoardConfigVendor.mk include vendor/motorola/fogos/BoardConfigVendor.mk

View file

@ -0,0 +1,186 @@
#current 4 3.5 3 2.5 2 1.5 1.2 0.9 0.6
# 9 8 7 6 5 4 3 2 1
#CPU0 frequency 300000 576000 691200 940800 1113600 1324800 1516800 1651200 1708800 1804800
#CPU6 frequency 691200 940800 1228800 1401600 1516800 1651200 1804800 1900800 2054400 2208000
[FRONT_TEMP]
algo_type virtual
trip_sensor xo_therm
thresholds -18000
thresholds_clr -20000
sensors msm_therm quiet_therm battery
weights 26 25 49
offsets 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 msm_therm quiet_therm battery
weights 40 23 37
offsets 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 lcd_brightness_value
weights 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
[Virt-QUT]
algo_type virtual
sensors quiet_therm
weights 100
trip_sensor xo_therm
thresholds 18000
thresholds_clr 16000
offsets 0
sampling 1000
math 0
[MON-MSM-STB]
algo_type monitor
sampling 1000
sensor Virt-QUT
thresholds 36000 38000 39500 41000 42000 45000
thresholds_clr 35000 37000 39000 39500 41500 43000
actions battery battery battery battery battery battery
action_info 8 7 6 5 4 3
freezing
[MON-CHG-NORMAL]
algo_type monitor
sampling 1000
sensor Virt-QUT
thresholds 35000 37000 39000
thresholds_clr 33000 35000 37000
actions battery battery battery
action_info 5 3 1
override_c 10000
[MON-MSM-CPU0]
algo_type monitor
sampling 1000
sensor BACK_TEMP
thresholds 46000 48000 49500
thresholds_clr 45000 46000 48000
actions cpu0 cpu0 cpu0
action_info 1651200 1516800 1113600
override_b 4000
[MON-MSM-CPU6]
algo_type monitor
sampling 1000
sensor BACK_TEMP
thresholds 46000 48000 49500
thresholds_clr 44000 46000 48000
actions cpu6 cpu6 cpu6
action_info 1900800 1804800 1401600
override_b 4000
[MONITOR-CAMERA-MSM]
algo_type monitor
sampling 1000
sensor Virt-QUT
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
[LCD-MONITOR]
algo_type monitor
sampling 1000
sensor Virt-QUT
thresholds 45000 46000 48000
thresholds_clr 43000 45000 46000
actions panel0-backlight panel0-backlight panel0-backlight
action_info 1 300 500

View file

@ -96,8 +96,14 @@ PRODUCT_COPY_FILES += \
PRODUCT_COPY_FILES += \ PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/configs/sensors/hals.conf:$(TARGET_COPY_OUT_VENDOR)/etc/sensors/hals.conf $(LOCAL_PATH)/configs/sensors/hals.conf:$(TARGET_COPY_OUT_VENDOR)/etc/sensors/hals.conf
# Thermal
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/configs/thermal-engine-fogos-game-perf.conf:$(TARGET_COPY_OUT_VENDOR)/etc/thermal-engine-fogos.conf
# Soong namespaces # Soong namespaces
PRODUCT_SOONG_NAMESPACES += $(LOCAL_PATH) PRODUCT_SOONG_NAMESPACES += $(LOCAL_PATH)
$(call soong_config_set,power_libperfmgr,mode_extension_lib,//$(LOCAL_PATH):libperfmgr-ext-fogos)
# Inherit from vendor blobs # Inherit from vendor blobs
$(call inherit-product, vendor/motorola/fogos/fogos-vendor.mk) $(call inherit-product, vendor/motorola/fogos/fogos-vendor.mk)

57
extract-files.py Executable file
View file

@ -0,0 +1,57 @@
#!/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_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,
}
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(
'fogos',
'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=fogos
export DEVICE_COMMON=sm6375-common
export VENDOR=motorola
export VENDOR_COMMON=${VENDOR}
"./../../${VENDOR_COMMON}/${DEVICE_COMMON}/extract-files.sh" "$@"

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 fogos device # Inherit from fogos device
@ -23,7 +24,6 @@ PRODUCT_MODEL := moto g34 5G
PRODUCT_GMS_CLIENTID_BASE := android-motorola PRODUCT_GMS_CLIENTID_BASE := android-motorola
PRODUCT_BUILD_PROP_OVERRIDES += \ PRODUCT_BUILD_PROP_OVERRIDES += \
TARGET_PRODUCT=fogos_g \ BuildDesc="fogos_g-user 14 U1UGS34M.23-82-2-6 0b9749 release-keys" \
PRIVATE_BUILD_DESC="fogos_g-user 14 U1UGS34M.23-82-2-3 da6528 release-keys" BuildFingerprint=motorola/fogos_g/fogos:11/U1UGS34.23-82-2-6/e21904:user/release-keys \
DeviceProduct=fogos_g
BUILD_FINGERPRINT := motorola/fogos_g/fogos:11/U1UGS34.23-82-2-3/653ba:user/release-keys

11
power/Android.bp Normal file
View file

@ -0,0 +1,11 @@
cc_library_static {
name: "libperfmgr-ext-fogos",
vendor: true,
srcs: [
"power-mode.cpp",
],
shared_libs: [
"android.hardware.power-V6-ndk",
"libbase",
],
}

49
power/power-mode.cpp Normal file
View file

@ -0,0 +1,49 @@
/*
* Copyright (C) 2021 The LineageOS Project
*
* SPDX-License-Identifier: Apache-2.0
*/
#include <aidl/android/hardware/power/BnPower.h>
#include <android-base/file.h>
#include <android-base/logging.h>
#include <sys/ioctl.h>
namespace aidl {
namespace google {
namespace hardware {
namespace power {
namespace impl {
namespace pixel {
using ::aidl::android::hardware::power::Mode;
const std::string TAP_TO_WAKE_NODE = "/sys/class/touchscreen/primary/gesture";
bool isDeviceSpecificModeSupported(Mode type, bool* _aidl_return) {
switch (type) {
case Mode::DOUBLE_TAP_TO_WAKE:
*_aidl_return = true;
return true;
default:
return false;
}
}
bool setDeviceSpecificMode(Mode type, bool enabled) {
switch (type) {
case Mode::DOUBLE_TAP_TO_WAKE: {
::android::base::WriteStringToFile(enabled ? "1" : "0", TAP_TO_WAKE_NODE, true);
return true;
}
default:
return false;
}
}
} // namespace pixel
} // namespace impl
} // namespace power
} // namespace hardware
} // namespace google
} // namespace aidl

View file

@ -1,4 +1,4 @@
# All unpinned blobs are extracted from fogos_g-user 14 U1UGS34M.23-82-2-3 da6528 release-keys # All unpinned blobs are extracted from fogos_g-user 14 U1UGS34.23-82-2-6 e21904 release-keys
# ACDB-data # ACDB-data
vendor/etc/acdbdata/nn_ns_models/candidate__2.7.1.31__3.0.0__eai_1.10_enpu1.pmd vendor/etc/acdbdata/nn_ns_models/candidate__2.7.1.31__3.0.0__eai_1.10_enpu1.pmd
@ -31,12 +31,8 @@ vendor/etc/bstconfig/hdrcfg.cfg
vendor/etc/pwr/PowerFeatureConfig.xml vendor/etc/pwr/PowerFeatureConfig.xml
vendor/etc/pwr/VideoPowerOptFeature.xml vendor/etc/pwr/VideoPowerOptFeature.xml
vendor/lib/libcamxexternalformatutils.so vendor/lib/libcamxexternalformatutils.so
vendor/lib64/libC2D2.so
vendor/lib64/libc2d_helper.so vendor/lib64/libc2d_helper.so
vendor/lib/libbitmlengine.so
vendor/lib/libbitmlenginev2.so
vendor/lib64/libhdr_impl.so vendor/lib64/libhdr_impl.so
vendor/lib/libcamxexternalformatutils.so
vendor/lib64/camera/fdconfigpreview.bin vendor/lib64/camera/fdconfigpreview.bin
vendor/lib64/camera/fdconfigpreviewlite.bin vendor/lib64/camera/fdconfigpreviewlite.bin
vendor/lib64/camera/fdconfigvideo.bin vendor/lib64/camera/fdconfigvideo.bin
@ -95,7 +91,6 @@ vendor/lib64/libmmcamera_mfnr.so
vendor/lib64/libmmcamera_mfnr_t4.so vendor/lib64/libmmcamera_mfnr_t4.so
vendor/lib64/libmmcamera_pdpc.so vendor/lib64/libmmcamera_pdpc.so
vendor/lib64/libmot_afd.so vendor/lib64/libmot_afd.so
vendor/lib64/libmotohid.so
vendor/lib64/libmpbase.so vendor/lib64/libmpbase.so
vendor/lib64/libofflinedump.so vendor/lib64/libofflinedump.so
vendor/lib64/libofflinelog.so vendor/lib64/libofflinelog.so
@ -112,14 +107,12 @@ vendor/lib64/libtfestriping.so
vendor/lib64/libthreadutils.so vendor/lib64/libthreadutils.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
vendor/lib64/vendor.qti.hardware.scve.objecttracker@1.0.so
vendor/lib64/vendor.qti.hardware.scve.panorama@1.0.so
# Camera - Motorola # Camera - Motorola
vendor/etc/init/motorola.hardware.camera.imgtuner@2.0-service.rc vendor/etc/init/motorola.hardware.camera.imgtuner@2.0-service.rc
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/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
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
@ -273,8 +266,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
@ -447,8 +440,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-fogos-camera.conf
vendor/etc/thermal-engine-fogos-game-normal.conf
vendor/etc/thermal-engine-fogos-game-perf.conf
vendor/etc/thermal-engine-fogos.conf
vendor/etc/thermal-engine.conf vendor/etc/thermal-engine.conf

View file

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

View file

@ -348,4 +348,7 @@
<!-- Whether the device enable the non-standalone (NSA) mode of 5G NR.--> <!-- Whether the device enable the non-standalone (NSA) mode of 5G NR.-->
<bool name="config_telephony5gNonStandalone">true</bool> <bool name="config_telephony5gNonStandalone">true</bool>
<!-- Whether device supports double tap to wake -->
<bool name="config_supportDoubleTapWake">true</bool>
</resources> </resources>

View file

@ -1,8 +1,12 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<!--
SPDX-FileCopyrightText: The Linux Foundation
SPDX-License-Identifier: BSD-3-Clause
-->
<device name="Android"> <device name="Android">
<item name="none">0</item> <item name="none">0</item>
<item name="screen.on">120.12</item> <item name="screen.on.display0">120.12</item>
<item name="screen.full">370.48</item> <item name="screen.full.display0">370.48</item>
<item name="wifi.on">1.78</item> <item name="wifi.on">1.78</item>
<item name="wifi.active">110.2</item> <item name="wifi.active">110.2</item>
<item name="wifi.scan">83.35</item> <item name="wifi.scan">83.35</item>
@ -36,6 +40,8 @@
<value>1651200</value> <value>1651200</value>
<value>1708800</value> <value>1708800</value>
<value>1804800</value> <value>1804800</value>
<value>1900800</value>
<value>2016000</value>
</array> </array>
<array name="cpu.core_speeds.cluster1"> <array name="cpu.core_speeds.cluster1">
<value>691200</value> <value>691200</value>
@ -48,6 +54,7 @@
<value>1900800</value> <value>1900800</value>
<value>2054400</value> <value>2054400</value>
<value>2208000</value> <value>2208000</value>
<value>2304000</value>
</array> </array>
<array name="cpu.core_power.cluster0"> <array name="cpu.core_power.cluster0">
<value>22.8</value> <value>22.8</value>
@ -59,7 +66,9 @@
<value>43.8</value> <value>43.8</value>
<value>52.3</value> <value>52.3</value>
<value>53.7</value> <value>53.7</value>
<value>57.2</value> <value>54.2</value>
<value>57.7</value>
<value>59.7</value>
</array> </array>
<array name="cpu.core_power.cluster1"> <array name="cpu.core_power.cluster1">
<value>53.3</value> <value>53.3</value>
@ -68,10 +77,11 @@
<value>114.4</value> <value>114.4</value>
<value>130.6</value> <value>130.6</value>
<value>155.6</value> <value>155.6</value>
<value>173.7</value> <value>181.7</value>
<value>184.6</value> <value>197.6</value>
<value>197.3</value> <value>204.4</value>
<value>220.5</value> <value>230.9</value>
<value>253.1</value>
</array> </array>
<item name="cpu.cluster_power.cluster0">13.5</item> <item name="cpu.cluster_power.cluster0">13.5</item>
<item name="cpu.cluster_power.cluster1">43.3</item> <item name="cpu.cluster_power.cluster1">43.3</item>

View file

@ -77,9 +77,6 @@ on boot
chown root input /sys/class/sensors/Moto\ CapSense\ Ch3/poll_delay chown root input /sys/class/sensors/Moto\ CapSense\ Ch3/poll_delay
chown root input /sys/class/sensors/Moto\ CapSense\ Ch4/enable chown root input /sys/class/sensors/Moto\ CapSense\ Ch4/enable
chown root input /sys/class/sensors/Moto\ CapSense\ Ch4/poll_delay chown root input /sys/class/sensors/Moto\ CapSense\ Ch4/poll_delay
# Change ownership for touch gesture
chown root input /sys/class/sensors/dt-gesture/enable
chown root input /sys/class/sensors/dt-gesture/poll_delay
# touch # touch
chown system system /sys/class/touchscreen/primary/interpolation chown system system /sys/class/touchscreen/primary/interpolation
chmod 0660 /sys/class/touchscreen/primary/interpolation chmod 0660 /sys/class/touchscreen/primary/interpolation

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=fogos
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='fogos'
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')