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 c.h.a.w.a() calling method java.net.URL.<init>()


    public java.net.HttpURLConnection a(android.net.Uri p3)
    {
        java.net.HttpURLConnection v3_2 = this.a.open(new java.net.URL(p3.toString()));
        v3_2.setConnectTimeout(15000);
        v3_2.setReadTimeout(20000);
        return v3_2;
    }

Method c.h.a.N.a() calling method java.net.URL.<init>()


    public c.h.a.p$a a(android.net.Uri p4, boolean p5)
    {
        ark>c.h.a.Nark>.a(this.c);
        String v4_6 = ((java.net.HttpURLConnection) new java.net.URL(p4.toString()).openConnection());
        v4_6.setConnectTimeout(15000);
        v4_6.setReadTimeout(20000);
        v4_6.setUseCaches(1);
        if (p5 != null) {
            v4_6.setRequestProperty("Cache-Control", "only-if-cached,max-age=2147483647");
        }
        String v5_2 = v4_6.getResponseCode();
        if (v5_2 >= 300) {
            v4_6.disconnect();
            StringBuilder v1_1 = new StringBuilder();
            v1_1.append(v5_2);
            v1_1.append(" ");
            v1_1.append(v4_6.getResponseMessage());
            throw new c.h.a.p$b(v1_1.toString());
        } else {
            return new c.h.a.p$a(v4_6.getInputStream(), c.h.a.O.a(v4_6.getHeaderField("X-Android-Response-Source")), ((long) v4_6.getHeaderFieldInt("Content-Length", -1)));
        }
    }

Method c.e.c.b.a.I.a() calling method java.net.URL.<init>()


    public Object a(c.e.c.d.b p4)
    {
        java.net.URL v2_1 = 0;
        if (p4.A() != c.e.c.d.c.i) {
            String v4_1 = p4.y();
            if (!"null".equals(v4_1)) {
                v2_1 = new java.net.URL(v4_1);
            }
        } else {
            p4.x();
        }
        return v2_1;
    }

Method c.d.a.d.a.g.a() calling method java.net.URL.<init>()


    public Object a(c.d.a.k p4)
    {
        java.io.InputStream v4_0 = this.b;
        if (v4_0.e == null) {
            if (android.text.TextUtils.isEmpty(v4_0.d)) {
                String v1_1 = v4_0.c;
                if (android.text.TextUtils.isEmpty(v1_1)) {
                    v1_1 = v4_0.a.toString();
                }
                v4_0.d = android.net.Uri.encode(v1_1, "@#&=*+-_.,:!?()/~\'%");
            }
            v4_0.e = new java.net.URL(v4_0.d);
        }
        return this.a(v4_0.e, 0, 0, this.b.b.a());
    }

Method c.d.a.d.a.g.a() calling method java.net.URL.<init>()

Couldn't retrieve source code

Method com.razorpay.l__d$$4.run() calling method java.net.URL.<init>()


    public final void run()
    {
        try {
            com.razorpay.c__C_$Q_$2$ v0_1;
            if (this.G__G_ != 1) {
                v0_1 = this.R$$r_.view.getWebView(2);
                com.razorpay.c__C_$Q_$2$ v0_4 = new java.net.URL(v0_1.getTag().toString()).getHost();
                if ((v0_4 != null) && (v0_4.endsWith("razorpay.com"))) {
                    this.Q_$2$.G__G_();
                }
            } else {
                v0_1 = this.R$$r_.view.getWebView(1);
            }
        } catch (Exception) {
        }
        return;
    }

Method com.razorpay.b_$A$.a_$P$() calling method java.net.URL.<init>()


    private varargs com.razorpay.t_$J_ a_$P$(String[] p7)
    {
        Exception v1_1 = new com.razorpay.t_$J_();
        java.io.InputStream v2_0 = 0;
        try {
            String v7_1 = ((java.net.HttpURLConnection) new java.net.URL(p7[0]).openConnection());
            int v3_2 = this.R$$r_.entrySet().iterator();
        } catch (String v7_7) {
            if (v2_0 != null) {
                try {
                    v2_0.close();
                } catch (Exception v1_2) {
                    com.razorpay.AnalyticsUtil.reportError(v1_2, "error", v1_2.getMessage());
                }
            }
            throw v7_7;
        } catch (String v7_5) {
            v7_5.getLocalizedMessage();
            com.razorpay.AnalyticsUtil.reportError(v7_5, "error", v7_5.getMessage());
            if (v2_0 == null) {
                return v1_1;
            } else {
                v2_0.close();
                return v1_1;
            }
        } catch (String v7_6) {
            com.razorpay.AnalyticsUtil.reportError(v7_6, "error", v7_6.getMessage());
            return v1_1;
        }
        while (v3_2.hasNext()) {
            int v4_6 = ((java.util.Map$Entry) v3_2.next());
            v7_1.setRequestProperty(((String) v4_6.getKey()), ((String) v4_6.getValue()));
        }
        v7_1.setRequestMethod(this.d__1_);
        if (this.a_$P$ != null) {
            v7_1.setDoOutput(1);
            v7_1.getOutputStream().write(this.a_$P$.getBytes("UTF-8"));
        }
        v7_1.setConnectTimeout(15000);
        v7_1.setReadTimeout(20000);
        v7_1.connect();
        int v3_9 = v7_1.getResponseCode();
        v1_1.Q_$2$(v3_9);
        if (v3_9 < 400) {
            v2_0 = v7_1.getInputStream();
        } else {
            v2_0 = v7_1.getErrorStream();
        }
        v1_1.Q_$2$(v7_1.getHeaderFields());
        v1_1.d__1_(com.razorpay.b_$A$.G__G_(v2_0));
        if (v2_0 == null) {
            return v1_1;
        } else {
            v2_0.close();
            return v1_1;
        }
    }

Method c.g.a.c.h.h.a() calling method java.net.URL.<init>()


    public void a(String p10, String p11, String p12, android.content.Intent p13, String p14)
    {
        if (!android.text.TextUtils.isEmpty(p11)) {
            p13.setFlags(603979776);
            android.app.PendingIntent v7 = android.app.PendingIntent.getActivity(this.a, 0, p13, 268435456);
            int v2_4 = new a.b.e.a.U$d(this.a, 0);
            android.net.Uri v8 = android.media.RingtoneManager.getDefaultUri(2);
            if (android.text.TextUtils.isEmpty(p14)) {
                this.a(v2_4, 2131558400, p10, p11, p12, v7, v8);
                try {
                    android.media.RingtoneManager.getRingtone(this.a, android.media.RingtoneManager.getDefaultUri(2)).play();
                } catch (android.app.Notification v0_6) {
                    v0_6.printStackTrace();
                }
            } else {
                if ((p14 != null) && ((p14.length() > 4) && (android.util.Patterns.WEB_URL.matcher(p14).matches()))) {
                    try {
                        android.app.Notification v0_14 = ((java.net.HttpURLConnection) new java.net.URL(p14).openConnection());
                        v0_14.setDoInput(1);
                        v0_14.connect();
                        int v3_3 = android.graphics.BitmapFactory.decodeStream(v0_14.getInputStream());
                    } catch (android.app.Notification v0_16) {
                        v0_16.printStackTrace();
                    }
                    if (v3_3 == 0) {
                        this.a(v2_4, 2131558400, p10, p11, p12, v7, v8);
                    } else {
                        ark>c.g.a.c.h.hark> v1_9 = new a.b.e.a.U$b();
                        v1_9.b = a.b.e.a.U$d.a(p10);
                        v1_9.c = a.b.e.a.U$d.a(android.text.Html.fromHtml(p11).toString());
                        v1_9.d = 1;
                        v1_9.e = v3_3;
                        int v3_6 = v2_4.M;
                        v3_6.icon = 2131558400;
                        v3_6.tickerText = a.b.e.a.U$d.a(p10);
                        v2_4.M.when = 0;
                        v2_4.a(1);
                        v2_4.c(p10);
                        v2_4.d = v7;
                        int v3_8 = v2_4.M;
                        v3_8.sound = v8;
                        v3_8.audioStreamType = -1;
                        v2_4.a(v1_9);
                        ark>c.g.a.c.h.hark> v1_10 = v2_4.M;
                        v1_10.when = ark>c.g.a.c.h.hark>.a(p12);
                        v1_10.icon = 2131230910;
                        v2_4.g = android.graphics.BitmapFactory.decodeResource(this.a.getResources(), 2131558400);
                        v2_4.b(p11);
                        ((android.app.NotificationManager) this.a.getSystemService("notification")).notify(101, v2_4.a());
                    }
                }
            }
            return;
        } else {
            return;
        }
    }

Method c.g.a.c.h.e.doInBackground() calling method java.net.URL.<init>()

Couldn't retrieve source code

