Info Call to Socket API

Description

List of all calls to Server Socket API.

Recommendation

This entry is informative, no recommendations applicable.

Technical details

Method com.google.android.gms.measurement.internal.zzfo.zzlz() calling method java.net.URL.<init>()


    final void zzlz()
    {
        this.zzaf();
        this.zzlx();
        this.zzatx = 1;
        try {
            this.zzada.zzgw();
            com.google.android.gms.measurement.internal.zzba v2_0 = this.zzada.zzgl().zzli();
        } catch (com.google.android.gms.measurement.internal.zzbr v0_5) {
            this.zzatx = 0;
            this.zzmc();
            throw v0_5;
        }
        if (v2_0 != null) {
            if (!v2_0.booleanValue()) {
                if (this.zzatr <= 0) {
                    com.google.android.gms.measurement.internal.zzba v2_7;
                    this.zzaf();
                    if (this.zzaua == null) {
                        v2_7 = 0;
                    } else {
                        v2_7 = 1;
                    }
                    if (v2_7 == null) {
                        if (this.zzlt().zzfb()) {
                            com.google.android.gms.measurement.internal.zzba v2_17 = this.zzada.zzbx().currentTimeMillis();
                            String v6_1 = 0;
                            this.zzd(0, (v2_17 - com.google.android.gms.measurement.internal.zzq.zzic()));
                            com.google.android.gms.measurement.internal.zzba v7_15 = this.zzada.zzgu().zzana.get();
                            if (v7_15 != 0) {
                                this.zzada.zzgt().zzjn().zzg("Uploading events. Elapsed time since last upload attempt (ms)", Long.valueOf(Math.abs((v2_17 - v7_15))));
                            }
                            long v4_5 = this.zzjt().zzih();
                            if (android.text.TextUtils.isEmpty(v4_5)) {
                                this.zzauc = -1;
                                com.google.android.gms.measurement.internal.zzbr v0_19 = this.zzjt().zzad((v2_17 - com.google.android.gms.measurement.internal.zzq.zzic()));
                                if (!android.text.TextUtils.isEmpty(v0_19)) {
                                    com.google.android.gms.measurement.internal.zzbr v0_20 = this.zzjt().zzbm(v0_19);
                                    if (v0_20 != null) {
                                        this.zzb(v0_20);
                                    }
                                }
                            } else {
                                if (this.zzauc == -1) {
                                    this.zzauc = this.zzjt().zzio();
                                }
                                String v5_1 = this.zzjt().zzb(v4_5, this.zzada.zzgv().zzb(v4_5, com.google.android.gms.measurement.internal.zzai.zzaja), Math.max(0, this.zzada.zzgv().zzb(v4_5, com.google.android.gms.measurement.internal.zzai.zzajb)));
                                if (!v5_1.isEmpty()) {
                                    com.google.android.gms.measurement.internal.zzba v7_6 = v5_1.iterator();
                                    while (v7_6.hasNext()) {
                                        com.google.android.gms.measurement.internal.zzaw v8_6 = ((com.google.android.gms.internal.measurement.zzfw) ((android.util.Pair) v7_6.next()).first);
                                        if (!android.text.TextUtils.isEmpty(v8_6.zzaxv)) {
                                            com.google.android.gms.measurement.internal.zzba v7_7 = v8_6.zzaxv;
                                        }
                                        if (v7_7 != null) {
                                            com.google.android.gms.measurement.internal.zzaw v8_7 = 0;
                                            while (v8_7 < v5_1.size()) {
                                                long v9_6 = ((com.google.android.gms.internal.measurement.zzfw) ((android.util.Pair) v5_1.get(v8_7)).first);
                                                if ((android.text.TextUtils.isEmpty(v9_6.zzaxv)) || (v9_6.zzaxv.equals(v7_7))) {
                                                    v8_7++;
                                                } else {
                                                    v5_1 = v5_1.subList(0, v8_7);
                                                    break;
                                                }
                                            }
                                        }
                                        long v9_14;
                                        com.google.android.gms.measurement.internal.zzba v7_9 = new com.google.android.gms.internal.measurement.zzfv();
                                        com.google.android.gms.measurement.internal.zzaw v8_9 = new com.google.android.gms.internal.measurement.zzfw[v5_1.size()];
                                        v7_9.zzaxf = v8_9;
                                        com.google.android.gms.measurement.internal.zzaw v8_11 = new java.util.ArrayList(v5_1.size());
                                        if ((!com.google.android.gms.measurement.internal.zzq.zzie()) || (!this.zzada.zzgv().zzas(v4_5))) {
                                            v9_14 = 0;
                                        } else {
                                            v9_14 = 1;
                                        }
                                        java.net.URL v10_2 = 0;
                                        while (v10_2 < v7_9.zzaxf.length) {
                                            v7_9.zzaxf[v10_2] = ((com.google.android.gms.internal.measurement.zzfw) ((android.util.Pair) v5_1.get(v10_2)).first);
                                            v8_11.add(((Long) ((android.util.Pair) v5_1.get(v10_2)).second));
                                            v7_9.zzaxf[v10_2].zzaxu = Long.valueOf(this.zzada.zzgv().zzhh());
                                            v7_9.zzaxf[v10_2].zzaxk = Long.valueOf(v2_17);
                                            byte[] v11_13 = v7_9.zzaxf[v10_2];
                                            this.zzada.zzgw();
                                            v11_13.zzaxz = Boolean.valueOf(0);
                                            if (v9_14 == 0) {
                                                v7_9.zzaxf[v10_2].zzayh = 0;
                                            }
                                            v10_2++;
                                        }
                                        if (this.zzada.zzgt().isLoggable(2)) {
                                            v6_1 = this.zzjr().zzb(v7_9);
                                        }
                                        byte[] v11_2 = this.zzjr().zza(v7_9);
                                        String v5_9 = ((String) com.google.android.gms.measurement.internal.zzai.zzajk.get());
                                        java.net.URL v10_4 = new java.net.URL(v5_9);
                                        com.google.android.gms.common.internal.Preconditions.checkArgument((v8_11.isEmpty() ^ 1));
                                        if (this.zzaua == null) {
                                            this.zzaua = new java.util.ArrayList(v8_11);
                                        } else {
                                            this.zzada.zzgt().zzjg().zzby("Set uploading progress before finishing the previous upload");
                                        }
                                        this.zzada.zzgu().zzanb.set(v2_17);
                                        com.google.android.gms.measurement.internal.zzba v2_4 = "?";
                                        if (v7_9.zzaxf.length > 0) {
                                            v2_4 = v7_9.zzaxf[0].zztt;
                                        }
                                        this.zzada.zzgt().zzjo().zzd("Uploading data. app, uncompressed size, data", v2_4, Integer.valueOf(v11_2.length), v6_1);
                                        this.zzatw = 1;
                                        com.google.android.gms.measurement.internal.zzaw v8_20 = this.zzlt();
                                        com.google.android.gms.measurement.internal.zzfq v13_1 = new com.google.android.gms.measurement.internal.zzfq(this, v4_5);
                                        v8_20.zzaf();
                                        v8_20.zzcl();
                                        com.google.android.gms.common.internal.Preconditions.checkNotNull(v10_4);
                                        com.google.android.gms.common.internal.Preconditions.checkNotNull(v11_2);
                                        com.google.android.gms.common.internal.Preconditions.checkNotNull(v13_1);
                                        com.google.android.gms.measurement.internal.zzbr v0_4 = v8_20.zzgs();
                                        com.google.android.gms.measurement.internal.zzba v2_9 = new com.google.android.gms.measurement.internal.zzba;
                                        v2_9(v8_20, v4_5, v10_4, v11_2, 0, v13_1);
                                        v0_4.zzd(v2_9);
                                    }
                                    v7_7 = 0;
                                }
                            }
                            this.zzatx = 0;
                            this.zzmc();
                            return;
                        } else {
                            this.zzada.zzgt().zzjo().zzby("Network not connected, ignoring upload request");
                            this.zzmb();
                            this.zzatx = 0;
                            this.zzmc();
                            return;
                        }
                    } else {
                        this.zzada.zzgt().zzjo().zzby("Uploading requested multiple times");
                        this.zzatx = 0;
                        this.zzmc();
                        return;
                    }
                } else {
                    this.zzmb();
                    this.zzatx = 0;
                    this.zzmc();
                    return;
                }
            } else {
                this.zzada.zzgt().zzjg().zzby("Upload called in the client side when service should be used");
                this.zzatx = 0;
                this.zzmc();
                return;
            }
        } else {
            this.zzada.zzgt().zzjj().zzby("Upload data called on the client side before use of service was decided");
            this.zzatx = 0;
            this.zzmc();
            return;
        }
    }

