GSI Brightness Fix logo

GSI Brightness Fix

Developed by @auxmeet

Dls
Ver
v1.0
Size
3.33 KB
Date
24 Sept 2026
gsi-brightness-fix.md

This systemless boot script corrects dark screen issues on Infinix phones running GSIs. By matching the panel's true backlight scaling value without altering the /system partition, it ensures normal display illumination across custom Android builds.

Technical Details

The script executes service.sh during startup to read the actual max_brightness limit directly from the Unisoc sysfs node. It dynamically applies this hardware parameter to the persist.sys.qcom-brightness property using resetprop. Designed with the skip_mount flag, the tool runs entirely in the background without mounting system overlays, resolving the 255-to-4095 scaling mismatch natively.

Core Features of GSI Brightness Fix

  • Dynamic Detection: Automatically reads backlight limits directly from the hardware sysfs node.
  • Systemless Execution: Leverages skip_mount to run purely as a boot script without altering core partitions.
  • Built-in Fallback: Defaults property values to 4095 if the primary display node is inaccessible.
  • Treble Compatibility: Explicitly addresses Phh Treble property scaling rather than Qualcomm-specific parameters.

Support & Requirements

Compatible with Android 12 GSIs and requires Magisk version 26.4 (versionCode 26400) or higher.

How to Install GSI Brightness Fix

  1. Download the module .zip file to your internal storage.
  2. Open the Magisk app and tap the Modules menu.
  3. Select "Install from storage", pick the downloaded .zip file, and wait for the flash process to finish.
  4. Reboot your device to apply the updated backlight properties.