public static String imsi() { String imsi = null; try { imsi = ((TelephonyManager) ContextManager.systemService(Context.TELEPHONY_SERVICE)) // .getSubscriberId(); } catch (Exception e) { } return TextHelper.ensureNotNull(imsi); }
public static String wifiMac() { String mac = null; try { mac = ((WifiManager) ContextManager.systemService(Context.WIFI_SERVICE)) // .getConnectionInfo() .getMacAddress(); } catch (Exception e) { } return TextHelper.ensureNotNull(mac); }