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
|