Files
packages_apps_GameBar/init/init.gamebar.rc
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

31 lines
1.3 KiB
Plaintext

# GameBar init script
# NOTE: Customize these paths for your device's hardware
on boot
# FPS measurement path (adjust paths)
chown system graphics /sys/class/drm/sde-crtc-0/measured_fps
chmod 0660 /sys/class/drm/sde-crtc-0/measured_fps
# Battery temperature path (adjust paths)
chown system system /sys/class/power_supply/battery/temp
chmod 0660 /sys/class/power_supply/battery/temp
# CPU temperature path (adjust thermal zone number)
chown system system /sys/class/thermal/thermal_zone48/temp
chmod 0660 /sys/class/thermal/thermal_zone48/temp
# GPU paths (adjust paths)
chown system system /sys/class/kgsl/kgsl-3d0/gpu_busy_percentage
chmod 0660 /sys/class/kgsl/kgsl-3d0/gpu_busy_percentage
chown system system /sys/class/kgsl/kgsl-3d0/gpuclk
chmod 0660 /sys/class/kgsl/kgsl-3d0/gpuclk
chown system system /sys/class/kgsl/kgsl-3d0/temp
chmod 0660 /sys/class/kgsl/kgsl-3d0/temp
# RAM frequency path (adjust paths)
chown system system /sys/devices/system/cpu/bus_dcvs/DDR/cur_freq
chmod 0660 /sys/devices/system/cpu/bus_dcvs/DDR/cur_freq
# RAM temperature path (adjust thermal zone number)
chown system system /sys/class/thermal/thermal_zone27/temp
chmod 0660 /sys/class/thermal/thermal_zone27/temp