← Back to team overview

ubuntu-sdk-bugs team mailing list archive

[Bug 1338420] [NEW] Cannot get the IMEI number

 

Public bug reported:

I have a simple code like:

        DeviceInfo {
            id: deviceInfos
        }


                ListItem.SingleValue {
                    objectName: "imeiItem"
                    property string imeiNumber
                    imeiNumber: deviceInfos.imei(0)
                    text: "IMEI"
                    value: imeiNumber
                    visible: true
                }


If I set the "Security Profile" to  the following:

{
    "policy_groups": [],
    "policy_version": 1.1,
    "template": "unconfined"
}

Then I can get the IMEI number. However, if I set it to:

{
    "policy_groups": [
        "networking",
        "connectivity"
    ],
    "policy_version": 1.1
}

I could not get the IMEI number. According to
http://developer.ubuntu.com/publish/apps/security-policy-for-click-
packages/

connectivity: Can access coarse network connectivity information
QML: qtdeclarative5-systeminfo-plugin
import QtSystemInfo <version>
Other APIs: Qt5 QHostAddress and QNetworkInterface

"connectivity" has been added, however, it does not retrieve any of the
useful information. I have checked the "/var/log/syslog", there is no
violation as well.

Best regards,
XiaoGuo

** Affects: qtcreator-plugin-ubuntu (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
SDK bug tracking, which is subscribed to qtcreator-plugin-ubuntu in
Ubuntu.
https://bugs.launchpad.net/bugs/1338420

Title:
  Cannot get the IMEI number

Status in “qtcreator-plugin-ubuntu” package in Ubuntu:
  New

Bug description:
  I have a simple code like:

          DeviceInfo {
              id: deviceInfos
          }

  
                  ListItem.SingleValue {
                      objectName: "imeiItem"
                      property string imeiNumber
                      imeiNumber: deviceInfos.imei(0)
                      text: "IMEI"
                      value: imeiNumber
                      visible: true
                  }


  If I set the "Security Profile" to  the following:

  {
      "policy_groups": [],
      "policy_version": 1.1,
      "template": "unconfined"
  }

  Then I can get the IMEI number. However, if I set it to:

  {
      "policy_groups": [
          "networking",
          "connectivity"
      ],
      "policy_version": 1.1
  }

  I could not get the IMEI number. According to
  http://developer.ubuntu.com/publish/apps/security-policy-for-click-
  packages/

  connectivity: Can access coarse network connectivity information
  QML: qtdeclarative5-systeminfo-plugin
  import QtSystemInfo <version>
  Other APIs: Qt5 QHostAddress and QNetworkInterface

  "connectivity" has been added, however, it does not retrieve any of
  the useful information. I have checked the "/var/log/syslog", there is
  no violation as well.

  Best regards,
  XiaoGuo

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/qtcreator-plugin-ubuntu/+bug/1338420/+subscriptions


Follow ups

References