Reduce NPMS threshold for network restrictions to IMP_FG.

Reducing the threshold from BFGS to IMP_FG to make sure
Expedited jobs are not subject to network restrictions
during power and data saver modes.

Bug: 177641226
Test: atest CtsHostsideNetworkTests:HostsideRestrictBackgroundNetworkTests
Change-Id: I936e4c27710a54f61346234b7999f996acca86a1
This commit is contained in:
Sudheer Shanka
2021-01-13 18:44:31 -08:00
parent 40e252620a
commit 200967d138

View File

@@ -160,7 +160,7 @@ public class NetworkPolicyManager {
/** @hide */
public static final int FOREGROUND_THRESHOLD_STATE =
ActivityManager.PROCESS_STATE_BOUND_FOREGROUND_SERVICE;
ActivityManager.PROCESS_STATE_IMPORTANT_FOREGROUND;
/**
* {@link Intent} extra that indicates which {@link NetworkTemplate} rule it