summaryrefslogtreecommitdiff
path: root/libs/androidfw/StringPool.cpp
diff options
context:
space:
mode:
author Aaron Huang <huangaaron@google.com> 2022-04-15 01:03:14 +0800
committer Aaron Huang <huangaaron@google.com> 2022-04-20 13:39:43 +0800
commit2e45e16ca58ad568f1bce9b1fbb8d07b02a36ee8 (patch)
tree387dfb4eaf237963107dbd26ab0ec8535ad8756c /libs/androidfw/StringPool.cpp
parenta227192105c587706c0260d995a4aa6fb1d92a8b (diff)
Have NetworkPolicyManagerService listen onLinkPropertiesChanged callback
In current design, NPMS listens onThresholdReached() callback to call updateNetworkRulesNL(), however, this callback mwill 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
Diffstat (limited to 'libs/androidfw/StringPool.cpp')
0 files changed, 0 insertions, 0 deletions