Method com.google.android.gms.measurement.internal.zzfo.zzb() calling method java.net.URL.<init>()


    private final void zzb(com.google.android.gms.measurement.internal.zzg p11)
    {
        this.zzaf();
        if ((!android.text.TextUtils.isEmpty(p11.getGmpAppId())) || ((com.google.android.gms.measurement.internal.zzq.zzig()) && (!android.text.TextUtils.isEmpty(p11.zzhb())))) {
            String v0_3 = this.zzada.zzgv();
            com.google.android.gms.measurement.internal.zzba v1_9 = new android.net.Uri$Builder();
            com.google.android.gms.measurement.internal.zzaw v2_4 = p11.getGmpAppId();
            if ((android.text.TextUtils.isEmpty(v2_4)) && (com.google.android.gms.measurement.internal.zzq.zzig())) {
                v2_4 = p11.zzhb();
            }
            com.google.android.gms.measurement.internal.zzaw v2_7;
            String v3_8 = v1_9.scheme(((String) com.google.android.gms.measurement.internal.zzai.zzaiy.get())).encodedAuthority(((String) com.google.android.gms.measurement.internal.zzai.zzaiz.get()));
            com.google.android.gms.measurement.internal.zzaw v2_5 = String.valueOf(v2_4);
            if (v2_5.length() == 0) {
                v2_7 = new String("config/app/");
            } else {
                v2_7 = "config/app/".concat(v2_5);
            }
            v3_8.path(v2_7).appendQueryParameter("app_instance_id", p11.getAppInstanceId()).appendQueryParameter("platform", "android").appendQueryParameter("gmp_version", String.valueOf(v0_3.zzhh()));
            String v0_9 = v1_9.build().toString();
            try {
                android.support.v4.util.ArrayMap v6_0;
                java.net.URL v4_9 = new java.net.URL(v0_9);
                this.zzada.zzgt().zzjo().zzg("Fetching remote configuration", p11.zzal());
                com.google.android.gms.measurement.internal.zzba v1_14 = this.zzls().zzcg(p11.zzal());
                String v3_14 = this.zzls().zzch(p11.zzal());
            } catch (java.net.MalformedURLException) {
                this.zzada.zzgt().zzjg().zze("Failed to parse config URL. Not fetching. appId", com.google.android.gms.measurement.internal.zzas.zzbw(p11.zzal()), v0_9);
                return;
            }
            if ((v1_14 == null) || (android.text.TextUtils.isEmpty(v3_14))) {
                v6_0 = 0;
            } else {
                com.google.android.gms.measurement.internal.zzba v1_1 = new android.support.v4.util.ArrayMap();
                v1_1.put("If-Modified-Since", v3_14);
                v6_0 = v1_1;
            }
            this.zzatv = 1;
            com.google.android.gms.measurement.internal.zzaw v2_2 = this.zzlt();
            String v3_0 = p11.zzal();
            com.google.android.gms.measurement.internal.zzfr v7_1 = new com.google.android.gms.measurement.internal.zzfr(this);
            v2_2.zzaf();
            v2_2.zzcl();
            com.google.android.gms.common.internal.Preconditions.checkNotNull(v4_9);
            com.google.android.gms.common.internal.Preconditions.checkNotNull(v7_1);
            com.google.android.gms.measurement.internal.zzbr v8 = v2_2.zzgs();
            com.google.android.gms.measurement.internal.zzba v9 = new com.google.android.gms.measurement.internal.zzba;
            v9(v2_2, v3_0, v4_9, 0, v6_0, v7_1);
            v8.zzd(v9);
            return;
        } else {
            this.zzb(p11.zzal(), 204, 0, 0, 0);
            return;
        }
    }

