【发布时间】:2021-08-01 15:41:53
【问题描述】:
我无法将 KioskCustomization 与 installType KIOSK 一起使用,出现以下错误
googleapiclient.errors.HttpError:
https://androidmanagement.googleapis.com/v1/enterprises/myeidhere/policies/policy1?alt=json 时返回“收到无效的 JSON 有效负载。'policy' 中的未知名称“KioskCustomization”:找不到字段。”。详细信息:“[{'@type': 'type.googleapis.com/google.rpc.BadRequest', 'fieldViolations': [{'field': 'policy', 'description': '收到无效的 JSON 有效负载。未知名称“策略”中的“KioskCustomization”:找不到字段。'}]}]">
我的政策 json
{
"safeBootDisabled": true,
"factoryResetDisabled": true,
"bluetoothDisabled": true,
"wifiConfigDisabled": true,
"networkEscapeHatchEnabled": true,
"addUserDisabled": true,
"uninstallAppsDisabled": true,
"mountPhysicalMediaDisabled": true,
"modifyAccountsDisabled": true,
"mobileNetworksConfigDisabled": true,
"vpnConfigDisabled": true,
"networkResetDisabled": true,
"outgoingCallsDisabled": true,
"usbFileTransferDisabled": true,
"setWallpaperDisabled": true,
"deviceOwnerLockScreenInfo": {
"defaultMessage": "some message"
},
"openNetworkConfiguration": {
"NetworkConfigurations": [{
"GUID": "a",
"Name": "somename",
"Type": "WiFi",
"WiFi": {
"SSID": "somessid",
"Security": "WPA-PSK",
"Passphrase": "notsharing",
"AutoConnect": true
}
}]
},
"applications": [{
"defaultPermissionPolicy": "GRANT",
"installType": "FORCE_INSTALLED",
"packageName": "com.leadschool.parentapp"
},
{
"installType": "KIOSK",
"packageName": "com.akshara.launchapp",
"defaultPermissionPolicy": "GRANT"
},
{
"installType": "FORCE_INSTALLED",
"packageName": "letest.ncertbooks"
},
{
"installType": "FORCE_INSTALLED",
"packageName": "karnataka.board.textbooks"
},
{
"installType": "FORCE_INSTALLED",
"packageName": "com.google.android.apps.messaging"
},
{
"installType": "FORCE_INSTALLED",
"packageName": "com.amaze.filemanager"
}],
"KioskCustomization": {
"powerButtonActions": "POWER_BUTTON_AVAILABLE",
"systemNavigation": "HOME_BUTTON_ONLY",
"statusBar": "SYSTEM_INFO_ONLY",
"deviceSettings": "SETTINGS_ACCESS_BLOCKED"
}
}
【问题讨论】: