自定义 Android 应用未在 Android 管理 API 注册期间使用 setupActions 关键字启动

Custom Android app not launched during Android Management API enrollment with the setupActions keyword

根据 Android 管理 API 参考,我们已将 Android 配套应用配置为在注册期间自动启动。

我们在 policy 配置中添加了以下信息:

{
  "name": "enterprises/XXX/policies/85f57716-8b02-48f2-abdf-5aeb6beef585",
  "version": "1",
  "applications": [
    {
      "packageName": "app.XXX.companionapp.test",
      "installType": "REQUIRED_FOR_SETUP",
      "defaultPermissionPolicy": "GRANT",
      "managedConfiguration": {
        "namespace": "XXX",
        "enterpriseId": "enterprises/XXX"
      }
    }
  ],
  "openNetworkConfiguration": {
    "NetworkConfigurations": [
      {
        "Type": "WiFi",
        "GUID": "a0989e28-9c23-43e5-b5d3-9b37d86723a3",
        "WiFi": {
          "AutoConnect": false,
          "Passphrase": "XXX",
          "Security": "WPA-PSK",
          "SSID": "SFR-9548"
        },
        "Name": "XXX"
      }
    ]
  },
  "systemUpdate": {
    "type": "AUTOMATIC"
  },
  "safeBootDisabled": true,
  "statusReportingSettings": {
    "applicationReportsEnabled": true,
    "deviceSettingsEnabled": true,
    "softwareInfoEnabled": true,
    "memoryInfoEnabled": true,
    "networkInfoEnabled": true,
    "displayInfoEnabled": true,
    "powerManagementEventsEnabled": true,
    "hardwareStatusEnabled": true
  },
  "stayOnPluggedModes": [
    "BATTERY_PLUGGED_MODE_UNSPECIFIED"
  ],
  "locationMode": "HIGH_ACCURACY",
  "appAutoUpdatePolicy": "ALWAYS",
  "playStoreMode": "WHITELIST",
  "setupActions": [
    {
      "launchApp": {
        "packageName": "app.XXX.companionapp.test"
      },
      "title": {
        "defaultMessage": "Companion"
      },
      "description": {
        "defaultMessage": "Install Companion App to run custom tasks on your device."
      }
    }
  ],
  "passwordPolicies": [
    {}
  ]
}

它以前运行良好,但最近,我们的配套应用程序在注册期间不再启动,而实际上已安装在设备上。

你知道哪里出了问题吗?

非常感谢。

PS: SetupAction 键不匹配。在 Android 管理 API 指南中,它指的是 setupAction,在 API 文档中它指的是 setupActions

Google 方面存在问题,导致新的 setupActions 功能无法正常工作。此问题现已修复,该功能现在可以正常工作。

这里配置的wifi是为了以后使用或者扫描二维码后第一步使用。我在策略中配置了wifi,但扫描二维码后总是要求连接wifi。