Anukool123 / android-screenshot-library

Automatically exported from code.google.com/p/android-screenshot-library
Other
0 stars 0 forks source link

FBIOGET_FSCREENINFO Bad file descriptor #12

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Launch native binary from /data/data/app/binary using ProcessBuilder

What is the expected output? What do you see instead?
A screenshot is made. Binary exits.

What version of the product are you using? On what operating system?

Android 2.3.6, Nexus One; not rooted.

Here's a logdump:

I/LogThread(21851): Program initialized
I/LogThread(21851): Starting server...
I/LogThread(21851): - Socket creation
I/LogThread(21851): - Socket binding
I/LogThread(21851): - Socket in listening mode
I/LogThread(21851): Server started.
I/LogThread(21851): Listening on 0.0.0.0:42380
I/LogThread(21851): Signal handling setup
I/LogThread(21851): Starting main loop.
I/LogThread(21851): << select() on sockets... >>
I/LogThread(21851): Incoming client connection
I/LogThread(21851): - Connection accepted
I/LogThread(21851): << select() on sockets... >>
I/ScreenshotService(21851): Error writeImageFile: null
I/LogThread(21851): Client socket signaled for input
I/LogThread(21851): - Retreiving data
I/LogThread(21851): - Command identified as SCREEN
I/LogThread(21851): - Taking screenshot
I/LogThread(21851): An error occured: ioctl FBIOGET_FSCREENINFO Bad file 
descriptor
I/LogThread(21851): Exiting now...

Original issue reported on code.google.com by genn...@codeseekah.com on 21 Mar 2012 at 8:18

GoogleCodeExporter commented 8 years ago
By default native servce access fb0 Framebuffer but In latest mobiles like 
Samsung Galaxy S3 there are multiple frame buffers like fb0, fb1, fb2..... and 
none of them is accessible. I need to understand which one is the primary 
buffer where I can get Frames. Can someone please help me with this ?

Original comment by DIPI24...@gmail.com on 8 Jan 2014 at 6:07

GoogleCodeExporter commented 8 years ago
I am facing the same issue, on an Xperia Neo. If I understood the problem 
correctly, we can take screenshots without root permissions only when the 
framebuffer is readable from everyone.

Original comment by alessand...@gmail.com on 20 May 2014 at 7:18