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)

x86
macOS
defect
Not set
normal

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.
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?
Blocks: NFC-Gaia
Flags: needinfo?(arthur.chen)
See Also: → 1055446
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)
Thanks Arthur, it was a typo ;). Once I have the full patch I'll upload it for review.
Assignee: nobody → kmioduszewski
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
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.
(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).
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 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 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+
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.
Added default value. Pseudo-locales tested. Gaia-Try errors seem to be unrelated.
Keywords: checkin-needed
Master: https://github.com/mozilla-b2g/gaia/commit/99ed1550a810f7995fa0fd6991d4cf7fdd4ce3c7
Status: NEW → RESOLVED
Closed: 10 years ago
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.

Attachment

General

Created:
Updated:
Size: