Method: applicationDetailService.getApkDetails

取得 Android 應用程式 APK 的詳細資料。

HTTP 要求

POST https://testing.googleapis.com/v1/applicationDetailService/getApkDetails

這個網址使用 gRPC 轉碼語法。

要求主體

要求主體包含 FileReference 的執行個體。

回應主體

包含指定 Android 應用程式 APK 詳細資料的回應。

如果執行成功,回應主體中會有結構如下的資料:

JSON 表示法
{
  "apkDetail": {
    object (ApkDetail)
  }
}
欄位
apkDetail

object (ApkDetail)

Android APK 的詳細資料。

授權範圍

需要下列 OAuth 範圍:

  • https://www.googleapis.com/auth/cloud-platform

詳情請參閱驗證總覽

APK 詳細資料

根據應用程式資訊清單和 APK 封存內容,Android 應用程式詳細資料。

JSON 表示法
{
  "apkManifest": {
    object (ApkManifest)
  }
}
欄位
apkManifest

object (ApkManifest)

APK 資訊清單

Android 應用程式資訊清單。詳情請參閱 http://developer.android.com/guide/topics/manifest/manifest-intro.html

JSON 表示法
{
  "packageName": string,
  "minSdkVersion": integer,
  "maxSdkVersion": integer,
  "targetSdkVersion": integer,
  "applicationLabel": string,
  "intentFilters": [
    {
      object (IntentFilter)
    }
  ],
  "usesPermission": [
    string
  ],
  "versionCode": string,
  "versionName": string,
  "metadata": [
    {
      object (Metadata)
    }
  ],
  "usesFeature": [
    {
      object (UsesFeature)
    }
  ],
  "services": [
    {
      object (Service)
    }
  ]
}
欄位
packageName

string

此應用程式的完整 Java 樣式套件名稱,例如「com.example.foo」。

minSdkVersion

integer

執行應用程式所需的最低 API 級別。

maxSdkVersion

integer

執行應用程式所需的最高 API 級別。

targetSdkVersion

integer

指定執行應用程式所需的 API 級別。

applicationLabel

string

使用者可理解的應用程式名稱。

intentFilters[]

object (IntentFilter)

usesPermission[]

string

宣告供應用程式使用的權限

versionCode

string (int64 format)

應用程式內部使用的版本號碼。

versionName

string

向使用者顯示的版本號碼。

metadata[]

object (Metadata)

資訊清單中定義的中繼資料標記。

usesFeature[]

object (UsesFeature)

資訊清單中定義的功能使用標記。

services[]

object (Service)

代碼包含的服務。

意圖篩選器

標記的 部分:https://developer.android.com/guide/topics/manifest/intent-filter-element.html

JSON 表示法
{
  "actionNames": [
    string
  ],
  "categoryNames": [
    string
  ],
  "mimeType": string
}
欄位
actionNames[]

string

標記的 android:name 值。

categoryNames[]

string

標記的 android:name 值。

mimeType

string

標記的 android:mimeType 值。

中繼資料

資訊清單中的 標記。https://developer.android.com/guide/topics/manifest/meta-data-element.html

JSON 表示法
{
  "name": string,
  "value": string
}
欄位
name

string

android:name 值

value

string

android:value 值

使用功能

資訊清單中的 標記。https://developer.android.com/guide/topics/manifest/uses-feature-element.html

JSON 表示法
{
  "name": string,
  "isRequired": boolean
}
欄位
name

string

android:name 值

isRequired

boolean

android:required 值

服務

標記的 部分:https://developer.android.com/guide/topics/manifest/service-element

JSON 表示法
{
  "name": string,
  "intentFilter": [
    {
      object (IntentFilter)
    }
  ]
}
欄位
name

string

android:name 值

intentFilter[]

object (IntentFilter)

服務中的意圖篩選器