The only way to take a screenshot of an application that does not belong to you is to get the original framebuffer. The frame buffer is usually located in /dev/fb0 or /dev/graphics/fb0 . On some devices (such as LG Optimus One) access to them is possible without root privileges, but on most (for example, Nexus S) of them you must be rooted for this. This is usually prohibited for security reasons, since a malicious application can take screenshots in the background and send them to a remote server, revealing information such as email identifiers and passwords, and in some cases bank account information.
Raghav Sood Jun 30 '12 at 10:27 2012-06-30 10:27
source share