thx for this. For me it was just a "I share my code and other people can create sth. awesome from it" project. great work 
Thanks for stopping bythx for this. For me it was just a "I share my code and other people can create sth. awesome from it" project. great work![]()
usually they are only soc dependent so all devices with the same soc should use the same files(in qcom terms 'thermalzone').Thanks for stopping by
The Sony Z3 compact has the exact same cpu and gpu temperature files, and the same soc; snapdragon 801".
Do you know if the temperature files are soc dependant?
Same soc, same temperature files?
E/AndroidRuntime(20128): FATAL EXCEPTION: main
E/AndroidRuntime(20128): Process: com.waterdaan.cpufloat, PID: 20128
E/AndroidRuntime(20128): java.lang.RuntimeException: Unable to create service com.waterdaan.cpufloat.CpuFloat: java.lang.NullPointerException: Attempt to invoke virtual method 'int java.lang.Integer.intValue()' on a null object reference
E/AndroidRuntime(20128): at android.app.ActivityThread.handleCreateService(ActivityThread.java:2804)
E/AndroidRuntime(20128): at android.app.ActivityThread.access$1900(ActivityThread.java:154)
E/AndroidRuntime(20128): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1404)
E/AndroidRuntime(20128): at android.os.Handler.dispatchMessage(Handler.java:102)
E/AndroidRuntime(20128): at android.os.Looper.loop(Looper.java:135)
E/AndroidRuntime(20128): at android.app.ActivityThread.main(ActivityThread.java:5294)
E/AndroidRuntime(20128): at java.lang.reflect.Method.invoke(Native Method)
E/AndroidRuntime(20128): at java.lang.reflect.Method.invoke(Method.java:372)
E/AndroidRuntime(20128): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:904)
E/AndroidRuntime(20128): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:699)
E/AndroidRuntime(20128): Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'int java.lang.Integer.intValue()' on a null object reference
E/AndroidRuntime(20128): at com.waterdaan.cpufloat.CpuFloat.onCreate(CpuFloat.java:746)
E/AndroidRuntime(20128): at android.app.ActivityThread.handleCreateService(ActivityThread.java:2794)
E/AndroidRuntime(20128): ... 9 more
Thanks!!usually they are only soc dependent so all devices with the same soc should use the same files(in qcom terms 'thermalzone').
---------- Post added at 08:22 AM ---------- Previous post was at 07:26 AM ----------
also, this app crashes on start on my MotoE:
yep that worksThanks!!
could you try this one?
http://forum.xda-developers.com/attachment.php?attachmentid=3517649&d=1445732357
I don't know that but I guess you should perform feature checks instead of platform checks where possible to determine the correct sysfs node.Update
# manually set which temperature sensor to use for the cpu and gpu temperature
@m11kkaa do you know if all phones with a snapdragon use /sys/class/hwmon/ for the temperature? The phones that I have access to, all with snapdragon, all use this directory, or is that a coincidence? Or does that come from Linux?
Thanks!
UpdateUpdate
# user interface logic

Thank you for your nice reaction!i love this app. complete and concise. just request if possible can u also add baterry temp monitor and it will be perfect. Tnx
Working well in Lg-d858hk fulmics 6.6
and lenovo S60