How to capture a screenshot of other Android applications from an app without root?

前端 未结 3 866
南旧
南旧 2021-02-06 16:41

I want to capture a screen shot of Android applications that are running on my phone.

I tried using the ScreenShot UX application. This can be done on an unrooted phone

相关标签:
3条回答
  • 2021-02-06 17:12

    The only way to take a screenshot of an app that is not your own is by getting the raw framebuffer. The framebuffer is usually located at /dev/fb0 or /dev/graphics/fb0. On some devices (like an LG Optimus One) this can be accessed without root privileges, but on the majority (like a Nexus S) of them you need to be rooted for this. This is usually not allowed for security reasons, as a malicious app could take screenshots in the background and send them to a remote server, revealing information like email IDs and passwords, and in some cases bank account details.

    0 讨论(0)
  • 2021-02-06 17:35

    Have a look at Android-screenshot-library, enables to programmatically capture screenshots from Android devices without requirement of having root access privileges.

    0 讨论(0)
  • 2021-02-06 17:36

    As of Android 5.0+, you can use the new functionality in the SDK called media projections to do screen capture without root privileges. There is sample code by Google available here.

    0 讨论(0)
提交回复
热议问题