Forums | developer.brewmp.com Forums | developer.brewmp.com

Developer

Forums

Forums:

Can we get a Device's ESN or IMEI Number using any of the BREW APIs

Actually I need a Unique ID of the Device when My BREW Application runs on it
Is it possible in Brew

Not in 1.1.
Look at the AEEDeviceItems in BREW 3.1 for supported hardware identifiers (including ESN and IMEI). In BREW 2.1.3+ you can retrieve the MDN.

Not in 1.1.
Look at the AEEDeviceItems in BREW 3.1 for supported hardware identifiers (including ESN and IMEI). In BREW 2.1.3+ you can retrieve the MDN.

Thanks A Lot
I will just check this out and let you know

Thanks A Lot
I will just check this out and let you know

For Brew v1.1, I was thinking of using GETUPTIMEMS() for getting a unique time stamp when our application starts for the first time and then storing it in the Prefrence Structure.
Is it Correct????
I know that there is a possibility that some calls to GETUPTIMEMS() on different devices may give a same result(I think the probability is very very low) but I want some unique identifier for Brew v1.1 devices so that our Application can run properly.
With my Present Knowledge of BREW I can't think of any better idea than this.

For Brew v1.1, I was thinking of using GETUPTIMEMS() for getting a unique time stamp when our application starts for the first time and then storing it in the Prefrence Structure.
Is it Correct????
I know that there is a possibility that some calls to GETUPTIMEMS() on different devices may give a same result(I think the probability is very very low) but I want some unique identifier for Brew v1.1 devices so that our Application can run properly.
With my Present Knowledge of BREW I can't think of any better idea than this.

MIN should be pretty unique, I guess... On each particular device it can change at any time, but as far as I know there can't be several devices with the same MIN.

MIN should be pretty unique, I guess... On each particular device it can change at any time, but as far as I know there can't be several devices with the same MIN.

Hello Archi,
I am sorry I couldn't get you.
What does MIN means???

Hello Archi,
I am sorry I couldn't get you.
What does MIN means???

It's a Mobile Identification Number, 15-digit number that consists of a Mobile Country Code, Network Code and some number that suppose to be area code and phone number of the device (but pretty frequently it's not) and which you can obtain by calling ITAPI_GetStatus.
You can find more information on MIN and how to get it on those pages:
https://brewx.qualcomm.com/bws/content/gi/common/appseng/en/developerfaq...
https://brewx.qualcomm.com/bws/content/gi/common/appseng/en/developerfaq...

It's a Mobile Identification Number, 15-digit number that consists of a Mobile Country Code, Network Code and some number that suppose to be area code and phone number of the device (but pretty frequently it's not) and which you can obtain by calling ITAPI_GetStatus.
You can find more information on MIN and how to get it on those pages:
https://brewx.qualcomm.com/bws/content/gi/common/appseng/en/developerfaq...
https://brewx.qualcomm.com/bws/content/gi/common/appseng/en/developerfaq...

max wrote:Not in 1.1.
Look at the AEEDeviceItems in BREW 3.1 for supported hardware identifiers (including ESN and IMEI). In BREW 2.1.3+ you can retrieve the MDN.
Hello, I am using
int ISHELL_GetDeviceInfoEx(IShell *po, AEEDeviceItem nItem, void *pBuff, int *pnSize);
whith AEE_DEVICEITEM_IMEI
to get the IMEI, but I'm receiving the error code 20 (EUNSUPPORTED). So far I've been using only the emulator, so, my question is... this function works for the emulator or only for the device?
Also, checking the API references I saw a note that says: "AEECLSID_GSMCREDENTIALS or AEECLSID_HWIDS is the required privilege level."
This take me to my next question... how do I get this privilege?
Thanks so much for your support

max wrote:Not in 1.1.
Look at the AEEDeviceItems in BREW 3.1 for supported hardware identifiers (including ESN and IMEI). In BREW 2.1.3+ you can retrieve the MDN.
Hello, I am using
int ISHELL_GetDeviceInfoEx(IShell *po, AEEDeviceItem nItem, void *pBuff, int *pnSize);
whith AEE_DEVICEITEM_IMEI
to get the IMEI, but I'm receiving the error code 20 (EUNSUPPORTED). So far I've been using only the emulator, so, my question is... this function works for the emulator or only for the device?
Also, checking the API references I saw a note that says: "AEECLSID_GSMCREDENTIALS or AEECLSID_HWIDS is the required privilege level."
This take me to my next question... how do I get this privilege?
Thanks so much for your support

flavioperez wrote:Hello, I am using
int ISHELL_GetDeviceInfoEx(IShell *po, AEEDeviceItem nItem, void *pBuff, int *pnSize);
whith AEE_DEVICEITEM_IMEI
to get the IMEI, but I'm receiving the error code 20 (EUNSUPPORTED). So far I've been using only the emulator, so, my question is... this function works for the emulator or only for the device?
Also, checking the API references I saw a note that says: "AEECLSID_GSMCREDENTIALS or AEECLSID_HWIDS is the required privilege level."
This take me to my next question... how do I get this privilege?
Thanks so much for your support
I got the same problem with you.Could anyone share?
I think it means that you should config the mif to add AEECLSID_HWIDS in the dependencies.However I have tried this,and tested on the device to find the same result--EUNSPPORT.

flavioperez wrote:Hello, I am using
int ISHELL_GetDeviceInfoEx(IShell *po, AEEDeviceItem nItem, void *pBuff, int *pnSize);
whith AEE_DEVICEITEM_IMEI
to get the IMEI, but I'm receiving the error code 20 (EUNSUPPORTED). So far I've been using only the emulator, so, my question is... this function works for the emulator or only for the device?
Also, checking the API references I saw a note that says: "AEECLSID_GSMCREDENTIALS or AEECLSID_HWIDS is the required privilege level."
This take me to my next question... how do I get this privilege?
Thanks so much for your support
I got the same problem with you.Could anyone share?
I think it means that you should config the mif to add AEECLSID_HWIDS in the dependencies.However I have tried this,and tested on the device to find the same result--EUNSPPORT.