If you think a bug might affect users in the 57 release, please set the correct tracking and status flags for Release Management.

Need a way to switch update channels

VERIFIED FIXED

Status

Fennec Graveyard
General
VERIFIED FIXED
7 years ago
7 years ago

People

(Reporter: aki, Unassigned)

Tracking

Trunk
ARM
Android

Details

(Reporter)

Description

7 years ago
We weren't able to test the betatest channel due to this.

http://kb.mozillazine.org/Software_update says about:config doesn't work (it doesn't).

A way to change channels so we can test updates before pushing an update live will become very important once we're live.
QA normally changes <app>/defaults/pref/channel-prefs.js prior to starting the app. Is that available on Android ?
Fennec puts the app.update.channel in the <app>/defaults/preferences/mobile.js file, but on Android everything is bundled in the omnijar, so it's harder to extract-edit-repackage.

I noticed in the code that we could play a trick using the partner update channel:
http://mxr.mozilla.org/mozilla-central/source/toolkit/mozapps/update/nsUpdateService.js#586

That is the code that gets the channel used in the AUS URL. The preference is read from the default branch, so even if you try to override "app.update.channel" in about:config, it won't work.

However, notice how we look for partner channel info too? We might be able to tweak the channel using about:config. Something like:

"app.partner.test" = "test"

would create a channel like:

"beta-cck-test"
(Reporter)

Comment 3

7 years ago
Pushing to beta-cck-test and using app.partner.test = test worked.

We probably want to doc this for testers; I've got it in my build notes and probably want to automate it.  But we definitely have a way to switch update channels.
Status: NEW → RESOLVED
Last Resolved: 7 years ago
Resolution: --- → FIXED
Verified:
Mozille/5.0 (Android; Linux armv71; rv:2.0b7pre) Gecko20101006 Firefox/4.0b7pre Fennec/4.0b1
Status: RESOLVED → VERIFIED
(Reporter)

Comment 5

7 years ago
[13:38]	<nthomas>	the other option is to copy app.update.url to app.update.url.override and s/%CHANNEL%/betatest/
You need to log in before you can comment on or make changes to this bug.