Commit Graph

8 Commits

Author SHA1 Message Date
Roshan Pius
ea33fb9ab8 SupplicantManager: Expose an API to start/stop supplicant daemon
Bug: 149923078
Test: Compiles
Change-Id: Ic7027f0d18abee2ea1c9e48700c706954d54773a
2020-02-20 14:03:17 -08:00
Roshan Pius
ac76d48454 Revert "Mainline wifi stack module"
This reverts commit 6f5338dd8f.

Reason for revert: Wifi services no longer plan to be a separate
APK/process for mainline. Will instead become a jar loaded from Apex.

Bug: 144722612
Test: Device boots up & connects to wifi networks.
Change-Id: I293e36973c4bdbd8bf9db2fcd78e61e6c38b39f4
2019-11-25 20:59:31 -08:00
Roshan Pius
747c968b7e Revert "Revert "Start Wifi only after boot completes""
This reverts commit ee58838a29.

Reason for revert: b/141624112

Change-Id: I637aa68dd57d235ff4f5b723022543c668cd666e
2019-09-26 19:31:51 +00:00
David Su
ee58838a29 Revert "Start Wifi only after boot completes"
This reverts commit cbde8ce73f.

Reason for revert: b/140938772

Change-Id: Ia5b481541895154a0f4da889c62619a4c1c7ecbc
2019-09-24 21:16:23 +00:00
David Su
cbde8ce73f Start Wifi only after boot completes
Listen to boot complete in WifiStackService and
perform expensive initialization tasks afterwards.

WifiStackClient no longer drives the initialization
order of services. Instead it receives a list of
services and only registers them with ServiceManager.

Bug: 141003116
Test: atest FrameworksWifiTests
Test: device boots
Test: atest google/perf/boottime/boottime-test -v
Change-Id: If1f2a409f6dc72469b95d4fb491e408ae81b3a74
2019-09-23 17:39:42 +00:00
David Su
a7430559e2 Fix boot time regression
Spin up a new thread to perform Wifi initialization.

Also reordered initialization so that WifiScanningService
starts before WifiService, since WifiService needs to
call WifiScanner.

Bug: 141003116
Bug: 140938772

Test: atest google/perf/boottime/boottime-test -v
Change-Id: Idcc910f853a2270924bf138b636a3c56158cf1af
2019-09-18 13:35:47 -07:00
Roshan Pius
56f707815c WifiStackClient: Register wifi API services from system_server
a) Expose AIDL methods in IWifiStackConnector to retrieve the various
wifi API service implementation from the WifiStack.apk.
b) WifiStackClient running on system_server will register the various
wifi services & trigger the initialization sequence of the various wifi
services.

Regardless of whether the wifi stack runs in system_server or
network_stack process, this ensures that binder service publish always
happens in system_server. This allows us to maintain a default set of
sepolicy rules regardless of which version of the APK is running
(mainline or non-mainline).

Bug: 135753701
Change-Id: I2c1c40d14d6ec822694d6a3250b81694ab6b2a81
Merged-In: I2c1c40d14d6ec822694d6a3250b81694ab6b2a81
Test: Verified that device boots up & connects to wifi networks with
both WifiStack.apk & InProcessWifiStack.apk.
Test: Will send for regression tests
2019-08-12 09:04:02 -07:00
Roshan Pius
6f5338dd8f Mainline wifi stack module
a) Moved wifi service to a separate APK
b) Use the IWifiStackConnector to load the wifi stack from
SystemServer (similar to network stack).
c) Create a new WifiStackClient interface for system server to interact
with the wifi stack (under new services/wifi folder). Note: This not planned
to be updated via wifi-sdk Apex.
d) Add priv-app permissions for the new wifi stack APK.

Bug: 113174748
Test: Device boots up & connects to wifi networks, hotspot toggle, etc.
Test: Will send for regression tests
Change-Id: I54b3a11ed30668bad5a387370484b2bb0eabca5f
Merged-In: I54b3a11ed30668bad5a387370484b2bb0eabca5f
2019-08-12 07:22:56 -07:00