Method c.f.a.a.d.a() calling method java.net.URL.<init>()


    public static String a(boolean p9, String p10, c.f.a.a.q p11)
    {
        if (p10 != null) {
            if (p9 != null) {
                try {
                    StringBuilder v0_5 = new java.net.URL(java.net.URLDecoder.decode(p10, "UTF-8"));
                    String v9_8 = new java.net.URI;
                    v9_8(v0_5.getProtocol(), v0_5.getUserInfo(), v0_5.getHost(), v0_5.getPort(), v0_5.getPath(), v0_5.getQuery(), v0_5.getRef());
                    p10 = v9_8.toASCIIString();
                } catch (String v9_2) {
                    ((c.f.a.a.m) ark>c.f.a.a.dark>.a).a(6, "AsyncHttpClient", "getUrlWithQueryString encoding URL", v9_2);
                }
            }
            if (p11 != null) {
                String v9_6 = d.a.a.a.b.e.d.a(p11.a(), p11.j).trim();
                if (!v9_6.equals("")) {
                    String v11_4 = "?";
                    if (!v9_6.equals("?")) {
                        StringBuilder v0_4 = c.a.a.a.a.a(p10);
                        if (p10.contains("?")) {
                            v11_4 = "&";
                        }
                        v0_4.append(v11_4);
                        p10 = c.a.a.a.a.a(v0_4.toString(), v9_6);
                    }
                }
            }
            return p10;
        } else {
            return 0;
        }
    }

