Description:
The client side(Android Agent) is giving an error after defining the policy.
I have tried all of the following operations.
- adb shell dpm set-active-admin org.wso2.iot.system.service/org.wso2.iot.system.service.ServiceDeviceAdminReceiver
- adb shell dpm set-active-admin org.wso2.iot.agent/.services.AgentDeviceAdminReceiver
- 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
Description:
The client side(Android Agent) is giving an error after defining the policy.
I have tried all of the following operations.
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 :