Advertisement
metalx1000

Android Frame Buffer tricks #1

May 29th, 2014
390
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.62 KB | None | 0 0
  1. Get Screenshot
  2. (HTC AMAZE is 544x960)
  3. adb pull /dev/graphics/fb0
  4. ffmpeg -vframes 1 -f rawvideo -pix_fmt rgb32 -s 544x960 -i fb0 screenshot.png
  5.  
  6. ----------------------------
  7. It’s important to have the correct resolution
  8. This is my PengPod
  9. ----------------------------
  10. sudo adb pull /dev/graphics/fb0
  11. avconv -vframes 1 -f rawvideo -pix_fmt rgb32 -s 800x480 -i fb0 screenshot.png
  12. display screenshot.png
  13.  
  14. Display Random Static to Screen
  15. cat /dev/urandom > /dev/graphics/fb0
  16.  
  17. Save Screenshot while on Device
  18. cat /dev/graphics/fb0 > screenshot
  19.  
  20. Save Screenshot while on Device
  21. cat screenshot > /dev/graphics/fb0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement