uploadApplication

suspend fun uploadApplication(application: ApplicationMetadata, shrink: Boolean = true): String

This method is used to upload an application for threat analysis. A report of the application will be generated after the analysis (generally after about 1-2 minutes). The generated report will remain in your environment to be retrieved at any time. A good practice is to use the retrieveApplicationReportStatus method to check whether the application report already exists or not. You can also upload your applications using retrieveApplicationReportStatus in case the reports aren't found.

🛠 The average size of APK reduction after shrink is 20% for small apps and up to around 70% for larger ones.

It must be run in a coroutine context such as Dispatchers.IO.


🔑 Minimum required license level: Advanced.

Return

String — Upload status ID to the server (no action available at this time with this ID), else "400": Missing application binary; "401": Incorrect or missing credentials; "408": Timeout / No device connection ; "500": Internal server error

Parameters

application

ApplicationMetadata — application to upload

shrink

Boolean — by default the uploaded application will be shrunk to optimize performance

Throws