|  |  | 
 |  |  |  | 
 |  |  |         StringBuffer _buffer = new StringBuffer(); | 
 |  |  |  | 
 |  |  |         _id = getDeviceId(context); | 
 |  |  |         _buffer.append(_id); | 
 |  |  | //        _id = getDeviceId(context); | 
 |  |  | //        _buffer.append(_id); | 
 |  |  |  | 
 |  |  |         _id = getLocalMac(context).replace(":", ""); | 
 |  |  |         _buffer.append(_id); | 
 |  |  | 
 |  |  |             return _deviceId; | 
 |  |  |         } | 
 |  |  |  | 
 |  |  |         TelephonyManager tm = (TelephonyManager) context | 
 |  |  |                 .getSystemService(Context.TELEPHONY_SERVICE); | 
 |  |  |  | 
 |  |  |         if (ContextCompat.checkSelfPermission(context, | 
 |  |  |                                               Manifest.permission.READ_PHONE_STATE) == PackageManager.PERMISSION_GRANTED) | 
 |  |  |         { | 
 |  |  |             TelephonyManager tm = (TelephonyManager) context | 
 |  |  |                     .getSystemService(Context.TELEPHONY_SERVICE); | 
 |  |  |             _deviceId = tm.getDeviceId(); | 
 |  |  |         } | 
 |  |  |         else | 
 |  |  |         { | 
 |  |  |             _deviceId = get(context); | 
 |  |  |         } | 
 |  |  |  | 
 |  |  |         if (_deviceId.length() != 0) |