Skip to content
Snippets Groups Projects
  1. Nov 24, 2023
  2. Nov 22, 2023
    • Motomu Utsumi's avatar
      Remove --show-annotation FlaggedApi from flagged-apis-droidstubs · ba5dde84
      Motomu Utsumi authored
      framework-connectivity-flagged-apis-droidstubs is used by
      jarjar-rules-generator to avoid jarjaring flagged apis.
      But, this usage of --show-annotation FlaggedApi in the flag is not
      supported.
      So this CL removes --show-annotation FlaggedApi.
      As far as framework-connectivity-flagged-apis-droidstubs contains
      flagged APIs, it's fine that this droidstubs also contains non-flagged
      APIs.
      
      Test: TH
      Bug: 312408311
      Change-Id: I2f1f5624d98873420c0c36ac6e31386102211045
      ba5dde84
    • Kangping Dong's avatar
      [Thread] clear calling identity before invoking app-supplied callback · 98015f33
      Kangping Dong authored
      Per API council feedback and API guideline at
      go/android-api-guidelines#provide-executor, it should call
      Binder.clearCallingIdentity() before invoking the app-supplied callbacks
      so that the app doesn't use the system-server's identity for permission
      check in the callback.
      
      Bug: 309952666
      Test: atest ThreadNetworkUnitTests
      Change-Id: I3cfbce29c0a516506bb76a44b151a583c8477806
      98015f33
  3. Nov 17, 2023
    • Handa Wang's avatar
      update ThreadNetworkControllerService to support border routing · 496f770d
      Handa Wang authored
      This CL lets ThreadNetworkControllerService calls the LocalNetworkConfig
      API to set up border routing between Thread and infrastructure network.
      
      Bug: 299552948
      Bug: 305861411
      Test: Verified on Cuttlefish that forwarding is set up.
      
      Change-Id: I8b2f015d9d6248bfb1cd9ac806dc8664970a26d2
      496f770d
  4. Nov 15, 2023
  5. Nov 13, 2023
  6. Nov 10, 2023
    • Handa Wang's avatar
      implement InfraInterfaceController · d295f8f1
      Handa Wang authored
      InfraInterfaceController is used for creating an socket for
      sending/receiving ICMPv6 ND messages on the infrastructure network
      interface.
      
      Bug: 299552948
      Test: verified on a Cuttlefish
      
      Change-Id: I02eafadafbf7a04e12fe74954b4812462c532e45
      d295f8f1
  7. Nov 09, 2023
  8. Nov 08, 2023
    • Kangping Dong's avatar
      [Thread] add documentation for Pending Dataset constructor · a925218c
      Kangping Dong authored
      Per API council review feedback in b/307939803
      
      Bug: 307939803
      Test: atest CtsThreadNetworkTestCases
      Change-Id: Ia5fbb38e24d09c4a8d95ce0dfd6058a65d5d4614
      a925218c
    • Kangping Dong's avatar
      [Thread] move createRandomDataset to ThreadNetworkController · af4f1f57
      Kangping Dong authored
      This commit renames `createRandomDataset` to `createRandomizedDataset`
      and moves this method to ThreadNetworkController class.
      
      The reason for moving this method is that we rely on the service side to
      know which channels are currently supported by this device and there is
      no safe way for ActiveOperationalDataset to created a randomized full
      dataset by its own. Moving this method to ThreadNetworkController also
      allows us to support future platform-dependend configurations.
      
      Bug: 308117328
      Bug: 307939803
      Change-Id: I0b0b7b727c3b326ab59bb1299ace15df1ff1ad5e
      af4f1f57
    • Kangping Dong's avatar
      [Thread] add ThreadNetworkController APIs · b1c75dbe
      Kangping Dong authored
      The ThreadNetworkController class provides APIs for managing the Thread
      network, for example, attach to a specific network, form a network with
      given dataset or update/migrate an existing network.
      
      Bug: 262683651
      Test: atest CtsThreadNetworkTestCases
      Change-Id: Ib3c267d2c81a8c3c7772ed3c9cd2092487cc941a
      b1c75dbe
    • Kangping Dong's avatar
      [Thread] add ServiceManagerWrapper · 192e4b02
      Kangping Dong authored
      Add a JNI wrapper of the NDK version of the ServiceManager which allows
      us to retrieve the ot-daemon lazy service.
      
      Bug: 262683651
      Test: atest CtsThreadNetworkTestCases
      Change-Id: I1d331d1ba06c2b88f156622d4ae864dae7b15dc3
      192e4b02
  9. Nov 07, 2023
    • Kangping Dong's avatar
      [Thread] add ThreadNetworkUnitTests to postsubmit · 1b273056
      Kangping Dong authored
      Change-Id: I475096305728ba5177d680d5d09b7ee3a89a8ed8
      1b273056
    • Kangping Dong's avatar
      [Thread] fix OperationalDatasetTimestamp#toTlvValue is not loss-less · 160b4d38
      Kangping Dong authored
      OperationalDatasetTimestamp is saving the timestamp as an Instant
      object, and this has the problem that when the dataset timestamp is
      written to a TLV, it's going to loss precision as the nanoseconds
      of the Instant is converted to "Ticks". This results in bug that
      the dataset timestamp doesn't equal to the same value when it's
      converted back from a TLV:
      
      ```
      var timestamp1 = OperationalDatasetTimestamp.fromInstant(Instant.ofEpochSecond(100, 999938900));
      byte[] tlv = timestamp1.toTlvValue();
      timestamp2 = OperationalDatasetTimestamp.fromTlvValue(tlv);
      
      assertThat(timestamp2).isEqualTo(timestamp1); // This fails!!!
      ```
      
      Bug: 308408536
      Test: atest ThreadNetworkUnitTests CtsThreadNetworkTestCases
      Change-Id: I81b482a05337b6d1150edaa28b860034592a4347
      160b4d38
    • Kangping Dong's avatar
      [Thread] add a script for make-pretty · 7dffade5
      Kangping Dong authored
      This make-pretty.sh can be called from any where and it formats only
      java code under packages/modules/Connectivity/thread/
      
      Test: ./thread/scripts/make-pretty.sh
      Change-Id: I1b24025cf0267c81a7b133d1e8a08f77cc7ddc0e
      7dffade5
    • Motomu Utsumi's avatar
      Make FlaggedAPI available to CtsThreadNetworkTestCases · ada9e987
      Motomu Utsumi authored
      FlaggedAPI will be ignored in udc-mainline-prod.
      This makes CtsThreadNetworkTestCases build fail.
      This CL updates CtsThreadNetworkTestCases to build against FlaggedAPI
      and also updates framework-connectivity-jarjar-rules not to jarjar
      FlaggedAPI.
      
      Test: TH
      Test: m CtsThreadNetworkTestCases
      Change-Id: Ida8872b3bf61b7a59733f5fcec9e7d250efd3e58
      ada9e987
  10. Oct 26, 2023
  11. Oct 25, 2023
  12. Oct 24, 2023
    • Kangping Dong's avatar
      [Thread] flagging Android Thread APIs · 75aa4856
      Kangping Dong authored
      This commit declares the initial "thread_enabled" feature flag and use
      this to flag all existing and future Thread system APIs with @FlaggedApi
      
      Bug: 301473012
      Test: build
      Change-Id: I43f64ce38f7fd0806733b21c4f393e4563e6a467
      75aa4856
  13. Oct 07, 2023
  14. Sep 12, 2023
    • Kangping Dong's avatar
      [Thread] initial Thread network service · 1cec48f3
      Kangping Dong authored
      This commit sets up the initial Thread network service for the
      Android Thread feature which allows an Android device to create
      a Thread network and being a Border Router.
      
      See https://www.threadgroup.org/What-is-Thread for background of
      Thread.
      
      See b/235016403 for the Android Thread feature request.
      
      Test: lunch aosp_cf_x86_64_tv-userdebug
            m && launch_cvd
            atest CtsThreadNetworkTestCases
      Bug: 262683651
      Change-Id: Ie1bb23084531f67165ec068ea3ca39592dbc01d1
      1cec48f3
  15. Sep 11, 2023
    • Kangping Dong's avatar
      [Thread] add ot-daemon to com.android.tethering · f2060610
      Kangping Dong authored
      ot-daemon is a dependency of the new Thread feature. This commit
      add the ot-daemon binary and init rc file to the Tethering module.
      Note that the ot-daemon service is default disabled and versioned
      init rc file is used to ensure that this service won't be started
      before Android U.
      
      This is expected to increase the size of "com.android.tethering.capex"
      by around 400 KB.
      
      Manual verification:
      1. on Android T (33) CF device, the ot-daemon service is not started
         after device boots; It reports service not found error when trying
         to start the ot-daemon service with adb shell command "start
         ot-daemon"
      2. on Android U (34) CF device, the ot-daemon service is not started
         after device boots; It can be started with shell comamnd "start
         ot-daemon" but then failed because of missing sepolicy rules as
         expected
      
      Test: see above manual verification note
      Bug: 296211911
      Change-Id: I222e2bbcc2ad0be2beec9f5f3406e7144d314370
      f2060610
  16. Aug 23, 2023
Loading