Closed Bug 1204759 Opened 9 years ago Closed 9 years ago

Back port app usage metrics to TV System

Categories

(Firefox OS Graveyard :: Gaia::TV, defect, P1)

ARM
Gonk (Firefox OS)
defect

Tracking

(feature-b2g:2.5+)

RESOLVED FIXED
FxOS-S8 (02Oct)
feature-b2g 2.5+

People

(Reporter: jj.evelyn, Assigned: lchang)

References

Details

(Whiteboard: [ft:conndevices][partner-blocker][partner-cherry-picked<2015/11/10>])

Attachments

(1 file)

Since v2.2 we have app usage metric in phone build, we should also enable this on TV.
feature-b2g: --- → 2.5+
Whiteboard: [ft:conndevices] → [ft:conndevices][partner-blocker]
Comment on attachment 8665254 [details] [review]
[gaia] luke-chang:tv_app_usage_metrics > mozilla-b2g:master

Hi Rex,

Would you mind taking a look at this patch? Thanks.
Attachment #8665254 - Flags: review?(rexboy)
In this patch, I copied the "app_usage_metrics.js" from phone system app and only removed "SIMSlotManager" related code [1] & [2] since there's no SIM card on TV.

Also, I keep some unnecessary events such as "lockscreen-appopened", "lockscreen-appclosed", "applicationenabled" and "applicationdisabled" as-is because I prefer minimal changes and they won't break this function at all.


[1] https://github.com/mozilla-b2g/gaia/blob/master/apps/system/js/app_usage_metrics.js#L682
[2] https://github.com/mozilla-b2g/gaia/blob/master/apps/system/js/app_usage_metrics.js#L691-L740
Status: NEW → ASSIGNED
I've updated my patch for preventing "getUniqueIdentifier" from trying to get the IMEI via mozTelephony API [1].


[1] https://github.com/mozilla-b2g/gaia/blob/master/apps/system/js/app_usage_metrics.js#L346-L355
Comment on attachment 8665254 [details] [review]
[gaia] luke-chang:tv_app_usage_metrics > mozilla-b2g:master

Looks good to me!
Attachment #8665254 - Flags: review?(rexboy) → review+
Priority: -- → P1
Target Milestone: --- → FxOS-S8 (02Oct)
Hi Luke,
Is this one ready for check-in? Thanks!
Flags: needinfo?(lchang)
Hi Josh,

The previous tests are failed on GijTV. I've restarted the tests and will land it as soon as it passes all the tests.
Flags: needinfo?(lchang)
Whiteboard: [ft:conndevices][partner-blocker] → [ft:conndevices][partner-blocker][partner-cherry-pick]
Whiteboard: [ft:conndevices][partner-blocker][partner-cherry-pick] → [ft:conndevices][partner-blocker][partner-cherry-picked<2015/11/10>]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: