Closed Bug 1053642 Opened 5 years ago Closed 4 years ago

Dynamic application name and application icon

Categories

(Firefox OS Graveyard :: Gaia::Homescreen, defect)

x86_64
Linux
defect
Not set

Tracking

(Not tracked)

RESOLVED WONTFIX

People

(Reporter: frsela, Unassigned)

References

Details

For a certification requirement [1] we need to set a dynamic name & optionally the icon [2] provided by the SIM card for the SATK application [3].

Also this feature should support the creation of multiple icons (one per SIM in DSDS phones) in the homescreen which launch the same app.

No icon should appear if no SIM is inserted or the available SIM hasn't STK activated.

This bug is for discussing how to drive this new feature. Some open ideas

 * API for modifing the manifest
 * Work done by hacking homescreen app
 * New manifest entry like:
   "dynamicname": { "./update_name.js" }
   This JS will be called by HomeScreen on start
 * Add a new activity to homescreen to update info from the app

Thinking in possible security issues, I'll recommend that this should only be available to certified apps.

[1] https://bugzilla.mozilla.org/show_bug.cgi?id=869745#c0
[2] https://bugzilla.mozilla.org/show_bug.cgi?id=1016807
[3] https://github.com/mozilla-b2g/gaia/pull/22552
So of your ideas:

 * API for modifing the manifest
This might be an OK solution so long as it was certified. But given that we go to great length to prevent manifests being modified I'm not sure this the right answer.

 * Work done by hacking homescreen app

This seems the most obvious to me - hide the SATK app, and dynamically show it. The challenge is how does the homescreen get the information (i would prefer it not to have access to the mobileconnection permission as this is quite a powerful permission). Could the system put the SIM names in a setting?


 * New manifest entry like:
   "dynamicname": { "./update_name.js" }
   This JS will be called by HomeScreen on start

I think we can do the homescreen solution without this.

 * Add a new activity to homescreen to update info from the app

Any web page could call the activity so I am not sure how you would authenticate this.
Mass update: Resolve wontfix all issues with legacy homescreens.

As of 2.6 we have a new homescreen and having these issues open is confusing. All issues will block bug 1231115 so we can use that to re-visit any of these if needed.
Blocks: 1231115
Status: NEW → RESOLVED
Closed: 4 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.