This project is mirrored from https://android.googlesource.com/platform/packages/modules/NetworkStack. Pull mirroring updated .
  1. 05 Feb, 2021 1 commit
  2. 21 Sep, 2020 1 commit
  3. 16 Sep, 2020 1 commit
  4. 28 Oct, 2019 1 commit
    • Akshay's avatar
      DO NOT MERGE Set module versions to 299900000 · 268b5fa0
      Akshay authored
      Dev branch modules need to have a super high version code so that they can be sideloaded on any device running any version of modules.
      
      Bug:143377911
      
      Change-Id: I57dd440834a0441e8134ebf2735c81fd06de5aa6
      268b5fa0
  5. 03 Oct, 2019 3 commits
  6. 01 Oct, 2019 1 commit
  7. 14 Aug, 2019 2 commits
  8. 13 Aug, 2019 1 commit
    • Remi NGUYEN VAN's avatar
      Fix avoidBadWifi behavior with IPv6 provisioning · cc246e6c
      Remi NGUYEN VAN authored
      IPv6 provisioning loss should be ignored when avoidBadWifi is false, not
      true.
      
      Bug: 139023420
      Test: with avoidBadWifi=false, when connected to a mobile hotspot that
            loses connectivity, WiFi does not disconnect anymore
      Merged-In: I18dc13083a7af4ed8bf95fbbf7dce0ecb9abaa14
      (cherry picked from commit 01d68c56)
      
      Change-Id: I5bea86e0b5733bff7428f0b40c8a6a1907a1e825
      cc246e6c
  9. 30 Jul, 2019 2 commits
  10. 29 Jul, 2019 1 commit
    • Xiao Ma's avatar
      Reference the dhcp init reboot experiment flag. · 492713b9
      Xiao Ma authored
      Bug: 122710829
      Test: FrameworksNetTests NetworkStackTests
      Test: manual test
            adb shell device_config put NAMESPACE KEY VALUE
      
      Merged-In: I044c903656ac4f343d6654820dfa1bb74a58135e
      Merged-In: Ida5cffae19baaa5d71a0335bc7230809f4fcc486
      Change-Id: I162a3da1f7412493c4df09f8e9e193a693c5aa07
      492713b9
  11. 12 Jul, 2019 1 commit
  12. 17 Jun, 2019 1 commit
    • Xiao Ma's avatar
      Add DHCP INIT-REBOOT state in DHCP client. · 18ce8bce
      Xiao Ma authored
      Bug: 122710829
      Test: atest FrameworksNetTests NetworkStackTests
      Merged-In: Ibd915ecf2bfd6a8ce7319efeb8e2812f24881dcd
      (cherry picked from commit 21f5741a)
      
      Change-Id: I077d86949e235bbcb8c5dd849476e8cbb7216410
      18ce8bce
  13. 12 Jun, 2019 2 commits
    • Remi NGUYEN VAN's avatar
      Support beta 4 system images. · 69cb1f5e
      Remi NGUYEN VAN authored
      am: 93b2fa30
      
      Change-Id: Iac6c84be477cbce25f605be5acbfe47d03650e5c
      69cb1f5e
    • Remi NGUYEN VAN's avatar
      Support beta 4 system images. · 93b2fa30
      Remi NGUYEN VAN authored
      Beta 4 system images only understand the NETWORK_TEST_RESULT_*
      constants and not the new NETWORK_VALIDATION_RESULT_* constants.
      When talking to such a build, use the older constants.
      
      Bug: 134923144
      Test: atest NetorkStackTests
      Test: beta 4 OS build validates
      (patched from Icf28c5dcd622c89c411a87b63d2ce4aa7488d082 using:
      git -C ~/other-branch-repo/frameworks/base/ show -p | patch -p3)
      
      Merged-In: Ic97d42c89ac011fa668f0edb23fbb6a13a486e57
      (cherry picked from commit eb9e6277)
      
      Change-Id: I9e84b9c69e857af7d79a620da0c1ded74f7c2c63
      93b2fa30
  14. 11 Jun, 2019 1 commit
  15. 10 Jun, 2019 1 commit
  16. 07 Jun, 2019 2 commits
    • Lorenzo Colitti's avatar
      Don't report probe status to ConnectivityService. · 9a868738
      Lorenzo Colitti authored
      am: fc5161f2
      
      Change-Id: I85ebd2ae2d1fa263e1e7926e3aa6a3a9c3c59afa
      9a868738
    • Lorenzo Colitti's avatar
      Don't report probe status to ConnectivityService. · fc5161f2
      Lorenzo Colitti authored
      Late in the Q release cycle, NetworkMonitor started sending
      probe results as well as evaluation results to
      ConnectivityService. This resulted in passing information to
      NetworkAgents at the wrong time. For example, as soon as it
      connected to a network, it would report INVALID_NETWORK to
      the NetworkAgents, causing Wi-Fi to disable autojoin and
      telephony to detect a data stall and initiate recovery.
      
      Unfortunately there is not enough information to correctly
      suppress these messages in ConnectivityService. So, just
      stop sending them. ConnectivityService doesn't use them
      anyway.
      
      Bug: 134446021
      Test: atest NetworkStackTests
      Change-Id: I9e3d9b9057fd017e202d056246ca2711f73d28c7
      fc5161f2
  17. 31 May, 2019 1 commit
  18. 30 May, 2019 2 commits
    • TreeHugger Robot's avatar
    • Remi NGUYEN VAN's avatar
      Check system_server PID in NetworkStack calls · 39067047
      Remi NGUYEN VAN authored
      Add a check that callers with UID 1000 always have the same PID. This is
      a proxy for checking that no system is designed to bind to the network
      stack unless it is the system_server, as otherwise either the
      system_server would start crashing, or that system would not have access
      to binder calls.
      
      Also remove access from PHONE_UID as it is not being used.
      
      Test: Flashed, WiFi working, Bluetooth reverse tethering shows no
            permission issue.
      Bug: 133209255
      Change-Id: Ib848aaaedfd599c1d4437378846c7dda74352019
      39067047
  19. 29 May, 2019 1 commit
  20. 28 May, 2019 4 commits
  21. 27 May, 2019 2 commits
    • Paul Hu's avatar
      Fix null IpmemoryService object in AGO project. · ac95b9f1
      Paul Hu authored
      WTF will happen in RegularMaintenanceJobService due to
      scheduling job and starting maintenance job are in different
      processes. In AGO project, scheduling job use inprocess process.
      But starting maintenance job use networkstack process. So
      IpmemoryService objcet will be null when trying to do the
      maintenance job.
      
      Bug: 132763800
      Test: Verify on both AGO and non-AGO projects that WFT will not
            happen.
      Test: atest NetworkStackTests
      
      Change-Id: I545fc8384ef7b3d97edf2270fa033d8afac2669c
      Merged-In: If7f61a8b5ddc8cdd25928cd35afa7fece2c8dde5
      Merged-In: I8043c405b3c78d8dd1e71ec584d7a2fdaa2fd989
      Merged-In: I545fc8384ef7b3d97edf2270fa033d8afac2669c
      (cherry picked from commit 20abd7d4e6c63b225de2e87595e5f2758353f894)
      ac95b9f1
    • Chiachang Wang's avatar
      Clean up for multiple validation result update · 37fe18f9
      Chiachang Wang authored
      This is a follow-up commit for aosp/955431 to update commets
      and minor updates in unit test.
      
      Test: atest com.android.server.ConnectivityServiceTest#testCaptivePortalOnPartialConnectivity
      Bug: 130683832
      Change-Id: I581eae8daeddd2c4c186e7b40e27fef2aaa7ab43
      Merged-In: I9087ef791b3fee5399ba8e83ef9d8a544845a4dd
      Merged-In: I4424663292c5ad29eb7a888fa6975835721a5d2e
      (cherry picked from commit 3d3a9fff7b7fa0df4ee627cb082668e642d6f754)
      37fe18f9
  22. 24 May, 2019 1 commit
    • Chiachang Wang's avatar
      Update multiple validation result to ConnectivityService · ae343fc3
      Chiachang Wang authored
      Once a network is determined to have partial connectivity, it
      cannot go back to full connectivity without a disconnect. This
      is because NetworkMonitor can only communicate either
      PARTIAL_CONNECTIVITY or VALID, but not both. Thus, multiple
      validation results allow ConnectivityService to know the real
      network status.
      
      Bug: 129662877
      Bug: 130683832
      Test: atest FrameworksNetTests
      Test: atest NetworkStackTests
      Test: atest --generate-new-metrics 50
      NetworkStackTests:com.android.server.connectivity.NetworkMonitorTest
      Test: Simulate partial connectvitiy
      Change-Id: I406c9368617c03a2dd3ab15fb1f6dbf539d7c714
      Merged-In: I243db4c406cca826e803c8035268bc0c6e6e01e2
      (cherry picked from commit 4532abd4d2af9ad118873a63cafc6028ed87c52e)
      ae343fc3
  23. 23 May, 2019 2 commits
    • Lorenzo Colitti's avatar
      Properly use versioned interfaces. · fabe2f9c
      Lorenzo Colitti authored
      Our stable AIDL interfaces need to use versioned build targets,
      otherwise getVersion will always return 0, which makes it
      impossible to support different components at different versions.
      
      List generated with:
      find . -name Android.bp -exec egrep \
          -H "(netd|dnsresolver|ipmemorystore|networkstack).aidl.interface(s?)-(java|cpp)" {} \; \
          | grep -v oemnetd | grep -v tests/
      
      Test: m
      Bug: 133124190
      (cherry-pick from aosp/968011)
      Merged-In: Idf49e840263ef32b9ee4fafa6718d4f893ea7c87
      (cherry picked from commit 433f7c4178aaadac7d6a5f6727f39ef83342d436)
      
      Change-Id: I77e2291b52fda24ee01e1b22ddafe4fe7368959e
      fabe2f9c
    • Lorenzo Colitti's avatar
      Move the NetworkStack tests to unit/ to add an integration test. · 57d6a45d
      Lorenzo Colitti authored
      Test: m
      Bug: 133389827
      (cherry pick from aosp/960932)
      Merged-In: I7aeab47b31429b1f9a42f9b170aeba238c133950
      Change-Id: Ie455b7a6a950cb5e34841efc3738c11fe1fd12f0
      57d6a45d
  24. 22 May, 2019 4 commits
  25. 20 May, 2019 1 commit
    • Lorenzo Colitti's avatar
      Add a factoryReset method to IIpMemoryStore, and freeze api. · 298ad92a
      Lorenzo Colitti authored
      Currently unimplemented. Implementation will be in a future CL.
      
      Test: m
      Bug: 128499160
      Change-Id: Ia11ecd33f528d01667b1baeb8671b7213a31eef5
      Merged-In: Ia11ecd33f528d01667b1baeb8671b7213a31eef5
      (cherry picked from commit 10ddc681cf8ffc2c189ff975ad5885b32e670cb9)
      298ad92a