Method c.e.a.a.h.Xa.e() calling method java.net.URL.<init>()


    public final void e()
    {
        this.p().b();
        this.a();
        this.N = 1;
        try {
            c.e.a.a.h._a v0_8;
            c.e.a.a.h.Ta v3_14;
            c.e.a.a.h.Ta v3_0 = this.x().e;
        } catch (c.e.a.a.h._a v0_11) {
            this.N = 0;
            this.l();
            throw v0_11;
        }
        if (v3_0 != null) {
            if (!v3_0.booleanValue()) {
                if (this.K <= 0) {
                    c.e.a.a.h.Ta v3_9;
                    this.p().b();
                    if (this.F == null) {
                        v3_9 = 0;
                    } else {
                        v3_9 = 1;
                    }
                    if (v3_9 == null) {
                        if (this.v().w()) {
                            c.e.a.a.h.Ta v3_17 = ((c.e.a.a.c.d.b) this.n).a();
                            String v9 = 0;
                            this.a(0, (v3_17 - ((Long) c.e.a.a.h.oa.j.a).longValue()));
                            String v7_17 = this.n().f.a();
                            if (v7_17 != 0) {
                                this.o().k.a("Uploading events. Elapsed time since last upload attempt (ms)", Long.valueOf(Math.abs((v3_17 - v7_17))));
                            }
                            long v5_4 = this.u().x();
                            if (android.text.TextUtils.isEmpty(v5_4)) {
                                this.J = -1;
                                c.e.a.a.h._a v0_14 = this.u().a((v3_17 - ((Long) c.e.a.a.h.oa.j.a).longValue()));
                                if (android.text.TextUtils.isEmpty(v0_14)) {
                                    this.N = 0;
                                    this.l();
                                    return;
                                } else {
                                    c.e.a.a.h._a v0_15 = this.u().b(v0_14);
                                    if (v0_15 == null) {
                                        this.N = 0;
                                        this.l();
                                        return;
                                    } else {
                                        this.a(v0_15);
                                        this.N = 0;
                                        this.l();
                                        return;
                                    }
                                }
                            } else {
                                if (this.J == -1) {
                                    this.J = this.u().z();
                                }
                                String v6_1 = this.u().a(v5_4, this.c.b(v5_4, c.e.a.a.h.oa.m), Math.max(0, this.c.b(v5_4, c.e.a.a.h.oa.n)));
                                if (v6_1.isEmpty()) {
                                    this.N = 0;
                                    this.l();
                                    return;
                                } else {
                                    String v7_4 = v6_1.iterator();
                                    while (v7_4.hasNext()) {
                                        Integer v8_6 = ((c.e.a.a.h.Qc) ((android.util.Pair) v7_4.next()).first);
                                        if (!android.text.TextUtils.isEmpty(v8_6.v)) {
                                            String v7_5 = v8_6.v;
                                        }
                                        if (v7_5 != null) {
                                            Integer v8_7 = 0;
                                            while (v8_7 < v6_1.size()) {
                                                c.e.a.a.h.Ga v10_6 = ((c.e.a.a.h.Qc) ((android.util.Pair) v6_1.get(v8_7)).first);
                                                if ((android.text.TextUtils.isEmpty(v10_6.v)) || (v10_6.v.equals(v7_5))) {
                                                    v8_7++;
                                                } else {
                                                    v6_1 = v6_1.subList(0, v8_7);
                                                    break;
                                                }
                                            }
                                        }
                                        c.e.a.a.h.Ga v10_15;
                                        String v7_7 = new c.e.a.a.h.Pc();
                                        Integer v8_9 = new c.e.a.a.h.Qc[v6_1.size()];
                                        v7_7.c = v8_9;
                                        Integer v8_11 = new java.util.ArrayList(v6_1.size());
                                        if ((!c.e.a.a.h.Z.r()) || (!"1".equals(this.c.l().a(v5_4, "gaia_collection_enabled")))) {
                                            v10_15 = 0;
                                        } else {
                                            v10_15 = 1;
                                        }
                                        c.e.a.a.h.Ca v11_4 = 0;
                                        while (v11_4 < v7_7.c.length) {
                                            v7_7.c[v11_4] = ((c.e.a.a.h.Qc) ((android.util.Pair) v6_1.get(v11_4)).first);
                                            v8_11.add(((Long) ((android.util.Pair) v6_1.get(v11_4)).second));
                                            v7_7.c[v11_4].u = Long.valueOf(12210);
                                            v7_7.c[v11_4].g = Long.valueOf(v3_17);
                                            v7_7.c[v11_4].C = Boolean.valueOf(0);
                                            if (v10_15 == null) {
                                                v7_7.c[v11_4].L = 0;
                                            }
                                            v11_4++;
                                        }
                                        if (this.o().a(2)) {
                                            v9 = this.t().a(v7_7);
                                        }
                                        byte[] v14 = this.s().a(v7_7);
                                        String v6_8 = ((String) c.e.a.a.h.oa.w.a);
                                        c.e.a.a.h.Ga v10_18;
                                        java.net.URL v13_1 = new java.net.URL(v6_8);
                                        if (v8_11.isEmpty()) {
                                            v10_18 = 0;
                                        } else {
                                            v10_18 = 1;
                                        }
                                        a.b.f.a.H.c(v10_18);
                                        if (this.F == null) {
                                            this.F = new java.util.ArrayList(v8_11);
                                        } else {
                                            this.o().f.a("Set uploading progress before finishing the previous upload");
                                        }
                                        this.n().g.a(v3_17);
                                        c.e.a.a.h.Ta v3_4 = "?";
                                        if (v7_7.c.length > 0) {
                                            v3_4 = v7_7.c[0].r;
                                        }
                                        this.o().l.a("Uploading data. app, uncompressed size, data", v3_4, Integer.valueOf(v14.length), v9);
                                        this.M = 1;
                                        c.e.a.a.h.Ca v11_5 = this.v();
                                        c.e.a.a.h._a v0_4 = new c.e.a.a.h._a(this);
                                        v11_5.b();
                                        v11_5.s();
                                        a.b.f.a.H.d(v13_1);
                                        a.b.f.a.H.d(v14);
                                        a.b.f.a.H.d(v0_4);
                                        c.e.a.a.h.Ta v3_10 = v11_5.n();
                                        c.e.a.a.h.Ga v4_5 = new c.e.a.a.h.Ga;
                                        v4_5(v11_5, v5_4, v13_1, v14, 0, v0_4);
                                        v3_10.b(v4_5);
                                        this.N = 0;
                                        this.l();
                                        return;
                                    }
                                    v7_5 = 0;
                                }
                            }
                        } else {
                            this.o().l.a("Network not connected, ignoring upload request");
                        }
                    } else {
                        v0_8 = this.o().l;
                        v3_14 = "Uploading requested multiple times";
                        v0_8.a(v3_14);
                        this.N = 0;
                        this.l();
                        return;
                    }
                } else {
                }
                this.k();
            } else {
                v0_8 = this.o().f;
                v3_14 = "Upload called in the client side when service should be used";
            }
        } else {
            v0_8 = this.o().h;
            v3_14 = "Upload data called on the client side before use of service was decided";
        }
        this.N = 0;
        this.l();
        return;
    }

