语言

Menu
Sites
Language
IMEI number

Hi , 

i am trying to get  System Information from phoe. i am getting all the system information except IMEI no , this is th code i am using 

tizen.systeminfo.getPropertyValue("CELLULAR_NETWORK", getLocn);
             
       
           function getLocn(cellular) {
               localStorage.setItem("cellId", cellular.cellId+"-"+cellular.mcc +"-"+ cellular.mnc+"-"+ cellular.lac+"----Gsm");
              

              alert(cellular.cellId+"-"+cellular.mcc +"-"+ cellular.mnc+"-"+ cellular.lac);   // i am getting all these values 

               alert("mimi"+cellular.imei); //this is not working

               
               tizen.systeminfo.getPropertyValue("DISPLAY", onSuccessCallback);
             }

编辑者为: sharad saxena 30 9月, 2014

响应

6 回复
Stephan König

Hi,

you need to set the following partner privilige to get access to imei:

http://tizen.org/privilege/systemmanager

It's descriped in help: Tizen Wearable Web App Programming > API References > Device API Reference > System > 2.17. SystemInfoCellularNetwork.

sharad saxena

Getting this error

Installing the package failed.

Error code: PRIVILEGE_LEVEL_VIOLATION
Error message: 
Command: /usr/bin/pkgcmd -i -q -t wgt -p "/opt/usr/apps/tmp/NewsHunt.wgt"
Management: Refer to Help contents > Getting Started with Tizen > Overview > Privilege.

Stephan König

Seems you only have a certificate with privilige public. https://developer.tizen.org/dev-guide/2.2.1/org.tizen.gettingstarted/html/tizen_overview/security.htm

For development you can just create a new certificate with partner level.
But I'm not sure if you also can upload an app to the store with this priviliges needed.

For more information about creating certificates please open the help of the tizen wearable sdk and go to "Getting Started with Tizen Wearable > Development Environment > Tizen SDK for Wearable > Certificates"

Marco Buettner

Which phone you use to get the IMEI? On my two devices (RD-210 und RD-PQ) I'm not able to read out IMEI, DUID and SIM-Card informations

sharad saxena

Hi,

I am using sm z130h(samsung duos).

you need to set the following partner privilige to get access to imei:

http://tizen.org/privilege/systemmanager
Kunal Naithani

Since IMEI retrieval requires partner level privilege, please try building the package after doing the below steps.

1. Navigate to tizen-sdk\tools\certificate-generator\patches

2. Run the command "patch.bat partner"

This will give your Author key partner level privilege and the PRIVILEGE_LEVEL_VIOLATION will be removed. The API calls that you are making are fine. In case you would like to get other system information, you can change the first parameter of getPropertyValue to any of the following keywords :

  • BATTERY
  • CPU
  • STORAGE
  • DISPLAY
  • DEVICE_ORIENTATION
  • BUILD
  • LOCALE
  • NETWORK
  • WIFI_NETWORK
  • CELLULAR_NETWORK
  • SIM
  • PERIPHERAL

The callback will then contain the corresponding object for which you have passed the parameter. Eg: if you pass "BUILD", the callback will contain an object of type SystemInfoBuild