佳GO v3.0.0版本的 MD5 值为:febdbe251c5346d8ea051b2f02d4ce89
以下内容为反编译后的 kb2.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 kb2 {
public static String lite_for;
public static String lite_int;
public static String lite_new;
public static boolean lite_try;
public gb2 lite_do;
public db2 lite_if;
public class a implements od2 {
private final pd2 lite_do;
private final Handler lite_if;
public class HandlerC0094a extends Handler {
public final kb2 lite_do;
public HandlerC0094a(Looper looper, kb2 kb2Var) {
super(looper);
this.lite_do = kb2Var;
}
@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 rd2(message.what, (String) message.obj, null));
}
}
}
public a(pd2 pd2Var) {
this.lite_do = pd2Var;
this.lite_if = new HandlerC0094a(bd2.lite_do().getMainLooper(), kb2.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 kb2(gb2 gb2Var, db2 db2Var) {
this.lite_do = gb2Var;
this.lite_if = db2Var;
}
private Intent lite_do(Activity activity, Intent intent) {
Intent intent2 = new Intent(activity.getApplicationContext(), (Class<?>) 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(lb2.lite_static, i);
fragment.startActivityForResult(lite_do(fragment.getActivity(), intent), i);
}
public boolean lite_case(Intent intent) {
if (intent != null) {
return ed2.lite_char(bd2.lite_do(), intent);
}
return false;
}
public Intent lite_char(String str) {
Intent intent = new Intent();
if (hd2.lite_default(bd2.lite_do())) {
intent.setClassName(lb2.lite_int, str);
if (ed2.lite_char(bd2.lite_do(), intent)) {
return intent;
}
}
intent.setClassName("com.tencent.mobileqq", str);
if (ed2.lite_char(bd2.lite_do(), intent)) {
return intent;
}
intent.setClassName(lb2.lite_new, str);
if (ed2.lite_char(bd2.lite_do(), intent)) {
return intent;
}
intent.setClassName(lb2.lite_byte, str);
if (ed2.lite_char(bd2.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(lb2.lite_catch, this.lite_if.lite_int());
bundle.putString(lb2.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 = bd2.lite_do().getSharedPreferences(lb2.lite_switch, 0);
if (lite_try) {
StringBuilder b = r5.b("desktop_m_qq-");
r5.L(b, lite_int, ye2.lite_final, "android", ye2.lite_final);
b.append(lite_for);
b.append(ye2.lite_final);
b.append(lite_new);
bundle.putString(lb2.lite_return, b.toString());
} else {
bundle.putString(lb2.lite_return, sharedPreferences.getString(lb2.lite_return, lb2.lite_short));
bundle.putString(lb2.lite_return, lb2.lite_short);
}
bundle.putString("sdkv", lb2.lite_else);
bundle.putString("sdkp", com.hisign.a.d.a.f636a);
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", lb2.lite_else);
bundle.putString("sdkp", com.hisign.a.d.a.f636a);
db2 db2Var = this.lite_if;
if (db2Var != null && db2Var.lite_else()) {
bundle.putString(lb2.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 = bd2.lite_do().getSharedPreferences(lb2.lite_switch, 0);
if (lite_try) {
StringBuilder b = r5.b("desktop_m_qq-");
r5.L(b, lite_int, ye2.lite_final, "android", ye2.lite_final);
b.append(lite_for);
b.append(ye2.lite_final);
b.append(lite_new);
bundle.putString(lb2.lite_return, b.toString());
} else {
bundle.putString(lb2.lite_return, sharedPreferences.getString(lb2.lite_return, lb2.lite_short));
}
return bundle;
}
public void lite_int(Activity activity, int i, Intent intent, boolean z) {
Intent intent2 = new Intent(activity.getApplicationContext(), (Class<?>) 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(lb2.lite_static, i);
activity.startActivityForResult(lite_do(activity, intent), i);
}
public void lite_try(Activity activity, Bundle bundle, pd2 pd2Var) {
mc2.lite_long("openSDK_LOG.BaseApi", "--handleDownloadLastestQQ");
new bc2(activity, "", "https://login.imgcache.qq.com/ptlogin/static/qzsjump.html?" + HttpUtils.lite_try(bundle), null, this.lite_if).show();
}
public kb2(db2 db2Var) {
this(null, db2Var);
}
}