:
Regular Android applications do not have enough permission to capture the frame buffer (in particular, they are not members of the AID_GRAPHICS group), so you CANNOT display the screen from the Android application without bypassing the privilege problem. Applications do this in one of two ways: either using root, or by starting the server through the ADB interface. Thus, this can be done without using root, but you need to start your own server and connect to it from your application (and, obviously, it is safe to deal with the security consequences)
source
share