Rather then depending on the ANDROID_PARANOID_NETWORKING hack,
which allows processes in group net_raw and net_admin to implicitly be
granted CAP_NET_RAW and CAP_NET_ADMIN, set the capabilities explictly.
This allows wificond to function on mainline based kernels that do
not enable ANDROID_PARANOID_NETWORKING.
Bug: 65022091
Change-Id: Ia44bf3192ab48944e7d423635a06650214d22b27
Signed-off-by: John Stultz <john.stultz@linaro.org>
We don't need wificond to relaod driver/firmware anymore.
Wificond should run as user 'wifi' and group 'wifi'.
It also needs net_admin capability for requesting scans,
and net_raw for creating inet sockets for bringing up/down
interfaces.
Bug: 33239267
Test: compile, wifi works with toggling
Change-Id: Ic2749b5de2c775749008f57c9c0702d84b9cdcc8
This CL includes the following changes:
A dummy main.cpp file with infinite loop
Legal files
Makefile for wificond
Init file that starts up the deamen
BUG=28865186
TEST=compile
TEST=
Add wificond to '/target/product/base.mk'
Modify sepolicy files
Flash image to phone
Adb shell ps -A | grep 'wificond'
Change-Id: Ibb7181e091bf30044994fb0f189d00c239e892bf