[APP] CpuFloat [March27] Floating cpu, gpu, temperatures, deep sleep, network monitor

waterdaan

Senior Member
Oct 25, 2013
506
276
0
CpuFloat

Uses a floating window or the status bar to show

# the cpu frequencies
# the cpu temperature if (available)
# the text will turn red when the cpu temperature rises above the throttle temperature. You can set custom throttle temperature in preferences.
# the gpu frequency
# Gpu load; not normalised
# the gpu temperature if (available)
# the text will turn red when the gpu temperature rises above the throttle temperature.
# awake time; the time the phone has been awake since starting the app
# deep sleep time; the time the phone has been asleep since starting the app
# battery current
# battery current
# current upload and download speed

In preferences you can choose
# floating window layout; vertical or horizontal layout
# to show the window in the status bar instead of a floating window
# the categories to monitor; all, cpu, gpu, time, network
# which temperature sensor to use for cpu and gpu temperature
# to show the temperature in Fahrenheit instead of Celsius
# cpu throttle point; cpu temperature when the text should turn red

The app uses following permissions:
"android.permission.SYSTEM_ALERT_WINDOW" Needed for floating window, draw over other windows.
"android.permission.READ_EXTERNAL_STORAGE" Read data to show e.g. Cpu frequency, temperature etc.
"android.permission.VIBRATE"

Credits to:
CM Calculator apk for user interface logic
@m11kkaa for temperature file paths and thread http://forum.xda-developers.com/xposed/modules/mod-cputemp-statusbar-t2494170
@existz for awake and deep sleep time method http://forum.xda-developers.com/google-nexus-5/themes-apps/app-cpu-spy-material-v1-0-t2948627
@Grarak for GPU frequency file paths http://forum.xda-developers.com/android/apps-games/app-kernel-adiutor-t2986129
consp1racy for SeekBarPreference https://github.com/consp1racy/android-support-preference
The Tester for catching exceptions and throwing ideas

For automatic updates:


 

Attachments

Last edited:

waterdaan

Senior Member
Oct 25, 2013
506
276
0
Request
If you´d like to use the app in your native language, you can!

How?
Download the string resource file, copy it and the translate the underlined part, for example
<string name="settings">Settings</string>
becomes
<string name="settings">Instellingen</string>
and post it in this thread.

Thanks!


ChangeLog:
March 17
-startup bug, thanks to Bryan
-GPU frequency on some devices
+battery temperature

Older changelogs:

September 26
- bugs
+ battery current correction
+ clear data dialog in case of fatal crash
September 24
+ battery current monitor
+ notification; enable if CpuFloat suddenly disappears
+ set monitor defaults
+use android M (6) permissions
+important notice about app permissions for android M (6) and up
+transparent background
+GPU trippoint
+ changelog
- some bugs
June 14
Fixed crash
Improve right to left layout
June 12
Added
#Text size
#Show window on the navigation bar
#Update interval (100ms - 3000ms)
#Number of CPUs to monitor
#First time helpful animation
#About screen
#Now on Google Play Store
Fixes and improvements
#Don´t update when the screen is off
#Don´t kill service when changing the window layout
#Language in settings
#Support more GPUs
#Use SeekBarPreferences in settings
November 12
# added some animations
# 'material' window look
# layout changes in case of more than 7 cpu cores
# broadcast listener for landscape/ portrait change
in preferences
# turn on/off vibration
# restore default values

November 3
# user interface logic

November 1
# fixed preference bugs

October 31
# manually set which temperature sensor to use for the cpu and gpu temperature

October 25
# hopefully fixed force close on start

October 23
# fix bug, window not showing on start
# custom cpu temperature trippoint in preferences

October 19
# used some icons instead of text
# option to show window in status bar

October 17
# started to make it work on other phones
# cpu and gpu temperature file info in preferences

October 14
# more layout options
# bugs and performance fixes

October 11
# no more StandOutWindow library
# no notification
# improved long press detection

October 4
# monitor up and download speed
# option to show the temperature in Fahrenheit

October 1
# warning in case the temperature reaches the throttle temperature of cpu or gpu
# tap app window to close
# long press app window for preferences
Preferences:
# choose horizontal / vertical layout
# choose what to monitor

September 27
# rewritten to make it easier to use on other phones
# new app icon
# smaller window
//TODO make preferences
 

Attachments

Last edited:

waterdaan

Senior Member
Oct 25, 2013
506
276
0
Update
Rewritten
Much smaller now
# no notification
# no more StandOutWindow library
# improved long press detection

Because of a change in package name,
please delete previous version, else you'll end up with 2
 
Last edited:

waterdaan

Senior Member
Oct 25, 2013
506
276
0
Update
# started to make it work on other phones
# cpu and gpu temperature file info in preferences

Request
I'm trying to get the app to work on other phones, so if you have another phone, please test what's working.

If there's no cpu temperature, that probably means that the app can't find the temperature files. These are not the same on every phone.
If the phone is rooted, you can help me by copying and pasting below code in command line, with for example this app https://play.google.com/store/apps/details?id=jackpal.androidterm
And posting the outcome here, so I can add the missing file.
Code:
su
find /sys -type f -name *temp* -print0|while read -d $'\0' f; 
do printf "$f= "&&cat "$f";done;


Thanks!
Gpu temperature is a bit more difficult, because you need to find out which temperature sensor is for the gpu, I found that information for the oneplus in
/etc/thermal-engine-8974.conf
Reported working on:
OnePlus fully working
Moto X gpu temperature not working
Samsung S4 gpu temperature not working

Thank you!!
 
Last edited:

waterdaan

Senior Member
Oct 25, 2013
506
276
0
Update
# used some icons instead of text
# option to show window in status bar

Edit
The app is fully working on the Sony Z3 Compact, it even uses the same files for cpu temperature and gpu temperature, maybe because it also has a snapdragon 801, but I'm not sure about that.
 
Last edited:
  • Like
Reactions: eodchn and dude6595

Killerkip

Member
Oct 8, 2010
32
21
0
I must be missing something but how do I reopen the window after having tapped on it to close it?

Because opening the app from the drawer takes me to the preferences screen.
 
Last edited:
  • Like
Reactions: waterdaan

waterdaan

Senior Member
Oct 25, 2013
506
276
0
I must be missing something but how do i reopen the window after having tapped on it to close it?

because opening the app from the drawer takes me to the preferences screen.
You're right, that's not very clear, I'll see if I can change that.
For now just change something in the preference screen and a new window will open.
Thank you for your reaction
 
  • Like
Reactions: Killerkip