在信息亭模式下禁用系统导航

Disable system navigation in kiosk mode

我一直在尝试通过 android 管理 API

中的配置文件禁用信息亭模式下的系统导航

这是正在尝试更新的配置文件

{
  "applications": [
    {
      "packageName": "com.example.demo",
      "installType": "FORCE_INSTALLED"
    }
  ],  
  "kioskCustomLauncherEnabled": true,
  "keyguardDisabled": true,
  "statusBarDisabled": true,
  "kioskCustomization": {
     "systemNavigation": enum (NAVIGATION_DISABLED)
  },
  "debuggingFeaturesAllowed": true
}

在应用自助服务终端定制时,这是出现的错误。 当 'kioskCustomization' 未应用

时,配置文件已成功更新
/usr/lib/python3.6/json/decoder.py in raw_decode(self, s, idx)
    355             obj, end = self.scan_once(s, idx)
    356         except StopIteration as err:
--> 357             raise JSONDecodeError("Expecting value", s, err.value) from None
    358         return obj, end

JSONDecodeError: Expecting value: line 13 column 26 (char 273)

我假设用于禁用导航的枚举格式不正确

谢谢

格式应该是这样的:

"systemNavigation": “NAVIGATION_DISABLED”

请注意,ENUM 类型只是让您知道只有一组特定的字符串可以用作策略中的值。

systemNavigation 的有效枚举值: https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#systemnavigation