윈도우에서 GUID(전역 고유 식별자) 같은 모바일 장치에서도 고유값을 구하는 방법이 필요하다. 무엇으로 할까? 스마트 폰에서는 전화번호, 현재 위치 등도 고유한 값이긴하지만, IMEI 와 IMSI 값이 일반적인 고유치가 될 수 있을 것이다. 일단, IMEI 장비 고유값에 대해서 알아보자.
IMEI(International Mobile Equipment Identity) - GSM/WCDMA 및 위성폰에서의 고유값(코드14자+체크용1자=총15자)
MEID(Mobile Equipment IDentifier) - IMEI의 헥사값(14자), CDMA의 ESN(Electronic Serial Number, 8자)를 대신함
IMSI(International Mobile Subscriber Identity) - GSM/UMTS 에서 모바일 유저의 고유값(15자)
우리 나라는 WCDMA 방식을 쓰니까 모바일 장치의 고유값은 IMEI일 것이다.
단, USIM에 대한 고유값 곧 사용자에 대한 고유값은 IMSI이다.
- IMEI 생성 코드 -
TelephonyManager tm = (TelephonyManager)getSystemService(Context.TELEPHONY_SERVICE);
imeiString = tm.getDeviceId();
- Androidmanifest.xml -
Android.permission.READ_PHONE_STATE 추가
IMEI(International Mobile Equipment Identity) - GSM/WCDMA 및 위성폰에서의 고유값(코드14자+체크용1자=총15자)
MEID(Mobile Equipment IDentifier) - IMEI의 헥사값(14자), CDMA의 ESN(Electronic Serial Number, 8자)를 대신함
IMSI(International Mobile Subscriber Identity) - GSM/UMTS 에서 모바일 유저의 고유값(15자)
우리 나라는 WCDMA 방식을 쓰니까 모바일 장치의 고유값은 IMEI일 것이다.
단, USIM에 대한 고유값 곧 사용자에 대한 고유값은 IMSI이다.
Field |
public static final String | CODENAME | The current development codename, or the string "REL" if this is a release build. |
public static final String | INCREMENTAL | The internal value used by the underlying source control to represent this build. |
public static final String | RELEASE | The user-visible version string. |
public static final String | SDK | This field is deprecated. Use SDK_INT to easily get this as en integer. |
public static final int | SDK_INT | The user-visible SDK version if the framework, its possible values are defined in Build.VERSION_CODES. |
- IMEI 생성 코드 -
TelephonyManager tm = (TelephonyManager)getSystemService(Context.TELEPHONY_SERVICE);
imeiString = tm.getDeviceId();
- Androidmanifest.xml -
Android.permission.READ_PHONE_STATE 추가