Closed Bug 1227440 Opened 9 years ago Closed 9 years ago

[Bluetooth]After tapping "Cancel" button to go back to Bluetooth list, the "Pairing with device..." message is displayed all the time under the name of bluetooth device.

Categories

(Firefox OS Graveyard :: Bluetooth, defect)

ARM
Gonk (Firefox OS)
defect
Not set
normal

Tracking

(firefox45 fixed, b2g-v2.5 affected, b2g-master verified)

RESOLVED FIXED
Tracking Status
firefox45 --- fixed
b2g-v2.5 --- affected
b2g-master --- verified

People

(Reporter: yue.xia, Assigned: ben.tian)

References

Details

(Whiteboard: [2.5-aries-test-run-4])

Attachments

(3 files)

Attached file logcat_1141.txt
[1.Description]:
[Aries KK v2.5&master][Flame KK v2.5&master][Bluetooth]Tap the Bluetooth device (Tech Clip Radio) to pair,  the "Enter PIN" prompt pops up. After tapping "Cancel" button to go back to Bluetooth list, the "Pairing with device..." message is displayed all the time under the name of Tech Clip Radio device.  
Found time: 11:41
See attachment: logcat_1141.txt & AriesKKv2.5_video.3gp

[2.Testing Steps]: 
Precondition: Have a Bluetooth device that requires user to input a PIN code manually to connect, eg: Tech Clip Radio.  

1. Open the Settings app on test phone
2. Navigate to Bluetooth and turn on Bluetooth
3. Power on Bluetooth device (Tech Clip Radio)
4. Tap "Search for devices" on test phone
5. Tap on the Bluetooth device (Tech Clip Radio) to pair
** The "Enter PIN" prompt will pop up.
6. Tap on "Cancel" 
7. Tap "Search for devices"
8. Turn off Bluetooth option.

[3.Expected Result]: 
6. User is brought back to the list of devices, and test device should be cancelled to connect to Tech Clip Radio device successfully.
6. The search for device function should work normally.
7. The "Unable to pair devices" prompt message should not pop up, user could turn off Bluetooth option successfully.

[4.Actual Result]: 
6. User is brought back to the list of devices, but the "Pairing with device..." message is displayed all the time under the name of Tech Clip Radio device.  
7. The search for device function doesn't work.
8. The "Unable to pair devices" prompt message pops up.

[5.Reproduction build]: 
AriesKK v2.5 build (Affected)
Build ID               20151123164502
Gaia Revision          5839f17dedc757947c9531dc0d66c3c49119f5ea
Gaia Date              2015-11-20 22:47:58
Gecko Revision         http://hg.mozilla.org/releases/mozilla-b2g44_v2_5/rev/3a45ca93dd447e046baa2c7590f60ae008e438f8
Gecko Version          44.0a2
Device Name            aries
Firmware(Release)      4.4.2
Firmware(Incremental)  eng.worker.20151123.155500
Firmware Date          Mon Nov 23 15:55:07 UTC 2015
Bootloader             s1

Aries KK master build (Affected)
Build ID               20151124014704
Gaia Revision          ea673b5c4cc19c3daca072691a659c68e4c6937f
Gaia Date              2015-11-23 16:41:08
Gecko Revision         https://hg.mozilla.org/mozilla-central/rev/19d89caa664dd9309c796929225ee409df5d1ee4
Gecko Version          45.0a1
Device Name            aries
Firmware(Release)      4.4.2
Firmware(Incremental)  eng.worker.20151124.005529
Firmware Date          Tue Nov 24 00:55:36 UTC 2015
Bootloader             s1

Flame KK v2.5 (512mb) build (Affected)
Build ID               20151123163948
Gaia Revision          5839f17dedc757947c9531dc0d66c3c49119f5ea
Gaia Date              2015-11-20 22:47:58
Gecko Revision         http://hg.mozilla.org/releases/mozilla-b2g44_v2_5/rev/3a45ca93dd447e046baa2c7590f60ae008e438f8
Gecko Version          44.0a2
Device Name            flame
Firmware(Release)      4.4.2
Firmware(Incremental)  eng.worker.20151123.155405
Firmware Date          Mon Nov 23 15:54:14 UTC 2015
Firmware Version       v18D v4
Bootloader             L1TC000118D0

