How to Test Secured Android Apps on Google Firebase Robo Test

Last updated October 19, 2023 by Appdome

Learn how to Test Appdome-secured Android Apps using the Google Firebase mobile testing suite. Appdome works with all leading mobile automation testing solutions to help customers achieve comprehensive mobile app security at DevSecOps speed and agility, all within the app’s existing application lifecycle. Automated testing of secured Android and iOS apps helps developers and others rapidly deploy comprehensive mobile app security and fraud prevention with DevSecOps speed and agility.

This knowledge-base article covers the steps needed to test Android mobile apps secured by Appdome using Google’s Firebase mobile test automation suite.

Use Appdome’s Build2Test service to test Android-protected applications on Google Firebase for Automated testing.
Customers with an Appdome SRM license can use Appdome’s Build2Test service to quickly and easily test their Appdome-secured mobile apps using Google Firebase, without the need for different Fusion Sets. With Appdome’s Build2Test service, Appdome’s in-app defense model recognizes the unique signature of these testing services and allows for easy testing without issuing a security alert or forcing the app to exit, even if these services use tools such as Magisk or Frida.

For more details, see How to Use Appdome Mobile App Automation Testing.

General Information about Testing in Android Apps

Google Firebase allows testing apps by using its App Automate features, which can be used for testing Appdome secured mobile apps.

The following table describes which Appdome protection features may be triggered and the reason why:

Appdome feature Reason
Root Prevention Some of Google Firebase devices are rooted
Detect Developer Options Required to interact with the device – is turned on some Firebase’s devices
Block Android Debug Bridge (ADB) Required to interact with the device
Block Magisk Magisk is installed on some of the rooted devices
Prevent Keystroke Injection The vendor uses adb command to enter text Screen
Click Bot Detected Google Firebase uses automation testing with Robo Test
OS Remount OS Remount is used for changing the read/write permissions of the device’s file system.
Block App Overlay Attacks Google Firebase uses a transparent or opaque UI layer above the legitimate UI layer
User Denied Root Request Appdome requests root access through an app permission request sent to the mobile user

Testing .aab Apps

Unlike .apk apps, .aab apps must be re-signed before installation.

To avoid triggering Appdome’s Anti Tampering protection as a result of the re-signing process, you can use either of the following options:

  • Use Appdome’s Build2Test
  • Convert the test .aab app into a Universal .apk app, using the same key that was used for signing the .aab app. Make sure to use the Universal .apk file to test Google Firebase.

Automating App Testing on Android

To initiate Automating App testing of your test app in Google Firebase:

  1. Login to your Firebase console account.
  2. Click the Add Project button from the Firebase console page.
  3. Choose a name for your project and click continue.
    Firebase Add Project
  4. Select Test Lab from the left side menu .
    Firebase Test Lab
  5. Click Browse and upload your signed app build.
    Upload Firebase
  6. After the app upload is complete, the test will start automatically with a compatible device.
  7. Once your app is automatically tested, you will need to wait a couple of minutes for the results.Device Result Summary
  8. Once the test is finished, you can click on the device and view the test cycle.
    firebase Performance

Note: In case of any issues with the app, send the device logs to Appdome Support by following these steps:

      1. Go to Build > Security on Appdome.
      2. Turn on the Diagnostic Logs toggle.
        For more details, see the Knowledge Base article Appdome Diagnostic Logs for Troubleshooting Secured Apps.
        Devoptions Toggle
      3. Go back to Google Firebase and re-run the steps used for uploading the app under your project.
      4. Select Logs and download it with View log file
        Firebase-logs
      5. Assign a name to the downloaded log, that includes the time when the issue occurred.
      6. Send the log via email to support.appdome.com , complete with the issue details, device model and OS version used during testing.

Troubleshooting Tips

Most automation test tools can typically be used in one of two modes: Emulator Mode and Real Device Mode (specific terms may vary according to the testing tool). If you use the automation test tool in “Emulator Mode” instead of “Real Device Mode”, the Appdome-secured application will not run on the device. This is expected because Appdome’s ONEShield protects apps from running on emulators/simulators. Instead, you should run the automation test tool on a real device.

Related Articles:

If you have any questions, please send them our way at support.appdome.com or via the chat window on the Appdome platform.

Thank you!

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.

Appdome

Want a Demo?

Test Secured Mobile Apps

GilWe're here to help
We'll get back to you in 24 hours to schedule your demo.