This document provides commands to enable PTS test mode for Fluoride stack. We need special handling for some test cases as they are not applicable for the Fluoride stack.
Profile services in packages/apps/Bluetooth uses system property
persist.bluetooth.pts to check if the PTS test mode is enabled. To enable it:
adb shell setprop persist.bluetooth.pts true
To disable it:
adb shell setprop persist.bluetooth.pts false
newavrcp, we send active player update to remote device only in PTS test mode (AVRCP/TG/MPS/BV-05-C AVRCP/TG/MPS/BV-07-C).
Native stack also requires some special handling, and the config is stored in
conf/bt_stack.conf. To enable a flag, uncomment the corresponding line and push the config file to
/etc/bluetooth/ in IUT.
PTS_SecurePairOnlyenables secure connections only mode.
PTS_DisableConnUpdatesdisables LE Connection updates.
PTS_DisableSDPOnLEPairdisables BR/EDR discovery after LE pairing to avoid cross key derivation errors.
PTS_SmpOptionssets SMP Pair options (formatted as hex bytes)
auth, io, ikey, rkey, ksize.
PTS_AvrcpTestenables AVRCP test mode. The UID is set to 0xffffffffffffffff in
PTS_SmpFailureCaseenables handling for various SMP failure cases.