Flame KK master (512mb) build (Affected)
Build ID               20151124013632
Gaia Revision          ea673b5c4cc19c3daca072691a659c68e4c6937f
Gaia Date              2015-11-23 16:41:08
Gecko Revision         https://hg.mozilla.org/mozilla-central/rev/19d89caa664dd9309c796929225ee409df5d1ee4
Gecko Version          45.0a1
Device Name            flame
Firmware(Release)      4.4.2
Firmware(Incremental)  eng.worker.20151124.005539
Firmware Date          Tue Nov 24 00:55:49 UTC 2015
Firmware Version       v18D v4
Bootloader             L1TC000118D0

[6.Reproduction Frequency]: 
Always Recurrence,5/5

[7.TCID]: 
Free Test
Attached video AriesKKv2.5_video.3gp
The gecko patch fixes the following symptom by triggering BondStateChangedNotification to inform gaia settings app. However the "Unable to pair devices" message prompt requires gaia change.

> 6. User is brought back to the list of devices, but the "Pairing with device..." message is displayed all the time under the name of Tech Clip Radio device.  
> 7. The search for device function doesn't work.

Shine, do you expect "Unable to pair devices" message to prompt when user cancel pairing?
Assignee: nobody → btian
Flags: needinfo?(yue.xia)
Attachment #8691808 - Flags: review?(shuang)
Component: Gaia::Bluetooth → Bluetooth
Attachment #8691808 - Attachment description: Patch 1 (v1): Reject pin reply by canceling bond to trigger BondStateChangedNotification → Patch 1 (v1): Reject pin reply by cancelling bond to trigger BondStateChangedNotification
(In reply to Ben Tian [:btian] from comment #2)
> Shine, do you expect "Unable to pair devices" message to prompt when user
> cancel pairing?

Hi Ben,
Yes, you are right. The expected result of step6 is: User is brought back to the list of devices, and then "Unable to pair devices" prompt message should pop up.
Many thanks.
Flags: needinfo?(yue.xia)
Attachment #8691808 - Attachment description: Patch 1 (v1): Reject pin reply by cancelling bond to trigger BondStateChangedNotification → [final] Patch 1: Reject pin reply by cancelling bond to trigger BondStateChangedNotification
https://hg.mozilla.org/mozilla-central/rev/201e1c425b3a
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
This problem is verified as pass on latest build of FlameKK maser and AriesKK master by the STR in comment 0.
Actual results: 
1. After tapping "Cancel" button on "Enter PIN" prompt view, the "Unable to pair devices" prompt message is pop up.
2. Tap "OK" button on "Unable to pair devices" prompt view, it is go back to the list of devices view. The "Tap to connect" message is displayed under the name of Tech Clip Radio device. 
3. I can search for devices and turn off Bluetooth normally. 
Reproduce rate: 0/10

Device information:
Flame KK master_512mb (Pass)
Build ID               20151201150223
Gaia Revision          59c8605876736b22acaaed25be00008e452149cb
Gaia Date              2015-12-01 02:58:37
Gecko Revision         https://hg.mozilla.org/mozilla-central/rev/1003fca97839fdfbfefb89c48c9e05a940bc9fb9
Gecko Version          45.0a1
Device Name            flame
Firmware(Release)      4.4.2
Firmware(Incremental)  eng.cltbld.20151201.183010
Firmware Date          Tue Dec  1 18:30:23 EST 2015
Firmware Version       v18D v4
Bootloader             L1TC000118D0

Aries KK master (Pass)
Build ID               20151202015416
Gaia Revision          7847a3c1b28e039631509978518b36fd3c5f9585
Gaia Date              2015-12-01 18:47:31
Gecko Revision         https://hg.mozilla.org/mozilla-central/rev/470f4f8c2b2d6f82e56e161a4b05262c85f55b59
Gecko Version          45.0a1
Device Name            aries
Firmware(Release)      4.4.2
Firmware(Incremental)  eng.worker.20151202.011126
Firmware Date          Wed Dec  2 01:11:35 UTC 2015
Bootloader             s1

Thanks.
QA Whiteboard: [MGSEI-Triage+]
See Also: → 1229697
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: