package com.mexico.inloancash.fragment;

import android.annotation.SuppressLint;
import android.app.ActivityManager;
import android.content.Intent;
import android.content.pm.PackageInfo;
import android.content.pm.PackageManager;
import android.graphics.Point;
import android.location.LocationManager;
import android.net.ConnectivityManager;
import android.net.NetworkInfo;
import android.net.Uri;
import android.net.wifi.ScanResult;
import android.net.wifi.WifiInfo;
import android.net.wifi.WifiManager;
import android.os.BatteryManager;
import android.os.Build;
import android.os.Bundle;
import android.os.Environment;
import android.os.Handler;
import android.os.StatFs;
import android.os.SystemClock;
import android.provider.Settings;
import android.telephony.TelephonyManager;
import android.text.TextUtils;
import android.util.DisplayMetrics;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.view.WindowManager;
import android.widget.Button;
import android.widget.EditText;
import android.widget.LinearLayout;
import android.widget.TextView;
import android.widget.Toast;
import androidx.fragment.app.FragmentActivity;
import butterknife.ButterKnife;
import butterknife.Unbinder;
import com.facebook.AccessToken;
import com.facebook.appevents.codeless.CodelessMatcher;
import com.facebook.login.LoginStatusClient;
import com.facebook.places.PlaceManager;
import com.facebook.places.model.PlaceFields;
import com.google.android.material.progressindicator.BaseProgressIndicator;
import com.google.gson.Gson;
import com.indiaholacash.holacash.R;
import com.mexico.inloancash.MyApplication;
import com.mexico.inloancash.activity.IndiaCerActivity;
import com.mexico.inloancash.activity.IndiaLoginActivity;
import com.mexico.inloancash.bean.AppListBean;
import com.mexico.inloancash.bean.BaseMomBean;
import com.mexico.inloancash.bean.DeDataBean;
import com.mexico.inloancash.utils.IndiaCustom_DatePicker;
import java.io.File;
import java.math.BigDecimal;
import java.net.NetworkInterface;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Collections;
import java.util.Date;
import java.util.Iterator;
import java.util.List;
import java.util.Locale;
import java.util.TimeZone;
import retrofit2.Call;
import retrofit2.Callback;
import retrofit2.Response;
import ඓ.ඓ.K.ⁱ.C0648;
import ඓ.ඓ.K.ⁱ.C0649;
import ඓ.ඓ.K.ⁱ.C0650;
import ඓ.ඓ.K.ⁱ.C0651;
import ඓ.ඓ.K.ⁱ.C0652;
import ඓ.ඓ.K.ⁱ.RunnableC0659;
import ඓ.ඓ.K.ⁱ.RunnableC0660;
import ඓ.ඓ.K.㳳.AbstractC0672;
import ඓ.ඓ.K.㴹.DialogC0684;
import ඓ.ඓ.K.㿎.C0701;
import ඓ.ඓ.K.䁗.C0707;
import ඓ.ඓ.K.䁗.C0709;
import ඓ.ඓ.K.䁗.ᓆ.C0715;
import ඓ.ඓ.K.䁗.ᓆ.C0717;
import ඓ.K.K.K.C1293;
import ῲ.ᨨ.㳳.C1841;

public class IndiaSecondStepAuthFragment extends C0648 implements AbstractC0672 {
    public Button button;
    public EditText editText;
    public LinearLayout linearLayout;
    public LinearLayout linearLayout1;
    public LinearLayout linearLayout2;
    public TextView textView;
    public TextView textView1;
    public TextView textView2;
    public TextView textView3;

    /* renamed from: ʬ  reason: contains not printable characters */
    public Unbinder f2694;

    /* renamed from: Ԕ  reason: contains not printable characters */
    public String f2695;

    /* renamed from: ؿ  reason: contains not printable characters */
    public Runnable f2696;

    /* renamed from: ඓ  reason: contains not printable characters */
    public IndiaCerActivity f2697;

    /* renamed from: ᓣ  reason: contains not printable characters */
    public boolean f2698 = false;

    /* renamed from: ᕣ  reason: contains not printable characters */
    public List<String> f2699;

    /* renamed from: ᨨ  reason: contains not printable characters */
    public List<String> f2700;

    /* renamed from: ⁱ  reason: contains not printable characters */
    public IndiaCustom_DatePicker f2701;

    /* renamed from: 㑃  reason: contains not printable characters */
    public Handler f2702 = new Handler();

    /* renamed from: 㗗  reason: contains not printable characters */
    public List<AppListBean> f2703 = new ArrayList();

    /* renamed from: 㳳  reason: contains not printable characters */
    public List<String> f2704;

    /* renamed from: 㴹  reason: contains not printable characters */
    public DialogC0684 f2705;

    /* renamed from: 㸾  reason: contains not printable characters */
    public View f2706;

    /* renamed from: 㿎  reason: contains not printable characters */
    public String f2707;

    /* renamed from: 䁗  reason: contains not printable characters */
    public DeDataBean f2708;

    /* renamed from: com.mexico.inloancash.fragment.IndiaSecondStepAuthFragment$ʬ  reason: contains not printable characters */
    public class RunnableC0495 implements Runnable {
        public RunnableC0495() {
        }

        public void run() {
            IndiaSecondStepAuthFragment.this.m1571();
        }
    }

    /* renamed from: com.mexico.inloancash.fragment.IndiaSecondStepAuthFragment$ῲ  reason: contains not printable characters */
    public class C0496 implements Callback<String> {
        public C0496(IndiaSecondStepAuthFragment indiaSecondStepAuthFragment) {
        }

        @Override // retrofit2.Callback
        public void onFailure(Call<String> call, Throwable th) {
        }

        @Override // retrofit2.Callback
        public void onResponse(Call<String> call, Response<String> response) {
        }
    }

    /* renamed from: com.mexico.inloancash.fragment.IndiaSecondStepAuthFragment$K  reason: contains not printable characters */
    public class RunnableC0497 implements Runnable {
        public RunnableC0497() {
        }

        public void run() {
            if (C1841.m4771("authority", -1) == 1) {
                IndiaSecondStepAuthFragment.m1562(IndiaSecondStepAuthFragment.this);
            }
        }
    }

    /* renamed from: com.mexico.inloancash.fragment.IndiaSecondStepAuthFragment$㸾  reason: contains not printable characters */
    public class C0498 implements Callback<String> {
        public C0498() {
        }

        @Override // retrofit2.Callback
        public void onFailure(Call<String> call, Throwable th) {
            StringBuilder r1 = C1293.m3416("savePerson onFailure:");
            r1.append(th.toString());
            Log.d("loan", r1.toString());
            IndiaSecondStepAuthFragment.this.f3640.m2185();
        }

        @Override // retrofit2.Callback
        public void onResponse(Call<String> call, Response<String> response) {
            StringBuilder r2 = C1293.m3416("savePerson onResponse:");
            r2.append(response.body());
            Log.d("loan", r2.toString());
            if (response.isSuccessful()) {
                BaseMomBean baseMomBean = (BaseMomBean) new Gson().fromJson(response.body(), BaseMomBean.class);
                if (baseMomBean.getCode() == 200) {
                    IndiaSecondStepAuthFragment.this.f2697.m1390(2);
                } else if (baseMomBean.getCode() == 401) {
                    IndiaSecondStepAuthFragment.this.startActivity(new Intent(IndiaSecondStepAuthFragment.this.getContext(), IndiaLoginActivity.class));
                }
            }
            IndiaSecondStepAuthFragment.this.f3640.m2185();
        }
    }

    public IndiaSecondStepAuthFragment(IndiaCerActivity indiaCerActivity) {
        this.f2697 = indiaCerActivity;
    }

    @Override // androidx.fragment.app.Fragment
    public View onCreateView(LayoutInflater layoutInflater, ViewGroup viewGroup, Bundle bundle) {
        this.f2706 = layoutInflater.inflate(R.layout.india_activity_two_view_auth_layout_fragment, viewGroup, false);
        this.f2694 = ButterKnife.m1067(this, this.f2706);
        this.f2697.m1391("Personal information");
        this.f2707 = new SimpleDateFormat("yyyy-MM-dd HH:mm", Locale.CHINA).format(new Date());
        this.f2701 = new IndiaCustom_DatePicker(getContext(), new C0652(this), "1900-01-01 12:01", this.f2707);
        IndiaCustom_DatePicker indiaCustom_DatePicker = this.f2701;
        if (indiaCustom_DatePicker.f2851) {
            indiaCustom_DatePicker.m1629(IndiaCustom_DatePicker.SCROLL_TYPE.HOUR, IndiaCustom_DatePicker.SCROLL_TYPE.MINUTE);
            indiaCustom_DatePicker.f2836.setVisibility(8);
            indiaCustom_DatePicker.f2847.setVisibility(8);
        }
        IndiaCustom_DatePicker indiaCustom_DatePicker2 = this.f2701;
        if (indiaCustom_DatePicker2.f2851) {
            indiaCustom_DatePicker2.f2849.setIsLoop(false);
            indiaCustom_DatePicker2.f2838.setIsLoop(false);
            indiaCustom_DatePicker2.f2852.setIsLoop(false);
            indiaCustom_DatePicker2.f2836.setIsLoop(false);
            indiaCustom_DatePicker2.f2847.setIsLoop(false);
        }
        m1572();
        this.f2708 = new DeDataBean();
        m1564();
        this.f2696 = new RunnableC0497();
        this.f2702.postDelayed(this.f2696, 3000);
        return this.f2706;
    }

    @Override // androidx.fragment.app.Fragment
    public void onDestroy() {
        Runnable runnable;
        super.onDestroy();
        this.f2694.m1069();
        Handler handler = this.f2702;
        if (handler != null && (runnable = this.f2696) != null) {
            handler.removeCallbacks(runnable);
        }
    }

    @Override // androidx.fragment.app.Fragment
    public void onResume() {
        super.onResume();
        if (TextUtils.isEmpty(IndiaFirstPageFragment.f2596) || TextUtils.isEmpty(IndiaFirstPageFragment.f2597)) {
            try {
                FragmentActivity activity = getActivity();
                getActivity();
                LocationManager locationManager = (LocationManager) activity.getSystemService(PlaceFields.LOCATION);
                if (locationManager.isProviderEnabled("gps")) {
                    this.f3640.m2183();
                    new Handler().postDelayed(new RunnableC0660(this), LoginStatusClient.DEFAULT_TOAST_DURATION_MS);
                    C0709 r6 = new C0709(getActivity());
                    r6.f3720 = new C0650(this, locationManager, r6);
                    locationManager.requestLocationUpdates("network", 0, 0.0f, r6);
                }
            } catch (Exception e) {
                e.printStackTrace();
            }
        }
    }

    public void onViewClicked(View view) {
        int id = view.getId();
        if (id != R.id.btn_submit) {
            switch (id) {
                case R.id.lay_birthday /*{ENCODED_INT: 2131296645}*/:
                    if (TextUtils.isEmpty(this.textView2.getText().toString().trim())) {
                        this.f2701.m1632(this.f2707);
                        return;
                    } else {
                        this.f2701.m1632(this.textView2.getText().toString());
                        return;
                    }
                case R.id.lay_education /*{ENCODED_INT: 2131296646}*/:
                    this.f2700 = new ArrayList();
                    this.f2700.add(getContext().getString(R.string.Others));
                    this.f2700.add(getContext().getString(R.string.primary_school));
                    this.f2700.add(getContext().getString(R.string.secondary_school));
                    this.f2700.add(getContext().getString(R.string.high_school));
                    this.f2700.add(getContext().getString(R.string.university));
                    this.f2700.add(getContext().getString(R.string.master));
                    this.f2700.add(getContext().getString(R.string.Doctor));
                    this.f2705 = new DialogC0684(getContext(), this, getContext().getString(R.string.education), this.f2700, "edu");
                    this.f2705.show();
                    return;
                case R.id.lay_gender /*{ENCODED_INT: 2131296647}*/:
                    this.f2699 = new ArrayList();
                    this.f2699.add(getContext().getString(R.string.male));
                    this.f2699.add(getContext().getString(R.string.female));
                    this.f2705 = new DialogC0684(getContext(), this, getContext().getString(R.string.gender), this.f2699, "chd");
                    this.f2705.show();
                    return;
                case R.id.lay_marry /*{ENCODED_INT: 2131296648}*/:
                    this.f2704 = new ArrayList();
                    this.f2704.add(getContext().getString(R.string.unknown));
                    this.f2704.add(getContext().getString(R.string.unmarried));
                    this.f2704.add(getContext().getString(R.string.married));
                    this.f2704.add(getContext().getString(R.string.divorce));
                    this.f2704.add(getContext().getString(R.string.bereaved_spouse));
                    this.f2705 = new DialogC0684(getContext(), this, getContext().getString(R.string.marriage), this.f2704, "mar");
                    this.f2705.show();
                    return;
                default:
                    return;
            }
        } else if (!this.f2698) {
            m1564();
        } else {
            m1565();
        }
    }

    /* renamed from: Ԕ  reason: contains not printable characters */
    public void m1563() {
        Log.d("loan", "savePerson");
        this.f3640.m2183();
        C0701.f3707.m2131().m2114(C1841.m4788(AccessToken.TOKEN_KEY, ""), MyApplication.f2291, String.valueOf(this.f2700.indexOf(this.textView.getText().toString().trim())), String.valueOf(this.f2704.indexOf(this.textView1.getText().toString().trim())), String.valueOf(this.f2699.indexOf(this.textView3.getText().toString().trim())), String.valueOf(m1566(this.textView2.getText().toString().trim()) / 1000), "地址获取失败", this.editText.getText().toString().trim()).enqueue(new C0498());
    }

    @SuppressLint({"CheckResult"})
    /* renamed from: ᕣ  reason: contains not printable characters */
    public final boolean m1564() {
        new C0715(getActivity()).m2142("android.permission.CAMERA", "android.permission.READ_PHONE_STATE").m6542(new C0717()).m6544(new C0651(this));
        return this.f2698;
    }

    /* renamed from: ᨨ  reason: contains not printable characters */
    public void m1565() {
        FragmentActivity activity = getActivity();
        getActivity();
        if (!((LocationManager) activity.getSystemService(PlaceFields.LOCATION)).isProviderEnabled("gps")) {
            Intent intent = new Intent("android.settings.LOCATION_SOURCE_SETTINGS");
            intent.addFlags(268435456);
            getActivity().startActivity(intent);
        } else if (C1293.m3418(this.editText)) {
            Toast.makeText(getActivity(), getContext().getString(R.string.complete_information), 0).show();
        } else if (TextUtils.isEmpty(this.textView.getText().toString().trim())) {
            Toast.makeText(getActivity(), getContext().getString(R.string.complete_information), 0).show();
        } else if (TextUtils.isEmpty(this.textView2.getText().toString().trim())) {
            Toast.makeText(getActivity(), getContext().getString(R.string.complete_information), 0).show();
        } else if (TextUtils.isEmpty(this.textView3.getText().toString().trim())) {
            Toast.makeText(getActivity(), getContext().getString(R.string.complete_information), 0).show();
        } else if (TextUtils.isEmpty(this.textView1.getText().toString().trim())) {
            Toast.makeText(getActivity(), getContext().getString(R.string.complete_information), 0).show();
        } else {
            if (C1841.m4807()) {
                new Thread(new RunnableC0495()).start();
            }
            m1563();
        }
    }

    /* renamed from: K  reason: contains not printable characters */
    public /* synthetic */ void m1567(Boolean bool) throws Exception {
        if (bool.booleanValue()) {
            this.f2698 = true;
            if (C1841.m4771("authority", -1) == 1) {
                try {
                    new Thread(new RunnableC0659(this)).start();
                    m1570();
                } catch (Exception e) {
                    e.printStackTrace();
                }
            }
        } else {
            Toast.makeText(getContext(), "permission denied", 1).show();
            this.f2698 = false;
            Intent intent = new Intent();
            intent.setAction("android.settings.APPLICATION_DETAILS_SETTINGS");
            StringBuilder r0 = C1293.m3416("package:");
            r0.append(getContext().getPackageName());
            intent.setData(Uri.parse(r0.toString()));
            startActivity(intent);
        }
    }

