I came across an app NoScroll: Boost Attention Span that automatically detects and closes Instagram Reels and YouTube Shorts as soon as they are opened. I want to implement the same functionality in my own app.
- Objective: Detect and close Reels or Shorts as soon as they appear on the screen.
- Motivation: I want to understand how to identify which app or content is currently in the foreground on a mobile device to perform different tasks, such as reading text from a calculator app. I want to understand what’s happening under the hood
Key Points:
- Detect and Block: How can I detect when Reels or Shorts are opened and immediately close them?
- Foreground App Detection: How can I identify which app or content is currently in the foreground on Android?
- Text Content Extraction: How can I read text content from the screen, like from a calculator app, and use it for further processing?
- Non-Root Access: How can this be done without requiring root or jailbreak?
Any guidance on techniques, APIs, or tools to achieve this would be appreciated.
If I can do this using Flutter that would be great