This Knowledge Base article provides step-by-step instructions to sideload secured Android apps (.apk and .aab) using ADB. This will allow developers to test and validate an Appdome-secured app on an Android device.
We hope you find this knowledge base useful and enjoy using Appdome!
How to Sideload Secured Android Apps using ADB – .apk and .aab formats
Appdome is a no-code mobile app security platform designed to add security features in mobile apps.
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 without coding. When a 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.
Using Appdome, there are no development or coding prerequisites to build secured apps. There is no SDK and no library to manually code or implement in the app. The Appdome technology adds the relevant standards, frameworks, stores, and logic to the app automatically, with no manual development work at all.
ADB stands for Android Debug Bridge. It is a tool you can use that allows you to connect an Android device over a USB cable to your computer. With this connection you can uninstall apps, issue shell commands to your device, install apps, and do more with your device. For more information on this view this and look at this resource.
3 Easy Steps to Sideload Secured Android Apps using Android Debug Bridge (ADB)
Follow these instructions to sideload Secured Android Apps using Android Debug Bridge (adb)
- Android SDK. Make sure platform-tools has included adb the package.
- USB driver for the phone
- Build and Sign your mobile .apk or .aab binary application file
To facilitate the usage of adb, you need to allow USB debugging on your device:
- Enable Developer Options on the Android Device. Navigate to Settings > About Phone > scroll to the bottom > tap Build number seven (7) times. You’ll get a short pop-up in the lower area of your display saying that you’re now a developer
- Go back and now access the Developer options menu, check ‘USB debugging’ and click OK on the prompt
- When the device is connected to the computer, you should be prompted to “Allow USB debugging.” If so, check the box to “Always allow from this computer“
- Click OK
How to “Sideload” an Appdome-built Android App from Command Line
Verify your device is detected by enumerating the device tree using “adb devices -l”
On your computer use adb to install the app. Ensure you use the fully qualified path to the app if you are not running adb from the directory where the app is stored.
How to Sideload .aab Files & How to Install .aab Files
- Generate a set of apks from your original app bundle.
bundletool build-apks –bundle=my_app.aab –output=my_app.apks
There are options like generating a universal apk (–mode=universal) or generating a device-specific apk (–connected-device).
2. Deploy APKs to the connected device
bundletool install-apks –apks=my_app.apks
Congratulations! The app is now installed on your Android device.
How Do I Learn More?
To zoom out on this topic, visit Appdome All-in-One Mobile App Security on our website.
Other related articles:
If you have any questions, please send them our way at firstname.lastname@example.org or via the chat window on the Appdome platform.