Get screenshot of current foreground app on Android having root priviliges
问题 I'm developing an application that is installed on the system partition and I would like to know if it's possible to get a screenshot of the current foreground application from a service. Of course, the application being any third party app. I'm not interested in security issues or anything related to that matter. I only want to get a snapshot of the current foreground third party app. Note: I'm aware of the /system/bin/screencap solution but I'm looking for a more elegant alternative that