超媒网络 v3.0.0版本的 MD5 值为:e72248abb238993f421967424d9a9515

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


package p.a.y.e.a.s.e.net;

import android.app.Activity;
import android.content.Intent;
import android.content.SharedPreferences;
import android.os.Build;
import android.os.Bundle;
import android.os.Handler;
import android.os.Looper;
import android.os.Message;
import android.text.TextUtils;
import androidx.fragment.app.Fragment;
import com.eva.framework.dto.DataFromClient4Web;
import com.tencent.connect.common.AssistActivity;
import com.tencent.open.utils.HttpUtils;
import java.io.IOException;
import java.net.MalformedURLException;
import java.net.SocketTimeoutException;
import org.apache.http.conn.ConnectTimeoutException;
import org.json.JSONException;
import org.json.JSONObject;
import tv.danmaku.ijk.media.player.IjkMediaMeta;
public abstract class fb2 {
    public static String lite_for;
    public static String lite_int;
    public static String lite_new;
    public static boolean lite_try;
    public bb2 lite_do;
    public ya2 lite_if;

    public class a implements jd2 {
        private final kd2 lite_do;
        private final Handler lite_if;

        public class HandlerC0087a extends Handler {
            public final fb2 lite_do;

            public HandlerC0087a(Looper looper, fb2 fb2Var) {
                super(looper);
                this.lite_do = fb2Var;
            }

            @Override
            public void handleMessage(Message message) {
                if (message.what == 0) {
                    a.this.lite_do.lite_if(message.obj);
                } else {
                    a.this.lite_do.lite_do(new md2(message.what, (String) message.obj, null));
                }
            }
        }

        public a(kd2 kd2Var) {
            this.lite_do = kd2Var;
            this.lite_if = new HandlerC0087a(wc2.lite_do().getMainLooper(), fb2.this);
        }

        @Override
        public void lite_byte(ConnectTimeoutException connectTimeoutException) {
            Message obtainMessage = this.lite_if.obtainMessage();
            obtainMessage.obj = connectTimeoutException.getMessage();
            obtainMessage.what = -7;
            this.lite_if.sendMessage(obtainMessage);
        }

        @Override
        public void lite_case(HttpUtils.NetworkUnavailableException networkUnavailableException) {
            Message obtainMessage = this.lite_if.obtainMessage();
            obtainMessage.obj = networkUnavailableException.getMessage();
            obtainMessage.what = -10;
            this.lite_if.sendMessage(obtainMessage);
        }

        @Override
        public void lite_char(SocketTimeoutException socketTimeoutException) {
            Message obtainMessage = this.lite_if.obtainMessage();
            obtainMessage.obj = socketTimeoutException.getMessage();
            obtainMessage.what = -8;
            this.lite_if.sendMessage(obtainMessage);
        }

        @Override
        public void lite_do(Exception exc) {
            Message obtainMessage = this.lite_if.obtainMessage();
            obtainMessage.obj = exc.getMessage();
            obtainMessage.what = -6;
            this.lite_if.sendMessage(obtainMessage);
        }

        @Override
        public void lite_for(JSONObject jSONObject) {
            Message obtainMessage = this.lite_if.obtainMessage();
            obtainMessage.obj = jSONObject;
            obtainMessage.what = 0;
            this.lite_if.sendMessage(obtainMessage);
        }

        @Override
        public void lite_if(JSONException jSONException) {
            Message obtainMessage = this.lite_if.obtainMessage();
            obtainMessage.obj = jSONException.getMessage();
            obtainMessage.what = -4;
            this.lite_if.sendMessage(obtainMessage);
        }

        @Override
        public void lite_int(MalformedURLException malformedURLException) {
            Message obtainMessage = this.lite_if.obtainMessage();
            obtainMessage.obj = malformedURLException.getMessage();
            obtainMessage.what = -3;
            this.lite_if.sendMessage(obtainMessage);
        }

        @Override
        public void lite_new(IOException iOException) {
            Message obtainMessage = this.lite_if.obtainMessage();
            obtainMessage.obj = iOException.getMessage();
            obtainMessage.what = -2;
            this.lite_if.sendMessage(obtainMessage);
        }

        @Override
        public void lite_try(HttpUtils.HttpStatusException httpStatusException) {
            Message obtainMessage = this.lite_if.obtainMessage();
            obtainMessage.obj = httpStatusException.getMessage();
            obtainMessage.what = -9;
            this.lite_if.sendMessage(obtainMessage);
        }
    }

    public fb2(bb2 bb2Var, ya2 ya2Var) {
        this.lite_do = bb2Var;
        this.lite_if = ya2Var;
    }

    private Intent lite_do(Activity activity, Intent intent) {
        Intent intent2 = new Intent(activity.getApplicationContext(), AssistActivity.class);
        intent2.putExtra("is_login", true);
        intent2.putExtra(AssistActivity.lite_finally, intent);
        return intent2;
    }

    public void lite_byte(Fragment fragment, Intent intent, int i) {
        intent.putExtra(gb2.lite_static, i);
        fragment.startActivityForResult(lite_do(fragment.getActivity(), intent), i);
    }

    public boolean lite_case(Intent intent) {
        if (intent != null) {
            return zc2.lite_char(wc2.lite_do(), intent);
        }
        return false;
    }

