Search code examples
androidvideo-streamingbufferframelive

programatically read frame buffer /dev/graphics/fb0 in android


I working on android.I am working on an application where I need to programatically access the frame buffer /dev/graphics/fb0 of a video in android.I have researched lot and was able to find a resource that explains how it can be done through shell command https://www.youtube.com/watch?v=BUPPyR6VasI but I want to achieve the same programatically. Any one having any idea how can it be achieved.I would really appreciate any ideas..

Thanks


Solution

  • Reading enter link description here, it looks like fb0 has restricted permissions for security reasons -- were permission not closed an app could spy on user activities outside a given app. Your app won't programmatic have access to it, on non-rooted phones anyway. If you need screen shots of your app, the usual approach is to get a bitmap from a parent layout in your app using this pattern. That is allowed.