1
votes

How can I debug an Android device that is set to installtype: KIOSK using the Android Management API? I have set debuggingFeaturesAllowed to true but adb devices does not even show the device when attached via USB cable. Is there a way to get a console output from such a device?

I'm currently using the following policy on the device:

{
  "name": "enterprises/LC0999999/policies/policy1",
  "version": "13",
  "applications": [
    {
      "packageName": "com.package.name",
      "installType": "KIOSK",
      "defaultPermissionPolicy": "GRANT"
    }
  ],
  "keyguardDisabled": true,
  "debuggingFeaturesAllowed": true
}
2

2 Answers

0
votes

Did you enable USB debugging under developer settings?

0
votes

debuggingFeaturesAllowed only allows the user to enable debugging features. The user still needs to enable USB debugging through developer options.

The only way to enable USB debugging is through the Developer Options in Settings. This would need to be done before applying the installType: "KIOSK" policy to the device.