OSDN Git Service

Add Configuration to APF Policy
authorAhmed ElArabawy <arabawy@google.com>
Tue, 13 Jun 2017 01:01:11 +0000 (18:01 -0700)
committerHugo Benichi <hugobenichi@google.com>
Thu, 20 Jul 2017 02:22:46 +0000 (11:22 +0900)
commit8537c58cc8c07e39e016e217a4033a7652d84794
treeeadfddf661eedd46912a6693d6c9471b3e792671
parent2627d4856be08bda40f6b50ba0974f8b875f4995
Add Configuration to APF Policy

in b/37702435 battery was drained due to reception of
Ethernet frames with Eth-type < 0x600 (non ehternet II frames)

This change adds an XML file to drop/allow these frames
Dropping helps tp avoid acquiring a wakelock for the
reception of these packets, while allowing them may be needed
for some protocols
The Change allow the OEM to override the system settings

Bug: 37702435
Test: runtest frameworks-net
Merged-In: Idb6c215896ef230a8136ff4ecefc90ccdc5c1c6d
Merged-In: I16346bb98a0b9259f7c3f51e318c472cfc1bb492

Signed-off-by: Ahmed ElArabawy <arabawy@google.com>
(cherry pick from commit 4dd7c58fc8fcc5a2c50de5e8eff05ddc5c3b0b8b)

Change-Id: Ie466baf1e6395d6c28245e41179232ea8e523845
core/res/res/values/config.xml
core/res/res/values/symbols.xml
services/net/java/android/net/apf/ApfFilter.java
services/net/java/android/net/ip/IpManager.java
tests/net/java/android/net/apf/ApfTest.java