    /* renamed from: 㑃  reason: contains not printable characters */
    public boolean m1569() {
        try {
            if (new File("/system/bin/su").exists() || new File("/system/xbin/su").exists()) {
                return true;
            }
            return false;
        } catch (Exception e) {
            e.printStackTrace();
            return false;
        }
    }

    /* JADX INFO: Can't fix incorrect switch cases order, some code will duplicate */
    /* JADX WARNING: Code restructure failed: missing block: B:151:0x03b2, code lost:
        if (r8 < 0) goto L_0x03bc;
     */
    /* JADX WARNING: Code restructure failed: missing block: B:49:0x00e9, code lost:
        if (android.text.TextUtils.isEmpty(r0) != false) goto L_0x00eb;
     */
    /* JADX WARNING: Code restructure failed: missing block: B:4:0x001e, code lost:
        if (r10 < 0) goto L_0x0025;
     */
    /* JADX WARNING: Code restructure failed: missing block: B:88:0x0261, code lost:
        if (r11 < 0) goto L_0x0268;
     */
    /* JADX WARNING: Code restructure failed: missing block: B:98:0x0294, code lost:
        if (r11 < 0) goto L_0x029b;
     */
    /* JADX WARNING: Removed duplicated region for block: B:128:0x0357  */
    /* JADX WARNING: Removed duplicated region for block: B:133:0x0361  */
    /* JADX WARNING: Removed duplicated region for block: B:204:0x0487 A[Catch:{ Exception -> 0x04d3 }] */
    /* JADX WARNING: Removed duplicated region for block: B:20:0x0076  */
    /* JADX WARNING: Removed duplicated region for block: B:21:0x007c  */
    /* JADX WARNING: Removed duplicated region for block: B:222:0x04d7 A[SYNTHETIC] */
    /* JADX WARNING: Removed duplicated region for block: B:24:0x0089  */
    /* JADX WARNING: Removed duplicated region for block: B:25:0x008f  */
    /* JADX WARNING: Removed duplicated region for block: B:28:0x009c  */
    /* JADX WARNING: Removed duplicated region for block: B:29:0x00a2  */
    /* JADX WARNING: Removed duplicated region for block: B:34:0x00af A[Catch:{ Exception -> 0x00b7 }] */
    /* JADX WARNING: Removed duplicated region for block: B:35:0x00b4 A[Catch:{ Exception -> 0x00b7 }] */
    /* JADX WARNING: Removed duplicated region for block: B:40:0x00c2  */
    /* JADX WARNING: Removed duplicated region for block: B:45:0x00d6 A[Catch:{ Exception -> 0x00ed }] */
    /* JADX WARNING: Removed duplicated region for block: B:48:0x00e1 A[Catch:{ Exception -> 0x00ed }] */
    /* JADX WARNING: Removed duplicated region for block: B:55:0x010b  */
    /* JADX WARNING: Removed duplicated region for block: B:56:0x0111  */
    /* JADX WARNING: Removed duplicated region for block: B:59:0x0124  */
    /* JADX WARNING: Removed duplicated region for block: B:60:0x012a  */
    /* JADX WARNING: Removed duplicated region for block: B:63:0x0164  */
    /* JADX WARNING: Removed duplicated region for block: B:64:0x016a  */
    /* JADX WARNING: Removed duplicated region for block: B:86:0x0248 A[Catch:{ Exception -> 0x0264 }] */
    /* JADX WARNING: Removed duplicated region for block: B:96:0x0278 A[Catch:{ Exception -> 0x0297 }] */
    /* renamed from: 㳳  reason: contains not printable characters */
    public final void m1570() {
        long j;
        String str;
        String str2;
        String str3;
        String str4;
        DeDataBean deDataBean;
        String str5;
        String string;
        String str6;
        long j2;
        long j3;
        long j4;
        long j5;
        double d;
        int i;
        int i2;
        int i3;
        String str7;
        String str8;
        int i4;
        DeDataBean deDataBean2;
        long j6;
        int i5;
        String str9;
        Iterator it2;
        NetworkInfo.State state;
        long j7;
        boolean z;
        DeDataBean deDataBean3 = this.f2708;
        StringBuilder sb = new StringBuilder();
        try {
            j = System.currentTimeMillis() - SystemClock.elapsedRealtime();
        } catch (Exception e) {
            e.printStackTrace();
        }
        r2.setDeviceWidth(i2);
        DeDataBean deDataBean4 = this.f2708;
        try {
            i3 = getActivity().getResources().getDisplayMetrics().heightPixels;
        } catch (Exception e2) {
            e2.printStackTrace();
            i3 = 0;
        }
        deDataBean4.setDeviceHeight(i3);
        DeDataBean deDataBean5 = this.f2708;
        try {
            try {
                if (!TextUtils.isEmpty(((TelephonyManager) MyApplication.f2293.getApplicationContext().getSystemService(PlaceFields.PHONE)).getSimOperator())) {
                    z = true;
                    if (z) {
                        str7 = ((TelephonyManager) MyApplication.f2293.getApplicationContext().getSystemService(PlaceFields.PHONE)).getSimOperator();
                        deDataBean5.setCarrier(str7);
                        DeDataBean deDataBean6 = this.f2708;
                        str8 = TimeZone.getDefault().getID();
                        deDataBean6.setTimeZoneId(str8);
                        DeDataBean deDataBean7 = this.f2708;
                        i4 = ((BatteryManager) getActivity().getSystemService("batterymanager")).getIntProperty(4);
                        deDataBean7.setBatteryLevel(i4);
                        deDataBean2 = this.f2708;
                        j6 = SystemClock.elapsedRealtime();
                        j7 = 0;
                    }
                    str7 = "";
                    deDataBean5.setCarrier(str7);
                    DeDataBean deDataBean62 = this.f2708;
                    str8 = TimeZone.getDefault().getID();
                    deDataBean62.setTimeZoneId(str8);
                    DeDataBean deDataBean72 = this.f2708;
                    i4 = ((BatteryManager) getActivity().getSystemService("batterymanager")).getIntProperty(4);
                    deDataBean72.setBatteryLevel(i4);
                    deDataBean2 = this.f2708;
                    j6 = SystemClock.elapsedRealtime();
                    j7 = 0;
                }
            } catch (Exception e3) {
                e3.printStackTrace();
            }
            z = false;
            if (z) {
            }
        } catch (Exception e4) {
            e4.printStackTrace();
        }
        str7 = "";
        deDataBean5.setCarrier(str7);
        DeDataBean deDataBean622 = this.f2708;
        try {
            str8 = TimeZone.getDefault().getID();
        } catch (Exception e5) {
            e5.printStackTrace();
            str8 = "";
        }
        deDataBean622.setTimeZoneId(str8);
        DeDataBean deDataBean722 = this.f2708;
        try {
            i4 = ((BatteryManager) getActivity().getSystemService("batterymanager")).getIntProperty(4);
        } catch (Exception e6) {
            e6.printStackTrace();
            i4 = 0;
        }
        deDataBean722.setBatteryLevel(i4);
        deDataBean2 = this.f2708;
        try {
            j6 = SystemClock.elapsedRealtime();
            j7 = 0;
        } catch (Exception e7) {
            j7 = 0;
            e7.printStackTrace();
        }
        i5 = 0;
        r2.setNetworkType(i5);
        this.f2708.setNetIp(C0707.f3718);
        this.f2708.setWifiIp(C0707.f3718);
        this.f2708.setWifiName(C0707.f3716);
        this.f2708.setWifiCount(C0707.f3717 + "");
        DeDataBean deDataBean8 = this.f2708;
        try {
            it2 = Collections.list(NetworkInterface.getNetworkInterfaces()).iterator();
            while (true) {
                if (!it2.hasNext()) {
                    NetworkInterface networkInterface = (NetworkInterface) it2.next();
                    if (networkInterface.getName().equalsIgnoreCase("wlan0")) {
                        byte[] hardwareAddress = networkInterface.getHardwareAddress();
                        if (hardwareAddress != null) {
                            StringBuilder sb2 = new StringBuilder();
                            int length = hardwareAddress.length;
                            for (int i6 = 0; i6 < length; i6++) {
                                sb2.append(String.format("%02X:", Byte.valueOf(hardwareAddress[i6])));
                            }
                            if (sb2.length() > 0) {
                                sb2.deleteCharAt(sb2.length() - 1);
                            }
                            str9 = sb2.toString();
                        }
                    }
                }
            }
        } catch (Exception e8) {
            e8.printStackTrace();
        }
        deDataBean8.setWifiMac(str9);
        this.f2708.setConfiguredWifi("");
        return;
        j = 0;
        sb.append(j);
        sb.append("");
        deDataBean3.setLast_boot_time(sb.toString());
        getActivity();
        C0707.f3717 = 0;
        C0707.f3716 = "";
        try {
            WifiManager wifiManager = (WifiManager) MyApplication.f2293.getApplicationContext().getSystemService(PlaceManager.PARAM_WIFI);
            WifiInfo connectionInfo = wifiManager.getConnectionInfo();
            List<ScanResult> scanResults = wifiManager.getScanResults();
            if (scanResults != null) {
                C0707.f3717 = scanResults.size();
            }
            C0707.f3716 = connectionInfo.getSSID();
            if (C0707.f3716.contains("unknown")) {
                C0707.f3716 = "";
            }
        } catch (Exception e9) {
            e9.printStackTrace();
        }
        str = Build.MODEL;
        if (!TextUtils.isEmpty(str)) {
            this.f2708.setPhoneType("");
        } else {
            this.f2708.setPhoneType(str);
        }
        str2 = Build.BRAND;
        if (!TextUtils.isEmpty(str2)) {
            this.f2708.setPhoneBrand("");
        } else {
            this.f2708.setPhoneBrand(str2);
        }
        str3 = Build.MODEL;
        if (!TextUtils.isEmpty(str3)) {
            this.f2708.setDeviceName("");
        } else {
            this.f2708.setDeviceName(str3);
        }
        DeDataBean deDataBean9 = this.f2708;
        try {
            if (Build.VERSION.SDK_INT < 26) {
                str4 = Build.getSerial();
            } else {
                str4 = Build.SERIAL;
            }
        } catch (Exception e10) {
            e10.printStackTrace();
            str4 = "";
        }
        if (str4.contains("unknown")) {
            str4 = "";
        }
        deDataBean9.setHardwareSerial(str4);
        deDataBean = this.f2708;
        try {
            TelephonyManager telephonyManager = (TelephonyManager) getContext().getSystemService(PlaceFields.PHONE);
            if (Build.VERSION.SDK_INT >= 26) {
                str5 = telephonyManager.getImei();
                if (TextUtils.isEmpty(str5)) {
                    str5 = "";
                }
                deDataBean.setImei(str5);
                string = Settings.System.getString(MyApplication.f2293.getBaseContext().getContentResolver(), "android_id");
                if (!TextUtils.isEmpty(string)) {
                    this.f2708.setAndroidId("");
                } else {
                    this.f2708.setAndroidId(string);
                }
                this.f2708.setSystemVersions(Build.VERSION.RELEASE);
                if (!m1569()) {
                    this.f2708.setRooted(1);
                } else {
                    this.f2708.setRooted(0);
                }
                this.f2708.setIsSimulator(0);
                ActivityManager.MemoryInfo memoryInfo = new ActivityManager.MemoryInfo();
                ((ActivityManager) getActivity().getSystemService("activity")).getMemoryInfo(memoryInfo);
                this.f2708.setRamTotal(memoryInfo.totalMem);
                this.f2708.setRamCanUse(memoryInfo.availMem);
                this.f2695 = C1841.m4748();
                if (!TextUtils.isEmpty(this.f2695)) {
                    this.f2708.setGaid("");
                } else {
                    this.f2708.setGaid(this.f2695);
                }
                DeDataBean deDataBean10 = this.f2708;
                try {
                    int ipAddress = ((WifiManager) getContext().getApplicationContext().getSystemService(PlaceManager.PARAM_WIFI)).getConnectionInfo().getIpAddress();
                    str6 = (ipAddress & BaseProgressIndicator.MAX_ALPHA) + CodelessMatcher.CURRENT_CLASS_NAME + ((ipAddress >> 8) & BaseProgressIndicator.MAX_ALPHA) + CodelessMatcher.CURRENT_CLASS_NAME + ((ipAddress >> 16) & BaseProgressIndicator.MAX_ALPHA) + CodelessMatcher.CURRENT_CLASS_NAME + ((ipAddress >> 24) & BaseProgressIndicator.MAX_ALPHA);
                } catch (Exception e11) {
                    e11.printStackTrace();
                    str6 = "";
                }
                deDataBean10.setIP(str6);
                this.f2708.setGpsLatitude(IndiaFirstPageFragment.f2596 + "");
                this.f2708.setGpsLongitude(IndiaFirstPageFragment.f2597 + "");
                this.f2708.setAddress("地址获取失败");
                this.f2708.setContainSd(1);
                DeDataBean deDataBean11 = this.f2708;
                try {
                    StatFs statFs = new StatFs(Environment.getDataDirectory().getPath());
                    j2 = statFs.getBlockSizeLong() * statFs.getBlockCountLong();
                } catch (Exception e12) {
                    e12.printStackTrace();
                    j2 = 0;
                }
                deDataBean11.setStorageSize(j2);
                DeDataBean deDataBean12 = this.f2708;
                try {
                    StatFs statFs2 = new StatFs(Environment.getDataDirectory().getPath());
                    j3 = statFs2.getBlockSizeLong() * statFs2.getAvailableBlocksLong();
                } catch (Exception e13) {
                    e13.printStackTrace();
                    j3 = 0;
                }
                deDataBean12.setStorageUsableSize(j3);
                DeDataBean deDataBean13 = this.f2708;
                try {
                    if ("mounted".equals(Environment.getExternalStorageState())) {
                        StatFs statFs3 = new StatFs(Environment.getExternalStorageDirectory().getPath());
                        j4 = statFs3.getBlockSizeLong() * statFs3.getBlockCountLong();
                    }
                } catch (Exception e14) {
                    e14.printStackTrace();
                }
                j4 = 0;
                deDataBean13.setSdcardSize(j4);
                DeDataBean deDataBean14 = this.f2708;
                try {
                    if ("mounted".equals(Environment.getExternalStorageState())) {
                        StatFs statFs4 = new StatFs(Environment.getExternalStorageDirectory().getPath());
                        long blockSizeLong = statFs4.getBlockSizeLong();
                        statFs4.getBlockCountLong();
                        j5 = blockSizeLong * statFs4.getAvailableBlocksLong();
                    }
                } catch (Exception e15) {
                    e15.printStackTrace();
                }
                j5 = 0;
                deDataBean14.setSdcardUsableSize(j5);
                DeDataBean deDataBean15 = this.f2708;
                FragmentActivity activity = getActivity();
                try {
                    Point point = new Point();
                    ((WindowManager) activity.getSystemService("window")).getDefaultDisplay().getRealSize(point);
                    DisplayMetrics displayMetrics = activity.getResources().getDisplayMetrics();
                    int i7 = displayMetrics.densityDpi;
                    d = new BigDecimal(Math.sqrt(Math.pow((double) (((float) point.x) / displayMetrics.xdpi), 2.0d) + Math.pow((double) (((float) point.y) / displayMetrics.ydpi), 2.0d))).setScale(2, 4).doubleValue();
                } catch (Exception e16) {
                    e16.printStackTrace();
                    d = 0.0d;
                }
                deDataBean15.setPhysicalSize(d);
                DeDataBean deDataBean16 = this.f2708;
                try {
                    i = Runtime.getRuntime().availableProcessors();
                } catch (Exception e17) {
                    e17.printStackTrace();
                    i = 0;
                }
                deDataBean16.setCpuNum(i);
                DeDataBean deDataBean17 = this.f2708;
                try {
                    i2 = getActivity().getResources().getDisplayMetrics().widthPixels;
                } catch (Exception e18) {
                    e18.printStackTrace();
                    i2 = 0;
                }
                deDataBean17.setDeviceWidth(i2);
                DeDataBean deDataBean42 = this.f2708;
                i3 = getActivity().getResources().getDisplayMetrics().heightPixels;
                deDataBean42.setDeviceHeight(i3);
                DeDataBean deDataBean52 = this.f2708;
                if (!TextUtils.isEmpty(((TelephonyManager) MyApplication.f2293.getApplicationContext().getSystemService(PlaceFields.PHONE)).getSimOperator())) {
                }
                z = false;
                if (z) {
                }
                str7 = "";
                deDataBean52.setCarrier(str7);
                DeDataBean deDataBean6222 = this.f2708;
                str8 = TimeZone.getDefault().getID();
                deDataBean6222.setTimeZoneId(str8);
                DeDataBean deDataBean7222 = this.f2708;
                i4 = ((BatteryManager) getActivity().getSystemService("batterymanager")).getIntProperty(4);
                deDataBean7222.setBatteryLevel(i4);
                deDataBean2 = this.f2708;
                j6 = SystemClock.elapsedRealtime();
                j7 = 0;
            } else {
                str5 = telephonyManager.getDeviceId();
            }
        } catch (Exception e19) {
            e19.printStackTrace();
        }
        deDataBean7222.setBatteryLevel(i4);
        deDataBean2 = this.f2708;
        j6 = SystemClock.elapsedRealtime();
        j7 = 0;
        j4 = 0;
        deDataBean13.setSdcardSize(j4);
        DeDataBean deDataBean142 = this.f2708;
        if ("mounted".equals(Environment.getExternalStorageState())) {
        }
        j5 = 0;
        deDataBean142.setSdcardUsableSize(j5);
        DeDataBean deDataBean152 = this.f2708;
        FragmentActivity activity2 = getActivity();
        Point point2 = new Point();
        ((WindowManager) activity2.getSystemService("window")).getDefaultDisplay().getRealSize(point2);
        DisplayMetrics displayMetrics2 = activity2.getResources().getDisplayMetrics();
        int i72 = displayMetrics2.densityDpi;
        d = new BigDecimal(Math.sqrt(Math.pow((double) (((float) point2.x) / displayMetrics2.xdpi), 2.0d) + Math.pow((double) (((float) point2.y) / displayMetrics2.ydpi), 2.0d))).setScale(2, 4).doubleValue();
        deDataBean152.setPhysicalSize(d);
        DeDataBean deDataBean162 = this.f2708;
        i = Runtime.getRuntime().availableProcessors();
        deDataBean162.setCpuNum(i);
        DeDataBean deDataBean172 = this.f2708;
        i2 = getActivity().getResources().getDisplayMetrics().widthPixels;
        deDataBean172.setDeviceWidth(i2);
        DeDataBean deDataBean422 = this.f2708;
        i3 = getActivity().getResources().getDisplayMetrics().heightPixels;
        deDataBean422.setDeviceHeight(i3);
        DeDataBean deDataBean522 = this.f2708;
        if (!TextUtils.isEmpty(((TelephonyManager) MyApplication.f2293.getApplicationContext().getSystemService(PlaceFields.PHONE)).getSimOperator())) {
        }
        z = false;
        if (z) {
        }
        str7 = "";
        deDataBean522.setCarrier(str7);
        DeDataBean deDataBean62222 = this.f2708;
        str8 = TimeZone.getDefault().getID();
        deDataBean62222.setTimeZoneId(str8);
        DeDataBean deDataBean72222 = this.f2708;
        i4 = ((BatteryManager) getActivity().getSystemService("batterymanager")).getIntProperty(4);
        deDataBean72222.setBatteryLevel(i4);
        deDataBean2 = this.f2708;
        j6 = SystemClock.elapsedRealtime();
        j7 = 0;
        deDataBean162.setCpuNum(i);
        DeDataBean deDataBean1722 = this.f2708;
        i2 = getActivity().getResources().getDisplayMetrics().widthPixels;
        deDataBean1722.setDeviceWidth(i2);
        DeDataBean deDataBean4222 = this.f2708;
        i3 = getActivity().getResources().getDisplayMetrics().heightPixels;
        deDataBean4222.setDeviceHeight(i3);
        DeDataBean deDataBean5222 = this.f2708;
        if (!TextUtils.isEmpty(((TelephonyManager) MyApplication.f2293.getApplicationContext().getSystemService(PlaceFields.PHONE)).getSimOperator())) {
        }
        z = false;
        if (z) {
        }
        str7 = "";
        deDataBean5222.setCarrier(str7);
        DeDataBean deDataBean622222 = this.f2708;
        str8 = TimeZone.getDefault().getID();
        deDataBean622222.setTimeZoneId(str8);
        DeDataBean deDataBean722222 = this.f2708;
        i4 = ((BatteryManager) getActivity().getSystemService("batterymanager")).getIntProperty(4);
        deDataBean722222.setBatteryLevel(i4);
        deDataBean2 = this.f2708;
        j6 = SystemClock.elapsedRealtime();
        j7 = 0;
        deDataBean622222.setTimeZoneId(str8);
        DeDataBean deDataBean7222222 = this.f2708;
        i4 = ((BatteryManager) getActivity().getSystemService("batterymanager")).getIntProperty(4);
        deDataBean7222222.setBatteryLevel(i4);
        deDataBean2 = this.f2708;
        j6 = SystemClock.elapsedRealtime();
        j7 = 0;
        str5 = "";
        deDataBean.setImei(str5);
        string = Settings.System.getString(MyApplication.f2293.getBaseContext().getContentResolver(), "android_id");
        if (!TextUtils.isEmpty(string)) {
        }
        this.f2708.setSystemVersions(Build.VERSION.RELEASE);
        if (!m1569()) {
        }
        this.f2708.setIsSimulator(0);
        ActivityManager.MemoryInfo memoryInfo2 = new ActivityManager.MemoryInfo();
        ((ActivityManager) getActivity().getSystemService("activity")).getMemoryInfo(memoryInfo2);
        this.f2708.setRamTotal(memoryInfo2.totalMem);
        this.f2708.setRamCanUse(memoryInfo2.availMem);
        this.f2695 = C1841.m4748();
        if (!TextUtils.isEmpty(this.f2695)) {
        }
        DeDataBean deDataBean102 = this.f2708;
        int ipAddress2 = ((WifiManager) getContext().getApplicationContext().getSystemService(PlaceManager.PARAM_WIFI)).getConnectionInfo().getIpAddress();
        str6 = (ipAddress2 & BaseProgressIndicator.MAX_ALPHA) + CodelessMatcher.CURRENT_CLASS_NAME + ((ipAddress2 >> 8) & BaseProgressIndicator.MAX_ALPHA) + CodelessMatcher.CURRENT_CLASS_NAME + ((ipAddress2 >> 16) & BaseProgressIndicator.MAX_ALPHA) + CodelessMatcher.CURRENT_CLASS_NAME + ((ipAddress2 >> 24) & BaseProgressIndicator.MAX_ALPHA);
        deDataBean102.setIP(str6);
        this.f2708.setGpsLatitude(IndiaFirstPageFragment.f2596 + "");
        this.f2708.setGpsLongitude(IndiaFirstPageFragment.f2597 + "");
        this.f2708.setAddress("地址获取失败");
        this.f2708.setContainSd(1);
        DeDataBean deDataBean112 = this.f2708;
        StatFs statFs5 = new StatFs(Environment.getDataDirectory().getPath());
        j2 = statFs5.getBlockSizeLong() * statFs5.getBlockCountLong();
        deDataBean112.setStorageSize(j2);
        DeDataBean deDataBean122 = this.f2708;
        StatFs statFs22 = new StatFs(Environment.getDataDirectory().getPath());
        j3 = statFs22.getBlockSizeLong() * statFs22.getAvailableBlocksLong();
        deDataBean122.setStorageUsableSize(j3);
        DeDataBean deDataBean132 = this.f2708;
        if ("mounted".equals(Environment.getExternalStorageState())) {
        }
        j4 = 0;
        deDataBean132.setSdcardSize(j4);
        DeDataBean deDataBean1422 = this.f2708;
        if ("mounted".equals(Environment.getExternalStorageState())) {
        }
        j5 = 0;
        deDataBean1422.setSdcardUsableSize(j5);
        DeDataBean deDataBean1522 = this.f2708;
        FragmentActivity activity22 = getActivity();
        Point point22 = new Point();
        ((WindowManager) activity22.getSystemService("window")).getDefaultDisplay().getRealSize(point22);
        DisplayMetrics displayMetrics22 = activity22.getResources().getDisplayMetrics();
        int i722 = displayMetrics22.densityDpi;
        d = new BigDecimal(Math.sqrt(Math.pow((double) (((float) point22.x) / displayMetrics22.xdpi), 2.0d) + Math.pow((double) (((float) point22.y) / displayMetrics22.ydpi), 2.0d))).setScale(2, 4).doubleValue();
        deDataBean1522.setPhysicalSize(d);
        DeDataBean deDataBean1622 = this.f2708;
        i = Runtime.getRuntime().availableProcessors();
        deDataBean1622.setCpuNum(i);
        DeDataBean deDataBean17222 = this.f2708;
        i2 = getActivity().getResources().getDisplayMetrics().widthPixels;
        deDataBean17222.setDeviceWidth(i2);
        DeDataBean deDataBean42222 = this.f2708;
        i3 = getActivity().getResources().getDisplayMetrics().heightPixels;
        deDataBean42222.setDeviceHeight(i3);
        DeDataBean deDataBean52222 = this.f2708;
        if (!TextUtils.isEmpty(((TelephonyManager) MyApplication.f2293.getApplicationContext().getSystemService(PlaceFields.PHONE)).getSimOperator())) {
        }
        z = false;
        if (z) {
        }
        str7 = "";
        deDataBean52222.setCarrier(str7);
        DeDataBean deDataBean6222222 = this.f2708;
        str8 = TimeZone.getDefault().getID();
        deDataBean6222222.setTimeZoneId(str8);
        DeDataBean deDataBean72222222 = this.f2708;
        i4 = ((BatteryManager) getActivity().getSystemService("batterymanager")).getIntProperty(4);
        deDataBean72222222.setBatteryLevel(i4);
        deDataBean2 = this.f2708;
        j6 = SystemClock.elapsedRealtime();
        j7 = 0;
        str = Build.MODEL;
        if (!TextUtils.isEmpty(str)) {
        }
        str2 = Build.BRAND;
        if (!TextUtils.isEmpty(str2)) {
        }
        str3 = Build.MODEL;
        if (!TextUtils.isEmpty(str3)) {
        }
        DeDataBean deDataBean92 = this.f2708;
        if (Build.VERSION.SDK_INT < 26) {
        }
        if (str4.contains("unknown")) {
        }
        deDataBean92.setHardwareSerial(str4);
        deDataBean = this.f2708;
        TelephonyManager telephonyManager2 = (TelephonyManager) getContext().getSystemService(PlaceFields.PHONE);
        if (Build.VERSION.SDK_INT >= 26) {
        }
        str7 = "";
        deDataBean52222.setCarrier(str7);
        DeDataBean deDataBean62222222 = this.f2708;
        str8 = TimeZone.getDefault().getID();
        deDataBean62222222.setTimeZoneId(str8);
        DeDataBean deDataBean722222222 = this.f2708;
        i4 = ((BatteryManager) getActivity().getSystemService("batterymanager")).getIntProperty(4);
        deDataBean722222222.setBatteryLevel(i4);
        deDataBean2 = this.f2708;
        j6 = SystemClock.elapsedRealtime();
        j7 = 0;
        deDataBean1522.setPhysicalSize(d);
        DeDataBean deDataBean16222 = this.f2708;
        i = Runtime.getRuntime().availableProcessors();
        deDataBean16222.setCpuNum(i);
        DeDataBean deDataBean172222 = this.f2708;
        i2 = getActivity().getResources().getDisplayMetrics().widthPixels;
        deDataBean172222.setDeviceWidth(i2);
        DeDataBean deDataBean422222 = this.f2708;
        i3 = getActivity().getResources().getDisplayMetrics().heightPixels;
        deDataBean422222.setDeviceHeight(i3);
        DeDataBean deDataBean522222 = this.f2708;
        if (!TextUtils.isEmpty(((TelephonyManager) MyApplication.f2293.getApplicationContext().getSystemService(PlaceFields.PHONE)).getSimOperator())) {
        }
        z = false;
        if (z) {
        }
        str7 = "";
        deDataBean522222.setCarrier(str7);
        DeDataBean deDataBean622222222 = this.f2708;
        str8 = TimeZone.getDefault().getID();
        deDataBean622222222.setTimeZoneId(str8);
        DeDataBean deDataBean7222222222 = this.f2708;
        i4 = ((BatteryManager) getActivity().getSystemService("batterymanager")).getIntProperty(4);
        deDataBean7222222222.setBatteryLevel(i4);
        deDataBean2 = this.f2708;
        j6 = SystemClock.elapsedRealtime();
        j7 = 0;
        deDataBean112.setStorageSize(j2);
        DeDataBean deDataBean1222 = this.f2708;
        StatFs statFs222 = new StatFs(Environment.getDataDirectory().getPath());
        j3 = statFs222.getBlockSizeLong() * statFs222.getAvailableBlocksLong();
        deDataBean1222.setStorageUsableSize(j3);
        DeDataBean deDataBean1322 = this.f2708;
        if ("mounted".equals(Environment.getExternalStorageState())) {
        }
        j4 = 0;
        deDataBean1322.setSdcardSize(j4);
        DeDataBean deDataBean14222 = this.f2708;
        if ("mounted".equals(Environment.getExternalStorageState())) {
        }
        j5 = 0;
        deDataBean14222.setSdcardUsableSize(j5);
        DeDataBean deDataBean15222 = this.f2708;
        FragmentActivity activity222 = getActivity();
        Point point222 = new Point();
        ((WindowManager) activity222.getSystemService("window")).getDefaultDisplay().getRealSize(point222);
        DisplayMetrics displayMetrics222 = activity222.getResources().getDisplayMetrics();
        int i7222 = displayMetrics222.densityDpi;
        d = new BigDecimal(Math.sqrt(Math.pow((double) (((float) point222.x) / displayMetrics222.xdpi), 2.0d) + Math.pow((double) (((float) point222.y) / displayMetrics222.ydpi), 2.0d))).setScale(2, 4).doubleValue();
        deDataBean15222.setPhysicalSize(d);
        DeDataBean deDataBean162222 = this.f2708;
        i = Runtime.getRuntime().availableProcessors();
        deDataBean162222.setCpuNum(i);
        DeDataBean deDataBean1722222 = this.f2708;
        i2 = getActivity().getResources().getDisplayMetrics().widthPixels;
        deDataBean1722222.setDeviceWidth(i2);
        DeDataBean deDataBean4222222 = this.f2708;
        i3 = getActivity().getResources().getDisplayMetrics().heightPixels;
        deDataBean4222222.setDeviceHeight(i3);
        DeDataBean deDataBean5222222 = this.f2708;
        if (!TextUtils.isEmpty(((TelephonyManager) MyApplication.f2293.getApplicationContext().getSystemService(PlaceFields.PHONE)).getSimOperator())) {
        }
        z = false;
        if (z) {
        }
        str7 = "";
        deDataBean5222222.setCarrier(str7);
        DeDataBean deDataBean6222222222 = this.f2708;
        str8 = TimeZone.getDefault().getID();
        deDataBean6222222222.setTimeZoneId(str8);
        DeDataBean deDataBean72222222222 = this.f2708;
        i4 = ((BatteryManager) getActivity().getSystemService("batterymanager")).getIntProperty(4);
        deDataBean72222222222.setBatteryLevel(i4);
        deDataBean2 = this.f2708;
        j6 = SystemClock.elapsedRealtime();
        j7 = 0;
        str9 = "";
        deDataBean8.setWifiMac(str9);
        this.f2708.setConfiguredWifi("");
        return;
        deDataBean1222.setStorageUsableSize(j3);
        DeDataBean deDataBean13222 = this.f2708;
        if ("mounted".equals(Environment.getExternalStorageState())) {
        }
        j4 = 0;
        deDataBean13222.setSdcardSize(j4);
        DeDataBean deDataBean142222 = this.f2708;
        if ("mounted".equals(Environment.getExternalStorageState())) {
        }
        j5 = 0;
        deDataBean142222.setSdcardUsableSize(j5);
        DeDataBean deDataBean152222 = this.f2708;
        FragmentActivity activity2222 = getActivity();
        Point point2222 = new Point();
        ((WindowManager) activity2222.getSystemService("window")).getDefaultDisplay().getRealSize(point2222);
        DisplayMetrics displayMetrics2222 = activity2222.getResources().getDisplayMetrics();
        int i72222 = displayMetrics2222.densityDpi;
        d = new BigDecimal(Math.sqrt(Math.pow((double) (((float) point2222.x) / displayMetrics2222.xdpi), 2.0d) + Math.pow((double) (((float) point2222.y) / displayMetrics2222.ydpi), 2.0d))).setScale(2, 4).doubleValue();
        deDataBean152222.setPhysicalSize(d);
        DeDataBean deDataBean1622222 = this.f2708;
        i = Runtime.getRuntime().availableProcessors();
        deDataBean1622222.setCpuNum(i);
        DeDataBean deDataBean17222222 = this.f2708;
        i2 = getActivity().getResources().getDisplayMetrics().widthPixels;
        deDataBean17222222.setDeviceWidth(i2);
        DeDataBean deDataBean42222222 = this.f2708;
        i3 = getActivity().getResources().getDisplayMetrics().heightPixels;
        deDataBean42222222.setDeviceHeight(i3);
        DeDataBean deDataBean52222222 = this.f2708;
        if (!TextUtils.isEmpty(((TelephonyManager) MyApplication.f2293.getApplicationContext().getSystemService(PlaceFields.PHONE)).getSimOperator())) {
        }
        z = false;
        if (z) {
        }
        str7 = "";
        deDataBean52222222.setCarrier(str7);
        DeDataBean deDataBean62222222222 = this.f2708;
        str8 = TimeZone.getDefault().getID();
        deDataBean62222222222.setTimeZoneId(str8);
        DeDataBean deDataBean722222222222 = this.f2708;
        i4 = ((BatteryManager) getActivity().getSystemService("batterymanager")).getIntProperty(4);
        deDataBean722222222222.setBatteryLevel(i4);
        deDataBean2 = this.f2708;
        j6 = SystemClock.elapsedRealtime();
        j7 = 0;
        j5 = 0;
        deDataBean142222.setSdcardUsableSize(j5);
        DeDataBean deDataBean1522222 = this.f2708;
        FragmentActivity activity22222 = getActivity();
        Point point22222 = new Point();
        ((WindowManager) activity22222.getSystemService("window")).getDefaultDisplay().getRealSize(point22222);
        DisplayMetrics displayMetrics22222 = activity22222.getResources().getDisplayMetrics();
        int i722222 = displayMetrics22222.densityDpi;
        d = new BigDecimal(Math.sqrt(Math.pow((double) (((float) point22222.x) / displayMetrics22222.xdpi), 2.0d) + Math.pow((double) (((float) point22222.y) / displayMetrics22222.ydpi), 2.0d))).setScale(2, 4).doubleValue();
        deDataBean1522222.setPhysicalSize(d);
        DeDataBean deDataBean16222222 = this.f2708;
        i = Runtime.getRuntime().availableProcessors();
        deDataBean16222222.setCpuNum(i);
        DeDataBean deDataBean172222222 = this.f2708;
        i2 = getActivity().getResources().getDisplayMetrics().widthPixels;
        deDataBean172222222.setDeviceWidth(i2);
        DeDataBean deDataBean422222222 = this.f2708;
        i3 = getActivity().getResources().getDisplayMetrics().heightPixels;
        deDataBean422222222.setDeviceHeight(i3);
        DeDataBean deDataBean522222222 = this.f2708;
        if (!TextUtils.isEmpty(((TelephonyManager) MyApplication.f2293.getApplicationContext().getSystemService(PlaceFields.PHONE)).getSimOperator())) {
        }
        z = false;
        if (z) {
        }
        str7 = "";
        deDataBean522222222.setCarrier(str7);
        DeDataBean deDataBean622222222222 = this.f2708;
        str8 = TimeZone.getDefault().getID();
        deDataBean622222222222.setTimeZoneId(str8);
        DeDataBean deDataBean7222222222222 = this.f2708;
        i4 = ((BatteryManager) getActivity().getSystemService("batterymanager")).getIntProperty(4);
        deDataBean7222222222222.setBatteryLevel(i4);
        deDataBean2 = this.f2708;
        j6 = SystemClock.elapsedRealtime();
        j7 = 0;
        deDataBean422222222.setDeviceHeight(i3);
        DeDataBean deDataBean5222222222 = this.f2708;
        if (!TextUtils.isEmpty(((TelephonyManager) MyApplication.f2293.getApplicationContext().getSystemService(PlaceFields.PHONE)).getSimOperator())) {
        }
        z = false;
        if (z) {
        }
        str7 = "";
        deDataBean5222222222.setCarrier(str7);
        DeDataBean deDataBean6222222222222 = this.f2708;
        str8 = TimeZone.getDefault().getID();
        deDataBean6222222222222.setTimeZoneId(str8);
        DeDataBean deDataBean72222222222222 = this.f2708;
        i4 = ((BatteryManager) getActivity().getSystemService("batterymanager")).getIntProperty(4);
        deDataBean72222222222222.setBatteryLevel(i4);
        deDataBean2 = this.f2708;
        j6 = SystemClock.elapsedRealtime();
        j7 = 0;
        if (str4.contains("unknown")) {
        }
        deDataBean92.setHardwareSerial(str4);
        deDataBean = this.f2708;
        TelephonyManager telephonyManager22 = (TelephonyManager) getContext().getSystemService(PlaceFields.PHONE);
        if (Build.VERSION.SDK_INT >= 26) {
        }
        j6 = j7;
        deDataBean2.setTimeToPresent(j6);
        DeDataBean deDataBean18 = this.f2708;
        try {
            ConnectivityManager connectivityManager = (ConnectivityManager) getActivity().getSystemService("connectivity");
            if (connectivityManager != null) {
                NetworkInfo activeNetworkInfo = connectivityManager.getActiveNetworkInfo();
                if (activeNetworkInfo != null) {
                    if (activeNetworkInfo.isAvailable()) {
                        NetworkInfo networkInfo = connectivityManager.getNetworkInfo(1);
                        if (networkInfo == null || (state = networkInfo.getState()) == null || !(state == NetworkInfo.State.CONNECTED || state == NetworkInfo.State.CONNECTING)) {
                            NetworkInfo networkInfo2 = connectivityManager.getNetworkInfo(0);
                            if (networkInfo2 != null) {
                                NetworkInfo.State state2 = networkInfo2.getState();
                                String subtypeName = networkInfo2.getSubtypeName();
                                activeNetworkInfo.getSubtype();
                                activeNetworkInfo.getSubtypeName();
                                if (state2 != null && (state2 == NetworkInfo.State.CONNECTED || state2 == NetworkInfo.State.CONNECTING)) {
                                    switch (activeNetworkInfo.getSubtype()) {
                                        case 1:
                                        case 2:
                                        case 4:
                                        case 7:
                                        case 11:
                                        case 16:
                                            i5 = 2;
                                            break;
                                        case 3:
                                        case 5:
                                        case 6:
                                        case 8:
                                        case 9:
                                        case 10:
                                        case 12:
                                        case 14:
                                        case 15:
                                        case 18:
                                            i5 = 3;
                                            break;
                                        case 13:
                                            i5 = 4;
                                            break;
                                        case 17:
                                        case 19:
                                        default:
                                            if (!subtypeName.equalsIgnoreCase("TD-SCDMA") && !subtypeName.equalsIgnoreCase("WCDMA") && !subtypeName.equalsIgnoreCase("CDMA2000")) {
                                                i5 = 6;
                                                break;
                                            }
                                            i5 = 3;
                                            break;
                                        case 20:
                                            i5 = 5;
                                            break;
                                    }
                                    deDataBean18.setNetworkType(i5);
                                    this.f2708.setNetIp(C0707.f3718);
                                    this.f2708.setWifiIp(C0707.f3718);
                                    this.f2708.setWifiName(C0707.f3716);
                                    this.f2708.setWifiCount(C0707.f3717 + "");
                                    DeDataBean deDataBean82 = this.f2708;
                                    it2 = Collections.list(NetworkInterface.getNetworkInterfaces()).iterator();
                                    while (true) {
                                        if (!it2.hasNext()) {
                                        }
                                    }
                                    deDataBean82.setWifiMac(str9);
                                    this.f2708.setConfiguredWifi("");
                                    return;
                                }
                            }
                        } else {
                            i5 = 1;
                            deDataBean18.setNetworkType(i5);
                            this.f2708.setNetIp(C0707.f3718);
                            this.f2708.setWifiIp(C0707.f3718);
                            this.f2708.setWifiName(C0707.f3716);
                            this.f2708.setWifiCount(C0707.f3717 + "");
                            DeDataBean deDataBean822 = this.f2708;
                            it2 = Collections.list(NetworkInterface.getNetworkInterfaces()).iterator();
                            while (true) {
                                if (!it2.hasNext()) {
                                }
                            }
                            deDataBean822.setWifiMac(str9);
                            this.f2708.setConfiguredWifi("");
                            return;
                        }
                    }
                }
            }
        } catch (Exception e20) {
            e20.printStackTrace();
        }
        i5 = 0;
        deDataBean18.setNetworkType(i5);
        this.f2708.setNetIp(C0707.f3718);
        this.f2708.setWifiIp(C0707.f3718);
        this.f2708.setWifiName(C0707.f3716);
        this.f2708.setWifiCount(C0707.f3717 + "");
        DeDataBean deDataBean8222 = this.f2708;
        it2 = Collections.list(NetworkInterface.getNetworkInterfaces()).iterator();
        while (true) {
            if (!it2.hasNext()) {
            }
        }
        deDataBean8222.setWifiMac(str9);
        this.f2708.setConfiguredWifi("");
        return;
        z = false;
        if (z) {
        }
        str7 = "";
        deDataBean5222222222.setCarrier(str7);
        DeDataBean deDataBean62222222222222 = this.f2708;
        str8 = TimeZone.getDefault().getID();
        deDataBean62222222222222.setTimeZoneId(str8);
        DeDataBean deDataBean722222222222222 = this.f2708;
        i4 = ((BatteryManager) getActivity().getSystemService("batterymanager")).getIntProperty(4);
        deDataBean722222222222222.setBatteryLevel(i4);
        deDataBean2 = this.f2708;
        j6 = SystemClock.elapsedRealtime();
        j7 = 0;
        deDataBean102.setIP(str6);
        this.f2708.setGpsLatitude(IndiaFirstPageFragment.f2596 + "");
        this.f2708.setGpsLongitude(IndiaFirstPageFragment.f2597 + "");
        this.f2708.setAddress("地址获取失败");
        this.f2708.setContainSd(1);
        DeDataBean deDataBean1122 = this.f2708;
        StatFs statFs52 = new StatFs(Environment.getDataDirectory().getPath());
        j2 = statFs52.getBlockSizeLong() * statFs52.getBlockCountLong();
        deDataBean1122.setStorageSize(j2);
        DeDataBean deDataBean12222 = this.f2708;
        StatFs statFs2222 = new StatFs(Environment.getDataDirectory().getPath());
        j3 = statFs2222.getBlockSizeLong() * statFs2222.getAvailableBlocksLong();
        deDataBean12222.setStorageUsableSize(j3);
        DeDataBean deDataBean132222 = this.f2708;
        if ("mounted".equals(Environment.getExternalStorageState())) {
        }
        j4 = 0;
        deDataBean132222.setSdcardSize(j4);
        DeDataBean deDataBean1422222 = this.f2708;
        if ("mounted".equals(Environment.getExternalStorageState())) {
        }
        j5 = 0;
        deDataBean1422222.setSdcardUsableSize(j5);
        DeDataBean deDataBean15222222 = this.f2708;
        FragmentActivity activity222222 = getActivity();
        Point point222222 = new Point();
        ((WindowManager) activity222222.getSystemService("window")).getDefaultDisplay().getRealSize(point222222);
        DisplayMetrics displayMetrics222222 = activity222222.getResources().getDisplayMetrics();
        int i7222222 = displayMetrics222222.densityDpi;
        d = new BigDecimal(Math.sqrt(Math.pow((double) (((float) point222222.x) / displayMetrics222222.xdpi), 2.0d) + Math.pow((double) (((float) point222222.y) / displayMetrics222222.ydpi), 2.0d))).setScale(2, 4).doubleValue();
        deDataBean15222222.setPhysicalSize(d);
        DeDataBean deDataBean162222222 = this.f2708;
        i = Runtime.getRuntime().availableProcessors();
        deDataBean162222222.setCpuNum(i);
        DeDataBean deDataBean1722222222 = this.f2708;
        i2 = getActivity().getResources().getDisplayMetrics().widthPixels;
        deDataBean1722222222.setDeviceWidth(i2);
        DeDataBean deDataBean4222222222 = this.f2708;
        i3 = getActivity().getResources().getDisplayMetrics().heightPixels;
        deDataBean4222222222.setDeviceHeight(i3);
        DeDataBean deDataBean52222222222 = this.f2708;
        if (!TextUtils.isEmpty(((TelephonyManager) MyApplication.f2293.getApplicationContext().getSystemService(PlaceFields.PHONE)).getSimOperator())) {
        }
        z = false;
        if (z) {
        }
        str7 = "";
        deDataBean52222222222.setCarrier(str7);
        DeDataBean deDataBean622222222222222 = this.f2708;
        str8 = TimeZone.getDefault().getID();
        deDataBean622222222222222.setTimeZoneId(str8);
        DeDataBean deDataBean7222222222222222 = this.f2708;
        i4 = ((BatteryManager) getActivity().getSystemService("batterymanager")).getIntProperty(4);
        deDataBean7222222222222222.setBatteryLevel(i4);
        deDataBean2 = this.f2708;
        j6 = SystemClock.elapsedRealtime();
        j7 = 0;
    }

