Fix for device setup pairing inconsistency

1) Created new method to factory reset bluetooth stack.
 Existing reset_bluetoth method does not reset bluetooth stack,
 but only toggles bt on/off.

 When used in setup_multiple_devices_for_bt_test()
 leads to device pairing conflict.

 Currently factroyReset does not work for me b/79418045.
 For that I temporary included device unbond step.

2) Replaced reset_bluetoth with factory_reset_bluetooth

3) Added waiter to allow bt state stabilize
 Devices depending on OS differently recover from factory reset
 I'd like to add waiter to allow bt state to take place
 before jumping into enabling bt.

Test: Factory reset should leave no previously bonded devices

Bug: 77318571

Change-Id: I2a1db16707e9027990eebb9900dd88a071c4c510
1 file changed
tree: 1d2923cfa777112efad428ba771ae753a485f8dd
  1. acts/
  2. tools/
  3. wts-acts/
  4. Android.mk
  5. PREUPLOAD.cfg