{
    "deviceType": {
        "label": "Android",
        "virtualLabel": "Virtual Android",
        "category": "hybrid",
        "analyticsEnabled": "false",
        "groupingEnabled": "true",
        "scopes" : [
            "and:ops:file-transfer",
            "and:devices:enroll",
            "and:ops:wipe",
            "and:ops:ring",
            "and:ops:lock-devices",
            "and:ops:configure-vpn",
            "and:ops:configure-wifi",
            "and:devices:enroll",
            "and:ops:uninstall-app",
            "and:conf:manage",
            "and:ops:location",
            "and:ops:install-app",
            "and:ops:mute",
            "and:ops:change-lock-code",
            "and:ops:blacklist-app",
            "and:ops:password-policy",
            "and:ops:encrypt-storage",
            "and:ops:clear-password",
            "and:ops:enterprise-wipe",
            "and:ops:device-info",
            "and:conf:view",
            "and:ops:upgrade-firmware",
            "and:ops:set-webclip",
            "and:ops:send-notif",
            "and:devices:disenroll",
            "and:ops:update-app",
            "and:ops:unlock-devices",
            "and:ops:control-camera",
            "and:ops:reboot",
            "and:ops:logcat"
        ],
        "features": {
            "DEVICE_RING": {
                "icon": "fw-dial-up",
                "permission": "/device-mgt/devices/owning-device/operations/android/ring"
            },
            "DEVICE_LOCK": {
                "icon": "fw-lock",
                "formParams": [
                    {
                        "type": "text",
                        "id": "lock-message",
                        "optional": true,
                        "label": "Message to be sent to the device"
                    },{
                        "type": "checkbox",
                        "id": "hard-lock",
                        "optional": true,
                        "label": "Hard lock enabled"
                    }
                ],
                "permission": "/device-mgt/devices/owning-device/operations/android/lock"
            },
            "DEVICE_LOCATION": {
                "icon": "fw-map-location",
                "permission": "/device-mgt/devices/owning-device/operations/android/location"
            },
            "CLEAR_PASSWORD": {
                "icon": "fw-clear",
                "permission": "/device-mgt/devices/owning-device/operations/android/clear-password"
            },
            "DEVICE_REBOOT": {
                "icon": "fw-refresh",
                "filter" : {"property" : "ownership", "value" : "COPE", "text": "This feature is only available in COPE/COSU"},
                "permission": "/device-mgt/devices/owning-device/operations/android/reboot"
            },
            "UPGRADE_FIRMWARE": {
                "icon": "fw-hardware",
                "filter" : {"property" : "ownership", "value" : "COPE", "text": "This feature is only available in COPE/COSU"},
                "formParams": [
                    {
                        "type": "checkbox",
                        "id": "immediate",
                        "optional": true,
                        "label": "Instant Upgrade",
                        "helper": "Once enabled, device firmware upgrade process will start instantly."
                    },
                    {
                        "type": "text",
                        "id": "schedule",
                        "optional": false,
                        "label": "Enter the date and time to schedule firmware upgrade."
                    },
                    {
                        "type": "text",
                        "id": "server",
                        "optional": true,
                        "label": "Enter firmware upgrade server URL (ie. http://abc.com or http://abc.com/ota)"
                    }
                ],
                "permission": "/device-mgt/devices/owning-device/operations/android/upgrade"
            },
            "DEVICE_MUTE": {
                "icon": "fw-mute",
                "permission": "/device-mgt/devices/owning-device/operations/android/mute"
            },
            "NOTIFICATION": {
                "icon": "fw-message",
                "formParams": [
                    {
                        "type": "text",
                        "id": "messageTitle",
                        "optional": false,
                        "label": "Title Here..."
                    },
                    {
                        "type": "text",
                        "id": "messageText",
                        "optional": false,
                        "label": "Message Here..."
                    }
                ],
                "permission": "/device-mgt/devices/owning-device/operations/android/send-notification"
            },
            "CHANGE_LOCK_CODE": {
                "icon": "fw-security",
                "formParams": [
                    {
                        "type": "text",
                        "id": "lockCode",
                        "optional": false,
                        "label": "Lock Code"
                    }
                ],
                "permission": "/device-mgt/devices/owning-device/operations/android/change-lock-code"
            },
            "ENTERPRISE_WIPE": {
                "icon": "fw-block",
                "permission": "/device-mgt/devices/owning-device/operations/android/enterprise-wipe"
            },
            "FILE_TRANSFER": {
                "icon": "fw-save",
                "formParams": [
                    {
                        "type": "radio",
                        "name": "directionSelection",
                        "id": "upload",
                        "optional": false,
                        "value": "To device"
                    },
                    {
                        "type": "radio",
                        "name": "directionSelection",
                        "id": "download",
                        "optional": false,
                        "value": "From device"
                    },
                    {
                        "type": "select",
                        "name": "protocolSelection",
                        "id": "protocol",
                        "optional": false,
                        "valueOne": "HTTP",
                        "valueTwo": "FTP",
                        "valueThree": "SFTP",
                        "label": "Protocol"
                    },
                    {
                        "type": "text",
                        "id": "fileURL",
                        "optional": false,
                        "label": "URL to upload file from device"
                    },
                    {
                        "type": "text",
                        "id": "fileLocation",
                        "optional": false,
                        "label": "File location in the device"
                    },
                    {
                        "type": "info",
                        "id": "defaultFileLocation",
                        "optional": false,
                        "value": "File will be saved in Default download directory if not specified."
                    },
                    {
                        "type": "checkbox",
                        "id": "authentication",
                        "optional": true,
                        "label": "Authentication required"
                    },
                    {
                        "type": "text",
                        "id": "userName",
                        "optional": false,
                        "label": "User Name"
                    },
                    {
                        "type": "password",
                        "id": "ftpPassword",
                        "optional": false,
                        "label": "Password (Ignore if not needed)"
                    }
                ],
                "permission": "/device-mgt/devices/owning-device/operations/android/file-transfer"
            },
            "WIPE_DATA": {
                "icon": "fw-delete",
                "formParams": [
                    {
                        "type": "text",
                        "id": "pin",
                        "optional": false,
                        "label": "Enter PIN code* of the device."
                    }
                ],
                "permission": "/device-mgt/devices/owning-device/operations/android/wipe"
            }
        }
    }
}
