Video Downloader for FB v3.5.1版本的 MD5 值为:1db7d4aa9fc4356831f5521f52585a52

以下内容为反编译后的 n.java 源代码,内容仅作参考


package com.moat.analytics.mobile.vng;

import android.os.Build;
import android.util.Base64;
import android.util.Log;
import com.google.android.exoplayer2.source.chunk.ChunkedTrackBlacklistUtil;
import com.moat.analytics.mobile.vng.s;
import com.moat.analytics.mobile.vng.w;
import java.net.URLEncoder;
import java.util.Locale;

public class n extends Exception {
    private static Long b;

    private static final Long f2447a = Long.valueOf(ChunkedTrackBlacklistUtil.DEFAULT_TRACK_BLACKLIST_MS);
    private static Exception c = null;

    public n(String str) {
        super(str);
    }

    public static String a(String str, Exception exc) {
        if (!(exc instanceof n)) {
            return str + " failed unexpectedly";
        }
        return str + " failed: " + exc.getMessage();
    }

    public static void a() {
        Exception exc = c;
        if (exc != null) {
            b(exc);
            c = null;
        }
    }

    public static void a(Exception exc) {
        if (w.a().b) {
            Log.e("MoatException", Log.getStackTraceString(exc));
        } else {
            b(exc);
        }
    }

    private static void b(Exception exc) {
        String str;
        String str2;
        String str3 = "";
        try {
            if (w.a().f2457a != w.d.ON) {
                c = exc;
                return;
            }
            int i = w.a().e;
            if (i == 0) {
                return;
            }
            if (i < 100) {
                double d = i;
                Double.isNaN(d);
                if (d / 100.0d < Math.random()) {
                    return;
                }
            }
            StringBuilder sb = new StringBuilder("https://px.moatads.com/pixel.gif?e=0&i=MOATSDK1&ac=1");
            StringBuilder sb2 = new StringBuilder();
            sb2.append("&zt=");
            sb2.append(exc instanceof n ? 1 : 0);
            sb.append(sb2.toString());
            sb.append("&zr=" + i);
            try {
                StringBuilder sb3 = new StringBuilder();
                sb3.append("&zm=");
                sb3.append(exc.getMessage() == null ? "null" : URLEncoder.encode(Base64.encodeToString(exc.getMessage().getBytes("UTF-8"), 0), "UTF-8"));
                sb.append(sb3.toString());
                sb.append("&k=" + URLEncoder.encode(Base64.encodeToString(Log.getStackTraceString(exc).getBytes("UTF-8"), 0), "UTF-8"));
            } catch (Exception unused) {
            }
            try {
                sb.append("&zMoatMMAKv=fe5b19d82fecca4c1d668e2e40e2636224135a71");
                str = "2.6.3";
                try {
                    s.a c2 = s.c();
                    sb.append("&zMoatMMAKan=" + c2.a());
                    str2 = c2.b();
                    try {
                        str3 = Integer.toString(Build.VERSION.SDK_INT);
                    } catch (Exception unused2) {
                    }
                } catch (Exception unused3) {
                    str2 = "";
                }
            } catch (Exception unused4) {
                str = "";
                str2 = str;
            }
            sb.append("&d=Android:VNG:" + str2 + ":-");
            StringBuilder sb4 = new StringBuilder();
            sb4.append("&bo=");
            sb4.append(str);
            sb.append(sb4.toString());
            sb.append("&bd=" + str3);
            Long valueOf = Long.valueOf(System.currentTimeMillis());
            sb.append("&t=" + valueOf);
            sb.append("&de=" + String.format(Locale.ROOT, "%.0f", Double.valueOf(Math.floor(Math.random() * Math.pow(10.0d, 12.0d)))));
            sb.append("&cs=0");
            if (b == null || valueOf.longValue() - b.longValue() > f2447a.longValue()) {
                q.b(sb.toString());
                b = valueOf;
            }
        } catch (Exception unused5) {
        }
    }
}