Closed Bug 1128441 Opened 10 years ago Closed 10 years ago

[BlueDroid] Follow up bug for Bug 1060229 - Fix the failure of setDiscoverableTimeout() in v2.1 and v2.2.

Categories

(Firefox OS Graveyard :: Bluetooth, defect)

ARM
Gonk (Firefox OS)
defect
Not set
normal

Tracking

(b2g-v2.1 fixed, b2g-v2.1S fixed, b2g-v2.2 fixed, b2g-master unaffected)

RESOLVED FIXED
2.2 S7 (6mar)
Tracking Status
b2g-v2.1 --- fixed
b2g-v2.1S --- fixed
b2g-v2.2 --- fixed
b2g-master --- unaffected

People

(Reporter: jaliu, Assigned: jaliu)

References

Details

Attachments

(3 files, 3 obsolete files)

SetProperty DiscoveryTimeout failed due to missing property length.
Assignee: nobody → jaliu
Comment on attachment 8557816 [details] [diff] [review] [BlueDroid] Set Bluetooth discoverable timeout properly in 'Convert' function of Bluetooth interface. (v1) Review of attachment 8557816 [details] [diff] [review]: ----------------------------------------------------------------- What's the problem that the original code? Could you please write the reason?
hmm... I guess the original code may crash, right? This seems to be a bug.
- Bring the change to Bluetooth2 as well - Add reviewer's name to commit message - Convert to hg format
Attachment #8557816 - Attachment is obsolete: true
Flags: needinfo?(jaliu)
Comment on attachment 8559004 [details] [diff] [review] (for v2.2) [BlueDroid] Set Bluetooth discoverable timeout properly in 'Convert' function of Bluetooth interface. (v1) Review of attachment 8559004 [details] [diff] [review]: ----------------------------------------------------------------- Looks good.
Attachment #8559004 - Flags: review?(shuang) → review+
(In reply to Shawn Huang [:shawnjohnjr] from comment #3) > hmm... I guess the original code may crash, right? This seems to be a bug. With this bug, Bluetooth adapter can't set discoverable timeout. The reproduce rate is 100%. It also have a chance to crash the b2g process since the void ptr point to an incorrect address. (It did crash few times during the experiment. However, it doesn't mean it would happen every time.)
- Rebase - Add reviewer's name to commit message.
Attachment #8559004 - Attachment is obsolete: true
- Rebase - Add reviewer's name to commit message
Attachment #8559001 - Attachment is obsolete: true
Comment on attachment 8564042 [details] [diff] [review] (for v2.1) [BlueDroid] Set Bluetooth discoverable timeout properly in 'Convert' function of Bluetooth interface. (v2), r=shuang NOTE: Please see https://wiki.mozilla.org/Release_Management/B2G_Landing to better understand the B2G approval process and landings. [Approval Request Comment] > Bug caused by (feature/regressing bug #): It's a follow-up bug of Bug 1060229. > User impact if declined: This MDN page [1] indicates that BluetoothAdapter can set discoverable timeout by 'setDiscoverableTimeout(timeout)'. However, the function isn't functional on FxOS v2.1. [1] https://developer.mozilla.org/en-US/docs/Web/API/BluetoothAdapter Although 'setDiscoverableTimeout()' hasn't been used by any build-in gaia app yet, it still a part of Bluetooth Web API. It means it have to be tested by MCTS (Firefox OS Certification Testsuite). Therefore, it will block MCTS bug in future. > Testing completed: Call this function in setting app and print 'BluetoothAdapter.discoverableTimeout' through adb logcat. > Risk to taking this patch (and alternatives if risky): 'BluetoothAdapter.setDiscoverableTimeout()' is a rarely used function and it'll be removed from Bluetooth API v2 [2] on FxOS v3. > String or UUID changes made by this patch: no
Attachment #8564042 - Flags: approval-mozilla-b2g34?
Comment on attachment 8564041 [details] [diff] [review] (for v2.2) [BlueDroid] Set Bluetooth discoverable timeout properly in 'Convert' function of Bluetooth interface. (v1), r=shuang NOTE: Please see https://wiki.mozilla.org/Release_Management/B2G_Landing to better understand the B2G approval process and landings. The patch was cherry-pick from v2.1 patch. Copy [Approval Request Comment] from #comment 10 [Approval Request Comment] > Bug caused by (feature/regressing bug #): It's a follow-up bug of Bug 1060229. > User impact if declined: This MDN page [1] indicates that BluetoothAdapter can set discoverable timeout by 'setDiscoverableTimeout(timeout)'. However, the function isn't functional on FxOS v2.2. [1] https://developer.mozilla.org/en-US/docs/Web/API/BluetoothAdapter Although 'setDiscoverableTimeout()' hasn't been used by any build-in gaia app yet, it still a part of Bluetooth Web API. It means it have to be tested by MCTS (Firefox OS Certification Testsuite). Therefore, it will block MCTS bug in future. > Testing completed: Call this function in setting app and print 'BluetoothAdapter.discoverableTimeout' through adb logcat. > Risk to taking this patch (and alternatives if risky): 'BluetoothAdapter.setDiscoverableTimeout()' is a rarely used function and it'll be removed from Bluetooth API v2 [2] on FxOS v3. > String or UUID changes made by this patch: no
Attachment #8564041 - Flags: approval-mozilla-b2g37?
Attachment #8564041 - Flags: approval-mozilla-b2g37? → approval-mozilla-b2g37+
Attachment #8564042 - Flags: approval-mozilla-b2g34? → approval-mozilla-b2g34+
Comment on attachment 8571163 [details] [diff] [review] (for master) [BlueDroid] Set Bluetooth discoverable timeout properly in 'Convert' function of Bluetooth interface. (v1), r=shuang Hi Shawn, Since Bluetooth daemon might not be activated by default, the Bluetooth HAL helper is still needed on master branch. I'd like to apply this patch to master branch. Do you think it appropriate ?
Flags: needinfo?(shawnjohnjr)
Flags: needinfo?(shuang)
Oh. Please don't ni me using personal account.
Flags: needinfo?(shawnjohnjr)
(In reply to Jamin Liu [:jaliu] from comment #15) > Comment on attachment 8571163 [details] [diff] [review] > (for master) [BlueDroid] Set Bluetooth discoverable timeout properly in > 'Convert' function of Bluetooth interface. (v1), r=shuang > > Hi Shawn, > Since Bluetooth daemon might not be activated by default, the Bluetooth HAL > helper is still needed on master branch. > > I'd like to apply this patch to master branch. Do you think it appropriate ? Yes. Please go ahead.
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: