package com.tencent.connect.auth; import a.f; import android.app.Activity; import android.app.Dialog; import android.content.Context; import android.content.DialogInterface; import android.content.Intent; import android.content.pm.PackageInfo; import android.content.pm.PackageManager; 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.os.SystemClock; 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.core.view.MotionEventCompat; import androidx.fragment.app.Fragment; import com.meizu.cloud.pushsdk.constants.PushConstants; import com.sensorsdata.analytics.android.sdk.SensorsDataAutoTrackHelper; import com.sensorsdata.analytics.android.sdk.SensorsDataInstrumented; import com.tencent.connect.common.BaseApi; import com.tencent.connect.common.Constants; import com.tencent.connect.common.UIListenerManager; import com.tencent.open.TDialog; import com.tencent.open.b.e; import com.tencent.open.log.SLog; import com.tencent.open.utils.HttpUtils; import com.tencent.open.utils.g; import com.tencent.open.utils.i; import com.tencent.open.utils.j; import com.tencent.open.utils.k; import com.tencent.open.utils.l; import com.tencent.open.utils.m; import com.tencent.open.web.security.JniInterface; import com.tencent.tauth.DefaultUiListener; import com.tencent.tauth.IUiListener; import com.tencent.tauth.UiError; import java.io.IOException; import java.io.InputStream; import java.lang.ref.WeakReference; import java.net.URLDecoder; import java.util.Map; import org.json.JSONException; import org.json.JSONObject; /* compiled from: ProGuard */ public class AuthAgent extends BaseApi { public static String SECURE_LIB_FILE_NAME = "libwbsafeedit"; public static String SECURE_LIB_NAME; /* renamed from: a reason: collision with root package name */ private IUiListener f27825a; private String d; private WeakReference<Activity> e; /* compiled from: ProGuard */ public class a extends DefaultUiListener { /* renamed from: a reason: collision with root package name */ public IUiListener f27829a; public a(IUiListener iUiListener) { this.f27829a = iUiListener; } @Override // com.tencent.tauth.IUiListener, com.tencent.tauth.DefaultUiListener public void onCancel() { IUiListener iUiListener = this.f27829a; if (iUiListener != null) { iUiListener.onCancel(); } } @Override // com.tencent.tauth.IUiListener, com.tencent.tauth.DefaultUiListener public void onComplete(Object obj) { String str; if (obj == null) { SLog.e("openSDK_LOG.AuthAgent", "CheckLoginListener response data is null"); return; } JSONObject jSONObject = (JSONObject) obj; try { int i = jSONObject.getInt("ret"); if (i == 0) { str = "success"; } else { str = jSONObject.getString("msg"); } IUiListener iUiListener = this.f27829a; if (iUiListener != null) { iUiListener.onComplete(new JSONObject().put("ret", i).put("msg", str)); } } catch (JSONException e) { e.printStackTrace(); SLog.e("openSDK_LOG.AuthAgent", "CheckLoginListener response data format error"); } } @Override // com.tencent.tauth.IUiListener, com.tencent.tauth.DefaultUiListener public void onError(UiError uiError) { IUiListener iUiListener = this.f27829a; if (iUiListener != null) { iUiListener.onError(uiError); } } } /* compiled from: ProGuard */ public class c extends DefaultUiListener { private final IUiListener b; /* renamed from: c reason: collision with root package name */ private final boolean f27839c; private final Context d; public c(Context context, IUiListener iUiListener, boolean z, boolean z4) { this.d = context; this.b = iUiListener; this.f27839c = z; SLog.d("openSDK_LOG.AuthAgent", "OpenUi, TokenListener()"); } @Override // com.tencent.tauth.IUiListener, com.tencent.tauth.DefaultUiListener public void onCancel() { SLog.d("openSDK_LOG.AuthAgent", "OpenUi, TokenListener() onCancel"); this.b.onCancel(); SLog.release(); } @Override // com.tencent.tauth.IUiListener, com.tencent.tauth.DefaultUiListener public void onComplete(Object obj) { SLog.d("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"); if (!(string == null || AuthAgent.this.f27894c == null || string3 == null)) { AuthAgent.this.f27894c.setAccessToken(string, string2); AuthAgent.this.f27894c.setOpenId(string3); com.tencent.connect.a.a.d(this.d, AuthAgent.this.f27894c); } String string4 = jSONObject.getString("pf"); if (string4 != null) { try { this.d.getSharedPreferences("pfStore", 0).edit().putString("pf", string4).commit(); } catch (Exception e) { e.printStackTrace(); SLog.e("openSDK_LOG.AuthAgent", "OpenUi, TokenListener() onComplete error", e); } } if (this.f27839c) { CookieSyncManager.getInstance().sync(); } } catch (JSONException e6) { e6.printStackTrace(); SLog.e("openSDK_LOG.AuthAgent", "OpenUi, TokenListener() onComplete error", e6); } this.b.onComplete(jSONObject); AuthAgent.this.releaseResource(); SLog.release(); } @Override // com.tencent.tauth.IUiListener, com.tencent.tauth.DefaultUiListener public void onError(UiError uiError) { SLog.d("openSDK_LOG.AuthAgent", "OpenUi, TokenListener() onError"); this.b.onError(uiError); SLog.release(); } } static { SECURE_LIB_NAME = f.g(new StringBuilder(), SECURE_LIB_FILE_NAME, ".so"); String str = Build.CPU_ABI; if (str == null || str.equals("")) { SECURE_LIB_FILE_NAME = "libwbsafeedit"; SECURE_LIB_NAME = f.g(new StringBuilder(), SECURE_LIB_FILE_NAME, ".so"); SLog.i("openSDK_LOG.AuthAgent", "is arm(default) architecture"); } else if (str.equalsIgnoreCase("arm64-v8a")) { SECURE_LIB_FILE_NAME = "libwbsafeedit_64"; SECURE_LIB_NAME = f.g(new StringBuilder(), SECURE_LIB_FILE_NAME, ".so"); SLog.i("openSDK_LOG.AuthAgent", "is arm64-v8a architecture"); } else if (str.equalsIgnoreCase("x86")) { SECURE_LIB_FILE_NAME = "libwbsafeedit_x86"; SECURE_LIB_NAME = f.g(new StringBuilder(), SECURE_LIB_FILE_NAME, ".so"); SLog.i("openSDK_LOG.AuthAgent", "is x86 architecture"); } else if (str.equalsIgnoreCase("x86_64")) { SECURE_LIB_FILE_NAME = "libwbsafeedit_x86_64"; SECURE_LIB_NAME = f.g(new StringBuilder(), SECURE_LIB_FILE_NAME, ".so"); SLog.i("openSDK_LOG.AuthAgent", "is x86_64 architecture"); } else { SECURE_LIB_FILE_NAME = "libwbsafeedit"; SECURE_LIB_NAME = f.g(new StringBuilder(), SECURE_LIB_FILE_NAME, ".so"); SLog.i("openSDK_LOG.AuthAgent", "is arm(default) architecture"); } } public AuthAgent(QQToken qQToken) { super(qQToken); } private void a(Bundle bundle, Map<String, Object> map) { } public int doLogin(Activity activity, String str, IUiListener iUiListener, boolean z, Fragment fragment, boolean z4, Map<String, Object> map) { if (com.tencent.connect.a.a("openSDK_LOG.AuthAgent", iUiListener)) { return -1; } this.d = str; this.e = new WeakReference<>(activity); this.f27825a = iUiListener; Object[] objArr = new Object[2]; boolean booleanExtra = activity.getIntent().getBooleanExtra("KEY_FORCE_QR_LOGIN", false); boolean b2 = i.a(activity, this.f27894c.getAppId()).b("C_LoginWeb"); SLog.i("openSDK_LOG.AuthAgent", "doLogin needForceQrLogin=" + booleanExtra + ", toWebLogin=" + b2); if (booleanExtra || b2 || !a(activity, fragment, map, z, objArr)) { e.a().a(this.f27894c.getOpenId(), this.f27894c.getAppId(), PushConstants.PUSH_TYPE_UPLOAD_LOG, "1", "5", "1", "0", "0"); SLog.w("openSDK_LOG.AuthAgent", "doLogin startActivity fail show dialog."); b bVar = new b(this.f27825a); this.f27825a = bVar; return a(z, bVar, z4, map); } SLog.i("openSDK_LOG.AuthAgent", "OpenUi, showUi, return Constants.UI_ACTIVITY"); e.a().a(this.f27894c.getOpenId(), this.f27894c.getAppId(), PushConstants.PUSH_TYPE_UPLOAD_LOG, "1", "5", (String) objArr[0], "0", "0"); return ((Integer) objArr[1]).intValue(); } @Override // com.tencent.connect.common.BaseApi public void releaseResource() { this.f27825a = null; } public void b(IUiListener iUiListener) { Bundle a5 = a(); a5.putString("reqType", "checkLogin"); HttpUtils.requestAsync(this.f27894c, g.a(), "https://openmobile.qq.com/v3/user/get_info", a5, "GET", new BaseApi.TempRequestListener(new a(iUiListener))); } public int a(Activity activity, String str, IUiListener iUiListener, boolean z, Fragment fragment, boolean z4) { return doLogin(activity, str, iUiListener, z, fragment, z4, null); } private int a(boolean z, IUiListener iUiListener, boolean z4, Map<String, Object> map) { CookieSyncManager.createInstance(g.a()); Bundle a5 = a(); if (z) { a5.putString("isadd", "1"); } a5.putString("scope", this.d); a5.putString("client_id", this.f27894c.getAppId()); if (BaseApi.isOEM) { StringBuilder h12 = f.h("desktop_m_qq-"); h.b.u(h12, BaseApi.installChannel, "-", "android", "-"); h12.append(BaseApi.registerChannel); h12.append("-"); h12.append(BaseApi.businessId); a5.putString("pf", h12.toString()); } else { a5.putString("pf", "openmobile_android"); } String str = (System.currentTimeMillis() / 1000) + ""; a5.putString("sign", k.b(g.a(), str)); a5.putString("time", str); a5.putString("display", "mobile"); a5.putString("response_type", "token"); a5.putString("redirect_uri", "auth://tauth.qq.com/"); a5.putString("cancel_display", "1"); a5.putString("switch", "1"); a5.putString("compat_v", "1"); if (z4) { a5.putString("style", "qr"); } boolean a12 = a(map); a5.putString("show_download_ui", Boolean.toString(a12)); SLog.i("openSDK_LOG.AuthAgent", "OpenUi, showDialog -- start, isShowDownloadUi=" + a12); final String str2 = j.a().a(g.a(), "https://openmobile.qq.com/oauth2.0/m_authorize?") + HttpUtils.encodeUrl(a5); final c cVar = new c(g.a(), iUiListener, true, false); SLog.d("openSDK_LOG.AuthAgent", "OpenUi, showDialog TDialog"); l.b(new Runnable() { /* class com.tencent.connect.auth.AuthAgent.AnonymousClass1 */ /* JADX WARNING: Code restructure failed: missing block: B:3:0x0014, code lost: r0 = (android.app.Activity) r3.f27827c.e.get(); */ public void run() { final Activity activity; k.a(AuthAgent.SECURE_LIB_FILE_NAME, AuthAgent.SECURE_LIB_NAME, 5); JniInterface.loadSo(); if (AuthAgent.this.e != null && activity != null) { activity.runOnUiThread(new Runnable() { /* class com.tencent.connect.auth.AuthAgent.AnonymousClass1.AnonymousClass1 */ public void run() { if (JniInterface.isJniOk) { Activity activity = activity; AnonymousClass1 r12 = AnonymousClass1.this; a aVar = new a(activity, "action_login", str2, cVar, AuthAgent.this.f27894c); if (!activity.isFinishing()) { aVar.show(); return; } return; } SLog.w("openSDK_LOG.AuthAgent", "OpenUi, secure so load failed, goto download QQ."); Activity activity2 = activity; String a5 = AuthAgent.this.a((AuthAgent) ""); AnonymousClass1 r13 = AnonymousClass1.this; TDialog tDialog = new TDialog(activity2, "", a5, cVar, AuthAgent.this.f27894c); if (!activity.isFinishing()) { tDialog.show(); } } }); } } }); SLog.i("openSDK_LOG.AuthAgent", "OpenUi, showDialog -- end"); return 2; } /* compiled from: ProGuard */ public class b extends DefaultUiListener { /* renamed from: a reason: collision with root package name */ public WeakReference<IUiListener> f27830a; /* renamed from: c reason: collision with root package name */ private final String f27831c = "sendinstall"; private final String d = "installwording"; private final String e = "https://appsupport.qq.com/cgi-bin/qzapps/mapp_addapp.cgi"; /* compiled from: ProGuard */ public abstract class a implements View.OnClickListener { public Dialog d; public a(Dialog dialog) { this.d = dialog; } } public b(IUiListener iUiListener) { this.f27830a = new WeakReference<>(iUiListener); } private void a(String str, final IUiListener iUiListener, final Object obj) { PackageInfo packageInfo; if (AuthAgent.this.e == null) { SLog.i("openSDK_LOG.AuthAgent", "showFeedConfrimDialog mActivity null and return"); return; } Activity activity = (Activity) AuthAgent.this.e.get(); if (activity == null) { SLog.i("openSDK_LOG.AuthAgent", "showFeedConfrimDialog mActivity.get() null and return"); return; } Dialog dialog = new Dialog(activity); dialog.requestWindowFeature(1); PackageManager packageManager = activity.getPackageManager(); Drawable drawable = null; try { packageInfo = packageManager.getPackageInfo(activity.getPackageName(), 0); } catch (PackageManager.NameNotFoundException e6) { StringBuilder h12 = f.h("showFeedConfrimDialog exception:"); h12.append(e6.getStackTrace().toString()); SLog.e("openSDK_LOG.AuthAgent", h12.toString()); packageInfo = null; } if (packageInfo != null) { drawable = packageInfo.applicationInfo.loadIcon(packageManager); } View.OnClickListener r62 = new a(dialog) { /* class com.tencent.connect.auth.AuthAgent.b.AnonymousClass1 */ @SensorsDataInstrumented public void onClick(View view) { b.this.a(); Dialog dialog = this.d; if (dialog != null && dialog.isShowing()) { this.d.dismiss(); } IUiListener iUiListener = iUiListener; if (iUiListener != null) { iUiListener.onComplete(obj); } SensorsDataAutoTrackHelper.trackViewOnClick(view); } }; View.OnClickListener r72 = new a(dialog) { /* class com.tencent.connect.auth.AuthAgent.b.AnonymousClass2 */ @SensorsDataInstrumented public void onClick(View view) { Dialog dialog = this.d; if (dialog != null && dialog.isShowing()) { this.d.dismiss(); } IUiListener iUiListener = iUiListener; if (iUiListener != null) { iUiListener.onComplete(obj); } SensorsDataAutoTrackHelper.trackViewOnClick(view); } }; ColorDrawable colorDrawable = new ColorDrawable(); colorDrawable.setAlpha(0); dialog.getWindow().setBackgroundDrawable(colorDrawable); dialog.setContentView(a(activity, drawable, str, r62, r72)); dialog.setOnCancelListener(new DialogInterface.OnCancelListener() { /* class com.tencent.connect.auth.AuthAgent.b.AnonymousClass3 */ public void onCancel(DialogInterface dialogInterface) { IUiListener iUiListener = iUiListener; if (iUiListener != null) { iUiListener.onComplete(obj); } } }); if (!activity.isFinishing()) { dialog.show(); } } @Override // com.tencent.tauth.IUiListener, com.tencent.tauth.DefaultUiListener public void onCancel() { if (this.f27830a.get() != null) { this.f27830a.get().onCancel(); } } /* JADX WARNING: Removed duplicated region for block: B:23:0x0065 */ /* JADX WARNING: Removed duplicated region for block: B:29:0x0099 */ @Override // com.tencent.tauth.IUiListener, com.tencent.tauth.DefaultUiListener public void onComplete(Object obj) { boolean z; String str; IUiListener iUiListener; if (obj != null) { JSONObject jSONObject = (JSONObject) obj; boolean z4 = false; try { z = true; if (jSONObject.getInt("sendinstall") != 1) { z = false; } try { str = jSONObject.getString("installwording"); } catch (JSONException unused) { } } catch (JSONException unused2) { z = false; SLog.w("openSDK_LOG.AuthAgent", "FeedConfirmListener onComplete There is no value for sendinstall."); str = ""; String decode = URLDecoder.decode(str); SLog.i("openSDK_LOG.AuthAgent", " WORDING = " + decode + "xx,showConfirmDialog=" + z); if (z) { } iUiListener = this.f27830a.get(); if (iUiListener == null) { } } String decode2 = URLDecoder.decode(str); SLog.i("openSDK_LOG.AuthAgent", " WORDING = " + decode2 + "xx,showConfirmDialog=" + z); if (z || TextUtils.isEmpty(decode2)) { iUiListener = this.f27830a.get(); if (iUiListener == null) { if (AuthAgent.this.f27894c != null) { z4 = AuthAgent.this.f27894c.saveSession(jSONObject); SLog.i("openSDK_LOG.AuthAgent", " saveSession saveSuccess=" + z4); } if (z4) { iUiListener.onComplete(obj); } else { g.a.r(-6, "持久化失败!", null, iUiListener); } } else { SLog.i("openSDK_LOG.AuthAgent", " userListener is null"); } } else { a(decode2, this.f27830a.get(), obj); SLog.i("openSDK_LOG.AuthAgent", " WORDING is not empty and return"); } } } @Override // com.tencent.tauth.IUiListener, com.tencent.tauth.DefaultUiListener public void onError(UiError uiError) { if (this.f27830a.get() != null) { this.f27830a.get().onError(uiError); } } private Drawable a(String str, Context context) { Bitmap bitmap; Drawable drawable = null; try { InputStream open = context.getApplicationContext().getAssets().open(str); if (open == null) { return null; } if (str.endsWith(".9.png")) { try { bitmap = BitmapFactory.decodeStream(open); } catch (OutOfMemoryError e6) { e6.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; } catch (IOException e12) { e12.printStackTrace(); } } private View a(Context context, Drawable drawable, String str, View.OnClickListener onClickListener, View.OnClickListener onClickListener2) { DisplayMetrics displayMetrics = new DisplayMetrics(); ((WindowManager) context.getSystemService("window")).getDefaultDisplay().getMetrics(displayMetrics); float f = displayMetrics.density; RelativeLayout relativeLayout = new RelativeLayout(context); ImageView imageView = new ImageView(context); imageView.setImageDrawable(drawable); imageView.setScaleType(ImageView.ScaleType.FIT_XY); imageView.setId(1); int i = (int) (60.0f * f); int i3 = (int) (f * 14.0f); int i12 = (int) (18.0f * f); RelativeLayout.LayoutParams e6 = fd0.c.e(i, i, 9); e6.setMargins(0, i12, (int) (6.0f * f), i12); relativeLayout.addView(imageView, e6); TextView textView = new TextView(context); textView.setText(str); 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 * f)); RelativeLayout.LayoutParams layoutParams = new RelativeLayout.LayoutParams(-2, -2); layoutParams.addRule(1, 1); layoutParams.addRule(6, 1); float f12 = 5.0f * f; layoutParams.setMargins(0, 0, (int) f12, 0); relativeLayout.addView(textView, layoutParams); View view = new View(context); view.setBackgroundColor(Color.rgb(214, 214, 214)); view.setId(3); RelativeLayout.LayoutParams layoutParams2 = new RelativeLayout.LayoutParams(-2, 2); layoutParams2.addRule(3, 1); layoutParams2.addRule(5, 1); layoutParams2.addRule(7, 5); int i13 = (int) (12.0f * f); layoutParams2.setMargins(0, 0, 0, i13); relativeLayout.addView(view, layoutParams2); LinearLayout linearLayout = new LinearLayout(context); RelativeLayout.LayoutParams layoutParams3 = new RelativeLayout.LayoutParams(-2, -2); layoutParams3.addRule(5, 1); layoutParams3.addRule(7, 5); layoutParams3.addRule(3, 3); Button button = new Button(context); button.setText("跳过"); button.setBackgroundDrawable(a("buttonNegt.png", context)); button.setTextColor(Color.rgb(36, 97, 131)); button.setTextSize(20.0f); button.setOnClickListener(onClickListener2); button.setId(4); int i14 = (int) (45.0f * f); LinearLayout.LayoutParams layoutParams4 = new LinearLayout.LayoutParams(0, i14); layoutParams4.rightMargin = i3; int i15 = (int) (4.0f * f); layoutParams4.leftMargin = i15; layoutParams4.weight = 1.0f; linearLayout.addView(button, layoutParams4); Button button2 = new Button(context); button2.setText("确定"); button2.setTextSize(20.0f); button2.setTextColor(Color.rgb((int) MotionEventCompat.ACTION_MASK, (int) MotionEventCompat.ACTION_MASK, (int) MotionEventCompat.ACTION_MASK)); button2.setBackgroundDrawable(a("buttonPost.png", context)); button2.setOnClickListener(onClickListener); LinearLayout.LayoutParams layoutParams5 = new LinearLayout.LayoutParams(0, i14); layoutParams5.weight = 1.0f; layoutParams5.rightMargin = i15; linearLayout.addView(button2, layoutParams5); relativeLayout.addView(linearLayout, layoutParams3); ViewGroup.LayoutParams layoutParams6 = new FrameLayout.LayoutParams((int) (279.0f * f), (int) (f * 163.0f)); relativeLayout.setPadding(i3, 0, i13, i13); relativeLayout.setLayoutParams(layoutParams6); relativeLayout.setBackgroundColor(Color.rgb(247, 251, 247)); PaintDrawable paintDrawable = new PaintDrawable(Color.rgb(247, 251, 247)); paintDrawable.setCornerRadius(f12); relativeLayout.setBackgroundDrawable(paintDrawable); return relativeLayout; } public void a() { Activity activity; Bundle b2 = AuthAgent.this.b(); if (AuthAgent.this.e != null && (activity = (Activity) AuthAgent.this.e.get()) != null) { HttpUtils.requestAsync(AuthAgent.this.f27894c, activity, "https://appsupport.qq.com/cgi-bin/qzapps/mapp_addapp.cgi", b2, "POST", null); } } } private boolean a(Map<String, Object> map) { if (map == null || map.isEmpty()) { return true; } Object obj = map.get(Constants.KEY_ENABLE_SHOW_DOWNLOAD_URL); if (obj instanceof Boolean) { return ((Boolean) obj).booleanValue(); } return true; } private boolean a(Activity activity, Fragment fragment, Map<String, Object> map, boolean z, Object[] objArr) { SLog.i("openSDK_LOG.AuthAgent", "startActionActivity() -- start"); Intent c5 = c(); if (c5 != null) { Bundle a5 = a(); if (z) { a5.putString("isadd", "1"); } a5.putString("scope", this.d); a5.putString("client_id", this.f27894c.getAppId()); if (BaseApi.isOEM) { StringBuilder h12 = f.h("desktop_m_qq-"); h.b.u(h12, BaseApi.installChannel, "-", "android", "-"); h12.append(BaseApi.registerChannel); h12.append("-"); h12.append(BaseApi.businessId); a5.putString("pf", h12.toString()); } else { a5.putString("pf", "openmobile_android"); } a5.putString("need_pay", "1"); a(a5, map); a5.putString("oauth_app_name", k.a(g.a())); c5.putExtra("key_action", "action_login"); c5.putExtra("key_params", a5); c5.putExtra("appid", this.f27894c.getAppId()); a5.putString("ppsts", k.a(activity, a(a5))); try { this.f27825a = new b(this.f27825a); UIListenerManager.getInstance().setListenerWithRequestcode(11101, this.f27825a); if (fragment != null) { SLog.d("openSDK_LOG.AuthAgent", "startAssitActivity fragment"); a(fragment, c5, 11101, map); } else { SLog.d("openSDK_LOG.AuthAgent", "startAssitActivity activity"); a(activity, c5, 11101, map); } SLog.i("openSDK_LOG.AuthAgent", "startActionActivity() -- end, found activity for loginIntent"); e.a().a(0, "LOGIN_CHECK_SDK", "1000", this.f27894c.getAppId(), "", Long.valueOf(SystemClock.elapsedRealtime()), 0, 1, ""); objArr[0] = "0"; objArr[1] = 1; return true; } catch (Exception e6) { SLog.e("openSDK_LOG.AuthAgent", "startActionActivity() exception", e6); } } e.a().a(1, "LOGIN_CHECK_SDK", "1000", this.f27894c.getAppId(), "", Long.valueOf(SystemClock.elapsedRealtime()), 0, 1, "startActionActivity fail"); SLog.i("openSDK_LOG.AuthAgent", "startActionActivity() -- end, no target activity for loginIntent"); return false; } private String a(Bundle bundle) { String string = bundle.getString("status_os"); String string2 = bundle.getString("status_machine"); String string3 = bundle.getString("status_version"); String string4 = bundle.getString("sdkv"); String string5 = bundle.getString("client_id"); String string6 = bundle.getString("need_pay"); String string7 = bundle.getString("pf"); StringBuilder n = h.a.n("os=", string, ", machine=", string2, ", version="); h.b.u(n, string3, ", sdkv=", string4, ", appId="); h.b.u(n, string5, ", needPay=", string6, ", pf="); n.append(string7); SLog.d("openSDK_LOG.AuthAgent", n.toString()); StringBuilder sb2 = new StringBuilder(); if (string == null) { string = ""; } sb2.append(string); if (string2 == null) { string2 = ""; } sb2.append(string2); if (string3 == null) { string3 = ""; } sb2.append(string3); if (string4 == null) { string4 = ""; } sb2.append(string4); if (string5 == null) { string5 = ""; } sb2.append(string5); if (string6 == null) { string6 = ""; } sb2.append(string6); if (string7 == null) { string7 = ""; } sb2.append(string7); return sb2.toString(); } public void a(IUiListener iUiListener) { String str; SLog.i("openSDK_LOG.AuthAgent", "reportDAU() -- start"); String accessToken = this.f27894c.getAccessToken(); String openId = this.f27894c.getOpenId(); String appId = this.f27894c.getAppId(); if (TextUtils.isEmpty(accessToken) || TextUtils.isEmpty(openId) || TextUtils.isEmpty(appId)) { str = ""; } else { str = m.g("tencent&sdk&qazxc***14969%%" + accessToken + appId + openId + "qzone3.4"); } if (TextUtils.isEmpty(str)) { SLog.e("openSDK_LOG.AuthAgent", "reportDAU -- encrytoken is null"); return; } Bundle a5 = a(); a5.putString("encrytoken", str); HttpUtils.requestAsync(this.f27894c, g.a(), "https://openmobile.qq.com/user/user_login_statis", a5, "POST", null); SLog.i("openSDK_LOG.AuthAgent", "reportDAU() -- end"); } }