- Jul 29, 2020
-
-
Chalard Jean authored
This package is using some common utilities from a library that used to live in the network stack. A better home for these utilities is frameworks/libs, so this topic moves the files ther and also changes the package of some utilities. See aosp/1350222 and aosp/1350182 for a detailed description of the specific files that moved. Test: checkbuild Change-Id: I76a9b7790f3997e3e6b3c2f75ba6308286457cde
-
markchien authored
If dhcp server is obsolete, explicitly stop it to shut down its thread. Bug: 161418295 Test: atest CtsTetheringTest Change-Id: Ic5b876bd23711ec8d832879a7baee0495246b218
-
- Jul 16, 2020
-
-
Mark Chien authored
-
markchien authored
Create TetheringPrivilegedTests which have MAINLINE_NETWORK_STACK permission, the test can perform various network-related operations which need CAP_NET_RAW and CAP_NET_ADMIN capabilities. Bug: 145490751 Test: make TetheringPrivilegedTests Change-Id: Ic205e5183e066766377c63336d9c5171d4875c6a
-
- Jul 15, 2020
-
-
Makoto Onuki authored
-
Makoto Onuki authored
Test: build / treehugger Bug: 146727827 Exempt-From-Owner-Approval: Cherry-picking from goog/master to aosp/master Merged-in: Ie1ad6711c490c679ebcfacd97154380a8810ba1c Change-Id: Ie1ad6711c490c679ebcfacd97154380a8810ba1c
-
- Jul 13, 2020
-
-
Treehugger Robot authored
-
markchien authored
Do not run ethernet tethering tests if tethering is not supported because Tethering APIs would fail. Also skip the test if EthernetManager is not avaliable. EthernetManager would be null if there are no FEATURE_ETHERNET and FEATURE_USB_HOST. Bug: 159869957 Test: atest CtsTetheringTest Change-Id: I2b9be6799c6edeefc8cd74897a8704dbe80dd061
-
- Jul 08, 2020
-
-
Treehugger Robot authored
-
- Jul 02, 2020
-
-
Chalard Jean authored
This reverts commit cf86031c. Reason for revert: Breaks the build b/160390899 Merged-In: Icd141a992c46290c74929785e261a1cd57bc001b Change-Id: Ie10e66f61393602f17fbb61bf17230b176bf1f44
-
markchien authored
If the test run adb over network and ethernet is available, it is likely that adb may run over ethernet. Then the test would fail because adb would break when ethernet is switching from client mode to server mode. Bug: 160389275 Test: atest CtsTetheringTest Change-Id: I57d365d33316881c50c3bf7fd1c98926d10842d3
-
Remi NGUYEN VAN authored
The classes should not be picked up from frameworks/base, as they are part of several mainline modules. Also refine comments in DhcpResults following feedback in previous change. (cherry-pick from internal branch skipping wifi classes; no other conflict) Bug: 151052811 Test: m; manual: flashed, wifi and telephony working Test: atest NetworkStackCoverageTests Merged-In: I7074651c6a2a7a6b11bcf13cc4bb03833d7d655f Change-Id: I7074651c6a2a7a6b11bcf13cc4bb03833d7d655f
-
- Jul 01, 2020
-
-
Mark Chien authored
-
- Jun 30, 2020
-
-
markchien authored
LocalLog is in android.util* instead of android.net*. No crash happen becaue the methods used by tethering are @UnsupportedAppUsage. Bug: 160113128 Test: atest TetheringTests (cherry-pick from internal branch with conflicts) Merged-In: I5f070b96f96aaabf7ec8da52a3d3444ed940fb56 Change-Id: I5f070b96f96aaabf7ec8da52a3d3444ed940fb56
-
- Jun 29, 2020
-
-
Paul Hu authored
-
Treehugger Robot authored
-
- Jun 28, 2020
-
-
paulhu authored
TetheringNotificationUpdater create a PendingIntent with Intent#FLAG_ACTIVITY_NEW_TASK flag. But this flag is used for Intent only. Thus, move this flag into Intent. Bug: 158639789 Test: atest TetheringTests Change-Id: I4c3af75c87b797bcde9356a94c835c7422dac1c6
-
- Jun 25, 2020
-
-
Orion Hodson authored
* changes: Update to use nativehelper/JNIPlatformHelp.h Sync with libnativehelper refactoring
-
- Jun 24, 2020
-
-
Orion Hodson authored
jniGetFDFromFileDescriptor() is now a legacy method and moved to a separate header. Bug: 151443957 Bug: 158749603 Test: m Change-Id: Icd06e9a315680c2251dbb9032a904dd6d66aa359 Merged-In: Icd06e9a315680c2251dbb9032a904dd6d66aa359 Exempt-From-Owner-Approval: cherry pick (cherry picked from commit a5c46825)
-
Luke Huang authored
This class might be used by some mainline modules. Bug: 151052811 Test: atest DnsPacketTest Test: atest DnsResolverTest (clean cherry-pick from internal branch) Merged-In: I8841d91456952ded5efbf8ea221289aecc7746ad Change-Id: I8841d91456952ded5efbf8ea221289aecc7746ad
-
Lorenzo Colitti authored
-
- Jun 22, 2020
-
-
Dedy Lansky authored
This change is a combination of following changes: 1) Tethering: add TETHERING_WIGIG type Currently both WIFI and WIGIG use the same tethering type, TETHERING_WIFI. This causes conflicts between the frameworks, when both WIFI and WIGIG SoftAPs are started, one or both will not work. Fix this by using a seperate tethering type for WIGIG. 2) Tethering: remove TETHERING_WIGIG state machine on interface down The wigig state machine relies on a TETHERING_STATE_CHANGED broadcast that is sent when the tethering state machine is first created, during interface up. Currently the tethering state machine is not removed on interface down except for TETHERING_BLUETOOTH, and as a result wigig tethering only works the first time SoftAP is started. In order to fix this, remove the tethering state machine on interface down for TETHERING_WIGIG as well. Bug: 143356416 Test: TetheringCoverageTests Change-Id: Ic4d3aca0ed69234093af7f0206dab3335938c52a
-
Xiao Ma authored
Development branches should use the -unstable version of the NetworkStack AIDLs so that refreezing is not necessary for each modification. The versions will be re-frozen before each release instead. Bug: 157534516 Test: m Merged-In: I74b4a16266bda7b8ac740b3a0193268da260fc2f Change-Id: I1c2fe707d865e6a1953b4ab82194d4b9132258f9
-
- Jun 20, 2020
-
-
markchien authored
There is a protection in Settings that Settings would gray out if tethering requires entitlement check but the entitlement app is invalid. Tethering resource is moved from framework to tethering module, so Settings can not fetch entitlement app name anymore. In this change, tethering module would check whether entitltement app package name is exsited if entitlement check is needed. Tethering would be not supported (Settings tethering option would be hidded) if entitlement app is not installed. After moving the protection into tethering module, TetherUtil#isProvisioningNeeded is no longer needed. Because The only use case is Settings wants to gray out tethering setting when entitltement check is needed but entitlement app is invalid. Bug: 146918263 Test: atest TetheringCoverageTests Change-Id: I9a5ff5dbc1db3f3be7fcd7146862a16b373507e6 Merged-In: I9a5ff5dbc1db3f3be7fcd7146862a16b373507e6
-
markchien authored
Tethering resource configuration is move from framwork to tethering module. Since tethering resource would not be accessible from outside of tethering module, EntitlementManager would tell Settings the entitlement configuration via intent extra when run entitlement check. Bug: 146918263 Test: atest TetheringTests Change-Id: I6f23553bb1da5f0b767f920b32a86fafb9e00b9e Merged-In: I6f23553bb1da5f0b767f920b32a86fafb9e00b9e
-
- Jun 19, 2020
-
-
Mark Chien authored
-
Milim Lee authored
When LAN link is changed for using ethernet interface from Ethernet tethering to Ethernet, there is confiict as Ethernet Tethering is trying to make ethernet link down and Ethernet is trying to make ethernet link up. So, this would make Ethernet only manage ethernet interface link state. Test: manual Bug: 130840861 Change-Id: I1cd40ae764bdeecbb59e3889e9399b7f4b05f9cc
-
Treehugger Robot authored
-
- Jun 18, 2020
-
-
Lorenzo Colitti authored
-
Lorenzo Colitti authored
Bug: 159097215 Test: test-only change Change-Id: I2292c1cbff06a304f70191b88d833b19af2b8b92
-
h.zhang authored
1. When Wi-Fi enabled, ap0 interface is added and IpNeighborMonitor's start() is invoked in IpServer's constructor. 2. There's no stop for IpNeighborMonitor when IpServer stop. 3. During overnight test for Wi-Fi, networkstack is too slow to process request due to memory leak in IpNeighborMonitor and binder buffer is blocked causing exception. Solution: Invoke IpNeighborMonitor.stop() in UnavailableState.enter(). Bug: 159097215 Test: automatic, turn on and off Wi-Fi every 6 seconds overnight Change-Id: I8f60c13706f05306e8f25a15f7861d7ecabbc10e
-
Treehugger Robot authored
-
markchien authored
Bug: 158961959 Test: build/make/tools/checkowners.py packages/NetworkStack/OWNERS Test: ./build/make/tools/checkowners.py \ frameworks/base/packages/Tethering/OWNERS Change-Id: I13b291e5db6a8a8c9f2bfa477acabaea250aa48c
-
- Jun 16, 2020
-
-
Hungming Chen authored
Bug: 150736748 Test: BpfCoordinatorTest Change-Id: I7f8dde3b57ee14eb33edbe2fd383df33cccc231c
-
Hungming Chen authored
Bug: 150736748 Test: BpfCoordinatorTest Change-Id: Iedb936b7592b6be773d1b84a2498bfc5a440a198
-
- Jun 15, 2020
-
-
Hungming Chen authored
Bug: 150736748 Test: BpfCoordinatorTest Change-Id: Id413b7f2f7edb2e5c3e02d5677fe536ed52fbbcb
-
Hungming Chen authored
$ adb shell dumpsys tethering BPF offload: Polling started Stats provider registered Upstream quota: {rmnet_data2=9223372036854775807} Forwarding stats: 12(rmnet_data2) - ForwardedStats(rxb: 1065, rxp: 5, txb: 0, txp: 0) Forwarding rules: [wlan1]: iif(iface) oif(iface) v6addr srcmac dstmac 12(rmnet_data2) 31(wlan1) /2401:e180:8831:77ae:a900:a03b:41fb.. Bug: 150736748 Test: Enable tethering on mobile data and check dumpsys tethering Change-Id: I95ea3050d92f3ba8136a63cd399d3450d183c8dc
-
- Jun 11, 2020
-
-
Hungming Chen authored
The applying data limit is based on the forwarding rule changes. Add the tests for verifying their interactions with netd. Bug: 150736748 Test: BpfCoordinatorTest Change-Id: I5a98c4cd74e2de6005ee05defa761f6af3fd4e75
-
- Jun 09, 2020
-
-
Treehugger Robot authored
-
Treehugger Robot authored
-