TrebleDroid / treble_experimentations

Scripts to automatically build/CI/Release TrebleDroid GSI
Other
212 stars 27 forks source link

[Oppo Features] DC dimming path changed #106

Open melontini opened 6 months ago

melontini commented 6 months ago

The new path is /sys/kernel/oplus_display/dimlayer_bl_en. I wrote a fix, but couldn't test due to, let's say, "various complications".

try {
    val oppoPath = File("/sys/kernel/oppo_display/dimlayer_bl_en ")//typo?
    if (oppoPath.exists()) oppoPath.writeText(value)
    else File("/sys/kernel/oplus_display/dimlayer_bl_en").writeText(value)
} catch(e: Exception) {
    Log.d("PHH", "Failed setting dc diming", e)
}

Did the old file also contain 0 0 or was it just 0?