Skip to content

Trigger Analysis Task Guideline

Le Zhou edited this page Jan 25, 2024 · 3 revisions

Background

APK Scanner

Introduce... image

Scan by Gradle Plugin

  1. Gradle plugin version > 1.1.15
  2. Ref: Trigger task by Gradle plugin
  3. Config analysisConfigs

Scan by REST API

  1. Request url:https://{hostname}/api/test/task/run

  2. Request type: POST

  3. Authorization: Bearer Token: Get From portal image

  4. Body:

{
    "fileSetId": "{fileSetId}",
    "pkgName": "{pkgName}",
    "runningType": "APK_SCANNER",
    "testRunnerName": "androidx.test.runner.AndroidJUnitRunner",
    "analysisConfigs": [
        
        {
            "analysisType": "FILE_SIZE",
            "executor":"apkcanary",
            "analysisConfig": {}
        },
        {
            "analysisType": "FILE_SIZE",
            "executor":"apkanalyzer",
            "analysisConfig": {}
        },
        {
            "analysisType": "LEAK_INFO",
            "executor":"apkleaks",
            "analysisConfig": {
                "API_Key": "AKIA[0-9A-Z]{16}"
            }
        }
    ]
}

PS:

  1. How to get 'fileSetId' image
Clone this wiki locally