Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,808,556 Members 42,916 Now Online
XDA Developers Android and Mobile Development Forum

[MOD][XPOSED][4.0+] CpuTemp in Statusbar

Tip us?
 
m11kkaa
Old
#1  
m11kkaa's Avatar
Recognized Contributor - OP
Thanks Meter 1,406
Posts: 939
Join Date: Jan 2011

 
DONATE TO ME
Default [MOD][XPOSED][4.0+] CpuTemp in Statusbar

This little module allows you to show the CPU temperature in the statusbar.
Features:
- show temperature left or right (default is left)
- set update interval (default is 1000ms=1s)
- update interval will be stopped when screen is turned off to safe battery

If it doesn't work on your device then the temperature is stored in a different file.
Please contact me in this case and I'll fix it for you.

Sourcecode: https://github.com/M1cha/android_app_cputempinstatusbar
Download: http://repo.xposed.info/module/info....utempstatusbar
Follow me on twitter: https://twitter.com/m11kkaa
The Following 60 Users Say Thank You to m11kkaa For This Useful Post: [ Click to Expand ]
 
JonisskylineE
Old
#2  
JonisskylineE's Avatar
Member
Thanks Meter 14
Posts: 63
Join Date: Apr 2013
First of all great idea, but it didn't work for me.

Sent from SGSII
Plus GT-9105p
Stock on 4.2.2 JellyBean
Rooted ofc
And supercharged!!! ^_^
 
stktd
Old
#3  
Senior Member
Thanks Meter 17
Posts: 148
Join Date: Jul 2010
Location: york
I had wanted to add this to one of my apps (Informer) but TBH I didn't know where to start! it's not working though, I've just two options Update Interval / Postion and no noti started

I've got galaxy nexus 4.3 ...... can't remember for the life of me what Rom...
Check out my latest App in the Play Store

https://play.google.com/store/apps/d...ke+alarm+clock
 
m11kkaa
Old
#4  
m11kkaa's Avatar
Recognized Contributor - OP
Thanks Meter 1,406
Posts: 939
Join Date: Jan 2011

 
DONATE TO ME
I've updated to v1.1 which adds more support.I hope, that it now will work for all of you. If the temperatur will be too high(i.e. 340 instead of 34) tell me and I'll add a division by 10 for your device.
Follow me on twitter: https://twitter.com/m11kkaa
The Following User Says Thank You to m11kkaa For This Useful Post: [ Click to Expand ]
 
stktd
Old
#5  
Senior Member
Thanks Meter 17
Posts: 148
Join Date: Jul 2010
Location: york
Just installed and still nothing.... no error or anything
Check out my latest App in the Play Store

https://play.google.com/store/apps/d...ke+alarm+clock
 
m11kkaa
Old
#6  
m11kkaa's Avatar
Recognized Contributor - OP
Thanks Meter 1,406
Posts: 939
Join Date: Jan 2011

 
DONATE TO ME
Can you check if one of these path's exists and is readable on your device?https://github.com/M1cha/android_app...Temp.java#L123


Also check for a Warning from my app in logcat.
Follow me on twitter: https://twitter.com/m11kkaa
 
stktd
Old
#7  
Senior Member
Thanks Meter 17
Posts: 148
Join Date: Jul 2010
Location: york
File f = new File("/sys/devices/platform/omap/omap_temp_sensor.0/temperature"); // got this
if(!f.exists()) {
f = new File("/sys/kernel/debug/tegra_thermal/temp_tj"); // no
mode = 0;
}
if(!f.exists()) {
f = new File("/sys/devices/system/cpu/cpu0/cpufreq/cpu_temp"); // no
mode = 0;
}
if(!f.exists()) {
f = new File("/sys/class/thermal/thermal_zone0/temp"); // no
mode = 0;
}
if(!f.exists()) {
f = new File("/sys/class/thermal/thermal_zone1/temp"); // no
mode = 0;
}
if(!f.exists()) {
f = new File("/sys/devices/platform/s5p-tmu/curr_temp"); // no
mode = 1;
}
Check out my latest App in the Play Store

https://play.google.com/store/apps/d...ke+alarm+clock
 
m11kkaa
Old
#8  
m11kkaa's Avatar
Recognized Contributor - OP
Thanks Meter 1,406
Posts: 939
Join Date: Jan 2011

 
DONATE TO ME
what are the permissions of this file? it must be readable for the system user.
Follow me on twitter: https://twitter.com/m11kkaa
 
ghul21
Old
#9  
ghul21's Avatar
Senior Member
Thanks Meter 1,950
Posts: 1,450
Join Date: Feb 2011
Location: Bielsko-Biała ( Łódź )


Can you make on the edge of the screen ? It's really on the center of the screen. And plausibility of the colour set will be perfect 😁

Wysłane z mojego HTC One przy użyciu Tapatalka
 
m11kkaa
Old
#10  
m11kkaa's Avatar
Recognized Contributor - OP
Thanks Meter 1,406
Posts: 939
Join Date: Jan 2011

 
DONATE TO ME
Quote:
Originally Posted by ghul21 View Post


Can you make on the edge of the screen ? It's really on the center of the screen. And plausibility of the colour set will be perfect 😁

Wysłane z mojego HTC One przy użyciu Tapatalka
Do you mean the absolute left side? The Option Left/Right means if the icon is inserted as first or last icon in the icon-tray
Follow me on twitter: https://twitter.com/m11kkaa

The Following User Says Thank You to m11kkaa For This Useful Post: [ Click to Expand ]
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes