Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 78005618 authored by Jeff Sharkey's avatar Jeff Sharkey
Browse files

Rudimentary automated testing for LE beacons.

Talking with the Bluetooth team, we know there are more robust
testing strategies coming with Root Canal and Blueberry, but those
aren't ready for use today.

As part of building out the "Nearby devices" permission we'd really
like to get automated CTS testing in place, so this change adds a
very rudimentary testing mode to the Bluetooth stack.  When enabled,
this mode suppresses scan results returned from the native stack,
and replaces them with a set of hard-coded BT LE beacons which can
be used for CTS purposes.

This new testing mode can be controlled via the commands below which
are only available to AID_SHELL, and which CTS can invoke using
executeShellCommand().

$ adb shell dumpsys activity service \
    com.android.bluetooth/.btservice.AdapterService \
    set-test-mode [enabled|disabled]

Bug: 179808874
Test: atest BluetoothInstrumentationTests
Tag: #feature
Change-Id: Iddae5dc450dd83071bdb62841d28667dddc48474
parent 0a5dbb60
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment