Android Developer-Mode Blocker -- 2
Budget: $250 – $750 USD
My Kotlin-based Android app currently exits immediately when Developer Options or USB Debugging is enabled. I would like to revise this behavior.
Requirements:
• Detect Developer Options and USB Debugging status across current Android versions.
• Do NOT automatically close the app when Developer Options or USB Debugging is enabled.
• Instead, provide a configurable mechanism so that:
* Production builds can still enforce the restriction if desired.
* Debug, internal testing, or development builds can continue to run normally even when USB debugging is enabled.
• The solution should be clean, maintainable, and compatible with Android Studio Electric Eel or newer.
• Prefer a future-proof approach using modern Android APIs with no deprecated methods.
Acceptance Criteria:
1. Debug/Internal builds can launch and operate normally with Developer Options and USB Debugging enabled.
2. Release builds can optionally block access based on configuration.
3. ADB-based workflows and automated testing remain functional.
4. Solution compiles without warnings related to deprecated APIs.
5. Clear instructions are provided for integrating the solution into an existing project and testing it on both real devices and emulators.
Current Context:
I use ADB and Microdroid during development. The application's current Developer Options detection prevents the app from launching whenever USB debugging is enabled. I need a solution that preserves security controls for production while allowing development and debugging workflows to function correctly.
Kindly direct approach is most welcome.
Requirements:
• Detect Developer Options and USB Debugging status across current Android versions.
• Do NOT automatically close the app when Developer Options or USB Debugging is enabled.
• Instead, provide a configurable mechanism so that:
* Production builds can still enforce the restriction if desired.
* Debug, internal testing, or development builds can continue to run normally even when USB debugging is enabled.
• The solution should be clean, maintainable, and compatible with Android Studio Electric Eel or newer.
• Prefer a future-proof approach using modern Android APIs with no deprecated methods.
Acceptance Criteria:
1. Debug/Internal builds can launch and operate normally with Developer Options and USB Debugging enabled.
2. Release builds can optionally block access based on configuration.
3. ADB-based workflows and automated testing remain functional.
4. Solution compiles without warnings related to deprecated APIs.
5. Clear instructions are provided for integrating the solution into an existing project and testing it on both real devices and emulators.
Current Context:
I use ADB and Microdroid during development. The application's current Developer Options detection prevents the app from launching whenever USB debugging is enabled. I need a solution that preserves security controls for production while allowing development and debugging workflows to function correctly.
Kindly direct approach is most welcome.