밤친구 v4.7.3版本的 MD5 值为:a58175795b36d9d722726efa7eb4c52a
以下内容为反编译后的 e.java 源代码,内容仅作参考
package ud;
import android.app.Activity;
import android.app.Dialog;
import android.content.Context;
import android.content.Intent;
import android.content.pm.PackageInfo;
import android.content.pm.PackageManager;
import android.content.pm.Signature;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.graphics.Color;
import android.graphics.NinePatch;
import android.graphics.Rect;
import android.graphics.drawable.ColorDrawable;
import android.graphics.drawable.Drawable;
import android.graphics.drawable.NinePatchDrawable;
import android.graphics.drawable.PaintDrawable;
import android.os.Build;
import android.os.Bundle;
import android.text.TextUtils;
import android.util.DisplayMetrics;
import android.view.View;
import android.view.ViewGroup;
import android.view.WindowManager;
import android.webkit.CookieSyncManager;
import android.widget.Button;
import android.widget.FrameLayout;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.RelativeLayout;
import android.widget.TextView;
import androidx.fragment.app.FragmentActivity;
import com.imacapp.wind.activity.LoginActivity;
import com.meizu.cloud.pushsdk.constants.PushConstants;
import com.wind.imlib.db.manager.WindPushManager;
import java.io.IOException;
import java.io.InputStream;
import java.lang.ref.WeakReference;
import java.net.URLDecoder;
import java.security.MessageDigest;
import org.json.JSONException;
import org.json.JSONObject;
import qh.v0;
public final class e extends vd.a {
public static final String i;
public static final String f16911j;
public me.b f16912f;
public String f16913g;
public WeakReference<Activity> f16914h;
public class a extends me.a {
public final WeakReference<me.b> f16915a;
public abstract class AbstractViewOnClickListenerC0229a implements View.OnClickListener {
public final Dialog f16917a;
public AbstractViewOnClickListenerC0229a(Dialog dialog) {
this.f16917a = dialog;
}
}
public a(me.b bVar) {
this.f16915a = new WeakReference<>(bVar);
}
public static Drawable a(Activity activity, String str) {
InputStream open;
Bitmap bitmap;
Drawable drawable = null;
try {
open = activity.getApplicationContext().getAssets().open(str);
} catch (IOException e10) {
e10.printStackTrace();
}
if (open == null) {
return null;
}
if (str.endsWith(".9.png")) {
try {
bitmap = BitmapFactory.decodeStream(open);
} catch (OutOfMemoryError e11) {
e11.printStackTrace();
bitmap = null;
}
if (bitmap == null) {
return null;
}
byte[] ninePatchChunk = bitmap.getNinePatchChunk();
NinePatch.isNinePatchChunk(ninePatchChunk);
return new NinePatchDrawable(bitmap, ninePatchChunk, new Rect(), null);
}
drawable = Drawable.createFromStream(open, str);
open.close();
return drawable;
}
@Override
public final void B(Object obj) {
boolean z10;
String str;
WeakReference<me.b> weakReference;
me.b bVar;
boolean z11;
PackageInfo packageInfo;
String str2;
if (obj != null) {
JSONObject jSONObject = (JSONObject) obj;
try {
if (jSONObject.getInt("sendinstall") == 1) {
z10 = true;
} else {
z10 = false;
}
} catch (JSONException unused) {
z10 = false;
}
try {
str = jSONObject.getString("installwording");
} catch (JSONException unused2) {
be.a.i("openSDK_LOG.AuthAgent", "FeedConfirmListener onComplete There is no value for sendinstall.");
str = "";
String decode = URLDecoder.decode(str);
be.a.f("openSDK_LOG.AuthAgent", " WORDING = " + decode + "xx,showConfirmDialog=" + z10);
weakReference = this.f16915a;
e eVar = e.this;
Drawable drawable = null;
if (!z10) {
}
bVar = weakReference.get();
if (bVar == null) {
}
}
String decode2 = URLDecoder.decode(str);
be.a.f("openSDK_LOG.AuthAgent", " WORDING = " + decode2 + "xx,showConfirmDialog=" + z10);
weakReference = this.f16915a;
e eVar2 = e.this;
Drawable drawable2 = null;
if (!z10 && !TextUtils.isEmpty(decode2)) {
me.b bVar2 = weakReference.get();
WeakReference<Activity> weakReference2 = eVar2.f16914h;
if (weakReference2 == null) {
be.a.f("openSDK_LOG.AuthAgent", "showFeedConfrimDialog mActivity null and return");
} else {
Activity activity = weakReference2.get();
if (activity == null) {
be.a.f("openSDK_LOG.AuthAgent", "showFeedConfrimDialog mActivity.get() null and return");
} else {
Dialog dialog = new Dialog(activity);
dialog.requestWindowFeature(1);
PackageManager packageManager = activity.getPackageManager();
try {
packageInfo = packageManager.getPackageInfo(activity.getPackageName(), 0);
} catch (PackageManager.NameNotFoundException e10) {
be.a.c("openSDK_LOG.AuthAgent", "showFeedConfrimDialog exception:" + e10.getStackTrace().toString());
packageInfo = null;
}
if (packageInfo != null) {
drawable2 = packageInfo.applicationInfo.loadIcon(packageManager);
}
ud.b bVar3 = new ud.b(this, dialog, bVar2, obj);
c cVar = new c(dialog, bVar2, obj);
ColorDrawable colorDrawable = new ColorDrawable();
colorDrawable.setAlpha(0);
dialog.getWindow().setBackgroundDrawable(colorDrawable);
DisplayMetrics displayMetrics = new DisplayMetrics();
((WindowManager) activity.getSystemService("window")).getDefaultDisplay().getMetrics(displayMetrics);
float f10 = displayMetrics.density;
RelativeLayout relativeLayout = new RelativeLayout(activity);
ImageView imageView = new ImageView(activity);
imageView.setImageDrawable(drawable2);
imageView.setScaleType(ImageView.ScaleType.FIT_XY);
imageView.setId(1);
int i = (int) (60.0f * f10);
int i2 = (int) (14.0f * f10);
int i10 = (int) (18.0f * f10);
RelativeLayout.LayoutParams layoutParams = new RelativeLayout.LayoutParams(i, i);
layoutParams.addRule(9);
layoutParams.setMargins(0, i10, (int) (6.0f * f10), i10);
relativeLayout.addView(imageView, layoutParams);
TextView textView = new TextView(activity);
textView.setText(decode2);
textView.setTextSize(14.0f);
textView.setGravity(3);
textView.setIncludeFontPadding(false);
textView.setPadding(0, 0, 0, 0);
textView.setLines(2);
textView.setId(5);
textView.setMinWidth((int) (185.0f * f10));
RelativeLayout.LayoutParams layoutParams2 = new RelativeLayout.LayoutParams(-2, -2);
layoutParams2.addRule(1, 1);
layoutParams2.addRule(6, 1);
float f11 = 5.0f * f10;
layoutParams2.setMargins(0, 0, (int) f11, 0);
relativeLayout.addView(textView, layoutParams2);
View view = new View(activity);
view.setBackgroundColor(Color.rgb(214, 214, 214));
view.setId(3);
RelativeLayout.LayoutParams layoutParams3 = new RelativeLayout.LayoutParams(-2, 2);
layoutParams3.addRule(3, 1);
layoutParams3.addRule(5, 1);
layoutParams3.addRule(7, 5);
int i11 = (int) (12.0f * f10);
layoutParams3.setMargins(0, 0, 0, i11);
relativeLayout.addView(view, layoutParams3);
LinearLayout linearLayout = new LinearLayout(activity);
RelativeLayout.LayoutParams layoutParams4 = new RelativeLayout.LayoutParams(-2, -2);
layoutParams4.addRule(5, 1);
layoutParams4.addRule(7, 5);
layoutParams4.addRule(3, 3);
Button button = new Button(activity);
button.setText("跳过");
button.setBackgroundDrawable(a(activity, "buttonNegt.png"));
str2 = "openSDK_LOG.AuthAgent";
button.setTextColor(Color.rgb(36, 97, 131));
button.setTextSize(20.0f);
button.setOnClickListener(cVar);
button.setId(4);
int i12 = (int) (45.0f * f10);
LinearLayout.LayoutParams layoutParams5 = new LinearLayout.LayoutParams(0, i12);
layoutParams5.rightMargin = i2;
int i13 = (int) (4.0f * f10);
layoutParams5.leftMargin = i13;
layoutParams5.weight = 1.0f;
linearLayout.addView(button, layoutParams5);
Button button2 = new Button(activity);
button2.setText("确定");
button2.setTextSize(20.0f);
button2.setTextColor(Color.rgb(255, 255, 255));
button2.setBackgroundDrawable(a(activity, "buttonPost.png"));
button2.setOnClickListener(bVar3);
LinearLayout.LayoutParams layoutParams6 = new LinearLayout.LayoutParams(0, i12);
layoutParams6.weight = 1.0f;
layoutParams6.rightMargin = i13;
linearLayout.addView(button2, layoutParams6);
relativeLayout.addView(linearLayout, layoutParams4);
ViewGroup.LayoutParams layoutParams7 = new FrameLayout.LayoutParams((int) (279.0f * f10), (int) (f10 * 163.0f));
relativeLayout.setPadding(i2, 0, i11, i11);
relativeLayout.setLayoutParams(layoutParams7);
relativeLayout.setBackgroundColor(Color.rgb(247, 251, 247));
PaintDrawable paintDrawable = new PaintDrawable(Color.rgb(247, 251, 247));
paintDrawable.setCornerRadius(f11);
relativeLayout.setBackgroundDrawable(paintDrawable);
dialog.setContentView(relativeLayout);
dialog.setOnCancelListener(new d(bVar2, obj));
if (!activity.isFinishing()) {
dialog.show();
}
be.a.f(str2, " WORDING is not empty and return");
return;
}
}
str2 = "openSDK_LOG.AuthAgent";
be.a.f(str2, " WORDING is not empty and return");
return;
}
bVar = weakReference.get();
if (bVar == null) {
f fVar = eVar2.f17273a;
if (fVar != null) {
try {
if (fVar.f16926e == null) {
Context context = ce.g.f3590a;
if (context == null) {
context = null;
}
fVar.f16926e = new ce.c(context);
}
z11 = f.d(fVar.f16922a, jSONObject, fVar.f16926e);
} catch (Exception e11) {
be.a.f("QQToken", "login saveSession" + e11.toString());
z11 = false;
}
be.a.f("openSDK_LOG.AuthAgent", " saveSession saveSuccess=" + z11);
} else {
z11 = false;
}
if (z11) {
bVar.B(obj);
return;
} else {
androidx.constraintlayout.motion.utils.a.l(-6, "持久化失败!", null, bVar);
return;
}
}
be.a.f("openSDK_LOG.AuthAgent", " userListener is null");
}
}
@Override
public final void onCancel() {
WeakReference<me.b> weakReference = this.f16915a;
if (weakReference.get() != null) {
weakReference.get().onCancel();
}
}
@Override
public final void w(me.d dVar) {
WeakReference<me.b> weakReference = this.f16915a;
if (weakReference.get() != null) {
weakReference.get().w(dVar);
}
}
}
public class b extends me.a {
public final me.b f16918a;
public final Context f16919b;
public b(Context context, a aVar) {
this.f16919b = context;
this.f16918a = aVar;
be.a.b("openSDK_LOG.AuthAgent", "OpenUi, TokenListener()");
}
@Override
public final void B(Object obj) {
e eVar = e.this;
be.a.b("openSDK_LOG.AuthAgent", "OpenUi, TokenListener() onComplete");
JSONObject jSONObject = (JSONObject) obj;
try {
String string = jSONObject.getString("access_token");
String string2 = jSONObject.getString("expires_in");
String string3 = jSONObject.getString("openid");
Context context = this.f16919b;
if (string != null) {
f fVar = eVar.f17273a;
f fVar2 = eVar.f17273a;
if (fVar != null && string3 != null) {
fVar.f16923b = string;
fVar.f16925d = 0L;
if (string2 != null) {
fVar.f16925d = (Long.parseLong(string2) * 1000) + System.currentTimeMillis();
}
fVar2.i(string3);
v0.R(context, fVar2);
}
}
String string4 = jSONObject.getString("pf");
if (string4 != null) {
try {
context.getSharedPreferences("pfStore", 0).edit().putString("pf", string4).commit();
} catch (Exception e10) {
e10.printStackTrace();
be.a.d("openSDK_LOG.AuthAgent", "OpenUi, TokenListener() onComplete error", e10);
}
}
CookieSyncManager.getInstance().sync();
} catch (JSONException e11) {
e11.printStackTrace();
be.a.d("openSDK_LOG.AuthAgent", "OpenUi, TokenListener() onComplete error", e11);
}
this.f16918a.B(jSONObject);
eVar.f16912f = null;
be.a.g();
}
@Override
public final void onCancel() {
be.a.b("openSDK_LOG.AuthAgent", "OpenUi, TokenListener() onCancel");
this.f16918a.onCancel();
be.a.g();
}
@Override
public final void w(me.d dVar) {
be.a.b("openSDK_LOG.AuthAgent", "OpenUi, TokenListener() onError");
this.f16918a.w(dVar);
be.a.g();
}
}
static {
f16911j = ac.d.h(i, ".so");
String str = Build.CPU_ABI;
if (str != null && !str.equals("")) {
if (str.equalsIgnoreCase("arm64-v8a")) {
i = "libwbsafeedit_64";
f16911j = ac.d.h("libwbsafeedit_64", ".so");
be.a.f("openSDK_LOG.AuthAgent", "is arm64-v8a architecture");
return;
} else if (str.equalsIgnoreCase("x86")) {
i = "libwbsafeedit_x86";
f16911j = ac.d.h("libwbsafeedit_x86", ".so");
be.a.f("openSDK_LOG.AuthAgent", "is x86 architecture");
return;
} else if (str.equalsIgnoreCase("x86_64")) {
i = "libwbsafeedit_x86_64";
f16911j = ac.d.h("libwbsafeedit_x86_64", ".so");
be.a.f("openSDK_LOG.AuthAgent", "is x86_64 architecture");
return;
} else {
i = i;
f16911j = ac.d.h(i, ".so");
be.a.f("openSDK_LOG.AuthAgent", "is arm(default) architecture");
return;
}
}
i = i;
f16911j = ac.d.h(i, ".so");
be.a.f("openSDK_LOG.AuthAgent", "is arm(default) architecture");
}
public e(f fVar) {
super(fVar);
}
public final int f(FragmentActivity fragmentActivity, LoginActivity.a aVar) {
String str;
f fVar;
String str2;
String str3;
String str4;
String str5;
String str6;
String str7;
String str8;
String str9;
String str10;
Intent intent;
String str11;
boolean z10;
byte[] bArr;
String str12;
this.f16913g = "all";
this.f16914h = new WeakReference<>(fragmentActivity);
this.f16912f = aVar;
Object[] objArr = new Object[2];
boolean booleanExtra = fragmentActivity.getIntent().getBooleanExtra("KEY_FORCE_QR_LOGIN", false);
f fVar2 = this.f17273a;
boolean e10 = ce.h.b(fragmentActivity, fVar2.f16922a).e("C_LoginWeb");
be.a.f("openSDK_LOG.AuthAgent", "doLogin needForceQrLogin=" + booleanExtra + ", toWebLogin=" + e10);
String str13 = fVar2.f16922a;
if (!booleanExtra && !e10) {
be.a.f("openSDK_LOG.AuthAgent", "startActionActivity() -- start");
Intent intent2 = new Intent();
Context context = ce.g.f3590a;
if (context == null) {
context = null;
}
if (ce.l.q(context)) {
intent2.setClassName("com.tencent.minihd.qq", "com.tencent.open.agent.AgentActivity");
Context context2 = ce.g.f3590a;
if (context2 == null) {
context2 = null;
}
}
intent2.setClassName("com.tencent.mobileqq", "com.tencent.open.agent.AgentActivity");
Context context3 = ce.g.f3590a;
if (context3 == null) {
context3 = null;
}
if (!ce.j.g(context3, intent2)) {
intent2.setClassName("com.tencent.tim", "com.tencent.open.agent.AgentActivity");
Context context4 = ce.g.f3590a;
if (context4 == null) {
context4 = null;
}
if (!ce.j.g(context4, intent2)) {
intent2.setClassName("com.tencent.qqlite", "com.tencent.open.agent.AgentActivity");
Context context5 = ce.g.f3590a;
if (context5 == null) {
context5 = null;
}
if (!ce.j.g(context5, intent2)) {
intent = null;
if (intent == null) {
Bundle b10 = b();
b10.putString("scope", this.f16913g);
b10.putString("client_id", str13);
if (!vd.a.f17272e) {
str7 = "desktop_m_qq-";
b10.putString("pf", "openmobile_android");
} else {
StringBuilder sb2 = new StringBuilder("desktop_m_qq-");
str7 = "desktop_m_qq-";
sb2.append(vd.a.f17270c);
sb2.append("-android-");
sb2.append(vd.a.f17269b);
sb2.append("-");
sb2.append(vd.a.f17271d);
b10.putString("pf", sb2.toString());
}
b10.putString("need_pay", PushConstants.PUSH_TYPE_THROUGH_MESSAGE);
Context context6 = ce.g.f3590a;
str8 = "openmobile_android";
if (context6 == null) {
context6 = null;
}
b10.putString("oauth_app_name", context6.getApplicationInfo().loadLabel(context6.getPackageManager()).toString());
intent.putExtra("key_action", "action_login");
intent.putExtra("key_params", b10);
intent.putExtra("appid", str13);
String string = b10.getString("status_os");
String string2 = b10.getString("status_machine");
str5 = "-";
String string3 = b10.getString("status_version");
str6 = "-android-";
String string4 = b10.getString("sdkv");
str2 = "scope";
String string5 = b10.getString("client_id");
String string6 = b10.getString("need_pay");
str4 = "client_id";
String string7 = b10.getString("pf");
str9 = "pf";
str = PushConstants.PUSH_TYPE_THROUGH_MESSAGE;
str11 = str13;
StringBuilder o10 = androidx.appcompat.widget.g.o("os=", string, ", machine=", string2, ", version=");
ac.d.n(o10, string3, ", sdkv=", string4, ", appId=");
ac.d.n(o10, string5, ", needPay=", string6, ", pf=");
o10.append(string7);
be.a.b("openSDK_LOG.AuthAgent", o10.toString());
StringBuilder sb3 = new StringBuilder();
if (string == null) {
string = "";
}
sb3.append(string);
if (string2 == null) {
string2 = "";
}
sb3.append(string2);
if (string3 == null) {
string3 = "";
}
sb3.append(string3);
if (string4 == null) {
string4 = "";
}
sb3.append(string4);
if (string5 == null) {
string5 = "";
}
sb3.append(string5);
if (string6 == null) {
string6 = "";
}
sb3.append(string6);
if (string7 == null) {
string7 = "";
}
sb3.append(string7);
String sb4 = sb3.toString();
try {
try {
MessageDigest messageDigest = MessageDigest.getInstance("SHA-256");
messageDigest.update(sb4.getBytes());
bArr = messageDigest.digest();
} catch (Exception e11) {
be.a.d("DESUtils", "encryptSha", e11);
bArr = null;
}
} catch (Exception e12) {
be.a.d("openSDK_LOG.SystemUtils", "getEncryptPkgName", e12);
}
if (bArr == null) {
be.a.c("openSDK_LOG.SystemUtils", "getEncryptPkgName shaBytes==null !!!!!!");
str12 = "";
b10.putString("ppsts", str12);
if (vd.a.d(intent)) {
this.f16912f = new a(this.f16912f);
vd.c.a().c(11101, this.f16912f);
be.a.b("openSDK_LOG.AuthAgent", "startAssitActivity activity");
vd.a.c(fragmentActivity, intent, 11101);
be.a.f("openSDK_LOG.AuthAgent", "startActionActivity() -- end, found activity for loginIntent");
fVar = fVar2;
ae.f.b(0, "LOGIN_CHECK_SDK", fVar.f16922a, "", androidx.constraintlayout.motion.utils.a.g(ae.f.a()), "");
objArr[0] = PushConstants.PUSH_TYPE_NOTIFY;
z10 = true;
objArr[1] = 1;
if (!z10) {
str10 = "5";
str3 = str11;
} else {
be.a.f("openSDK_LOG.AuthAgent", "OpenUi, showUi, return Constants.UI_ACTIVITY");
ae.f a10 = ae.f.a();
String str14 = fVar.f16924c;
String str15 = (String) objArr[0];
a10.getClass();
ae.f.d(str14, str11, "5", str15);
return ((Integer) objArr[1]).intValue();
}
}
} else {
byte[] bArr2 = new byte[8];
System.arraycopy(bArr, 5, bArr2, 0, 8);
byte[] bArr3 = new byte[16];
System.arraycopy(bArr, 8, bArr3, 0, 16);
String packageName = fragmentActivity.getPackageName();
char[] cArr = new char[32];
for (int i2 = 0; i2 < 16; i2++) {
byte b11 = bArr3[i2];
int i10 = i2 * 2;
char[] cArr2 = v0.f15186f;
cArr[i10 + 1] = cArr2[b11 & 15];
cArr[i10] = cArr2[((byte) (b11 >>> 4)) & 15];
}
str12 = v0.t(packageName, new String(cArr), bArr2);
b10.putString("ppsts", str12);
if (vd.a.d(intent)) {
}
}
} else {
str = PushConstants.PUSH_TYPE_THROUGH_MESSAGE;
str2 = "scope";
str11 = str13;
str4 = "client_id";
str5 = "-";
str6 = "-android-";
str7 = "desktop_m_qq-";
str8 = "openmobile_android";
str9 = "pf";
}
fVar = fVar2;
ae.f.b(1, "LOGIN_CHECK_SDK", fVar.f16922a, "", androidx.constraintlayout.motion.utils.a.g(ae.f.a()), "startActionActivity fail");
be.a.f("openSDK_LOG.AuthAgent", "startActionActivity() -- end, no target activity for loginIntent");
z10 = false;
if (!z10) {
}
}
}
}
intent = intent2;
if (intent == null) {
}
fVar = fVar2;
ae.f.b(1, "LOGIN_CHECK_SDK", fVar.f16922a, "", androidx.constraintlayout.motion.utils.a.g(ae.f.a()), "startActionActivity fail");
be.a.f("openSDK_LOG.AuthAgent", "startActionActivity() -- end, no target activity for loginIntent");
z10 = false;
if (!z10) {
}
} else {
str = PushConstants.PUSH_TYPE_THROUGH_MESSAGE;
fVar = fVar2;
str2 = "scope";
str3 = str13;
str4 = "client_id";
str5 = "-";
str6 = "-android-";
str7 = "desktop_m_qq-";
str8 = "openmobile_android";
str9 = "pf";
str10 = "5";
}
ae.f a11 = ae.f.a();
String str16 = fVar.f16924c;
a11.getClass();
String str17 = str;
ae.f.d(str16, str3, str10, str17);
be.a.i("openSDK_LOG.AuthAgent", "doLogin startActivity fail show dialog.");
a aVar2 = new a(this.f16912f);
this.f16912f = aVar2;
be.a.f("openSDK_LOG.AuthAgent", "OpenUi, showDialog -- start");
Context context7 = ce.g.f3590a;
if (context7 == null) {
context7 = null;
}
CookieSyncManager.createInstance(context7);
Bundle b12 = b();
b12.putString(str2, this.f16913g);
b12.putString(str4, str3);
if (vd.a.f17272e) {
b12.putString(str9, str7 + vd.a.f17270c + str6 + vd.a.f17269b + str5 + vd.a.f17271d);
} else {
b12.putString(str9, str8);
}
StringBuilder sb5 = new StringBuilder();
sb5.append(System.currentTimeMillis() / 1000);
String str18 = "";
sb5.append(str18);
String sb6 = sb5.toString();
Context context8 = ce.g.f3590a;
if (context8 == null) {
context8 = null;
}
be.a.h("openSDK_LOG.SystemUtils", "OpenUi, getSignValidString");
try {
String packageName2 = context8.getPackageName();
Signature[] signatureArr = context8.getPackageManager().getPackageInfo(packageName2, 64).signatures;
MessageDigest messageDigest2 = MessageDigest.getInstance("MD5");
messageDigest2.update(signatureArr[0].toByteArray());
String e13 = ce.l.e(messageDigest2.digest());
messageDigest2.reset();
be.a.h("openSDK_LOG.SystemUtils", "-->sign: " + e13);
messageDigest2.update(ce.l.A(packageName2 + "_" + e13 + "_" + sb6 + str18));
str18 = ce.l.e(messageDigest2.digest());
messageDigest2.reset();
StringBuilder sb7 = new StringBuilder("-->signEncryped: ");
sb7.append(str18);
be.a.h("openSDK_LOG.SystemUtils", sb7.toString());
} catch (Exception e14) {
e14.printStackTrace();
be.a.d("openSDK_LOG.SystemUtils", "OpenUi, getSignValidString error", e14);
str18 = str18;
}
b12.putString("sign", str18);
b12.putString("time", sb6);
b12.putString("display", "mobile");
b12.putString("response_type", WindPushManager.TOKEN);
b12.putString("redirect_uri", "auth://tauth.qq.com/");
b12.putString("cancel_display", str17);
b12.putString("switch", str17);
b12.putString("compat_v", str17);
StringBuilder sb8 = new StringBuilder();
ce.i a12 = ce.i.a();
Context context9 = ce.g.f3590a;
if (context9 == null) {
context9 = null;
}
sb8.append(a12.b(context9, "https://openmobile.qq.com/oauth2.0/m_authorize?"));
sb8.append(ce.b.c(ce.b.a(b12)));
String sb9 = sb8.toString();
Context context10 = ce.g.f3590a;
if (context10 == null) {
context10 = null;
}
b bVar = new b(context10, aVar2);
be.a.b("openSDK_LOG.AuthAgent", "OpenUi, showDialog TDialog");
ce.k.a(new ud.a(this, sb9, bVar));
be.a.f("openSDK_LOG.AuthAgent", "OpenUi, showDialog -- end");
return 2;
}
}