commit | a701cad320a0a2715cac1c31b269ced2ccbc8ac2 | [log] [tgz] |
---|---|---|
author | Felipe Leme <felipeal@google.com> | Thu May 12 09:58:14 2016 -0700 |
committer | Felipe Leme <felipeal@google.com> | Tue May 17 09:31:00 2016 -0700 |
tree | accab842190c64bf1b852126c45dde9644baa6e3 | |
parent | a7b826b08aa1b185b0e46b648e5c2ed7f818ae09 [diff] |
Use batching to set firewall rules. Netd now provides an option to flush all uids for a given firewall chain. Using this option is particularly useful when setting the fw_standby chain, since over time the device will have dozens of idle apps. For example, in a Nexus 5X with 45 idle apps, setFirewallUidRules() at boot was taking 1044ms, and after this change it dropped to just 32ms. BUG: 26675191 Change-Id: I7016ba646b872f80d0b27a56b867c0b6080d2516