Skip to content
Snippets Groups Projects
  1. Nov 04, 2022
    • Rahul Arya's avatar
      Fix init flags test · e023405b
      Rahul Arya authored
      Change-Id: I9e10e7ef4e56a103bfd2c916b27920487e2ab173
      Test: atest BluetoothDeviceConfigChangeTrackerTest
      Bug: 242348618
      e023405b
  2. Oct 27, 2022
    • Stephanie Bak's avatar
      Remove duplicate lib · 010e7105
      Stephanie Bak authored
      Bug: 247470852
      Test: statsd_testdrive 521
      Change-Id: I2e1a8747027ec5e645f34d93c4ada8a1a53c01ca
      010e7105
  3. Oct 24, 2022
  4. Oct 17, 2022
    • Cole Faust's avatar
      Fix errorprone warnings that should be errors · 8675483c
      Cole Faust authored
      This commit is part of a large scale change to fix errorprone
      errors that have been downgraded to warnings in the android
      source tree, so that they can be promoted to errors again.
      The full list of changes include the following, but not all
      will be present in any one individual commit:
      
      BadAnnotationImplementation
      BadShiftAmount
      BanJNDI
      BoxedPrimitiveEquality
      ComparableType
      ComplexBooleanConstant
      CollectionToArraySafeParameter
      ConditionalExpressionNumericPromotion
      DangerousLiteralNull
      DoubleBraceInitialization
      DurationFrom
      DurationTemporalUnit
      EmptyTopLevelDeclaration
      EqualsNull
      EqualsReference
      FormatString
      FromTemporalAccessor
      GetClassOnAnnotation
      GetClassOnClass
      HashtableContains
      IdentityBinaryExpression
      IdentityHashMapBoxing
      InstantTemporalUnit
      InvalidTimeZoneID
      InvalidZoneId
      IsInstanceIncompatibleType
      JUnitParameterMethodNotFound
      LockOnBoxedPrimitive
      MathRoundIntLong
      MislabeledAndroidString
      MisusedDayOfYear
      MissingSuperCall
      MisusedWeekYear
      ModifyingCollectionWithItself
      NoCanIgnoreReturnValueOnClasses
      NonRuntimeAnnotation
      NullableOnContainingClass
      NullTernary
      OverridesJavaxInjectableMethod
      ParcelableCreator
      PeriodFrom
      PreconditionsInvalidPlaceholder
      ProtoBuilderReturnValueIgnored
      ProtoFieldNullComparison
      RandomModInteger
      RectIntersectReturnValueIgnored
      ReturnValueIgnored
      SelfAssignment
      SelfComparison
      SelfEquals
      SizeGreaterThanOrEqualsZero
      StringBuilderInitWithChar
      TreeToString
      TryFailThrowable
      UnnecessaryCheckNotNull
      UnusedCollectionModifiedInPlace
      XorPower
      
      See https://errorprone.info/bugpatterns for more
      information on the checks.
      
      Bug: 253827323
      Test: m RUN_ERROR_PRONE=true javac-check
      Change-Id: I9408872c39c30cd2c9c1038b4a56d0d412344bde
      8675483c
  5. Sep 20, 2022
    • Stephanie Bak's avatar
      Add help page to APM notification · 6b037566
      Stephanie Bak authored
      Bug: 244224847
      Test: manual
      Ignore-AOSP-First: merge internal first
      Change-Id: I04195ef1e1c8d7eb629c9e68bb12e91267be922a
      Merged-In: I04195ef1e1c8d7eb629c9e68bb12e91267be922a
      6b037566
  6. Sep 09, 2022
  7. Sep 08, 2022
  8. Aug 30, 2022
    • Stephanie Bak's avatar
      Update APM Device Configs · 3829957d
      Stephanie Bak authored
      Update Settings.Global flags with Device Config flag values on
      initialization
      
      Bug: 239983569
      Test: manual
      Change-Id: I777582ae8b21c3dc93142c7681a2e9b21e19cd8a
      Merged-In: I777582ae8b21c3dc93142c7681a2e9b21e19cd8a
      3829957d
  9. Aug 29, 2022
  10. Aug 26, 2022
    • Etienne Ruffieux's avatar
      Move enabling state of Bluetooth sharing to system service. · 48dd6d21
      Etienne Ruffieux authored
      BluetoothOppLauncherActivity & BluetoothOppBtEnableActivity
      'enabled' state should be updated wether Bluetooth is ON or
      OFF. Previously, the state of these Activities was set with
      resource config, but since Bluetooth started replacing them
      by sysprops, we had to enable / disable these Activities in
      BluetoothOppService. However, the bt sharing tile should be
      available even when Bluetooth is OFF, and as their state is
      already updated in BluetoothManagerService when there is an
      user change, we can use that instead but with the condition
      that BluetoothOppBtEnableActivity is enabled too. All other
      Bluetooth OPP Activities enabled / disabled state are still
      handled in BluetoothOppService as they require Bluetooth to
      be ON to work anyway, and don't impact UI tiles. This fixes
      both an issue where the bt sharing tile doesn't appear when
      Bluetooth has been turned OFF, and an issue where Bluetooth
      would crash if it hadn't been turned ON before using the bt
      sharing tile.
      
      Test: manual
      Tag: #feature
      Bug: 242963176
      Merged-In: I67840dbd9f4cfc42026a14a1fc467fc95aa3a587
      Change-Id: I67840dbd9f4cfc42026a14a1fc467fc95aa3a587
      48dd6d21
    • Rahul Arya's avatar
      Fix admin enable/disable of Bluetooth file sharing, part 2 · e880ba62
      Rahul Arya authored
      This fixes the bluetooth package detection functionality in the case
      when *all* components are disabled. This occurs in the CTS test, but did
      not occur in manual testing of ag/19219300.
      
      Also did manual testing to make sure we don't regress (toggled the no_bluetooth_sharing option, verified that it appeared/disappeared)
      
      Bug: 239372439
      Test: atest CtsDevicePolicyManagerTestCases:DeviceOwnerTest
      Tag: #stability
      Merged-In: Ib9530a8829a946ea00a21111e459d697086f2ef8
      Change-Id: Ib9530a8829a946ea00a21111e459d697086f2ef8
      e880ba62
    • Rahul Arya's avatar
      Fix admin enable/disable of Bluetooth file sharing · 3d169a56
      Rahul Arya authored
      This is an extremely partial fix for a mostly-broken feature. For
      fully-managed devices, this fixes the toggle for the file sharing
      option, by detecting which Bluetooth package should be used rather than
      just guessing.
      
      However, on work profiles, the file sharing option does not really work
      anyway, it just infinitely loads. In addition, it is not correctly
      disabled when Bluetooth stops, so the icon just remains but doesn't
      do anything.
      
      A full fix would add the enable/disable sequence for *work* UserHandles
      to BluetoothOppManager, so the LAUNCHER_ACTIVITY is properly enabled and
      disabled. In addition, it would fix the issue described in the linked
      bug to prevent infinite loading (dedicated bug: b/112625123).
      
      Tag: #stability
      Bug: 237389774
      Test: Manual, verifying the *badged* BT file sharing icon appears/disappears as needed
      Merged-In: I070987bc884947246c372c65691c4866ebd1e7c7
      Change-Id: I070987bc884947246c372c65691c4866ebd1e7c7
      3d169a56
  11. Aug 25, 2022
  12. Aug 24, 2022
    • Rahul Arya's avatar
      Only restart bluetooth if INIT_FLAGS have changed · fe25b805
      Rahul Arya authored
      Otherwise we keep restarting it randomly, especially for dogfooders, and
      not everything likes it when Bluetooth restarts (especially if they're
      doing LE stuff in the background).
      
      Test: atest BluetoothDeviceConfigChangeTrackerTest and manually changing
      flags with adb
      Tag: #stability
      Bug: 242348618
      
      Change-Id: Ia955e5ed92c51ec65e0ac0dc42e0998b9c9845ae
      fe25b805
  13. Aug 23, 2022
    • Etienne Ruffieux's avatar
      Fixed service / framework test suites broken after migration · 1be662c9
      Etienne Ruffieux authored
      Bluetooth/service and Bluetooth/framework test suites were
      broken after the migration of the files from frameworks.
      The Bluetooth/framework test suite is split between stress
      tests that require a physical Bluetooth device to run and
      the unit tests that test the framework hidden APIs.
      Both framework unit tests and service tests are signed
      and can be added to the MTS.
      
      Test: atest FrameworkBluetoothTests
      Test: atest ServiceBluetoothTests
      Bug: 232577476
      Tag: #feature
      Change-Id: Ibdb20c650db2483c4569d979da5e024e0e95284c
      Merged-In: Ibdb20c650db2483c4569d979da5e024e0e95284c
      1be662c9
  14. Aug 22, 2022
    • Stephanie Bak's avatar
      Use message ID from proto for BT APM notification · f61c87ce
      Stephanie Bak authored
      Bug: 239983569
      Test: atest ServiceBluetoothTests
      Ignore-AOSP-First: resolve merge conflict on internal first
      
      Change-Id: Id16cb1e0a89d66d9d5cb250ca5de987ef558e447
      Merged-In: Id16cb1e0a89d66d9d5cb250ca5de987ef558e447
      f61c87ce
    • Stephanie Bak's avatar
      Adding tests for APM enhancement · 290052a1
      Stephanie Bak authored
      Bug: 239983569
      Test: atest ServiceBluetoothTests
      Ignore-AOSP-First: feature merged internally first to avoid merge
      conflicts in AOSP
      
      Change-Id: I4c73840f8c6e3a983a3c1f065733e26cf7140bf9
      Merged-In: I4c73840f8c6e3a983a3c1f065733e26cf7140bf9
      290052a1
    • William Escande's avatar
      [Bluetooth apex] Use new apex name · 64949f04
      William Escande authored
      The Bluetooth apex name is now called com.android.btservices
      
      Bug: 243054261
      Test: Build
      Change-Id: I4d48b875c254b8381c982a633e3132b6de6178aa
      64949f04
  15. Aug 19, 2022
    • Stephanie Bak's avatar
      Bluetooth APM enhancement · 3198c171
      Stephanie Bak authored
      Merge conflicts should be gone now that mainline is part of AOSP.
      
      Bug: 239983569
      Test: manual
      Change-Id: I2092880e047a1a9d50a47e4724e5fb2815d04f2d
      Merged-In: I2092880e047a1a9d50a47e4724e5fb2815d04f2d
      3198c171
  16. Jul 29, 2022
    • Rahul Arya's avatar
      Fix admin enable/disable of Bluetooth file sharing · 9827abaf
      Rahul Arya authored
      This is an extremely partial fix for a mostly-broken feature. For
      fully-managed devices, this fixes the toggle for the file sharing
      option, by detecting which Bluetooth package should be used rather than
      just guessing.
      
      However, on work profiles, the file sharing option does not really work
      anyway, it just infinitely loads. In addition, it is not correctly
      disabled when Bluetooth stops, so the icon just remains but doesn't
      do anything.
      
      A full fix would add the enable/disable sequence for *work* UserHandles
      to BluetoothOppManager, so the LAUNCHER_ACTIVITY is properly enabled and
      disabled. In addition, it would fix the issue described in the linked
      bug to prevent infinite loading (dedicated bug: b/112625123).
      
      Tag: #stability
      Ignore-AOSP-First: For T?
      Bug: 237389774
      Test: Manual, verifying the *badged* BT file sharing icon appears/disappears as needed
      
      Change-Id: I070987bc884947246c372c65691c4866ebd1e7c7
      (cherry picked from commit 36362f25)
      Merged-In: I070987bc884947246c372c65691c4866ebd1e7c7
      9827abaf
  17. Jul 08, 2022
  18. Jul 01, 2022
  19. Jun 30, 2022
  20. Jun 29, 2022
  21. Jun 23, 2022
  22. Jun 22, 2022
  23. Jun 17, 2022
    • Vinh Tran's avatar
      Convert gensrcs to java_library to deprecate depfile · 0d62f886
      Vinh Tran authored
      Cleanup usage of depfile in gensrcs to deprecate the property (aosp/2120835). The concept of depfile isn't transferable to Bazel, which requires listing the deps explicitly. The end goal of this change is to ensure all remaining gensrcs modules are convertible to Bazel by bp2build.
      
      Test: m service-bluetooth
      Bug: 179452413
      Change-Id: I58d45d26ba4c9205e8020810319724479f21285e
      Ignore-AOSP-First: The fixed modules don't exist in AOSP
      0d62f886
    • Etienne Ruffieux's avatar
      Check sysprop value before trying to bind to service · 82dfb050
      Etienne Ruffieux authored
      TbsService and HeadsetService were missing one check
      before BluetoothManagerService would try to bond to them.
      
      Bug: 236196227
      Tag: #feature
      Test: manual
      Ignore-AOSP-First: will be cherry-picked
      Change-Id: Iceb6c437216092a7dccc238f396f4d95e341af1d
      (cherry picked from commit ff0896db)
      Merged-In: Iceb6c437216092a7dccc238f396f4d95e341af1d
      82dfb050
    • Etienne Ruffieux's avatar
      Check sysprop value before trying to bind to service · ff0896db
      Etienne Ruffieux authored
      TbsService and HeadsetService were missing one check
      before BluetoothManagerService would try to bond to them.
      
      Bug: 236196227
      Tag: #feature
      Test: manual
      Ignore-AOSP-First: will be cherry-picked
      Change-Id: Iceb6c437216092a7dccc238f396f4d95e341af1d
      ff0896db
  24. Jun 14, 2022
  25. Jun 10, 2022
    • William Escande's avatar
      Delay Bluetooth Start · 8f616733
      William Escande authored
      If bluetooth is started too early, it will need to be restarted to
      change its gid.
      By delaying the bluetooth start after the OnUserStarting we ensure the
      permissions are already set
      
      Fix: 232740613
      Test: build & flash with wipe. Check log at first startup
      Tag: #refactor
      Merged-In: Ifde1348baad5802276679ecc24bc8ae458d02fe6
      Change-Id: Ifde1348baad5802276679ecc24bc8ae458d02fe6
      8f616733
    • William Escande's avatar
      Delay Bluetooth Start · 0599c775
      William Escande authored
      If bluetooth is started too early, it will need to be restarted to
      change its gid.
      By delaying the bluetooth start after the OnUserStarting we ensure the
      permissions are already set
      
      Fix: 232740613
      Test: build & flash with wipe. Check log at first startup
      Tag: #refactor
      Ignore-AOSP-First: will be push on aosp next
      Change-Id: Ifde1348baad5802276679ecc24bc8ae458d02fe6
      0599c775
  26. Apr 19, 2022
    • Etienne Ruffieux's avatar
      Fix updateOppLauncherComponentState package name · 7d6e2d19
      Etienne Ruffieux authored
      updateOppLauncherComponentState was using the old Bluetooth
      package name, now we call PackageManager to get it
      at runtime.
      
      Bug: 227078439
      Test: atest testOppDisabledWhenRestrictionSet
      Tag: #stability
      Ignore-AOSP-First: rename in internal only
      Change-Id: I79c100673e98d4eb64652881428435f0ac6ba501
      7d6e2d19
  27. Apr 15, 2022
Loading