summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
2019-01-31Merge "Prepare CaptivePortalLogin for system_current"Remi NGUYEN VAN
2019-01-31Prepare CaptivePortalLogin for system_currentRemi NGUYEN VAN
Includes small changes to stop using non-SystemApi endpoints. Test: make CaptivePortalLogin Test: flashed, login works, SSL certificate invalid flow works Bug: 112869080 Merged-In: Ic6ce98942959705ea7ef14a7a62d33e3abf7eb72 Change-Id: Ie7ea3bab6aa8629ce4c111adee0c0699d95d4b0e
2019-01-31Fix bluetooth tethering on multi-userRemi NGUYEN VAN
Bluetooth runs as UID 1001002 when on a secondary user. With this change the NetworkStack verifies that the calling UID matches the Bluetooth app regardless of the user. Test: flashed, BT reverse tethering still working as primary user (no option to turn on as secondary user on phones) Bug: 123655057 Change-Id: I23f9c5fa40f3bb676ac65dd8c15106c9d78309a4
2019-01-30Merge "Add SystemApi for captive portal metrics"Remi NGUYEN VAN
2019-01-30Add SystemApi for captive portal metricsRemi NGUYEN VAN
The metrics go through NetworkMonitor in the NetworkStack so that they can be upgraded to new metrics in the future. Test: flashed, captive portal login works, metrics shown in events log Bug: 112869080 Merged-In: I4bccfbd87bae5b2d65e45c7a5918aa45ab5d76e8 Change-Id: Ib5e2126788f8d56a00a56d7efcd33c5f9a37a6de
2019-01-30Remove last NetworkStack usage of hidden APIsRemi NGUYEN VAN
Includes various small changes to stop using hidden APIs Test: make NetworkStack Test: flashed, booted, WiFi and tethering working Bug: 112869080 Change-Id: Id2830795a444f484b377ed6437435a1cd833697a
2019-01-29Merge "Move FdEventsReader to the shared area."Treehugger Robot
2019-01-29Move FdEventsReader to the shared area.Chalard Jean
This is necessary both in the network stack app and the framework. Test: FrameworksNetTests Change-Id: I48af0ab29405501f0581a6c0c9ce6e5d4a32c8b4
2019-01-29Run IpClientLinkObserver on Binder threadRemi NGUYEN VAN
This restores previous behavior, where callbacks would not be called on the IpClient handler thread. Test: atest FrameworksNetTests NetworkStackTests Test: flashed, WiFi works Bug: 123062477 Change-Id: I3015566b0922d76ac7cf70579a1de3e033bf7b4a
2019-01-29Remove IpClient usage of NetworkManagementServiceRemi NGUYEN VAN
Use the new NetworkObserverRegistry instead. Test: atest FrameworksNetTests NetworkStackTests Test: flashed, WiFi working fine Bug: 112869080 Change-Id: If16ecfd6489f86afec67c22b4c3692cd68f4edbf
2019-01-28Merge "Add hidden utils and constants to NetworkStack"Remi NGUYEN VAN
2019-01-28Merge "Move NetworkUtils used by NetworkStack"Remi NGUYEN VAN
2019-01-28Merge "Add NetworkObserverRegistry to NetworkStack"Remi NGUYEN VAN
2019-01-28Add NetworkObserverRegistry to NetworkStackRemi NGUYEN VAN
The NetworkObserverRegistry will replace usage of NetworkManagementService in the app. Test: m, booted, WiFi working Bug: 112869080 Change-Id: Ic7f0114d0c9361dd2408e47bb04a8dd44a908a47
2019-01-28Add hidden utils and constants to NetworkStackRemi NGUYEN VAN
Test: atest FrameworksNetTests NetworkStackTests Bug: 112869080 Change-Id: I1a803f7954ab760294436226d6c1cffb934e98f9
2019-01-28Move NetworkUtils used by NetworkStackRemi NGUYEN VAN
Depending on usage move into NetworkStackUtils or shared Inet4AddressUtils. Test: atest FrameworksNetTests NetworkStackTests Bug: 112869080 Merged-In: Ie20dcee375b377236004a7689890729493aca857 Change-Id: Ib8d000529872796022706a35050fdc2c7141f2ab
2019-01-28Add NetworkStack networking deps to SystemApiRemi NGUYEN VAN
Cherry-pick with conflicts fixed in CaptivePortalLoginActivity imports. Test: atest FrameworksNetTests Bug: 112869080 Merged-In: Id59dc06fb85e4ac88098f56b621ec880610759ce Change-Id: I3c05e8fdd70497426d4fa433295c4fbdad07d9c9
2019-01-23Merge changes I1250730c,I7d00848cRemi NGUYEN VAN
* changes: Create a wrapper for IpClient Move IpClient to NetworkStack
2019-01-23Stop depending on the ConnectivityService default request.Lorenzo Colitti
This avoids the need to expose ConnectivityService implementation details as @SystemApi and the complexities that would be required to make NetworkCapabilities parcelable in stable AIDL. Bug: 112869080 Test: atest FrameworksNetTests NetworkStackTests Change-Id: Icd5d25b9b8e9b7a7d1899b000c92dc4976c3b3d7
2019-01-23Move IpClient to NetworkStackRemi NGUYEN VAN
Test: atest FrameworksNetTests NetworkStackTests Bug: b/112869080 Change-Id: I7d00848c052382cd1b6ce458868bed6a1e9e8ec5
2019-01-22Merge changes Ieef54d84,Ica3e88c2Remi NGUYEN VAN
* changes: Remove NetworkStack dependencies on hidden members Expose ServiceSpecificException as @SystemApi.
2019-01-22Remove NetworkStack dependencies on hidden membersRemi NGUYEN VAN
- DhcpClient only shares its handler with IpClient, and NetworkMonitor has its own handler: remove Protocol.BASE_DHCP, Protocol.BASE_NETWORK_MONITOR - Remove dependency on Network.netid in NetworkMonitor - Remove dependency on Sets.newArraySet in DhcpServingParams - Remove dependency on formatDuration() in DhcpClient - Replace isMetered() with hasCapability() in NetworkMonitor - Use WifiManager.isScanAlwaysAvailable instead of reading setting Test: atest FrameworksNetTests NetworkStackTests Bug: 112869080 Change-Id: Ieef54d847ddc081fb33cbad0b050b06d2e52548e
2019-01-22Add SystemApi utility for raw sockets.Remi NGUYEN VAN
Test: atest FrameworksNetTests NetworkStackTests Bug: 112869080 Change-Id: Id228bf3317b6933314174571697ee256b2f18452
2019-01-22Merge "Add NetworkStack metrics to system API"Remi NGUYEN VAN
2019-01-21Add NetworkStack metrics to system APIRemi NGUYEN VAN
Test: atest FrameworksNetTests NetworkStackTests Bug: 112869080 Change-Id: Ie52c55f248c173e2a5ee603ecd004fbac9004ac1
2019-01-21Allow Bluetooth to bind to NetworkStackRemi NGUYEN VAN
Test: flashed, verified bluetooth tethering gets IP address Bug: b/112869080 Change-Id: Idfbfdf54754fea46eb0099b9b9a3bdc29dd241e0
2019-01-15Add dns signal count into validation log for debuggingChiachang Wang
Dns signal may need to reevaluate the threshold if force reevaluation is triggered and actually a stall. Provide dns signal count while force reevaluation is triggered to help debugging. Bug: 113916551 Test: atest NetworkStackTests Change-Id: Ia762752a41a4bb78ba9844917cbede7aeb2f0fc2
2019-01-11Move NetworkMonitor to NetworkStackRemi NGUYEN VAN
Bug: b/112869080 Test: atest FrameworksNetTests NetworkStackTests Change-Id: I1b8b6a3f4390adbabf92fb9e48da61c47b08b2ec
2019-01-09Move DhcpServer to NetworkStack appRemi NGUYEN VAN
Test: atest FrameworksNetTests && atest NetworkStackTests Bug: b/112869080 Change-Id: I96c40e63e9ceb37b67705bdd4d120307e114715b
2018-12-25Add NetworkStack appRemi NGUYEN VAN
The app is not started yet, and does not contain any service for now. Test: built, booted Bug: b/112869080 Change-Id: Id5a0fd02c891100e85d86b1040e53beec3581950