commit | 2dd1bc3476aa4ae0dab2b27b3c04cb4c780f89e0 | [log] [tgz] |
---|---|---|
author | Lorenzo Colitti <lorenzo@google.com> | Mon Apr 17 13:51:47 2017 +0900 |
committer | Lorenzo Colitti <lorenzo@google.com> | Mon Apr 17 19:30:42 2017 +0900 |
tree | 23598dba08d46f106ef8af72983265d0ee5c0cc6 | |
parent | 9b9e9770dbac53fec5afab127af38067adab2952 [diff] |
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