You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

无法通过Android Management API限制特定应用的android.permission.INTERNET权限

问题:Android Management API阻止应用网络权限的API级别支持疑问

尝试通过Android Management API阻止特定应用的网络访问权限,创建了以下策略:

{
"applications": [
{
  "packageName": "com.google.android.googlequicksearchbox",
  "installType": "FORCE_INSTALLED",
  "permissionGrants": [
    {
      "permission": "android.permission.CHANGE_NETWORK_STATE",
      "policy": "DENY"
    },
    {
      "permission": "android.permission.INTERNET",
      "policy": "DENY"
    }
  ]
}
]}

但策略未生效,设备不合规详情返回:

{
"nonComplianceDetails": [
        {
          "settingName": "applications",
          "nonComplianceReason": "API_LEVEL",
          "packageName": "com.google.android.googlequicksearchbox",
          "fieldPath": "applications[1].permissionGrants"
        },
      ],
}

已在API 30和API 31版本测试,均不支持,不清楚该功能对应的最低API级别,寻求解答。


解答
  • Android Management API中通过permissionGrants拒绝android.permission.INTERNET权限的功能,最低支持Android 13(API级别33)。
  • 在API 33及以上版本中,该策略可以正常生效,限制应用的网络访问权限。
  • 对于API 33以下的版本,无法通过这种方式直接阻止应用的网络访问,可考虑通过其他替代方案,比如使用设备的网络防火墙规则(如果设备支持),或者通过应用配置限制网络相关功能。

内容的提问来源于stack exchange,提问作者Shloime Solomon

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.08.13 21:25:24