summaryrefslogtreecommitdiff
path: root/libs/androidfw/StringPool.cpp
diff options
context:
space:
mode:
author Aaron Huang <huangaaron@google.com> 2022-04-22 17:23:21 +0000
committer Aaron Huang <huangaaron@google.com> 2022-04-25 09:34:12 +0000
commitd8ed268aca4c5fde0b9503a9f179955b9539c782 (patch)
treead76ce10d898c93d0ad1a03511b012d87d900e19 /libs/androidfw/StringPool.cpp
parentf69119a1707a531ac6839f7f82e965b93f706b17 (diff)
Have NetworkPolicyManagerService listen onLinkPropertiesChanged callback
In current design, NPMS listens onThresholdReached() callback to call updateNetworkRulesNL(), however, this callback will not be called if data usage is not updated. Thus, it will cause to no iptables rule for new metered interfaces. Have NPMS listen onLinkProperitesChanged() callback and call updateNetworkRulesNL() if interfaces has changed to add iptables rules for new metered interfaces. Bug: 225971066 Test: HostsideRestrictBackgroundNetworkTests HostsideRestrictBackgroundNetworkTests# \ testDataAndBatterySaverModes_meteredNetwork \ --iterations 100 Change-Id: I49f999efc3fbe0a6a325ec138a3f060c7285e6ad Merged-In: I49f999efc3fbe0a6a325ec138a3f060c7285e6ad (cherry picked from commit 7fe4e5d9206ce50a4571ee4f42df786d75341ce7)
Diffstat (limited to 'libs/androidfw/StringPool.cpp')
0 files changed, 0 insertions, 0 deletions