我们正在使用Android Management API和QR码配置来开发COSU应用。我们正计划通过Google Play私人发行该应用程序,但现在我正尝试使其通过apk进行手动安装。那应该是这样的:
因此,我陷入了第二步-尝试安装下载的apk会导致此错误:
默认策略似乎还可以:
{
"name": "enterprises/<enterpriseName>/policies/policy_unlocked",
"version": "11",
"applications": [
{
"packageName": "com.axmor.fsinphone",
"installType": "AVAILABLE",
"defaultPermissionPolicy": "GRANT"
}
],
"persistentPreferredActivities": [
{
"receiverActivity": "com.axmor.fsinphone",
"actions": [
"android.intent.action.MAIN"
]
}
],
"systemUpdate": {
"type": "WINDOWED",
"startMinutes": 120,
"endMinutes": 240
},
"debuggingFeaturesAllowed": true
}
]
}
此政策适用于设备:
"policyName": "enterprises/<enterpriseName>/policies/policy_unlocked",
"appliedPolicyName": "enterprises/<enterpriseName>/policies/policy_unlocked",
我尝试过的:
答案 0 :(得分:1)
(在此处从评论中复制解决方案)
要能够从Play商店外部安装应用,您需要在策略中将installUnknownSourcesAllowed
设置为true
。在policy references中有更多详细信息。