Note that there are some explanatory texts on larger screens.

plurals
  1. POAndroid read fb0 always give me blackscreen
    primarykey
    data
    text
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. COWith more modern GPUs, the framebuffer is probably just not trivially accessible (at least not in its entirety) to the main CPU most of the time. Most implementations of ADBD long ago moved to using an external device-unique executable called something like screencap to do the actual work of capturing the framebuffer. You can either use that, try to find documentation/source, or try to reverse engineer the executable. Normally I'd say "good luck" on the source, but for a Nexus device it might actually be available (or they may just provide the binary along with the other closed bits)
      singulars
    2. COThanks for reply. Actually, Android's original codes contains two executables name: screencap and screenshot. And there are two ways in their codes. One is by reading the fb0, another is by calling glPixel() provided by Android native library. The second one is quite slow. Actually I have implemented one with the second method, but the fps is not ideal. So I go back and try to do it in the first way. There is no restriction in my project. I can even hack the kernel to implement it. Stuck by the problem for weeks. Need help.
      singulars
    3. COWhat you need is low-level GPU programming information which, sadly, is generally not released by manufacturers. I don't believe they gave up on the simple fb read to be difficult or even for security; they did it because the hardware no longer easily (or at least portably) exposed the whole thing as a contiguous buffer. I traced through yet another implementation right after this change that sort of read the real framebuffer in chunks interacting with some low level code - more efficient than the pixel by pixel approach, but again unique to specific hardware.
      singulars
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload