OSDN Git Service

Add Configuration to APF Policy
authorAhmed ElArabawy <arabawy@google.com>
Tue, 13 Jun 2017 01:01:11 +0000 (18:01 -0700)
committerAhmed ElArabawy <arabawy@google.com>
Tue, 11 Jul 2017 22:16:16 +0000 (22:16 +0000)
commit4dd7c58fc8fcc5a2c50de5e8eff05ddc5c3b0b8b
tree5047b723e68a665a9b598e90d79aaa12ac068756
parent0a2ada5416e01f762909c676b7edacb2a4104eac
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

Change-Id: Idb6c215896ef230a8136ff4ecefc90ccdc5c1c6d
Signed-off-by: Ahmed ElArabawy <arabawy@google.com>
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