Method c.e.a.a.h.Xa.a() calling method java.net.URL.<init>()


    public final void a(c.e.a.a.h.T p11)
    {
        this.p().b();
        if (!android.text.TextUtils.isEmpty(p11.e())) {
            String v0_3;
            String v0_11 = p11.e();
            c.e.a.a.h.Ga v1_0 = p11.d();
            c.e.a.a.h.Ca v2_2 = new android.net.Uri$Builder();
            String v3_6 = v2_2.scheme(((String) c.e.a.a.h.oa.k.a)).encodedAuthority(((String) c.e.a.a.h.oa.l.a));
            String v0_1 = String.valueOf(v0_11);
            if (v0_1.length() == 0) {
                v0_3 = new String("config/app/");
            } else {
                v0_3 = "config/app/".concat(v0_1);
            }
            v3_6.path(v0_3).appendQueryParameter("app_instance_id", v1_0).appendQueryParameter("platform", "android").appendQueryParameter("gmp_version", "12210");
            String v0_9 = v2_2.build().toString();
            try {
                a.b.e.i.b v6_1;
                java.net.URL v4_6 = new java.net.URL(v0_9);
                this.o().l.a("Fetching remote configuration", p11.c());
                c.e.a.a.h.Ga v1_8 = this.q().a(p11.c());
                String v3_11 = this.q();
                int v5_3 = p11.c();
                v3_11.b();
                String v3_14 = ((String) v3_11.j.get(v5_3));
            } catch (java.net.MalformedURLException) {
                this.o().f.a("Failed to parse config URL. Not fetching. appId", c.e.a.a.h.ya.a(p11.c()), v0_9);
                return;
            }
            if ((v1_8 == null) || (android.text.TextUtils.isEmpty(v3_14))) {
                v6_1 = 0;
            } else {
                c.e.a.a.h.Ga v1_11 = new a.b.e.i.b();
                v1_11.put("If-Modified-Since", v3_14);
                v6_1 = v1_11;
            }
            this.L = 1;
            c.e.a.a.h.Ca v2_8 = this.v();
            String v3_0 = p11.c();
            c.e.a.a.h.ab v7_1 = new c.e.a.a.h.ab(this);
            v2_8.b();
            v2_8.s();
            a.b.f.a.H.d(v4_6);
            a.b.f.a.H.d(v7_1);
            c.e.a.a.h.Ta v8 = v2_8.n();
            c.e.a.a.h.Ga v9 = new c.e.a.a.h.Ga;
            v9(v2_8, v3_0, v4_6, 0, v6_1, v7_1);
            v8.b(v9);
            return;
        } else {
            this.a(p11.c(), 204, 0, 0, 0);
            return;
        }
    }

Method c.e.a.a.a.a.b.run() calling method java.net.URL.<init>()


    public final void run()
    {
        String v2_2 = this.a;
        RuntimeException v3_7 = android.net.Uri.parse("https://pagead2.googlesyndication.com/pagead/gen_204?id=gmob-apps").buildUpon();
        String v4_0 = v2_2.keySet().iterator();
        while (v4_0.hasNext()) {
            String v5_15 = ((String) v4_0.next());
            v3_7.appendQueryParameter(v5_15, ((String) v2_2.get(v5_15)));
        }
        String v2_1 = v3_7.build().toString();
        try {
            RuntimeException v3_3 = ((java.net.HttpURLConnection) new java.net.URL(v2_1).openConnection());
        } catch (RuntimeException v3_6) {
            String v4_5 = v3_6.getMessage();
            StringBuilder v6_3 = new StringBuilder(c.a.a.a.a.a(v4_5, c.a.a.a.a.a(v2_1, 32)));
            String v5_10 = "Error while parsing ping URL: ";
            v6_3.append(v5_10);
            v6_3.append(v2_1);
            v6_3.append(". ");
            v6_3.append(v4_5);
            android.util.Log.w("HttpUrlPinger", v6_3.toString(), v3_6);
            return;
        } catch (RuntimeException v3_6) {
            v4_5 = v3_6.getMessage();
            v6_3 = new StringBuilder(c.a.a.a.a.a(v4_5, c.a.a.a.a.a(v2_1, 27)));
            v5_10 = "Error while pinging URL: ";
            v6_3.append(v5_10);
            v6_3.append(v2_1);
            v6_3.append(". ");
            v6_3.append(v4_5);
            android.util.Log.w("HttpUrlPinger", v6_3.toString(), v3_6);
            return;
        } catch (RuntimeException v3_6) {
        }
        String v4_1 = v3_3.getResponseCode();
        if ((v4_1 < 200) || (v4_1 >= 300)) {
            StringBuilder v6_1 = new StringBuilder((String.valueOf(v2_1).length() + 65));
            v6_1.append("Received non-success response code ");
            v6_1.append(v4_1);
            v6_1.append(" from pinging URL: ");
            v6_1.append(v2_1);
            android.util.Log.w("HttpUrlPinger", v6_1.toString());
        }
        v3_3.disconnect();
        return;
    }