How to take a screen capture in AOSP
November 17, 2025
How to take a screen capture in AOSP
Screen capture is possible using the
screencap tool in the AOSP environment.Use screencapsh
It supports png, jpeg, and jpg formats, and distinguishes them by the filename's extension.
frameworks/base/cmds/screencap/screencap.cppc
Using the display ID, you can also capture other display screens.
Connected display IDs can be checked with dumpsys.
Use screencap in other displaysh