Join Today
+ Reply to Thread
Page 1 of 2 12 LastLast
Results 1 to 10 of 13
  1. #1

    Default IMEI IMSI Access

    Is there any file from where one can retrieve the IMEI IMSI or any DEVICE info...?

    if not, does anyone know what command could be used to commuinicate with the modem to get it... just wondering

    thanks
    -Mudassar

  2. #2

    Default Re: IMEI IMSI Access

    well no reply means no one has tried doing it... but for those who would come one day looking for this info i have an idea....

    imei/imsi is basically for device uniquness... so just have a command executed on the shell and acquire the phones network address/ physical network address...

    its some where in /proc/net ... i think.. i will look for it too

  3. #3

    Default Re: IMEI IMSI Access

    There are apparently a whole bunch of APIs in libezxtapi to do this sort of thing, including:

    TAPI_ACCE_GetImei()
    TAPI_ACCE_GetImsi()
    TAPI_ACCE_GetFactorySerialNo()

    These will cause tapisrv to send an appropriate extended AT command to the BP, and return the result. Anyway, doesn't this sort of thing sound a bit invasive?

  4. #4

    Default Re: IMEI IMSI Access

    @samr7
    exactly the news i was looking for.... now the most obvious question would be how i can call it...

    is there anyway to acquire those header files for the corresponding libraries(or u have them in ur updates?)... cos without it i dont know how u can call those methods... ?

    btw, how did u find out about these API's ... ? these can only be seen by looking at the dll's or the header files of these corresponding libs... ? maybe i am not aware of it, but yes i can look for more API's too .. maybe i can use more API's out of it

    Thanks
    -Mudassar

  5. #5

    Default Re: IMEI IMSI Access

    Quote Originally Posted by mudassar
    Is there any file from where one can retrieve the IMEI IMSI or any DEVICE info...?

    if not, does anyone know what command could be used to commuinicate with the modem to get it... just wondering

    thanks
    -Mudassar
    Try "AT+CIMI" for IMSI and AT+CGSN for IMEI. It works on V500, I don't think A780's differ much from elder models in this matter.

    Regards
    Marecki

  6. #6

    Default Re: IMEI IMSI Access

    Hi,mudassar!
    I'm finding how to retrieve the IMEI &IMSI from A780(or E680I,E680).
    And I have found out that u can use these commands :
    System.getProperty().For example, the first ,System.getProperty("IMSI") is to get IMSI and the second, System.getProperty("phone.imei") is to get IMEI.And the second command is executed successfully .But the first is failed.
    My source code:
    System.getProperty("IMSI");
    Thread.sleep(*);
    s = System.getProperty("IMSI");
    ............
    System.getProperty("phone.imei");
    Thread.sleep(*);
    s = System.getProperty("phone.imei");
    ............
    This code -- Thread.sleep(*)-- is indispensability,and * is millisecond.And the MIDlet has to be signed.
    BTW, I develop by J2ME.

  7. #7

    Default Re: IMEI IMSI Access

    System.getProperty("IMSI");

    Thread.sleep(*);

    s = System.getProperty("IMSI");
    Thx for the reply. yes this is J2me .. i discovered it long back... i was only talking about the native SDK which is based on EZX/QT platform !!!

    well, turns out that i figured in the native SDK as well.....

    i used J2ME in one of the projects and i was able to retrieve the imei using system.getProperty("phone.imei") for imsi u can use "phone.imsi" it worked on the A768i without any signing capabilities but for A780 they probably want you midlet signed.

    J2me is very restrictive.. the kool API's were eliminated and requires midlet signing.. when it comes to signing the midlet.. motorola is a bitch....so i reverted all my efforts on Native Methods...

    thx anyways... if u need help in j2me let me know...

    Mudassar

  8. #8

    Default Re: IMEI IMSI Access

    Hi,mudassar.
    I tried to use System.getProperty("phone.imsi") in A780,but still retrieve NULL.Maybe,the command is not surpport by A780?

    Thx for your help.

  9. #9

    Default Re: IMEI IMSI Access

    @juliet

    hi... i will have to correct myself here. "phone.imsi" works well on A768i but not on A780. i think IMSI is not even supported. here is the documentation from A780 developer guide..

    Motorola implementation for the java.lang.System.getProperty method
    will support additional system properties beyond what is outlined in the JSR 118
    specification and is controlled by a flex bit. These additional system properties can only be
    accessed by trusted MIDlets.
    The additional system properties are as follows:
    • Cell ID: The current Cell ID of the device will be returned during implementation.
    • IMEI: The IMEI number of the device will be returned during implementation.
    The Code Sample 7 shows java.lang support:
    System.getProperty("phone.mcc")
    System.getProperty("phone.mnc")
    System.getProperty("phone.imei")
    System.getProperty("phone.cid")
    System.getProperty(“phone.lai”)
    System.getProperty(“phone.ta”)

    This further tells that ur midlet needs to be signed... is your Midlet signed by motorola ? i doubt it because its very hard to get it signed...
    moreover, i am sure through native code one can send a command to Modem to receive IMSI .. something like AT+ CIMI but its probably not feasible for you because then u wont be able to communicate with j2me through native side...

    the whole buisness of J2ME is pretty stupid and i hate the restrictions...
    well as long as u can get IMEI its pretty ok .. thats unique so i guess u should be fine with that... but getting the midlet sign is ugly !!!

    Good Luck

  10. #10

    Default Re: IMEI IMSI Access

    I've just printed all these on my A780:

    tscreen.append("phone.mcc "+System.getProperty("phone.mcc"), null);
    tscreen.append("phone.mnc "+System.getProperty("phone.mnc"), null);
    tscreen.append("phone.imei "+System.getProperty("phone.imei"), null);
    tscreen.append("phone.cid "+System.getProperty("phone.cid"), null);
    tscreen.append("phone.lac "+System.getProperty("phone.lac"), null);
    tscreen.append("phone.ta "+System.getProperty("phone.ta"), null);
    tscreen.append("phone.mnc "+System.getProperty("phone.mnc"), null);

    They all output something if the midlet's registry.txt has the IsTrusted flag set from 0 to 1


 
+ Reply to Thread
Page 1 of 2 12 LastLast

Similar Threads

  1. V400 IMEI error
    By Wizegui in forum P2K based Phones
    Replies: 2
    Last Post: 06-06-2008, 02:43 PM
  2. Change E680I IMEI?
    By weakcy in forum E680i General Chat
    Replies: 2
    Last Post: 10-23-2007, 04:23 PM
  3. Cellular Grid IMEI/IMSI Presence Indicator Program?
    By hobowrektus in forum Development
    Replies: 0
    Last Post: 08-08-2007, 02:51 AM
  4. Need to Change my phone IMEI
    By ealkan in forum E680i General Chat
    Replies: 15
    Last Post: 09-11-2006, 02:32 PM
  5. Getting IMEI from A780 ?
    By mudassar in forum A780 General Chat
    Replies: 5
    Last Post: 06-21-2005, 04:39 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
Single Sign On provided by vBSSO

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1