Skip to content
Snippets Groups Projects
  1. Oct 13, 2023
    • Chalard Jean's avatar
      Add LocalNetworkConfig · fa21cafc
      Chalard Jean authored
      This doesn't do anything at this patchset, but the whole
      pipe from the agent to ConnectivityService is built.
      
      LocalNetworkInfo will be the name of the public information
      sent in callbacks to clients.
      
      Test: CSLocalAgentTests
      Change-Id: I70e133031ef3b0aaf6c3e59ccc2ad895c66d339c
      fa21cafc
    • Chalard Jean's avatar
      Tell netd about local networks · 774dc3cd
      Chalard Jean authored
      This patch does the following :
      • When a network is local but the system doesn't support it,
        throw in registerNetworkAgent.
      • When a network is local, tell netd about it.
      • Add tests for the above, as well as a test for callbacks
        being sent correctly when the caps are set and not when
        they aren't and that the new keep connected flag is
        respected.
      
      Telling netd about the network being local has it add two
      routes that do not exist if the network is not local :
      • One at PRIORITY_LOCAL_NETWORK matching unmarked sockets
        and looking up the table for the interface.
      20000: from all fwmark 0x0/0x10000 lookup xxxx
      • One at PRIORITY_EXPLICIT_NETWORK matching explicitly on
        network 99, so that dnsmasq traffic and any OEM traffic
        marked for network 99 flowing there.
      16000: from all fwmark 0x10063/0x1ffff iif lo lookup xxxx
      IMPLICIT_NETWORK and EXPLICIT_NETWORK rules are installed
      by connectivity service as a matter of course whether the
      network is local or not.
      
      See commit If8729fc6f3716a580c936584b851bc38000b5de5 for
      implementation details of this mechanic.
      
      There is no need to implement anything in particular for the
      new connected reason, as the current implementation will
      already keep it connected. A new test makes sure of that.
      
      Test: FrameworksNetTests
            CtsNetTestCases
            FrameworksNetIntegrationTests
            NetworkStackTests
            NetworkStaticLibTests
            TetheringTests
            MtsTetheringTestLatestSdk
            TetheringIntegrationTests
      Change-Id: I6fb7dfe4c232eea8cac9ac268897ddb36bb794d1
      774dc3cd
  2. Oct 12, 2023
  3. Oct 11, 2023
    • Jihoon Kang's avatar
    • Hansen Kurli's avatar
      Merge changes Ib24809ec,Id9d26435 into main · 270813c4
      Hansen Kurli authored
      * changes:
        Remove the fail case on IPv6 in testLockdownVpn
        Remove LockdownVpnTracker from testLegacyLockdownVpn
      270813c4
    • Chalard Jean's avatar
      Prepare exposing Network{Request,Caps}.forbiddenCapabilities · cf7dbcae
      Chalard Jean authored
      This is useful going forward in particular because there will
      be a default forbidden capability for LOCAL_NETWORKS. This
      means it will be useful to be able to remove it.
      
      It is also generally useful and we have been wanting to open
      this API to the public, so this is a good opportunity to do so.
      
      Test: new tests for NetworkRequest
            NetworkCapabilitiesTest already has tests because it
            already was @SystemApi
      Change-Id: Ibb8d33b799f2d274326fd9cd0b05a2c33a18032a
      cf7dbcae
    • Chalard Jean's avatar
      Add a keep connected for test reason · c517fb12
      Chalard Jean authored
      This has been sorely needed for a while. Instead of filing requests
      for each of your networks in a CSTest, which is fiddly at best and
      sometimes almost impossible (because you can't single out the network),
      you can now add this flag and be done with it.
      
      Test: CSKeepConnectedTest
      Change-Id: Ie168fe1f3a17de035fdf05e3d6580d3262a3448e
      c517fb12
    • Chalard Jean's avatar
      Improvements to CSTest : legacy type, wait for LOST, permissions · 026ca940
      Chalard Jean authored
      • Make sure all Agents have a legacy type. This is necessary to
        avoid crashes in LegacyNetworkTracker
      • Wait for LOST when disconnecting a network
      • Make sure the test package sees its own permissions (importantly
        it can't see background networks otherwise, because it lacks
        CHANGE_NETWORKING_STATE)
      
      Test: in the followup
      Change-Id: I9f699b6372a8fe0d5bcd5310d8f35f72e48a6c61
      026ca940
  4. Oct 10, 2023
  5. Oct 09, 2023
  6. Oct 08, 2023
Loading