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

    return TextHelper.ensureNotNull(mac);
  }