Skip to content

Wso2 iot 3.2.0 server and Agent 3.1.30 - The client side is giving an error after defining the policy #155

@omerstack

Description

@omerstack

Description:
The client side(Android Agent) is giving an error after defining the policy.
I have tried all of the following operations.

  1. adb shell dpm set-active-admin org.wso2.iot.system.service/org.wso2.iot.system.service.ServiceDeviceAdminReceiver
  2. adb shell dpm set-active-admin org.wso2.iot.agent/.services.AgentDeviceAdminReceiver
  3. adb shell dpm set-device-owner org.wso2.iot.system.service/org.wso2.iot.system.service.ServiceDeviceAdminReceiver

Affected Product Version: Wso2 İot Server 3.2.0 & Agent 3.1.30

OS, DB, other environment details and versions: Ubuntu 14.04 TLS

Error :

> 02-15 09:03:04.083 12499-12521/org.wso2.iot.agent E/Volley: [1559] NetworkDispatcher.run: Unhandled exception java.lang.SecurityException: Admin ComponentInfo{org.wso2.iot.agent/org.wso2.iot.agent.services.AgentDeviceAdminReceiver} does not own the profile
>                                                             java.lang.SecurityException: Admin ComponentInfo{org.wso2.iot.agent/org.wso2.iot.agent.services.AgentDeviceAdminReceiver} does not own the profile
>                                                                 at android.os.Parcel.readException(Parcel.java:1620)
>                                                                 at android.os.Parcel.readException(Parcel.java:1573)
>                                                                 at android.app.admin.IDevicePolicyManager$Stub$Proxy.setUserRestriction(IDevicePolicyManager.java:6636)
>                                                                 at android.app.admin.DevicePolicyManager.clearUserRestriction(DevicePolicyManager.java:4756)
>                                                                 at org.wso2.iot.agent.services.operation.OperationManagerDeviceOwner.handleOwnersRestriction(OperationManagerDeviceOwner.java:663)
>                                                                 at org.wso2.iot.agent.services.operation.OperationManagerDeviceOwner.handleDeviceOwnerRestriction(OperationManagerDeviceOwner.java:672)
>                                                                 at org.wso2.iot.agent.services.operation.OperationProcessor.doTask(OperationProcessor.java:216)
>                                                                 at org.wso2.iot.agent.services.operation.OperationProcessor.setPolicyBundle(OperationProcessor.java:279)
>                                                                 at org.wso2.iot.agent.services.operation.OperationProcessor.doTask(OperationProcessor.java:144)
>                                                                 at org.wso2.iot.agent.services.MessageProcessor.performOperation(MessageProcessor.java:147)
>                                                                 at org.wso2.iot.agent.services.MessageProcessor.onReceiveAPIResult(MessageProcessor.java:507)
>                                                                 at org.wso2.iot.agent.proxy.APIController$9.parseNetworkResponse(APIController.java:383)
>                                                                 at com.android.volley.NetworkDispatcher.run(NetworkDispatcher.java:123)
> 02-15 09:03:04.083 12499-12499/org.wso2.iot.agent E/APIController: com.android.volley.VolleyError: java.lang.SecurityException: Admin ComponentInfo{org.wso2.iot.agent/org.wso2.iot.agent.services.AgentDeviceAdminReceiver} does not own the profile

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions