Project

General

Profile

Actions

New Feature #10847

closed

Improvement #10736: Improve Data usage policy and actions

Add policy to block metered connection from selected apps

Added by Sandaru Daminda 2 months ago. Updated about 1 month ago.

Status:
Closed
Priority:
Low
Start date:
03/11/2024
Due date:
03/15/2024
% Done:

100%

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

Description

Add a new policy to pre-define apps that need to be blocked from using metered connections.

Actions #1

Updated by Sandaru Daminda 2 months ago

  • Assignee changed from Waruni Sandareka to Kavin Prathaban
Actions #2

Updated by Sandaru Daminda 2 months ago

  • Project changed from Backlog to product-uem 6.1.0 GA
Actions #3

Updated by Sandaru Daminda 2 months ago

  • Device Type set to Android
  • Type set to Android
Actions #4

Updated by Sandaru Daminda 2 months ago

  • Due date set to 03/15/2024
Actions #6

Updated by Kavin Prathaban 2 months ago

  • Parent task set to #10736
Actions #7

Updated by Arshana Atapattu about 2 months ago

  • Status changed from QA to QA Reject

on staging server(6.0.0)
Agent version: 4.05.00.11

Policy is working, upon applying the policy the metered network apps(that were mentioned in policy) didnt have internet.

Issue with this policy is when the policy unpublished and applied to devices, those restricted apps should have internet access again.
But in this case even after the policy was unpublished and applied to the devices those apps still couldn't access to internet.

policy payload for the policy: {"policyName":"App usage policy","description":"App usage policy","active":true,"compliance":"enforce","ownershipType":null,"policyType":"GENERAL","profile":{"profileName":"App usage policy","deviceType":"android","profileFeaturesList":[{"featureCode":"APP_USAGE","deviceType":"android","content":{"isBlockNetUsageEnabled":false,"isNetworkUsageEnabled":false,"isBlockMeteredConnectionEnabled":true,"appsToBlockMeteredConnection":[{"appName":"YoutTube","packageName":"com.google.android.youtube"},{"appName":"chrome","packageName":"com.android.chrome"}]},"correctiveActions":[]}]},"deviceGroups":[{"id":59,"name":"Test Devices"}],"roles":["ANY"],"users":[]}

Actions #9

Updated by Arshana Atapattu about 2 months ago

  • Status changed from QA to QA Reject

This policy did not applied on device side.
Could use apps even after setting the network to metered connection

Actions #11

Updated by Kavin Prathaban about 1 month ago

Fixed issues:
  • Policy applying on the unmetered connections
Improvements:
Add support for following user scenerios:
  1. Changing from metered to unmetered connection when policy applied
  2. Changing from unmetered to metered connection when policy applied

PR:
https://repository.entgra.net/proprietary/android-agent/pulls/73

Actions #12

Updated by Arshana Atapattu about 1 month ago

  • Status changed from QA to QA Accept

Kavin Prathaban wrote in #note-11:

Fixed issues:
  • Policy applying on the unmetered connections
Improvements:
Add support for following user scenerios:
  1. Changing from metered to unmetered connection when policy applied
  2. Changing from unmetered to metered connection when policy applied

These improvements are working.

Note:
On samsung A04 device if the wifi was set as “Detect automatically” the policy still applies.
But on Samsung A02 device wifi was set as “Detect automatically” the policy does not apply on the device.

When it specifically set the connection on a metered connection policy applies on both devices.
When it specifically set the connection on un-metered connection policy does not apply(apps are not disabled) and working correctly.

Actions #13

Updated by Arshana Atapattu about 1 month ago

  • Status changed from QA Accept to Closed

Closing due to QA accept

Actions

Also available in: Atom PDF