I use JNI way, composer -> captureScreen(...)
to capture final surfaceflinger composed screen, like this sample in source code.
and build success on android 4.1, but there are error happened at runtime: the captureScreen(...)
returns err = 1
, and heap = null
.
I googled this link is the same fail, still no answer.