Method com.google.android.gms.ads.identifier.zza.run() calling method java.net.URL.<init>()


    public final void run()
    {
        new com.google.android.gms.ads.identifier.zzc();
        String v0_3 = this.zzl;
        java.io.IOException v1_7 = android.net.Uri.parse("https://pagead2.googlesyndication.com/pagead/gen_204?id=gmob-apps").buildUpon();
        String v2_0 = v0_3.keySet().iterator();
        while (v2_0.hasNext()) {
            String v3_6 = ((String) v2_0.next());
            v1_7.appendQueryParameter(v3_6, ((String) v0_3.get(v3_6)));
        }
        String v0_2 = v1_7.build().toString();
        try {
            java.io.IOException v1_3 = ((java.net.HttpURLConnection) new java.net.URL(v0_2).openConnection());
        } catch (java.io.IOException v1_6) {
            String v2_5 = "HttpUrlPinger";
            String v3_4 = v1_6.getMessage();
            StringBuilder v5_5 = new StringBuilder(((String.valueOf(v0_2).length() + 32) + String.valueOf(v3_4).length()));
            String v4_9 = "Error while parsing ping URL: ";
            v5_5.append(v4_9);
            v5_5.append(v0_2);
            v5_5.append(". ");
            v5_5.append(v3_4);
            android.util.Log.w(v2_5, v5_5.toString(), v1_6);
            return;
        } catch (java.io.IOException v1_6) {
            v2_5 = "HttpUrlPinger";
            v3_4 = v1_6.getMessage();
            v5_5 = new StringBuilder(((String.valueOf(v0_2).length() + 27) + String.valueOf(v3_4).length()));
            v4_9 = "Error while pinging URL: ";
            v5_5.append(v4_9);
            v5_5.append(v0_2);
            v5_5.append(". ");
            v5_5.append(v3_4);
            android.util.Log.w(v2_5, v5_5.toString(), v1_6);
            return;
        }
        String v2_1 = v1_3.getResponseCode();
        if ((v2_1 < 200) || (v2_1 >= 300)) {
            StringBuilder v5_1 = new StringBuilder((String.valueOf(v0_2).length() + 65));
            v5_1.append("Received non-success response code ");
            v5_1.append(v2_1);
            v5_1.append(" from pinging URL: ");
            v5_1.append(v0_2);
            android.util.Log.w("HttpUrlPinger", v5_1.toString());
        }
        v1_3.disconnect();
        return;
    }