How to Protect Dynamic Features
What are Dynamic Features?
As of May 2018, Google uses Android App Bundle (aab), an upload format that includes all types of code and resources. This allows you to create an aab file consisting of multiple apk bundles that are optimized for each device or OS store. When uploaded to Google Play, your app bundles are used for generating and serving optimized apk files for each user’s device configuration. As a result, end-users can download only the code and resources they need to run your app, making it easy to reduce the app size.
If your app offers multiple features, some of which may not be available by default to all users (for example, a professional network with stats on who has viewed your profile, or features that are only relevant to recruiters), you can set these features (modules) as Dynamic Features.
In so doing, you can customize how and when different features of your app are downloaded onto devices running Android 5.0 (API level 21) or higher. TThis allows you to reduce the initial app size by distributing a basic app file that contains only mandatory components. Users can download and install this basic, “thin” app, and later download the non-mandatory modules as needed. Dynamic features can also be used for excluding features that are only supported by certain devices, such as facial recognition.
Why Should Developers Protect Dynamic Feature Modules?
Dynamic feature modules are organized just like regular app modules, namely: they provide their own code, resources, and assets in the directories you would expect. This means that for all the benefits of using dynamic features in terms of customization ability and app size reduction, if these modules are not protected they can be compromised by hackers and other malicious actors.
How does Appdome Protect Dynamic Features?
Dynamic Features support is a separate license provided by Appdome. If you upload a can app with dynamic features, which does not have a Dynamic Features Support license, Appdome will identify that your app has dynamic features by displaying a disabled Dynamic Features icon and in the upload screen, along with a notification that the requested Dynamic Features Support license is missing.
If you proceed with the build process without upgrading your account, the lack of the of the Dynamic Features license will also be indicated in the app list menu on the left.
If your uploaded app does have a license for dynamic features support, the license’s presence is indicated by having the Dynamic Features icon enabled both in the upload screen and on the app list menu.
- How to Protect Unity Code in Android and iOS Unity Apps
- How to Block Lucky Patcher & Patching Tools in Android Apps
- How to Prevent Static App Patching in Android Apps
How Do I Learn More?
If you have any questions, please send them our way at support.appdome.com or via the chat window on the Appdome platform.
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.