Detoxie is a React Native application that integrates with Android's Accessibility Service to detect and track user activity (such as time spent on Reels/Explore). It uses a custom Native Module to bridge communication between the native Android code and the React Native (JS/TS) layer.
detoxie.working.mp4
- Built in Java.
- Detects when the user is on Reels/Explore by parsing the root node and checking for specific keywords (
reel,explore). - Tracks the time spent on these screens.
- A custom React Native bridge to communicate between the native Accessibility Service and React code.
- Registers the accessibility service into the native module.
- Enables React Native (TS) to receive events/data from Android native code.
-
Enable the Accessibility Service:
- Open Settings → Detoxie → Enable (true)
-
The service will start monitoring Reels/Explore usage and tracking time.
- React Native (TS)
- Android Accessibility Service (Java)
- Custom Native Module for bridging
- TURN ON SERVICE →
Settings → Detoxie → true - Accessibility Service detects Reels/Explore activity
- Native Module bridges data between Accessibility Service (native) and React Native (TS)
- React Native layer consumes and processes this data

