Mobile/Distribution Files: Difference between revisions

Line 11: Line 11:
# A folder of distribution files are shipped with the ROM image in /system/org.mozilla.firefox/distribution/* folder. Shipping in this way ensures the files are not easily overwritten or removed by an application update. Note, files found in the /data/data/org.mozilla.firefox/distribution/* folder will "win" in cases where both locations are used.
# A folder of distribution files are shipped with the ROM image in /system/org.mozilla.firefox/distribution/* folder. Shipping in this way ensures the files are not easily overwritten or removed by an application update. Note, files found in the /data/data/org.mozilla.firefox/distribution/* folder will "win" in cases where both locations are used.


Each type of data may have it's own nuances:
A third approach is underway in {{bug|1013024}}.
* Default bookmarks are read from the APK directly or from the "distribution" folder (if it already exisits) any time a profile is created. These bookmarks are created before we create the Firefox's default bookmarks.
 
Each type of data has its own nuances:
* Default bookmarks are read from the APK directly or from the "distribution" folder (if it already exists) any time a profile is created. These bookmarks are created after we create Firefox's default bookmarks, because the distribution is loaded asynchronously on first run.
* Preferences are set as "default" preferences on each run, since a "default" preference only lasts for the lifetime of the session. They are created as "default" preferences to allow "user" preferences to override them.
* Preferences are set as "default" preferences on each run, since a "default" preference only lasts for the lifetime of the session. They are created as "default" preferences to allow "user" preferences to override them.
* Lightweight themes are really only preferences too. The data for the theme must live online somewhere. A typical place are the AMO theme or getpersonas.com sites.
* Lightweight themes are actually just preferences. The data for the theme must live online somewhere. Typical places are the AMO theme or getpersonas.com sites.
* Search engine plugins and add-ons must follow a fixed folder layout.
* Search engine plugins and add-ons must follow a fixed folder layout.


canmove, Confirmed users
640

edits