Get data like MCC, MNC, LAC, CellID

Is it possible to get the following information about the incoming number in android

  • Mcc
  • Mnc
  • Lac
  • Cell id

I tried the code

TelephonyManager tel = (TelephonyManager) getSystemService(Context.TELEPHONY_SERVICE); String networkOperator = tel.getNetworkOperator(); if (networkOperator != null) { mcc = Integer.parseInt(networkOperator.substring(0, 3)); mnc = Integer.parseInt(networkOperator.substring(3)); } 

It returns information about the current SIM card, but I want to find it for the incoming number

+2
java android
source share
3 answers

This is difficult for this, you also need to implement the application on this phone. Because when you receive a call from some user, you only get the MSISDN through which you cannot gwt the details. On another mobile phone there should be an application that triggers the event, if it makes a call, now this application can receive the MCC.MNC and cell ID and can send via SMS to the called party, and then the calling party can process this SMS to get the details. Its simple logic is that if you want to spy on someone, then you have something at the end.

+1
source share

This will give you #:

 TelephonyManager telephonyManager = (TelephonyManager)getSystemService(TELEPHONY_SERVICE); String sim = telephonyManager.getSimSerialNumber(); 

Also add this permission to the manifest:

 <uses-permission android:name="android.permission.READ_PHONE_STATE"/> 

to receive mobile # change it to:

 String sim = telephonyManager.getLine1Number(); 

You can also refer to this: Access the SIM card using the Android app?

For information on incoming incoming calls, refer to this: http://sms411.net/2006/07/finding-out-someones-carrier/ and also How to get the name of the operator of the incoming number in android ..?

0
source share

Decision:

You can not , because the data of the incoming call contains only the number in the form of a string and sms? also not because the header of user message data may be null.

If you are developing a current location application, it can only be used by the owner of the cell phone.

On the other hand, there are some developers who want to use the AT command to request a call, but the only data with the call is only the number and only the number !!!

0
source share

All Articles