Project

General

Profile

Actions

Bug #12533

open

Task #12481: 6.4.0 overall testing

User Peripherals Policy is not wokring

Added by Sapna Nethmini about 1 month ago. Updated about 22 hours ago.

Status:
Implementation
Priority:
Critical
Start date:
06/02/2025
Due date:
% Done:

40%

Estimated time:
Device Type:
Android
Component:
Type:
Platform

Description

Prerequisites
Create a new policy
select android policy

Steps
create user peripherals policy and apply it to device

Description
When policy is applied then device sync stopped.
Then reset device and again enrolled as cope device.
Again when policy applied then policy applying shows as "pending" in operation log and device sync stopped.

Here is the error log file
[[https://docs.google.com/document/d/1NLlU0ixSJd8C1thagIdq-XHQtwQfm8yz2E39DLmH3GE/edit?tab=t.0]]


Files

Actions #1

Updated by Rajitha Kumara 28 days ago

  • Priority changed from Critical to High
Actions #2

Updated by Rajitha Kumara 4 days ago

  • Assignee set to Sapna Nethmini
Actions #3

Updated by Rajitha Kumara 4 days ago

  • Assignee deleted (Sapna Nethmini)
Actions #4

Updated by Rajitha Kumara 3 days ago

  • Priority changed from High to Critical
Actions #5

Updated by Rajitha Kumara 3 days ago

  • Type changed from Android to Platform
Actions #6

Updated by Rajitha Kumara 3 days ago

  • Assignee set to Rajitha Kumara
Actions #7

Updated by Rajitha Kumara about 22 hours ago

  • Status changed from New to Implementation
  • % Done changed from 0 to 40

When constructing the policy payload for a USER_PERIPHERALS policy, claim http://wso2.org/claims/devices value is getting inject to the policy payload. The value of this claim should consists hardware addresses of paired devices (according to the logic).

In agent side when a USER_PERIPHERALS_PAYLOAD arrived, the code checks for the injected value.

The issue is there is no such wso2 claim called http://wso2.org/claims/devices is getting recorded.

Required class paths:
https://github.com/entgra-proprietary/android-agent/blob/0ec1d18517a24b3ba3a43fca8267e4eb56c28fa8/client/client/src/main/java/org/wso2/iot/agent/services/operation/OperationManager.java#L2439

https://github.com/entgra-proprietary/emm-proprietary-plugins/blob/bbcdd65501a3085fde6c5b652fcd0d46d420f5f7/components/platform-plugins/android-plugin/io.entgra.proprietary.uem.platform.android.core/src/main/java/io/entgra/proprietary/uem/platform/android/core/util/MobileDeviceManagementUtil.java#L369

Actions

Also available in: Atom PDF