Closed
Bug 1058088
Opened 10 years ago
Closed 10 years ago
[NFC] Add a developer setting to enable NFC debug
Categories
(Firefox OS Graveyard :: NFC, defect)
Tracking
(b2g-v2.1 fixed)
RESOLVED
FIXED
2.1 S3 (29aug)
Tracking | Status | |
---|---|---|
b2g-v2.1 | --- | fixed |
People
(Reporter: tauzen, Assigned: tauzen)
References
Details
Attachments
(1 file)
In Settings > Developer debug section we would like to add a "NFC output in ADB" checkbox which should trigger enabling NFC debug in Gaia System app. This is a result of the discussion in Bug 1055446 and is needed by QA to quickly identify problems with NFC.
Assignee | ||
Comment 1•10 years ago
|
||
Hello Arthur, could you advise how this can be done properly? I've added new li element in apps/settings/elements/developer.html with name 'nfc.debugging.enabled' and used SettingsListner.observe('nfc.debugging.enabled', ...) in NfcManager. After make-reset gaia the screen was stuck on 'based on mozilla technology'. Am I missing something here?
Comment 2•10 years ago
|
||
Any javascript error? May I check your patch? p.s. Maybe it is simply a typo. It should be "SettingsListener". "e" is missing in your script.
Flags: needinfo?(arthur.chen)
Blocks: 1058440
Assignee | ||
Comment 3•10 years ago
|
||
Thanks Arthur, it was a typo ;). Once I have the full patch I'll upload it for review.
Assignee: nobody → kmioduszewski
Comment 4•10 years ago
|
||
Please don't forget to test your patch with pseudo-locales, more info here https://developer.mozilla.org/en-US/docs/Mozilla/Localization/Localization_best_practices#Gaia Hint: the current patch has issues
Assignee | ||
Comment 5•10 years ago
|
||
Thanks for the heads up. I assume it's enough to add the new string to en-US.properties since the pseudo-locales test is successful.
Comment 6•10 years ago
|
||
(In reply to Krzysztof Mioduszewski[:kmioduszewski][:tauzen] from comment #5) > Thanks for the heads up. I assume it's enough to add the new string to > en-US.properties since the pseudo-locales test is successful. Yes, en-US.properties is enough, don't bother about other locales in Git (they'll be removed soon).
Assignee | ||
Comment 7•10 years ago
|
||
Hello Arthur, could you review this? This patch adds new Developer "NFC output in ADB" setting. Both NfcManager and NfcHandoverManager observe this setting and set DEBUG flag accordingly.
Attachment #8480108 -
Flags: review?(arthur.chen)
Comment 8•10 years ago
|
||
Comment on attachment 8480108 [details] [review] pull-request-1058088.txt r=me for the settings part with the comment addressed. Flag Alive for the system part.
Attachment #8480108 -
Flags: review?(arthur.chen)
Attachment #8480108 -
Flags: review?(alive)
Attachment #8480108 -
Flags: review+
Comment 9•10 years ago
|
||
Comment on attachment 8480108 [details] [review] pull-request-1058088.txt Don't you need a default value in common-settings.json?
Attachment #8480108 -
Flags: review?(alive) → review+
Assignee | ||
Comment 10•10 years ago
|
||
Ok, will add it there defaulting to false. I was looking for all occurrences of 'bluetooth.debugging.enabled' and I've missed the common-settings.json. Thanks for pointing this out.
Assignee | ||
Comment 11•10 years ago
|
||
Added default value. Pseudo-locales tested. Gaia-Try errors seem to be unrelated.
Keywords: checkin-needed
Comment 12•10 years ago
|
||
Master: https://github.com/mozilla-b2g/gaia/commit/99ed1550a810f7995fa0fd6991d4cf7fdd4ce3c7
Status: NEW → RESOLVED
Closed: 10 years ago
status-b2g-v2.1:
--- → fixed
Keywords: checkin-needed
Resolution: --- → FIXED
Target Milestone: --- → 2.1 S3 (29aug)
You need to log in
before you can comment on or make changes to this bug.
Description
•