History log of /system/netd/netutils_wrappers/NetUtilsWrapperTest-1.0.cpp
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
4150d6c1e51c10c9a7ea1fe40efa2e56ea7d0485 26-Jul-2017 Subash Abhinov Kasiviswanathan <subashab@codeaurora.org> netutils_wrapper: Add support for NDK type in ndc commands

This fixes the following error -

~:/system/bin/ndc-wrapper-1.0 network interface add handle8606370526 r_rmnet_data0
NetUtilsWrapper: Unexpected command: /system/bin/ndc network interface add handle8606370526 r_rmnet_data0

Bug: 36682246
Test: netutils_wrapper_test passes
Change-Id: I0b0bb76ed47cdead672dd97ed0c040330ec0b8de
/system/netd/netutils_wrappers/NetUtilsWrapperTest-1.0.cpp
2dd1bc3476aa4ae0dab2b27b3c04cb4c780f89e0 17-Apr-2017 Lorenzo Colitti <lorenzo@google.com> Add a whitelist of commands to the NetUtils wrappers.

Currently, the whitelist only logs unexpected commands. In the
future, it could log these to netd for later recovery/analysis
using dumpsys, or return failure.

Tested by ensuring that "adb logcat -s NetUtilsWrapper" never
logs anything.

Bug: 36463595
Test: boot marlin, swap SIMs, make cell/wifi calls, use mobile data, hotspot, toggle airplane mode
Test: new unit test passes
Change-Id: I4edae4e1b30ceac7f6c8582ff719c8468b8ca0b9
/system/netd/netutils_wrappers/NetUtilsWrapperTest-1.0.cpp