- A rooted android device
- Or sign you app with system signature file
First, you need grant float window permission by activate 'Settings.ACTION_MANAGE_OVERLAY_PERMISSION' Then, click 'begin' button to start.
Click the 'end' button
- Using 'dumpsys window | grep mFocusedWindow' command, to get ${current window name}
- Then using 'dumpsys SurfaceFlinger --latency ${current window name}' to get frame timestap.
- You will get {1+127} lines after execute command 2, the first line is device refresh rate, and the next 127 line is 127 frames timestap
- If you want to modify fps information, please change SurfaceFlingerInfo.parseFPS() method.
- If you want to modify float window UI or content, please change FloatInfoView class.
if there is any question about this project, you can contact me by Email: [email protected]