Re-provisioning GPRS/MMS contexts requires re-starting ofono

Bug #1338758 reported by Tony Espy
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Canonical System Image
Fix Released
High
Unassigned
libqofono (Ubuntu)
Fix Released
Undecided
Jonas G. Drange
ofono (Ubuntu)
Fix Released
Wishlist
Alfonso Sanchez-Beato

Bug Description

The Touch phone UI designed for editing APNs includes a button labeled "Reset APN Settings".

https://wiki.ubuntu.com/Networking#A.2BIBw-APN.2BIB0-

The only way this can be accomplished via the current code is to delete all of the existing contexts and then either restart ofono, or reboot the phone.

If restarting ofono from the System Settings UI isn't considered a good idea, another option would be to add a new method to ofono's ConnectionManager interface that would trigger re-provisioning ( if and only if there's no existing contexts ).

This being reported against ofono version 1.12.bzr6868+14.10.20140625-0ubuntu1 ( included in image #u117 ).

Related branches

Tony Espy (awe)
Changed in ofono (Ubuntu):
status: New → Confirmed
Tony Espy (awe)
Changed in ofono (Ubuntu):
importance: Undecided → Wishlist
Revision history for this message
Antti Kaijanmäki (kaijanmaki) wrote :

Other option is to add a new property to org.ofono.ConnectionContext:

                bool Provisioned [read]

                        Holds whether the context has been provisioned.

This way Reset could only remove contexts that have Provisioned == False.

Revision history for this message
Antti Kaijanmäki (kaijanmaki) wrote :

Removing the "Reset" button from the UI for now as we have no reasonable way of implementing it.

Revision history for this message
Tony Espy (awe) wrote :

Assigned to Alfonso. We've discussed a few possible solutions.

Restarting ofono is a non-starter from the settings UI as it requires root permission to stop/start ofono, and also to delete the GPRS settings file.

Another alternative is to offline the modem ( via URfkill , delete all of the contexts ( via ofono's ConnectionManager iface ), and then ensure that re-provisioning is triggered in this case.

Changed in ofono (Ubuntu):
assignee: nobody → Alfonso Sanchez-Beato (alfonsosanchezbeato)
Changed in ofono (Ubuntu):
status: Confirmed → In Progress
Revision history for this message
Alfonso Sanchez-Beato (alfonsosanchezbeato) wrote :
Tony Espy (awe)
Changed in canonical-devices-system-image:
status: New → In Progress
Tony Espy (awe)
Changed in ofono (Ubuntu):
status: In Progress → Fix Committed
Changed in libqofono (Ubuntu):
status: New → In Progress
assignee: nobody → Jonas G. Drange (jonas-drange)
Changed in canonical-devices-system-image:
milestone: none → ww22-2015
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package ofono - 1.12.bzr6896+15.10.20150521-0ubuntu1

---------------
ofono (1.12.bzr6896+15.10.20150521-0ubuntu1) wily; urgency=medium

  [ Ratchanan Srirattanamet ]
  * build, gril, rilmodem, qcommsimmodem, plugins/qcom-msim.c: add
    support for LG L90 Dual which uses a Qualcomm dual-SIM modem (LP: #1427788)

  [ Alfonso Sanchez-Beato ]
  * src/gprs.c: support for 'ResetContexts' (LP: #1338758)
    Adds a new ConnectionManager 'ResetContexts' DBus method
    which deletes all existing gprs contexts and forces
    re-provisioning to occur.
  * plugins/ubuntu-apndb.c: ignore 'ipv6' protocol
    This change causes APNs with an 'ipv6' protocol value
    to instead be provisioned with 'ip', forcing IPv4 to
    be used.

  [ Jonas Drange ]
  * doc/connman-api.txt: add metion of 'ia' gprs context type

  [ Tony Espy ]
  * test/set-context-property: add 'Preferred' support (LP: #1454756, #1454751)
    This change adds support for the 'Preferred' ( and 'Active')
    properties which both need to be DBus variant wrapped booleans.
    Also added support for multi-SIM which was lacking from this script.
  * test/list-modems: add privacy support (LP: #1438715)
    Obfuscate any properties which can be tied to the end-user
    ( eg. SubscriberNumbers, SubscriberIdentity, ... ).

 -- CI Train Bot <email address hidden> Thu, 21 May 2015 08:44:39 +0000

Changed in ofono (Ubuntu):
status: Fix Committed → Fix Released
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package libqofono - 0.70-0ubuntu4

---------------
libqofono (0.70-0ubuntu4) wily; urgency=medium

  [ Jonas Drange ]
  * debian/patches/connman-resetcontexts.patch
    - Added bindings to Ofono's reset context API (LP: #1338758)

 -- Ken VanDine <email address hidden> Thu, 21 May 2015 16:16:51 -0400

Changed in libqofono (Ubuntu):
status: In Progress → Fix Released
Changed in canonical-devices-system-image:
status: In Progress → Fix Released
importance: Undecided → High
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.