Free Fire v1.103.1版本的 MD5 值为:f6c45f9f1485263aa5af0fb400f973fc

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


package o9;

import android.annotation.SuppressLint;
import android.app.Activity;
import android.app.AlertDialog;
import android.app.Dialog;
import android.content.DialogInterface;
import android.content.Intent;
import android.graphics.Bitmap;
import android.os.Build;
import android.os.Bundle;
import android.view.View;
import android.webkit.WebView;
import android.webkit.WebViewClient;
import com.vk.sdk.VKServiceActivity;
import i9.d;
import java.util.Locale;
import java.util.Map;
public class c implements DialogInterface.OnDismissListener {
    protected j9.c f11538a;
    protected WebView f11539b;
    protected View f11540c;
    protected View f11541d;
    protected Bundle f11542e;
    protected Intent f11543f;
    protected int f11544g = -1;
    protected int f11545h;
    protected Dialog f11546i;

    public class a implements DialogInterface.OnCancelListener {
        final Dialog f11547a;

        a(Dialog dialog) {
            this.f11547a = dialog;
        }

        @Override
        public void onCancel(DialogInterface dialogInterface) {
            this.f11547a.dismiss();
        }
    }

    public static class b extends WebViewClient {
        boolean f11549a = true;
        final c f11550b;

        class a implements DialogInterface.OnClickListener {
            a() {
            }

            @Override
            public void onClick(DialogInterface dialogInterface, int i10) {
                b.this.f11550b.d();
            }
        }

        class DialogInterface$OnClickListenerC0198b implements DialogInterface.OnClickListener {
            DialogInterface$OnClickListenerC0198b() {
            }

            @Override
            public void onClick(DialogInterface dialogInterface, int i10) {
                b.this.f11550b.e();
            }
        }

        public b(c cVar) {
            this.f11550b = cVar;
        }

        boolean a(String str) {
            c cVar;
            int i10 = 0;
            if (str.startsWith("https://oauth.vk.com/blank.html")) {
                Intent intent = new Intent("com.vk.auth-token");
                String substring = str.substring(str.indexOf(35) + 1);
                intent.putExtra("extra-token-data", substring);
                Map<String, String> a10 = p9.c.a(substring);
                j9.c cVar2 = this.f11550b.f11538a;
                if (cVar2 != null) {
                    intent.putExtra("extra-validation-request", cVar2.f9596e.h());
                }
                if (a10 == null || !(a10.containsKey("error") || a10.containsKey("cancel"))) {
                    cVar = this.f11550b;
                    i10 = -1;
                } else {
                    cVar = this.f11550b;
                }
                cVar.g(i10, intent);
                this.f11550b.d();
                return true;
            }
            return false;
        }

        @Override
        public void onPageFinished(WebView webView, String str) {
            super.onPageFinished(webView, str);
            if (this.f11549a) {
                View view = this.f11550b.f11540c;
                if (view != null) {
                    view.setVisibility(8);
                }
                webView.setVisibility(0);
            }
        }

        @Override
        public void onPageStarted(WebView webView, String str, Bitmap bitmap) {
            super.onPageStarted(webView, str, bitmap);
            a(str);
        }

        @Override
        public void onReceivedError(WebView webView, int i10, String str, String str2) {
            super.onReceivedError(webView, i10, str, str2);
            this.f11549a = false;
            try {
                new AlertDialog.Builder(webView.getContext()).setMessage(str).setPositiveButton(i9.c.f9176a, new DialogInterface$OnClickListenerC0198b()).setNegativeButton(17039360, new a()).show();
            } catch (Exception unused) {
            }
        }

        @Override
        public boolean shouldOverrideUrlLoading(WebView webView, String str) {
            if (a(str)) {
                return true;
            }
            this.f11549a = true;
            return false;
        }
    }

    public void d() {
        Dialog dialog = this.f11546i;
        if (dialog != null) {
            dialog.dismiss();
        }
    }

    @SuppressLint({"SetJavaScriptEnabled"})
    public void e() {
        try {
            j9.c cVar = this.f11538a;
            String str = cVar == null ? null : cVar.f9603l;
            if (str == null) {
                int i10 = this.f11542e.getInt("client_id", 0);
                String string = this.f11542e.getString("scope");
                String string2 = this.f11542e.getString("version");
                boolean z10 = this.f11542e.getBoolean("revoke", false);
                Locale locale = Locale.US;
                Object[] objArr = new Object[5];
                objArr[0] = Integer.valueOf(i10);
                objArr[1] = string;
                objArr[2] = "https://oauth.vk.com/blank.html";
                objArr[3] = string2;
                objArr[4] = Integer.valueOf(z10 ? 1 : 0);
                str = String.format(locale, "https://oauth.vk.com/authorize?client_id=%s&scope=%s&redirect_uri=%s&display=mobile&v=%s&response_type=token&revoke=%d", objArr);
            }
            this.f11539b.setWebViewClient(new b(this));
            this.f11539b.getSettings().setJavaScriptEnabled(true);
            this.f11539b.loadUrl(str);
            this.f11539b.setBackgroundColor(0);
            this.f11539b.setLayerType(1, null);
            this.f11539b.setVerticalScrollBarEnabled(false);
            this.f11539b.setVisibility(4);
            this.f11539b.setOverScrollMode(2);
            this.f11540c.setVisibility(0);
        } catch (Exception unused) {
            f(0);
            d();
        }
    }

    private void f(int i10) {
        this.f11544g = i10;
    }

    public void g(int i10, Intent intent) {
        this.f11544g = i10;
        this.f11543f = intent;
    }

    public void h(Activity activity, Bundle bundle, int i10, j9.c cVar) {
        this.f11538a = cVar;
        this.f11542e = bundle;
        this.f11545h = i10;
        View inflate = View.inflate(activity, i9.b.f9175b, null);
        this.f11541d = inflate;
        this.f11540c = inflate.findViewById(i9.a.f9172d);
        this.f11539b = (WebView) this.f11541d.findViewById(i9.a.f9170b);
        Dialog dialog = new Dialog(activity, d.f9177a);
        dialog.setContentView(this.f11541d);
        dialog.setOnCancelListener(new a(dialog));
        dialog.setOnDismissListener(this);
        if (Build.VERSION.SDK_INT >= 21) {
            dialog.getWindow().setStatusBarColor(0);
        }
        dialog.getWindow().setSoftInputMode(48);
        this.f11546i = dialog;
        dialog.show();
        e();
    }

    @Override
    public void onDismiss(DialogInterface dialogInterface) {
        View view = this.f11541d;
        Activity activity = view == null ? null : (Activity) view.getContext();
        if (activity instanceof VKServiceActivity) {
            ((VKServiceActivity) activity).g(this.f11545h, this.f11544g, this.f11543f);
        }
    }
}