policy_json = {
"screenCaptureDisabled": False,
"advancedSecurityOverrides": {
"developerSettings": "DEVELOPER_SETTINGS_DISABLED"
},
"permissionGrants": [
{"permission": "android.permission.READ_EXTERNAL_STORAGE", "policy": "GRANT"},
{"permission": "android.permission.WRITE_EXTERNAL_STORAGE", "policy": "GRANT"}
],
"kioskCustomization": {"systemNavigation": "NAVIGATION_DISABLED"},
"frpAdminEmails": ["[email protected]", "[email protected]"],
"policyEnforcementRules": [
{
"blockAction": {
"blockAfterDays": 0,
"blockScope": "BLOCK_SCOPE_DEVICE"
},
"wipeAction": {
"wipeAfterDays": 1,
"preserveFrp": True
},
"settingName": "passwordPolicies"
}
],
"factoryResetDisabled": False,
"playStoreMode": "BLACKLIST",
"applications": [
{
"packageName": "com.example.app",
"installType": "FORCE_INSTALLED",
"lockTaskAllowed": True,
"defaultPermissionPolicy": "GRANT",
"managedConfiguration": {
"url": app_url
}
}
]
}
这是我用来安装实时服务器中存在的应用程序的策略。设备正在正确注册,但该应用程序未在设备中显示。请用正确的方式建议我。 先谢谢你了
请注意,Android Management API 的应用程序策略旨在安装来自 Google Play 商店的应用程序。这意味着您的应用程序需要公开或私下发布在 Play 商店上,才能通过 API 安装。您可以在此处阅读有关 Android Management API 的应用程序分发文档的更多信息。
话虽这么说,您的策略结构是正确的,唯一需要的调整就是在成功将应用程序发布到 Play 商店后指定应用程序的包名称。