Skip to content
Snippets Groups Projects
  1. Jan 20, 2022
  2. Jan 19, 2022
  3. Jan 18, 2022
    • Chiachang Wang's avatar
      Add missing DevSdkIgnoreRule rule variable · af7c44cc
      Chiachang Wang authored
      DevSdkIgnoreRule.IgnoreUpTo() will not work as expected without
      the rule defined.
      
      Bug: 184750836
      Test: atest android.net.Ikev2VpnProfileTest#\
            testBuildExcludeLocalRoutesSet works as expected with ignore
            rule
      Change-Id: I03a5b28963cd6feebe4358d57c070d941cd114e5
      af7c44cc
    • Remi NGUYEN VAN's avatar
      Mark connectivity module tests as such · e3473018
      Remi NGUYEN VAN authored
      Add @ConnectivityModuleTest to tests for classes that are mainly used to
      back the connectivity (tethering) module, in particular data classes.
      
      This causes the test not to be run in NetworkStack/CaptivePortalLogin
      MTS tests when the connectivity (tethering) module is not installed.
      Skipping such tests is necessary in that configuration as they may test
      behavior that is new in the latest update, and data classes backing the
      connectivity module would not be affected by
      NetworkStack/CaptivePortalLogin updates anyway.
      
      Bug: 211075897
      Test: atest CtsNetTestCasesLatestSdk
      Change-Id: I6163cd998fc78765b903fdb7acd21e652bc711c9
      e3473018
    • Remi NGUYEN VAN's avatar
      Do not verify field count in tests used in CTS · 8bc36966
      Remi NGUYEN VAN authored
      Tests in tests/common and tests/cts are run as part of CtsNetTestCases.
      Many used assertFieldCountEquals in parceling/unparceling tests to
      ensure that unexpected fields were not added, or that they were not
      missed when testing parceling/unparceling.
      
      However with many of the classes updatable through module updates, the
      field count may change in the future, breaking CTS tests.
      
      Stop checking for the field count, as it would break on module releases,
      and its value is lower than the maintenance cost.
      
      Bug: 205901761
      Test: atest CtsNetTestCases
      Change-Id: I79854741f7e834574d4825bb737ef507785310fe
      8bc36966
    • Lorenzo Colitti's avatar
      Add an OWNERS_core_networking_xts for CTS/GTS/... and use it. · 7aac4ad2
      Lorenzo Colitti authored
      This uses a similar scheme to our existing OWNERS files, which
      all come from a common location in the master branch.
      
      Test: repo upload
      Change-Id: I672070302789ac38a738ab6626f47ec9cbc75dd9
      7aac4ad2
  4. Jan 17, 2022
  5. Jan 14, 2022
    • Hungming Chen's avatar
      Set the permission to file clatd and directory for-system · f9d40ae7
      Hungming Chen authored
      Set clatd privs to clat:clat:-r-sr-sr-x and set its parent
      directory privs to root:system:dr-xr-x---. Makes sure that
      only root and system group members can execute the binary.
      
      Test: flash and check the file permission
      
      $ adb shell ls -lZ /apex/com.android.tethering/bin
      dr-xr-x--- 2 root system u:object_r:system_file:s0  4096 1970-01-01 08:00 for-system
      
      $ adb shell ls -lZ /apex/com.android.tethering/bin/for-system
      -r-sr-sr-x 1 clat clat u:object_r:clatd_exec:s0  24352 1970-01-01 08:00 clatd
      
      Bug: 212345928
      Test: test clat
      1. Connect to ipv6-only wifi.
      2. Make IPv4 traffic.
         $ ping 8.8.8.8
      
      Change-Id: I9537d47b135e6e0324fb40ece2b9f7befb159244
      f9d40ae7
    • Mark Chien's avatar
    • Mark Chien's avatar
      Merge "Add replaceFirewallChain API" · 094de6b7
      Mark Chien authored
      094de6b7
    • Mark Chien's avatar
      Merge "Add setFirewallChainEnabled API" · 9bba8e8c
      Mark Chien authored
      9bba8e8c
    • Mark Chien's avatar
      Merge "Add updateFirewallRule API" · c65ecacd
      Mark Chien authored
      c65ecacd
    • Maciej Żenczykowski's avatar
      Merge "Add clatd binary to apex" · bb766e83
      Maciej Żenczykowski authored
      bb766e83
    • Maciej Żenczykowski's avatar
    • markchien's avatar
      Add swapActiveStatsMap API for NetworkStatsFactory · 9c806113
      markchien authored
      This CL should be reverted before T sdk finalized.
      This API is temporary added for the NetworkStatsFactory which is platform
      code but will be moved into connectivity (tethering) mainline module.
      
      Bug: 209935649
      Test: atest CtsHostsideNetworkTests
      Change-Id: I5894450f3089b2ea105722a18ddf8f1eed1c28a0
      9c806113
    • markchien's avatar
      Add replaceFirewallChain API · 00a0bed5
      markchien authored
      To deprecated firewallReplaceUidChain netd binder and move the
      functionality to tethering (connectivity) mainline module, expose
      replaceFirewallChain to support the caller outside the module.
      Currently the API are still call to netd. Will replace with the
      implementation inside tethering (connectivity) module.
      
      Bug: 209935649
      Test: atest CtsHostsideNetworkTests
      Change-Id: If7a87548b0a3acda00a1455da4e4ff24a630ddc7
      00a0bed5
    • markchien's avatar
      Add setFirewallChainEnabled API · 98a6f95d
      markchien authored
      To deprecated firewallEnableChildChain netd binder and move the
      functionality to tethering (connectivity) mainline module, expose
      setFirewallChainEnabled to support the caller outside the module.
      Currently the API are still call to netd. Will replace with the
      implementation inside tethering (connectivity) module.
      
      Bug: 209935649
      Test: atest CtsHostsideNetworkTests
      Change-Id: I9b64c9d12260521489a87fbeae5afbee2a8ea8f6
      98a6f95d
    • markchien's avatar
      Add updateFirewallRule API · e1561fa8
      markchien authored
      To deprecated firewallSetUidRule netd binder and move the functionality to
      tethering (connectivity) mainline module, expose updateFirewallRule to
      support the caller outside the module. Currently the API are still call
      to netd. Will replace with the implementation inside tethering
      (connectivity) module.
      
      Bug: 209935649
      Test: atest CtsHostsideNetworkTests
      Change-Id: I0b53c999e06c2378afec0eb491815ec398c91b0b
      e1561fa8
    • Lorenzo Colitti's avatar
      Don't pass non-const refs. · 32999378
      Lorenzo Colitti authored
      Non-const refs are not allowed by style guide.
      This was just an oversight.
      
      Test: m bpf_existence_test
      Change-Id: I8947118618dd5beef7f5643475d348f709799922
      32999378
  6. Jan 13, 2022
  7. Jan 12, 2022
Loading