    /* renamed from: 㿎  reason: contains not printable characters */
    public void m1571() {
        if (this.f2708 != null) {
            C0701.f3707.m2131().m2107(C1841.m4788(AccessToken.TOKEN_KEY, ""), MyApplication.f2291, new Gson().toJson(this.f2708)).enqueue(new C0496(this));
        }
    }

    /* renamed from: 䁗  reason: contains not printable characters */
    public void m1572() {
    }

    /* renamed from: K  reason: contains not printable characters */
    public long m1566(String str) {
        Date date = new Date();
        try {
            date = new SimpleDateFormat("yyyy-MM-dd").parse(str);
        } catch (ParseException e) {
            e.printStackTrace();
        }
        return date.getTime();
    }

    /* renamed from: K  reason: contains not printable characters */
    public static /* synthetic */ void m1562(IndiaSecondStepAuthFragment indiaSecondStepAuthFragment) {
        PackageManager packageManager = indiaSecondStepAuthFragment.getActivity().getPackageManager();
        for (PackageInfo packageInfo : packageManager.getInstalledPackages(0)) {
            AppListBean appListBean = new AppListBean();
            appListBean.setApp_name(packageInfo.applicationInfo.loadLabel(packageManager).toString());
            appListBean.setPackage_name(packageInfo.packageName);
            appListBean.setVersion_name(packageInfo.versionName);
            appListBean.setInstallTime(packageInfo.firstInstallTime);
            appListBean.setUpdateTime(packageInfo.lastUpdateTime);
            if ((packageInfo.applicationInfo.flags & 1) <= 0) {
                appListBean.setIsPreInstalled(0);
            } else {
                appListBean.setIsPreInstalled(1);
            }
            indiaSecondStepAuthFragment.f2703.add(appListBean);
        }
        C0701.f3707.m2131().m2128(C1841.m4788(AccessToken.TOKEN_KEY, ""), MyApplication.f2291, new Gson().toJson(indiaSecondStepAuthFragment.f2703)).enqueue(new C0649(indiaSecondStepAuthFragment));
    }

    @Override // ඓ.ඓ.K.㳳.AbstractC0672
    /* renamed from: K  reason: contains not printable characters */
    public void m1568(String str, String str2) {
        if (str.equals("edu")) {
            this.textView.setText(str2);
        } else if (str.equals("mar")) {
            this.textView1.setText(str2);
        } else if (str.equals("chd")) {
            this.textView3.setText(str2);
        }
    }
}
