导航菜单

页面标题

页面副标题

Top浏览器 v4.6.16 - a.java 源代码

正在查看: Top浏览器 v4.6.16 应用的 a.java JAVA 源代码文件

本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。


package c.x.a.f;

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 c.x.a.d.e;
import c.x.c.g.a;
import c.x.c.g.f;
import c.x.c.g.i;
import c.x.c.g.k;
import com.tencent.connect.common.AssistActivity;
import com.umeng.analytics.pro.ak;
import java.io.IOException;
import java.net.MalformedURLException;
import java.net.SocketTimeoutException;
import java.util.Map;
import org.json.JSONException;
import org.json.JSONObject;

public abstract class a {
    public static String a = null;
    public static String b = null;

    public static String f581c = null;

    public static boolean f582d = false;

    public e f583e;

    public c.x.a.d.b f584f;

    public class C0034a implements c.x.d.b {
        public final c.x.d.c a;
        public final Handler b;

        public class HandlerC0035a extends Handler {
            public final a a;

            public HandlerC0035a(Looper looper, a aVar) {
                super(looper);
                this.a = aVar;
            }

            @Override
            public void handleMessage(Message message) {
                if (message.what == 0) {
                    C0034a.this.a.b(message.obj);
                } else {
                    C0034a.this.a.a(new c.x.d.e(message.what, (String) message.obj, null));
                }
            }
        }

        public C0034a(c.x.d.c cVar) {
            this.a = cVar;
            this.b = new HandlerC0035a(f.a().getMainLooper(), a.this);
        }

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

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

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

        @Override
        public void d(a.c cVar) {
            Message obtainMessage = this.b.obtainMessage();
            obtainMessage.obj = cVar.getMessage();
            obtainMessage.what = -10;
            this.b.sendMessage(obtainMessage);
        }

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

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

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

        @Override
        public void h(a.b bVar) {
            Message obtainMessage = this.b.obtainMessage();
            obtainMessage.obj = bVar.getMessage();
            obtainMessage.what = -9;
            this.b.sendMessage(obtainMessage);
        }
    }

    public a(e eVar, c.x.a.d.b bVar) {
        this.f583e = eVar;
        this.f584f = bVar;
    }

    public final Intent a(Activity activity, Intent intent, Map<String, Object> map) {
        Intent intent2 = new Intent(activity.getApplicationContext(), (Class<?>) AssistActivity.class);
        intent2.putExtra("is_login", true);
        intent2.putExtra("openSDK_LOG.AssistActivity.ExtraIntent", intent);
        if (map == null) {
            return intent2;
        }
        try {
            if (map.containsKey(b.f586c)) {
                intent2.putExtra(b.f586c, ((Boolean) map.get(b.f586c)).booleanValue());
            }
        } catch (Exception e2) {
            c.x.c.f.a.i("openSDK_LOG.BaseApi", "Exception", e2);
        }
        return intent2;
    }

    public Bundle b() {
        Bundle bundle = new Bundle();
        bundle.putString("format", "json");
        bundle.putString("status_os", Build.VERSION.RELEASE);
        bundle.putString("status_machine", c.x.c.g.e.a().c(f.a()));
        bundle.putString("status_version", Build.VERSION.SDK);
        bundle.putString("sdkv", "3.5.8.lite");
        bundle.putString("sdkp", ak.av);
        c.x.a.d.b bVar = this.f584f;
        if (bVar != null && bVar.h()) {
            bundle.putString("access_token", this.f584f.e());
            bundle.putString("oauth_consumer_key", this.f584f.f());
            bundle.putString("openid", this.f584f.g());
        }
        SharedPreferences sharedPreferences = f.a().getSharedPreferences("pfStore", 0);
        if (f582d) {
            bundle.putString("pf", "desktop_m_qq-" + b + "-android-" + a + "-" + f581c);
        } else {
            bundle.putString("pf", sharedPreferences.getString("pf", "openmobile_android"));
        }
        return bundle;
    }

    public String c(String str) {
        Bundle b2 = b();
        StringBuilder sb = new StringBuilder();
        if (!TextUtils.isEmpty(str)) {
            b2.putString("need_version", str);
        }
        sb.append("https://openmobile.qq.com/oauth2.0/m_jump_by_version?");
        sb.append(c.x.c.g.a.e(b2));
        return sb.toString();
    }

    public void d(Activity activity, Intent intent, int i2, Map<String, Object> map) {
        intent.putExtra("key_request_code", i2);
        activity.startActivityForResult(a(activity, intent, map), i2);
    }

    public void e(Fragment fragment, Intent intent, int i2, Map<String, Object> map) {
        intent.putExtra("key_request_code", i2);
        fragment.startActivityForResult(a(fragment.getActivity(), intent, map), i2);
    }

    public Intent f(String str) {
        Intent intent = new Intent();
        if (k.q(f.a())) {
            intent.setClassName("com.tencent.minihd.qq", str);
            if (i.h(f.a(), intent)) {
                return intent;
            }
        }
        intent.setClassName("com.tencent.mobileqq", str);
        if (i.h(f.a(), intent)) {
            return intent;
        }
        intent.setClassName("com.tencent.tim", str);
        if (i.h(f.a(), intent)) {
            return intent;
        }
        intent.setClassName("com.tencent.qqlite", str);
        if (i.h(f.a(), intent)) {
            return intent;
        }
        return null;
    }

    public Bundle g() {
        Bundle bundle = new Bundle();
        bundle.putString("appid", this.f584f.f());
        if (this.f584f.h()) {
            bundle.putString("keystr", this.f584f.e());
            bundle.putString("keytype", "0x80");
        }
        String g2 = this.f584f.g();
        if (g2 != null) {
            bundle.putString("hopenid", g2);
        }
        bundle.putString("platform", "androidqz");
        SharedPreferences sharedPreferences = f.a().getSharedPreferences("pfStore", 0);
        if (f582d) {
            bundle.putString("pf", "desktop_m_qq-" + b + "-android-" + a + "-" + f581c);
        } else {
            bundle.putString("pf", sharedPreferences.getString("pf", "openmobile_android"));
            bundle.putString("pf", "openmobile_android");
        }
        bundle.putString("sdkv", "3.5.8.lite");
        bundle.putString("sdkp", ak.av);
        return bundle;
    }

    public a(c.x.a.d.b bVar) {
        this(null, bVar);
    }
}