Skip to content
Snippets Groups Projects
  1. Feb 26, 2021
    • Remi NGUYEN VAN's avatar
      Add dependency on system API in connectivity · 74b27442
      Remi NGUYEN VAN authored
      The system API are moved to the connectivity module: add dependency on
      the stubs from framework-tethering.
      
      This only allows tethering to depend on system API defined by the
      connectivity classes, not on any private code, even if they are
      eventually bundled in the same APEX.
      
      Bug: 171540887
      Test: m
      
      Merged-In: Iebfb3e01c5d2480e84edcfc76cf489520bd60237
      Merged-In: Ic2491f04880ff66abc3b2d3aaee6168e18f6d68a
      (clean cherry-pick from internal branch)
      
      Change-Id: Iebfb3e01c5d2480e84edcfc76cf489520bd60237
      74b27442
  2. Feb 25, 2021
  3. Feb 24, 2021
    • Chalard Jean's avatar
      Release test network in a test · 8a8bf743
      Chalard Jean authored
      This causes failures in subsequent tests that expect
      only one test network to be up.
      
      Bug: 181033598
      Test: this
      Change-Id: I74444f4aff7750a5bbd2564e5e22714d73c72d8b
      8a8bf743
    • Daulet Zhanguzin's avatar
      Use unbundled version of BouncyCastle in Ike cts tests · bb540131
      Daulet Zhanguzin authored
      Since BouncyCastle APIs provided by platform vary, use unbundled
      BouncyCastle
      
      Fixes: 180870458
      Test: atest CtsNetTestCases
      Change-Id: I78c053150bb9cf86173f869dd6e13e9a6917ffa7
      bb540131
    • Lorenzo Colitti's avatar
      Add a BpfMap#clear method. · ffb0ccd0
      Lorenzo Colitti authored
      A caller can mostly already do this via forEach(), but having a
      specific method is faster (since the code does not need to read
      the value) and easier to use.
      
      The semantics of this method (e.g., ignore ENOENT while deleting
      a key, but throw on any other error) match those of the native
      BpfMap::clear method.
      
      Test: new unit tests
      Change-Id: I5cd32efd0f87c823cd2d0a2fa3a95a83093fb6f9
      ffb0ccd0
    • Lorenzo Colitti's avatar
      Make the CTS tests explicitly depend on modules-utils-build. · 2be434ab
      Lorenzo Colitti authored
      In AOSP master and downstream branches, this likely works via a
      transitive dependency. In mainline-prod, this doesn't work. Add
      the dependency explicitly, since it makes things build everywhere
      and in general it's also good practice to "include what you use".
      
      Bug: 167645754
      Test: m CtsNetTestCasesLatestSdk in mainline-prod has fewer errors
      Change-Id: Ie575372415a806deee9996aab7f920d2c15bff80
      2be434ab
    • Lorenzo Colitti's avatar
      Move definitions used by tethering bpf code into the module. · 56be03eb
      Lorenzo Colitti authored
      Bug: 167645754
      Test: m com.android.tethering
      Change-Id: Ia4fb1201e5f4e0c35baba7865b26b4cec0945a64
      56be03eb
  4. Feb 22, 2021
    • Treehugger Robot's avatar
      afa18f02
    • Treehugger Robot's avatar
    • Treehugger Robot's avatar
      2108eada
    • junyulai's avatar
      Add MUTABLE flag when creating PendingIntent · 62f5117b
      junyulai authored
      By the new feature introduced in next Android release.
      Any PendingIntent needs to be specified about the mutability.
      
      While ConnectivityService would put extra info such as
      network or request id before broadcasting the inner intent.
      The MUTABLE flag needs to be added accordingly.
      
      Test: this
      Fix: 178121691
      Change-Id: I87d0efaf51a91556ef9f8e18db38803e4861cfd7
      62f5117b
    • junyulai's avatar
      Fix CTS test failed on R device · e26bbf80
      junyulai authored
      The test failed since the API is not available on R device.
      Add conditions to ignore it.
      
      Test: atest CtsNetTestCasesLatestSdk:android.net.cts.ConnectivityManagerTest
      Bug: None
      Change-Id: I3cbc623a84f7313e1155fe83a44ebef042a04076
      e26bbf80
    • junyulai's avatar
      Fix flaky test by extending timeout · 607985b5
      junyulai authored
      The asserted capabilities change callback event took 170ms
      in average to fire on cuttlefish, which causes 35% of
      flakiness since the event might delay up to 500ms in practice.
      Extend to 30s timeout value which is the standard value
      of waiting for network callback events in CTS.
      
      This change also ignore the test up to Android R since the API
      is not available for R devices or below.
      
      Test: atest CtsNetTestCases:android.net.cts.ConnectivityManagerTest#testRequestBackgroundNetwork \
            --rerun-until-failure 500
      Test: atest CtsNetTestCasesLatestSdk:android.net.cts.ConnectivityManagerTest
            on R device
      Bug: 179694867
      
      Change-Id: Ic5e11d4a4f326150848bc48038fa01cde39f7661
      607985b5
  5. Feb 19, 2021
  6. Feb 18, 2021
  7. Feb 17, 2021
  8. Feb 16, 2021
    • Mathew Inwood's avatar
      Set updateable:false explicitly in apex rules. · adfc9339
      Mathew Inwood authored
      Currently, this is the default so this is a no-op,
      But the default is changing to true.
      
      Bug: 180375550
      Test: Treehugger
      Change-Id: Ib841e474ab2b2ff2b54c160bb06c3bbbeea92675
      adfc9339
    • Bob Badour's avatar
      [LSC] Add LOCAL_LICENSE_KINDS to packages/modules/Connectivity · 97e6be27
      Bob Badour authored
      Added SPDX-license-identifier-Apache-2.0 to:
        Tethering/Android.bp
        Tethering/apex/Android.bp
        Tethering/bpf_progs/Android.bp
        Tethering/common/TetheringLib/Android.bp
        Tethering/tests/Android.bp
        Tethering/tests/integration/Android.bp
        Tethering/tests/mts/Android.bp
        Tethering/tests/privileged/Android.bp
        Tethering/tests/unit/Android.bp
        tests/cts/hostside/Android.bp
        tests/cts/hostside/aidl/Android.bp
        tests/cts/hostside/app/Android.bp
        tests/cts/hostside/app2/Android.bp
        tests/cts/hostside/certs/Android.bp
        tests/cts/net/Android.bp
        tests/cts/net/api23Test/Android.bp
        tests/cts/net/appForApi23/Android.bp
        tests/cts/net/jni/Android.bp
        tests/cts/net/native/dns/Android.bp
        tests/cts/net/native/qtaguid/Android.bp
        tests/cts/net/util/Android.bp
        tests/cts/tethering/Android.bp
      
      Bug: 68860345
      Bug: 151177513
      Bug: 151953481
      
      Test: m all
      
      Exempt-From-Owner-Approval: janitorial work
      Change-Id: I8534c580f0e2a17be146300b67b3604817b64507
      97e6be27
    • Jeongik Cha's avatar
      Use networkstack_client instead of aidl_interface · d05f9906
      Jeongik Cha authored
      Bug: 150578172
      Test: m
      Change-Id: Ib5f28db973eb80942faafe1c1c5ddcaab54bf980
      d05f9906
    • Maciej Żenczykowski's avatar
      offload ebpf - introduce 4.14+ ipv4 forwarding programs · 36867351
      Maciej Żenczykowski authored
      
      We've backported the necessary support to all 4.14+ ACK kernels,
      but we can't actually enforce that these changes will be picked
      up by all devices.  Thus we can only make the full featured
      implementations optional on [4.14..5.8) kernels, with a tcp-only
      version for those 4.14+ devices where the full featured version
      fails to load.
      
      Note: there's still a fair bit of implementation work left
      in the do_forward4() function itself.  This is really just
      the skeleton.
      
      Test: atest, TreeHugger
      Signed-off-by: default avatarMaciej Żenczykowski <maze@google.com>
      Change-Id: If78123e00d55a77f2ecd7da1547581797e23f9b2
      36867351
  9. Feb 15, 2021
  10. Feb 14, 2021
  11. Feb 12, 2021
    • Remi NGUYEN VAN's avatar
      Revert "[VCN07.1] Add test for bypassing VCN for non-internet re..." · 075da469
      Remi NGUYEN VAN authored
      Revert "[VCN07] Bypass VCN for non-internet app accessible cellu..."
      
      Revert submission 1579872-vcn07
      
      Reason for revert: Possible culprit for b/179768816, broken ConnectivityControllerTest
      Reverted Changes:
      Id09b19c13:Address comments on aosp/1550755
      I245bd69e0:[VCN07.1] Add test for bypassing VCN for non-inter...
      I9936894b9:[VCN07] Bypass VCN for non-internet app accessible...
      
      Change-Id: I7902a221c8597427e48d3e32fa5668b9c1a47420
      075da469
    • Remi NGUYEN VAN's avatar
      Revert "Address comments on aosp/1550755" · f77bed6d
      Remi NGUYEN VAN authored
      Revert "[VCN07] Bypass VCN for non-internet app accessible cellu..."
      
      Revert submission 1579872-vcn07
      
      Reason for revert: Possible culprit for b/179768816, broken ConnectivityControllerTest
      Reverted Changes:
      Id09b19c13:Address comments on aosp/1550755
      I245bd69e0:[VCN07.1] Add test for bypassing VCN for non-inter...
      I9936894b9:[VCN07] Bypass VCN for non-internet app accessible...
      
      Change-Id: I3fded28691e05a3dbf25bb7361c72acaa61b29c7
      f77bed6d
    • Lorenzo Colitti's avatar
Loading