package com.kuaishou.weapon.p0; import android.content.Context; import android.telephony.TelephonyManager; import android.text.TextUtils; public class g2 { public static String a(Context context) { try { TelephonyManager telephonyManager = (TelephonyManager) context.getSystemService("phone"); if (telephonyManager == null) { return i1.b; } String networkCountryIso = telephonyManager.getNetworkCountryIso(); return TextUtils.isEmpty(networkCountryIso) ? i1.c : networkCountryIso; } catch (Throwable unused) { return i1.d; } } public static String b(Context context) { try { TelephonyManager telephonyManager = (TelephonyManager) context.getSystemService("phone"); if (telephonyManager == null) { return i1.b; } String networkOperator = telephonyManager.getNetworkOperator(); return TextUtils.isEmpty(networkOperator) ? i1.c : networkOperator; } catch (Throwable unused) { return i1.d; } } public static String c(Context context) { try { TelephonyManager telephonyManager = (TelephonyManager) context.getSystemService("phone"); if (telephonyManager == null) { return i1.b; } String simOperator = telephonyManager.getSimOperator(); return TextUtils.isEmpty(simOperator) ? i1.c : simOperator; } catch (Throwable unused) { return i1.d; } } }