This project is mirrored from https://android.googlesource.com/platform/packages/modules/NetworkStack. Pull mirroring failed .
Repository mirroring has been paused due to too many failed attempts. It can be resumed by a project maintainer.
Last successful update .
  1. 14 May, 2021 2 commits
    • android-build-team Robot's avatar
      Merge cherrypicks of [14554379, 14554380, 14554562, 14554565, 14554567,... · 6f31ce5a
      android-build-team Robot authored
      Merge cherrypicks of [14554379, 14554380, 14554562, 14554565, 14554567, 14554524, 14554569, 14554525, 14554572, 14554574, 14554575, 14554577, 14554622, 14554628, 14554630, 14554631, 14554503, 14554632, 14554536, 14554633] into security-aosp-qt-release
      
      Change-Id: I474547ec4f52c4303434860e5e9c99e9388010d3
      6f31ce5a
    • lucaslin's avatar
      Fix the security issue that preloaded apps can get SSID & BSSID · 9de73314
      lucaslin authored
      NetworkMonitor sends "android.net.conn.NETWORK_CONDITIONS_MEASURED"
      broadcast with Wifi SSID & BSSID. The receiver of this broadcast
      is only required to have "android.permission.ACCESS_NETWORK_CONDITIONS"
      permission but not the "android.permission.ACCESS_FINE_LOCATION".
      It's incorrect because if the apps want to know the Wifi SSID and
      BSSID, they should get the run-time permission with user consent.
      Since this broadcast is not used anymore, delete it and the related
      code.
      
      Bug: 175213041
      Test: atest NetworkStackNextTests NetworkStackTests
      Change-Id: I12050737291c7fa0ebff4e7411b91f4c6f57a413
      Merged-In: I12050737291c7fa0ebff4e7411b91f4c6f57a413
      (cherry picked from commit f5459e4d)
      9de73314
  2. 13 Jun, 2019 1 commit
  3. 12 Jun, 2019 8 commits
  4. 10 Jun, 2019 1 commit
  5. 08 Jun, 2019 1 commit
  6. 07 Jun, 2019 1 commit
    • 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
  7. 02 Jun, 2019 1 commit
  8. 31 May, 2019 1 commit
  9. 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
  10. 29 May, 2019 1 commit
  11. 28 May, 2019 4 commits
  12. 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
  13. 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
  14. 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
  15. 22 May, 2019 4 commits
  16. 20 May, 2019 2 commits
    • 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
    • Remi NGUYEN VAN's avatar
      Add dumpsys network_stack version · 502e4e70
      Remi NGUYEN VAN authored
      This is necessary to allow testing for the network stack version and the
      version it is getting from the system server.
      
      Test: flashed, WiFi working
      Test: dumpsys network_stack version shows data (although version numbers
            being fixed)
      Bug: 133124190
      
      Change-Id: I9ea85c29667d4510225637071990732360841db6
      502e4e70
  17. 17 May, 2019 1 commit
  18. 16 May, 2019 1 commit
    • Remi NGUYEN VAN's avatar
      Do not mark in-process NetworkStack as persistent · 860ea3cc
      Remi NGUYEN VAN authored
      The in-process NetworkStack runs in the system process, so it does not
      need to be marked persistent.
      Doing so causes a spurious com.android.networkstack.inprocess process to
      be running, wasting memory.
      
      Bug: 131046856
      Test: Flashed sailfish, networking works, no extra process started
      Test: Flashed walleye, networking still works
      Test: aapt dump xmltree NetworkStack.apk AndroidManifest.xml unchanged
      Change-Id: I0eb896c825ffe2581950c0bdd2b31ebd7eae0982
      860ea3cc
  19. 15 May, 2019 4 commits