How to Protect Floating Windows and Dynamic Content in Android Apps
Learn the 3 Easy Steps to Protect Floating Windows & Dynamic Content in Android. UEM/MDM Enterprise Mobility Made Easy. No Code, No SDK, Continuous Security.
Why Protect Floating Windows and Dynamically Generated Windows in Android apps?
Prevent App Screen Sharing is used to ensure sensitive data is not recorded from the app’s screen. Screenshots, mirroring, and sharing the app’s screen is prevented. The Appdome feature Prevent App Screen Sharing prevents the sharing of screens on both Android and iOS applications. For full and complete protection, Appdome Protect Dynamically Generated Windows secures those Android UI elements that do not expose a developer-facing API, such as Android floating windows.
This Knowledge Base article describes Appdome’s Protect Dynamically Generated Windows feature and explains how to add it to a mobile app without coding. So you can protect floating windows in a few clicks.
We hope you find it useful and enjoy using Appdome!
When a developer sets the FLAG_SECURE for chosen Android UI elements, the underlying infrastructure of Android treats the content of the window as secure, preventing it from appearing in screenshots or from being viewed on non-secure displays. However, due to a design flaw in the Android framework, there are several exceptions. When setting the flag on an Activity or Fragment, the secured protection isn’t inherited by all of its “children” (aka small UI elements), such as various dialogs, floating windows or menus, and popups.
Appdome Protect Dynamically Generated Windows prevents those UI elements’ visibility on screen grab applications ensuring that sensitive data is not recorded from the app’s screen.
Furthermore, on many UI elements, it is fairly difficult to set the FLAG_SECURED, due to lack of a developer-facing API (f.e. Spinner or Toast). On some 3rd party UI frameworks, such as React-Native, the FLAG_SECURED cannot be passed at all without modifying the React-Native framework. Protect Dynamically Generated Windows enables you to protect even those UI elements that do not expose a developer facing API, among many others:
3 Easy Steps to Protect Dynamically Generated Windows in Android apps
Follow these 3 easy steps to protect Floating Windows and step-by-step instructions to add Protect Dynamically Generated Windows in Android apps.
Please follow these steps to add a mobile app to your Appdome account.
Select the Build Tab. Beneath the Build Tab, you will find several service options. Select the Security category.
- Click Mobile Privacy to expend the bundle., Click on the toggle to enable Prevent App Screen Sharing
- Click on the toggle to enable Dynamically Generated Windows Protection
- Click Build My App
Congratulations! You now have a mobile app fully integrated with Prevent App Screen Sharing and Protect Dynamically Generated Windows
Appdome’s no-code mobile app security platform offers mobile developers, DevSec and security professionals a convenient and reliable way to protect Android and iOS apps. When an Appdome user clicks “Build My App,” Appdome leverages a microservice architecture filled with 1000s of security plugins, and an adaptive code generation engine that matches the correct required plugins to the development environment, frameworks, and methods in each app.
Prerequisites for Protecting Dynamic Windows
Here’s what you need to build secured apps with Protect Dynamic Windows
- Appdome account (If you don’t have an Appdome account, create a free Appdome account here)
- Mobile App (.ipa for iOS, or .apk or .aab for Android)
- Signing Credentials (e.g., signing certificates and provisioning profile)
No Coding Dependency
How to Sign & Publish Secured Mobile Apps Built on Appdome
After successfully securing your app using Appdome, there are several available options to complete your project, depending on your app lifecycle or workflow. These include:
- Signing Secure iOS and Android apps
- Customizing, Configuring & Branding Secure Mobile Apps
- Deploying/Publishing Secure mobile apps to Public or Private app stores
Or, see this quick reference Releasing Secured Android & iOS Apps built on Appdome.
How to Learn More
Check out the full menu of features in the Appdome Mobile Security Suite
If you have any questions, please send them our way at email@example.com or via the chat window on the Appdome platform.
Or request a demo at any time.
Thanks for visiting Appdome! Our mission is to secure every app on the planet by making mobile app security easy. We hope we’re living up to the mission with your project. If you don’t already have an account, you can sign up for free.