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

Android Management API设备离线一周自动擦除问题求助

Android Management API 设备自动擦除问题求助

问题背景

我正在使用Android Management API进行设备注册,遇到以下异常情况:

  • 将3台设备关机并放置约一周
  • 一周后开机,设备自动执行恢复出厂设置
  • 查阅相关文档后,确认此现象是由Auto Wipe功能导致

当前使用的Policy配置

{
  "name": "enterprises/xxx/policies/MyPolicy2",
  "version": "35",
  "applications": [
    {
      "packageName": "game.puzzle.blockpuzzle",
      "installType": "FORCE_INSTALLED"
    },
    {
      "packageName": "as.com.frute",
      "installType": "FORCE_INSTALLED"
    },
    {
      "packageName": "com.jetstartgames.chess",
      "installType": "FORCE_INSTALLED"
    },
    {
      "packageName": "com.brainium.sudoku.free",
      "installType": "FORCE_INSTALLED"
    }
  ],
  "maximumTimeToLock": "1800000",
  "defaultPermissionPolicy": "GRANT",
  "persistentPreferredActivities": [...],
  "statusBarDisabled": true,
  "keyguardDisabled": true,
  "debuggingFeaturesAllowed": true,
  "autoTimeRequired": true,
  "appAutoUpdatePolicy": "ALWAYS",
  "advancedSecurityOverrides": {
    "developerSettings": "DEVELOPER_SETTINGS_ALLOWED"
  }
}

已尝试的解决方案

我尝试在Policy中添加policyEnforcementRules配置,但问题仍未解决,尝试的配置如下:

{
  "policyEnforcementRules": [
    {
      "settingName": "passwordPolicies",
      "blockAction": {
        "blockAfterDays": 1
      },
      "wipeAction": {
        "wipeAfterDays": 2
      }
    },
    {
      "settingName": "encryptionPolicy",
      "blockAction": {
        "blockAfterDays": 1
      },
      "wipeAction": {
        "wipeAfterDays": 2
      }
    },
    // 其余配置项与原文一致
    {
      "settingName": "passwordPolicies",
      "blockAction": {
        "blockAfterDays": 1
      },
      "wipeAction": {
        "wipeAfterDays": 2
      }
    }
  ]
}

恳请各位提供可行的解决方案。


内容的提问来源于stack exchange,提问作者Johnathan Awma

相关产品推荐
方舟 Agent Plan

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

最近更新时间:2026.08.22 22:27:19