skip to Main Content

Based in this answer I think that exists a solution at least to system apps (or probably also in rooted devices?). Happens that i not understood the code example linked on answer comments. Someone could explain a step by step to achieve this please (with a code example if possible)? Thanks in advance.

3

Answers


  1. You can not exclude overlay from screen capture. you can hide or make it transparent in case of your overlay. you can not handle third part overlay.

    Login or Signup to reply.
  2. Because of androids way of handling screenshots, excluding the overlay is not possible. But you could, as stated in your link, make the screenshot without your overlay.

    This would result in having unrendered holes in your screenshot, whrere there would be only a black background.

    If you want that, you could easyly just make your overlay black of the second you shoot the screenshot, or even disable the visibility, to get a clean screenshot. To give you a more detailed answer, we would need a more prescise question with examples and ideas how you wrote your code.

    EDIT:

    The problem is, that you could theoretically dig into androids source code and change the screenshot behaviour. But with that you would create a new Android version on your own. As @Hassan Uddin stated. Running that on your phone would require you to dig deep into androids source code and possibly not find any answer there.

    Login or Signup to reply.
  3. It is not possible because it’s like a security feature. If you are willing to spy on someone’s screen, then you are too late it’s 2021… the OS will not let you do so… you have to MOD the OS instead

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search