Programmatically read frame buffer / dev / graphics / fb 0 in android

I am working on android. I am working on an application where I need to programmatically access the frame buffer / dev / graphics / fb 0 video in android.I researched a lot and was able to find a resource that explains how this can be done by the https: / shell command /www.youtube.com/watch?v=BUPPyR6VasI , but I want to do the same programmatically. Anyone who has any idea how it can be achieved. I would really appreciate any ideas.

thanks

+5
source share
1 answer

Reading, enter a description of the link here , it seems that fb0 has limited permissions for security reasons - the permission was not closed, the application can monitor user actions outside of this application. In any case, your application will not have access to it on non-root phones. If you need screenshots of your application, the usual approach is to get a bitmap from the parent layout in your application using this template . It is allowed.

0
source

Source: https://habr.com/ru/post/1208933/


All Articles