Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Stopping gaia app update notification

20 views
Skip to first unread message

Zac Campbell

unread,
May 22, 2013, 7:45:48 AM5/22/13
to dev...@lists.mozilla.org
Hi dev-b2g,

The app update notification that pops up in the toaster is interfering
with some of our UI test automation.

I've tried setting various settings like "app.update.interval" to
monthly, "apps.updateStatus" including setting them immediately after a
fresh flash and before the device is ever exposed to any of the internet
but it *still* checks for app updates when I do connect the device to
the internet.

Am I setting these settings wrong? Or can I go a level higher and
disable this from a pref?

I am using b2g18/v1-train engineering builds.

Thanks,

Zac

Zac Campbell

unread,
May 22, 2013, 11:17:39 AM5/22/13
to dev...@lists.mozilla.org
I forgot to add that we clear out the indexedDb inbetween each test so a
fix for this needs to be outside the effect of deleting the indexedDb.
> _______________________________________________
> dev-b2g mailing list
> dev...@lists.mozilla.org
> https://lists.mozilla.org/listinfo/dev-b2g

Etienne Segonzac

unread,
May 23, 2013, 6:20:06 AM5/23/13
to Zac Campbell, dev-b2g
On Wed, May 22, 2013 at 1:45 PM, Zac Campbell <zcam...@mozilla.com> wrote:

> Am I setting these settings wrong?


No, gecko tries to check for update by himself when the connection comes up.


> Or can I go a level higher and disable this from a pref?


You can try:
pref("app.update.enabled", false);

If this doesn't work, Marshall will now better :)
--
Etienne

Zac Campbell

unread,
May 23, 2013, 7:14:25 AM5/23/13
to Etienne Segonzac, dev-b2g
Thanks Etienne, but this doesn't seem to have worked!

Here's what I tried:
1. Flash device
2. When FTU screen comes up do -> adb shell stop b2g
3. push user.js file containing that pref (contains some other prefs
too which work so I know it is valid)
4. adb reboot
5. Connect to Wifi, wait.. it will check for updates :(

Note that these are updates for the HERE maps and other apps installed
rather than OTA updates for Gaia itself. Are they separate or part of
the same update process? I want to stop both.

Cheers,
Zac

Etienne Segonzac

unread,
May 23, 2013, 12:21:28 PM5/23/13
to Zac Campbell, dev-b2g
On Thu, May 23, 2013 at 1:14 PM, Zac Campbell <zcam...@mozilla.com> wrote:

> 5. Connect to Wifi, wait.. it will check for updates :(


Are you connecting to wifi through the FTU or with the settings app?

Another issue could be that somehow when you stop b2g we still get an
"appterminated" event for the FTU (which sets the
gaia.system.checkForUpdates settings to true).
Might be worth it to make sure that gaia.system.checkForUpdates is False
after the |stop b2g| but before the |adb reboot|.
--
Etienne

Zac Campbell

unread,
May 23, 2013, 12:53:08 PM5/23/13
to Etienne Segonzac, dev-b2g
I am not sure how to check the pref itself but I checked
"gaia.system.checkForUpdates" via the mozSettings API and it is always
False.

Even after deleting the indexeddb, cache and the profile in
/data/b2g/mozilla and rebooting b2g the notification toaster still
prompts with "2 [app] updates available." and checking the setting again
at this point it is still False!

Are you sure this is not a bug?

Etienne Segonzac

unread,
May 24, 2013, 8:10:00 AM5/24/13
to Zac Campbell, dev-b2g
On Thu, May 23, 2013 at 6:53 PM, Zac Campbell <zcam...@mozilla.com> wrote:

> I am not sure how to check the pref itself but I checked
> "gaia.system.checkForUpdates" via the mozSettings API and it is always
> False.
>

> Even after deleting the indexeddb, cache and the profile in
> /data/b2g/mozilla and rebooting b2g the notification toaster still prompts
> with "2 [app] updates available." and checking the setting again at this
> point it is still False!
>

Note that the settings will always be False after the check.
When it's set to True, gaia sends a force-update-check to gecko and then
put it back to False.
--
Etienne

Zac Campbell

unread,
May 24, 2013, 8:32:01 AM5/24/13
to Etienne Segonzac, dev-b2g
But why is that check happening at all when I have set
app.update.enabled to False in my data/local/prefs.js?

Etienne Segonzac

unread,
May 27, 2013, 4:43:58 AM5/27/13
to Zac Campbell, dev-b2g
On Fri, May 24, 2013 at 2:32 PM, Zac Campbell <zcam...@mozilla.com> wrote:

> But why is that check happening at all when I have set app.update.enabled
> to False in my data/local/prefs.js?



Gaia doesn't know that...
0 new messages