Skip to content
Snippets Groups Projects
  1. Jul 29, 2020
    • Chalard Jean's avatar
      Move utils from network stack to libs. · bdcca924
      Chalard Jean authored
      This package is using some common utilities from
      a library that used to live in the network stack.
      A better home for these utilities is frameworks/libs,
      so this topic moves the files ther and also changes
      the package of some utilities.
      
      See aosp/1350222 and aosp/1350182 for a detailed
      description of the specific files that moved.
      
      Test: checkbuild
      Change-Id: I76a9b7790f3997e3e6b3c2f75ba6308286457cde
      bdcca924
    • markchien's avatar
      Always stop dhcp server even it is obsolete · af2670f4
      markchien authored
      If dhcp server is obsolete, explicitly stop it to shut down its thread.
      
      Bug: 161418295
      Test: atest CtsTetheringTest
      Change-Id: Ic5b876bd23711ec8d832879a7baee0495246b218
      af2670f4
  2. Jul 16, 2020
    • Mark Chien's avatar
      Merge "Add tethering privileged test" · af9ec640
      Mark Chien authored
      af9ec640
    • markchien's avatar
      Add tethering privileged test · 88f04280
      markchien authored
      Create TetheringPrivilegedTests which have MAINLINE_NETWORK_STACK
      permission, the test can perform various network-related operations
      which need CAP_NET_RAW and CAP_NET_ADMIN capabilities.
      
      Bug: 145490751
      Test: make TetheringPrivilegedTests
      Change-Id: Ic205e5183e066766377c63336d9c5171d4875c6a
      88f04280
  3. Jul 15, 2020
  4. Jul 13, 2020
  5. Jul 08, 2020
  6. Jul 02, 2020
    • Chalard Jean's avatar
      Revert "Move Inet[4]AddressUtils to libs/net" · 6b66d70b
      Chalard Jean authored
      This reverts commit cf86031c.
      
      Reason for revert: Breaks the build b/160390899
      
      Merged-In: Icd141a992c46290c74929785e261a1cd57bc001b
      Change-Id: Ie10e66f61393602f17fbb61bf17230b176bf1f44
      6b66d70b
    • markchien's avatar
      Skip testPhysicalEthernet if the test run adb over network · 37ad92e0
      markchien authored
      If the test run adb over network and ethernet is available, it is likely
      that adb may run over ethernet. Then the test would fail because adb
      would break when ethernet is switching from client mode to server mode.
      
      Bug: 160389275
      Test: atest CtsTetheringTest
      
      Change-Id: I57d365d33316881c50c3bf7fd1c98926d10842d3
      37ad92e0
    • Remi NGUYEN VAN's avatar
      Move Inet[4]AddressUtils to libs/net · cf86031c
      Remi NGUYEN VAN authored
      The classes should not be picked up from frameworks/base, as they are
      part of several mainline modules.
      
      Also refine comments in DhcpResults following feedback in previous
      change.
      
      (cherry-pick from internal branch skipping wifi classes; no other
      conflict)
      
      Bug: 151052811
      Test: m; manual: flashed, wifi and telephony working
      Test: atest NetworkStackCoverageTests
      Merged-In: I7074651c6a2a7a6b11bcf13cc4bb03833d7d655f
      
      Change-Id: I7074651c6a2a7a6b11bcf13cc4bb03833d7d655f
      cf86031c
  7. Jul 01, 2020
  8. Jun 30, 2020
    • markchien's avatar
      Fix tethering jarjar rule for LocalLog · a8ac97cf
      markchien authored
      LocalLog is in android.util* instead of android.net*.
      No crash happen becaue the methods used by tethering are
      @UnsupportedAppUsage.
      
      Bug: 160113128
      Test: atest TetheringTests
      (cherry-pick from internal branch with conflicts)
      Merged-In: I5f070b96f96aaabf7ec8da52a3d3444ed940fb56
      
      Change-Id: I5f070b96f96aaabf7ec8da52a3d3444ed940fb56
      a8ac97cf
  9. Jun 29, 2020
  10. Jun 28, 2020
    • paulhu's avatar
      Correct PendingIntent#getActivity() flags · 67aeab2e
      paulhu authored
      TetheringNotificationUpdater create a PendingIntent with
      Intent#FLAG_ACTIVITY_NEW_TASK flag. But this flag is used for
      Intent only. Thus, move this flag into Intent.
      
      Bug: 158639789
      Test: atest TetheringTests
      Change-Id: I4c3af75c87b797bcde9356a94c835c7422dac1c6
      67aeab2e
  11. Jun 25, 2020
  12. Jun 24, 2020
    • Orion Hodson's avatar
      Sync with libnativehelper refactoring · 0cdccd70
      Orion Hodson authored
      jniGetFDFromFileDescriptor() is now a legacy method and moved to a
      separate header.
      
      Bug: 151443957
      Bug: 158749603
      Test: m
      Change-Id: Icd06e9a315680c2251dbb9032a904dd6d66aa359
      Merged-In: Icd06e9a315680c2251dbb9032a904dd6d66aa359
      Exempt-From-Owner-Approval: cherry pick
      (cherry picked from commit a5c46825)
      0cdccd70
    • Luke Huang's avatar
      Move DnsPacket to libs net · 895594dc
      Luke Huang authored
      This class might be used by some mainline modules.
      
      Bug: 151052811
      Test: atest DnsPacketTest
      Test: atest DnsResolverTest
      (clean cherry-pick from internal branch)
      Merged-In: I8841d91456952ded5efbf8ea221289aecc7746ad
      Change-Id: I8841d91456952ded5efbf8ea221289aecc7746ad
      895594dc
    • Lorenzo Colitti's avatar
      Merge "tethering: offload: Netlink Req" · b90c9741
      Lorenzo Colitti authored
      b90c9741
  13. Jun 22, 2020
    • Dedy Lansky's avatar
      Tethering: Add WiGig support · 6896f619
      Dedy Lansky authored
      This change is a combination of following changes:
      
      1) Tethering: add TETHERING_WIGIG type
         Currently both WIFI and WIGIG use the same tethering type,
         TETHERING_WIFI. This causes conflicts between the frameworks,
         when both WIFI and WIGIG SoftAPs are started, one or both will
         not work.
         Fix this by using a seperate tethering type for WIGIG.
      
      2) Tethering: remove TETHERING_WIGIG state machine on interface down
         The wigig state machine relies on a TETHERING_STATE_CHANGED broadcast
         that is sent when the tethering state machine is first created, during
         interface up. Currently the tethering state machine is not removed
         on interface down except for TETHERING_BLUETOOTH, and as a result
         wigig tethering only works the first time SoftAP is started.
         In order to fix this, remove the tethering state machine on interface
         down for TETHERING_WIGIG as well.
      
      Bug: 143356416
      Test: TetheringCoverageTests
      
      Change-Id: Ic4d3aca0ed69234093af7f0206dab3335938c52a
      6896f619
    • Xiao Ma's avatar
      Use unstable networkstack AIDLs in development branches · e5e07430
      Xiao Ma authored
      Development branches should use the -unstable version of the
      NetworkStack AIDLs so that refreezing is not necessary for each
      modification.
      The versions will be re-frozen before each release instead.
      
      Bug: 157534516
      Test: m
      Merged-In: I74b4a16266bda7b8ac740b3a0193268da260fc2f
      Change-Id: I1c2fe707d865e6a1953b4ab82194d4b9132258f9
      e5e07430
  14. Jun 20, 2020
    • markchien's avatar
      Protect invalid entitlement app configuration · 4c9428a1
      markchien authored
      There is a protection in Settings that Settings would gray out if
      tethering requires entitlement check but the entitlement app is
      invalid. Tethering resource is moved from framework to tethering
      module, so Settings can not fetch entitlement app name anymore.
      
      In this change, tethering module would check whether entitltement app
      package name is exsited if entitlement check is needed. Tethering would
      be not supported (Settings tethering option would be hidded) if
      entitlement app is not installed.
      
      After moving the protection into tethering module,
      TetherUtil#isProvisioningNeeded is no longer needed. Because The
      only use case is Settings wants to gray out tethering setting
      when entitltement check is needed but entitlement app is invalid.
      
      Bug: 146918263
      Test: atest TetheringCoverageTests
      Change-Id: I9a5ff5dbc1db3f3be7fcd7146862a16b373507e6
      Merged-In: I9a5ff5dbc1db3f3be7fcd7146862a16b373507e6
      4c9428a1
    • markchien's avatar
      Pass entitlement configuration to Settings for entitlement check · 902043f5
      markchien authored
      Tethering resource configuration is move from framwork to tethering
      module. Since tethering resource would not be accessible from outside
      of tethering module, EntitlementManager would tell Settings the
      entitlement configuration via intent extra when run entitlement check.
      
      Bug: 146918263
      Test: atest TetheringTests
      Change-Id: I6f23553bb1da5f0b767f920b32a86fafb9e00b9e
      Merged-In: I6f23553bb1da5f0b767f920b32a86fafb9e00b9e
      902043f5
  15. Jun 19, 2020
  16. Jun 18, 2020
  17. Jun 16, 2020
  18. Jun 15, 2020
    • Hungming Chen's avatar
      [BOT.11] BpfCoordinator could be disabled by device config · 519f1201
      Hungming Chen authored
      Bug: 150736748
      Test: BpfCoordinatorTest
      Change-Id: Id413b7f2f7edb2e5c3e02d5677fe536ed52fbbcb
      519f1201
    • Hungming Chen's avatar
      [BOT.8] Dump BPF offload information in dumpsys · e571cfd5
      Hungming Chen authored
      $ adb shell dumpsys tethering
      BPF offload:
        Polling started
        Stats provider registered
        Upstream quota: {rmnet_data2=9223372036854775807}
        Forwarding stats:
          12(rmnet_data2) - ForwardedStats(rxb: 1065, rxp: 5, txb: 0, txp: 0)
        Forwarding rules:
          [wlan1]: iif(iface) oif(iface) v6addr srcmac dstmac
            12(rmnet_data2) 31(wlan1) /2401:e180:8831:77ae:a900:a03b:41fb..
      
      Bug: 150736748
      Test: Enable tethering on mobile data and check dumpsys tethering
      Change-Id: I95ea3050d92f3ba8136a63cd399d3450d183c8dc
      e571cfd5
  19. Jun 11, 2020
  20. Jun 09, 2020
Loading