[system-settings] shouldn't hardcode the modem number

Bug #1205294 reported by Sebastien Bacher
30
This bug affects 4 people
Affects Status Importance Assigned to Milestone
Canonical System Image
Fix Released
Medium
Unassigned
ubuntu-system-settings (Ubuntu)
Fix Released
Medium
Jonas G. Drange
ubuntu-system-settings (Ubuntu RTM)
Fix Released
Medium
Ken VanDine

Bug Description

We currently get the imei information from the device 0, that happens to work but we should probalby be smarter than that and deal with the cases where the modem is not the first device in the list

Tags: b-ota

Related branches

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

@Seb

Can you please explain what you mean? The IMEI is available directly from ofono as the Serial property. It's also available via the Android property 'ro.serialno'. See bug #1210502 for more details.

Tony Espy (awe)
Changed in ubuntu-system-settings:
status: New → Incomplete
Revision history for this message
Sebastien Bacher (seb128) wrote :

> Can you please explain what you mean? The IMEI is available directly from ofono as the Serial property.

Hey Tony,

The qtsystems api takes a device number, as an input parameter, and checks the properties on this device. We currently hardcode "0" (the first modem available), I'm not sure if some devices have > 1 modem and if we need to be smarted about which one we should query for the information...

I think the current approach should be good enough in most cases, but still it seems like an assumption that might get wrong at some point and bite us back

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

Ah, OK. I'd assumed that most of the settings plugins were using DBus to directly access services ( especially ofono ).

I think in the 14.04 cycle we really need to do a closer look at qtsystems and how it implements certain features.

I guess for now, the assumption that a single modem exists is probably OK for 13.10, given that we allocate time to investigate / review our current approach(es).

Revision history for this message
Sebastien Bacher (seb128) wrote :

setting back as triaged, we could be smarter about handling > 1 modem in a device in the futur, but that's not a priority for v1

Changed in ubuntu-system-settings:
status: Incomplete → Triaged
Iain Lane (laney)
Changed in ubuntu-system-settings (Ubuntu):
importance: Undecided → Low
status: New → Triaged
Revision history for this message
Pat McGowan (pat-mcgowan) wrote :

Now that we have qofono this is fairly easy to switch over. (for imei, it does not have the serial number) The design will need updates to accommodate 2 modems

Revision history for this message
Sebastien Bacher (seb128) wrote :

Jonas said he would look at this while adding support for dual sim, thanks!

Changed in ubuntu-system-settings (Ubuntu):
assignee: nobody → Jonas G. Drange (jonas-drange)
no longer affects: ubuntu-system-settings
Changed in ubuntu-system-settings (Ubuntu):
status: Triaged → In Progress
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package ubuntu-system-settings - 0.3+15.04.20141210.1-0ubuntu1

---------------
ubuntu-system-settings (0.3+15.04.20141210.1-0ubuntu1) vivid; urgency=low

  [ jonas-drange ]
  * [cellular] Use a repeater to lay out two separate ItemSelectors for
    modems, making sure it works well between connMan power cycles (LP:
    #1377455)
  * [about] properly display IMEI values for no devices ("None"), one
    device and multiple devices. Remove test now redundant. (LP:
    #1205294)

  [ Iain Lane ]
  * Use changed_properties instead of invalidated_properties. timedated
    no longer sends the latter. We also now get the new value for free
    along with the change, so save it instead of doing another roundtrip
    over the bus to ask for it again. (LP: #1400353)

  [ Mathieu Trudel-Lapierre ]
  * Re-enable all device types.

  [ CI Train Bot ]
  * Resync trunk

  [ Ken VanDine ]
  * [brightness] ensure properties are not use undefined (LP: #1385467)

  [ Chris Gagnon ]
  * wait for selectTimeZoneField in autopilot test (LP: #1396335)
 -- Ubuntu daily release <email address hidden> Wed, 10 Dec 2014 16:01:14 +0000

Changed in ubuntu-system-settings (Ubuntu):
status: In Progress → Fix Released
Changed in ubuntu-system-settings (Ubuntu RTM):
assignee: nobody → Ken VanDine (ken-vandine)
importance: Undecided → Low
Changed in canonical-devices-system-image:
importance: Undecided → Medium
milestone: none → ww07-2015
status: New → In Progress
summary: - shouldn't hardcode the modem number
+ [system-settings] shouldn't hardcode the modem number
Changed in ubuntu-system-settings (Ubuntu RTM):
status: New → In Progress
Bill Filler (bfiller)
Changed in ubuntu-system-settings (Ubuntu):
importance: Low → Medium
Changed in ubuntu-system-settings (Ubuntu RTM):
importance: Low → Medium
tags: added: b-ota
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package ubuntu-system-settings - 0.3+15.04.20150204~rtm-0ubuntu1

---------------
ubuntu-system-settings (0.3+15.04.20150204~rtm-0ubuntu1) 14.09; urgency=medium

  [ Ken VanDine ]
  * Revoke any cached authorizations before trying to change password
    mode. This makes sure that we authenticate the user again even if we
    just did so (for UX consistency).
  * [about] properly display IMEI values for no devices ("None"), one
    device and multiple devices. Remove test now redundant. (LP:
    #1205294)
  * [security/privacy] add connectivity binding and let user unlock a
    given SIM (LP: #1378883)
 -- Ubuntu daily release <email address hidden> Wed, 04 Feb 2015 17:38:10 +0000

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

Duplicates of this bug

Other bug subscribers

Remote bug watches

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