Files
packages_apps_GameBar/res/values/config.xml
kenway214 605c66b093 GameBar: Add device overlay support and comprehensive documentation
- Implement GameBarConfig for centralized hardware path management
- Replace hardcoded sysfs paths with configurable resources
- Add config.xml with device-specific overlay support
- Update CPU/GPU/RAM/Battery info classes to use config
- README guide with build/integration guide

Signed-off-by: kenway214 <kenway214@outlook.com>
2025-10-24 21:33:58 +05:30

38 lines
1.9 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<!--
SPDX-FileCopyrightText: 2025 kenway214
SPDX-License-Identifier: Apache-2.0
-->
<resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
<!-- GameBar Device Paths Configuration -->
<!-- FPS Measurement -->
<string name="config_fps_sysfs_path" translatable="false">/sys/class/drm/sde-crtc-0/measured_fps</string>
<!-- Battery Temperature -->
<string name="config_battery_temp_path" translatable="false">/sys/class/power_supply/battery/temp</string>
<integer name="config_battery_temp_divider">10</integer>
<!-- CPU Configuration -->
<string name="config_cpu_base_path" translatable="false">/sys/devices/system/cpu</string>
<string name="config_cpu_temp_path" translatable="false">/sys/class/thermal/thermal_zone48/temp</string>
<integer name="config_cpu_temp_divider">1000</integer>
<!-- GPU Configuration -->
<string name="config_gpu_usage_path" translatable="false">/sys/class/kgsl/kgsl-3d0/gpu_busy_percentage</string>
<string name="config_gpu_clock_path" translatable="false">/sys/class/kgsl/kgsl-3d0/gpuclk</string>
<string name="config_gpu_temp_path" translatable="false">/sys/class/kgsl/kgsl-3d0/temp</string>
<integer name="config_gpu_temp_divider">1000</integer>
<integer name="config_gpu_clock_divider">1000000</integer>
<!-- RAM Configuration -->
<string name="config_ram_freq_path" translatable="false">/sys/devices/system/cpu/bus_dcvs/DDR/cur_freq</string>
<string name="config_ram_temp_path" translatable="false">/sys/class/thermal/thermal_zone27/temp</string>
<integer name="config_ram_temp_divider">1000</integer>
<!-- Proc filesystem paths -->
<string name="config_proc_stat_path" translatable="false">/proc/stat</string>
<string name="config_proc_meminfo_path" translatable="false">/proc/meminfo</string>
</resources>