[rilmodem] Not possible to get the IMEI without a SIM

Bug #1210502 reported by Evan
4
This bug affects 1 person
Affects Status Importance Assigned to Milestone
touch-preview-images
Fix Released
High
Tony Espy
ofono (Ubuntu)
Fix Released
High
Tony Espy

Bug Description

I have a Nexus 4 (mako) without a SIM card. When I try to ask ofono for the IEMI, I don't get one back:

root@ubuntu-phablet:/# /usr/share/ofono/scripts/list-modems
[ /ril_0 ]
    Features =
    Emergency = 0
    Powered = 0
    Lockdown = 0
    Interfaces =
    Online = 0
    Type = hardware

It's definitely not busted though, as I can get it through other means:

root@ubuntu-phablet:/# od -j 0100000 -N 16 -c /dev/mmcblk0p19
0100000 x x x x 3 6 0 5 8 3 6 x x x x \0
0100020

This is known:

[13:16:43] <rsalveti> ev: it works fine, but you need a sim card atm
[13:17:05] <ev> rsalveti: hmm, why? The IMEI isn't tied to a SIM.
[13:17:16] <rsalveti> ev: I know, bug from our code
[13:18:11] <rsalveti> don't think we have one yet, we discussed it yesterday, and would need a few changes in ofono as we're not starting the modem if the sim card is not available (our current logic)

Related branches

Evan (ev)
description: updated
summary: - Not possible to get the IMEI without a SIM
+ [rilmodem] Not possible to get the IMEI without a SIM
Changed in ofono (Ubuntu):
status: New → Confirmed
importance: Undecided → High
assignee: nobody → Tony Espy (awe)
Changed in touch-preview-images:
status: New → Confirmed
importance: Undecided → High
Revision history for this message
Tony Espy (awe) wrote :

IMEI is exposed as the the top-level 'SerialNumber' property. I'm currently working on an update to the ofono/rilmodem code which should provide 'SerialNumber' on supported RIL-based devices irregardless of SIM availability. I just confirmed that this works on maguro sans SIM.

Changed in ofono (Ubuntu):
status: Confirmed → In Progress
Changed in touch-preview-images:
status: Confirmed → In Progress
assignee: nobody → Tony Espy (awe)
Revision history for this message
Tony Espy (awe) wrote :

Here's the output of 'list-modems' on the device mentioned above on comment #1:

root@ubuntu-phablet:/usr/share/ofono/scripts# ./list-modems
[ /ril_0 ]
    Features =
    Emergency = 0
    Powered = 1
    Lockdown = 0
    Interfaces = org.ofono.VoiceCallManager
    Online = 1
    Model = Fake Modem Model
    Revision = I9250XXLA2
    Type = hardware
    Serial = 351746051290297
    Manufacturer = Fake Manufacturer
    [ org.ofono.VoiceCallManager ]
        EmergencyNumbers = 08 000 999 110 112 911 118 119

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

FYI, the device serial number can be grabbed from the Android property 'ro.serialno'.

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package ofono - 1.12+bzr6836-0ubuntu1

---------------
ofono (1.12+bzr6836-0ubuntu1) saucy; urgency=low

  [ Ricardo Salveti de Araujo ]
  * Changing packaging tree to make it part of the daily CI jobs
    - Changing source format to 1.0 (required by CI)
    - Creating bzr bd compatible branch, with the same content as available in
      the previous package

  [ Tony Espy ]
  - Ensure that *netreg_data is always set in callback data (LP: #1234491)
  - Re-factor rilmodem initialization code to enable set online/offline
    (LP: #1210502)
  - Fixing parcel parsing when probing for mute.

  [ Mathieu Trudel-Lapierre ]
  * Make the package use bzr-builddeb split-mode to properly build the source
    tarball.
 -- Mathieu Trudel-Lapierre <email address hidden> Tue, 08 Oct 2013 10:47:02 -0400

Changed in ofono (Ubuntu):
status: In Progress → Fix Released
Tony Espy (awe)
Changed in touch-preview-images:
status: In Progress → Fix Released
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.