    public Intent lite_char(String str) {
        Intent intent = new Intent();
        if (cd2.lite_default(wc2.lite_do())) {
            intent.setClassName(gb2.lite_int, str);
            if (zc2.lite_char(wc2.lite_do(), intent)) {
                return intent;
            }
        }
        intent.setClassName("com.tencent.mobileqq", str);
        if (zc2.lite_char(wc2.lite_do(), intent)) {
            return intent;
        }
        intent.setClassName(gb2.lite_new, str);
        if (zc2.lite_char(wc2.lite_do(), intent)) {
            return intent;
        }
        intent.setClassName(gb2.lite_byte, str);
        if (zc2.lite_char(wc2.lite_do(), intent)) {
            return intent;
        }
        return null;
    }

    public Bundle lite_else() {
        Bundle bundle = new Bundle();
        bundle.putString("appid", this.lite_if.lite_new());
        if (this.lite_if.lite_else()) {
            bundle.putString(gb2.lite_catch, this.lite_if.lite_int());
            bundle.putString(gb2.lite_class, "0x80");
        }
        String lite_case = this.lite_if.lite_case();
        if (lite_case != null) {
            bundle.putString("hopenid", lite_case);
        }
        bundle.putString("platform", "androidqz");
        SharedPreferences sharedPreferences = wc2.lite_do().getSharedPreferences(gb2.lite_switch, 0);
        if (lite_try) {
            StringBuilder b = r5.b("desktop_m_qq-");
            r5.L(b, lite_int, te2.lite_final, "android", te2.lite_final);
            b.append(lite_for);
            b.append(te2.lite_final);
            b.append(lite_new);
            bundle.putString(gb2.lite_return, b.toString());
        } else {
            bundle.putString(gb2.lite_return, sharedPreferences.getString(gb2.lite_return, gb2.lite_short));
            bundle.putString(gb2.lite_return, gb2.lite_short);
        }
        bundle.putString("sdkv", gb2.lite_else);
        bundle.putString("sdkp", com.hisign.a.d.a.f635a);
        return bundle;
    }

    public String lite_for(String str) {
        Bundle lite_if = lite_if();
        StringBuilder sb = new StringBuilder();
        if (!TextUtils.isEmpty(str)) {
            lite_if.putString("need_version", str);
        }
        sb.append("https://openmobile.qq.com/oauth2.0/m_jump_by_version?");
        sb.append(HttpUtils.lite_try(lite_if));
        return sb.toString();
    }

    public Intent lite_goto(String str) {
        Intent intent = new Intent();
        Intent lite_char = lite_char(str);
        if (lite_char == null || lite_char.getComponent() == null) {
            return null;
        }
        intent.setClassName(lite_char.getComponent().getPackageName(), "com.tencent.open.agent.AgentActivity");
        return intent;
    }

    public Bundle lite_if() {
        Bundle bundle = new Bundle();
        bundle.putString(IjkMediaMeta.IJKM_KEY_FORMAT, DataFromClient4Web.RET_FORMAT_JSON);
        bundle.putString("status_os", Build.VERSION.RELEASE);
        bundle.putString("status_machine", Build.MODEL);
        bundle.putString("status_version", Build.VERSION.SDK);
        bundle.putString("sdkv", gb2.lite_else);
        bundle.putString("sdkp", com.hisign.a.d.a.f635a);
        ya2 ya2Var = this.lite_if;
        if (ya2Var != null && ya2Var.lite_else()) {
            bundle.putString(gb2.lite_break, this.lite_if.lite_int());
            bundle.putString("oauth_consumer_key", this.lite_if.lite_new());
            bundle.putString("openid", this.lite_if.lite_case());
            bundle.putString("appid_for_getting_config", this.lite_if.lite_new());
        }
        SharedPreferences sharedPreferences = wc2.lite_do().getSharedPreferences(gb2.lite_switch, 0);
        if (lite_try) {
            StringBuilder b = r5.b("desktop_m_qq-");
            r5.L(b, lite_int, te2.lite_final, "android", te2.lite_final);
            b.append(lite_for);
            b.append(te2.lite_final);
            b.append(lite_new);
            bundle.putString(gb2.lite_return, b.toString());
        } else {
            bundle.putString(gb2.lite_return, sharedPreferences.getString(gb2.lite_return, gb2.lite_short));
        }
        return bundle;
    }

    public void lite_int(Activity activity, int i, Intent intent, boolean z) {
        Intent intent2 = new Intent(activity.getApplicationContext(), AssistActivity.class);
        if (z) {
            intent2.putExtra("is_qq_mobile_share", true);
        }
        intent2.putExtra(AssistActivity.lite_finally, intent);
        activity.startActivityForResult(intent2, i);
    }

    public void lite_long() {
    }

    public void lite_new(Activity activity, Intent intent, int i) {
        intent.putExtra(gb2.lite_static, i);
        activity.startActivityForResult(lite_do(activity, intent), i);
    }

    public void lite_try(Activity activity, Bundle bundle, kd2 kd2Var) {
        hc2.lite_long("openSDK_LOG.BaseApi", "--handleDownloadLastestQQ");
        new wb2(activity, "", "https://login.imgcache.qq.com/ptlogin/static/qzsjump.html?" + HttpUtils.lite_try(bundle), null, this.lite_if).show();
    }

    public fb2(ya2 ya2Var) {
        this(null, ya2Var);
    }
}