phhusson / treble_app

An app which will do various stuff for Treble ROMs
68 stars 92 forks source link

Nubia Fan Issue #81

Open TimmyTurner51 opened 1 year ago

TimmyTurner51 commented 1 year ago

Hello all! I have a Nubia Redmagic 7 Pro (NX709J), and the gaming fan option in the treble app does not work. It seems like the Nubia settings is for a different redmagic phone, and the fan option does not turn on my fan. Is there a fix? I believe this is an issue.

TimmyTurner51 commented 1 year ago

I have looked into the source code. The fan was loading nubia_fan_speed from the kernel, but this is different from the redmagic 7 Pro (fan_speed_level). I tried manually changing this myself with the source code, and compiled, but it conflicts with an existing package. I tried using adb to uninstall this treble app so I can update it to my edit, but it seems like it's stuck in my system folder therefore cannot update. The system is locked to read only and I've tried every way to change that. Even changing the version code and everything, still no luck. How this was installed to system? I installed a custom ROM, which I suspect had this included.

phhusson commented 1 year ago

use bash build.sh to build it, you'll be able to install it.

Le jeu. 2 mars 2023 à 17:25, TimmyCraft @.***> a écrit :

I have looked into the source code. The fan was loading nubia_fan_speed from the kernel, but this is different from the redmagic 7 Pro (fan_speed_level). I tried manually changing this myself with the source code, and compiled, but it conflicts with an existing package. I tried using adb to uninstall this treble app so I can update it to my edit, but it seems like it's stuck in my system folder therefore cannot update. The system is locked to read only and I've tried every way to change that. Even changing the version code and everything, still no luck. How this was installed to system? I installed a custom ROM, which I suspect had this included.

— Reply to this email directly, view it on GitHub https://github.com/phhusson/treble_app/issues/81#issuecomment-1452154905, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAAA4OTOY7Y4RX7ABZ22AULW2DCXLANCNFSM6AAAAAAVJXITQA . You are receiving this because you are subscribed to this thread.Message ID: @.***>

TimmyTurner51 commented 1 year ago

After many issues when trying that command in terminal within android studio, I got this:

build.gradle: line 1: buildscript: command not found build.gradle: line 2: ext.kotlin_version: command not found build.gradle: line 3: repositories: command not found build.gradle: line 5: syntax error near unexpected token jcenter' build.gradle: line 5: jcenter()'

This is also after changing jdk version Android Studio uses from 11 to 1.8.

Edit:: Also tried jdk 11 for clarity

phhusson commented 1 year ago

you did bash build.gradle not bash build.sh

Le dim. 5 mars 2023 à 18:58, TimmyCraft @.***> a écrit :

After many issues when trying that command in terminal within android studio, I got this:

build.gradle: line 1: buildscript: command not found build.gradle: line 2: ext.kotlin_version: command not found build.gradle: line 3: repositories: command not found build.gradle: line 5: syntax error near unexpected token jcenter' build.gradle: line 5: jcenter()'

This is also after changing jdk version Android Studio uses from 11 to 1.8.

— Reply to this email directly, view it on GitHub https://github.com/phhusson/treble_app/issues/81#issuecomment-1455159213, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAAA4OVZHJ6OWQCEYQKZJWTW2TH5RANCNFSM6AAAAAAVJXITQA . You are receiving this because you commented.Message ID: @.***>