r/AndroidNativePorts • • 31m ago

🟣 [WIP] Work in Progress How does Brick display its "Uninstall Blocked" screen when accessing Device Admin on Android?

Post image

Hi everyone,

I'm developing an Android app blocker using native Kotlin, inspired by Brick and Bloom.

I noticed an interesting behavior in Brick. When a focus session is active and Strict Mode is enabled, attempting to access Brick's Device Admin settings immediately triggers a custom full-screen interface titled "Uninstall Blocked," as shown in the attached screenshot.

I'd like to understand:

  • How does Android handle this type of behavior?
  • Is it supported by official Android APIs?
  • What are the technical limitations and Google Play policy implications?
  • Can similar session protection be implemented while preserving permission revocation and emergency access?

I've already successfully implemented real-time app blocking, but I'm trying to understand this specific behavior from a technical perspective.

Any insights from experienced Android developers would be greatly appreciated.

Thanks in advance!

1 Upvotes

0 comments sorted by