正在查看: MT Manager v2.13.3 应用的 DialogC4392.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: MT Manager v2.13.3 应用的 DialogC4392.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package l;
import android.R;
import android.app.Activity;
import android.app.Dialog;
import android.content.Context;
import android.graphics.Color;
import android.os.Bundle;
import android.os.Handler;
import android.text.TextUtils;
import android.webkit.WebChromeClient;
import android.webkit.WebSettings;
import android.widget.Button;
import android.widget.FrameLayout;
import android.widget.LinearLayout;
import android.widget.ProgressBar;
import android.widget.TextView;
import com.umeng.commonsdk.statistics.idtracking.i;
import java.util.HashMap;
import java.util.Locale;
public final class DialogC4392 extends Dialog {
public int f15935;
public Context f15936;
public String f15937;
public FrameLayout f15938;
public ProgressBar f15939;
public boolean f15940;
public C9286 f15941;
public Button f15942;
public InterfaceC10054 f15943;
public String f15944;
public String f15945;
public String f15946;
public long f15947;
public Handler f15948;
public LinearLayout f15949;
public FrameLayout f15950;
public C6414 f15951;
public C4838 f15952;
public HashMap f15953;
public long f15954;
public static void m10692(DialogC4392 dialogC4392, String str) {
dialogC4392.getClass();
new StringBuilder(str);
if (TextUtils.isEmpty(dialogC4392.f15945) || dialogC4392.f15945.length() < 4) {
return;
}
String str2 = dialogC4392.f15945;
str2.substring(str2.length() - 4);
}
public static void m10704(DialogC4392 dialogC4392) {
dialogC4392.f15935++;
}
public static void m10706(DialogC4392 dialogC4392, String str) {
dialogC4392.f15946 += ((Object) str);
}
public static boolean m10707(DialogC4392 dialogC4392) {
dialogC4392.getClass();
if (C2207.f6854 == null) {
C2207.f6854 = new C2207();
}
C2207 c2207 = C2207.f6854;
c2207.getClass();
int ceil = (int) Math.ceil((Math.random() * 20.0d) + 3.0d);
char[] charArray = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789".toCharArray();
int length = charArray.length;
StringBuffer stringBuffer = new StringBuffer();
for (int i = 0; i < ceil; i++) {
double random = Math.random();
double d = length;
Double.isNaN(d);
Double.isNaN(d);
Double.isNaN(d);
stringBuffer.append(charArray[(int) (random * d)]);
}
String stringBuffer2 = stringBuffer.toString();
C0750 c0750 = new C0750();
c0750.f2368 = dialogC4392.f15943;
String m5819 = c2207.m5819(c0750);
String str = dialogC4392.f15946;
String substring = str.substring(0, str.indexOf("?"));
Bundle m5502 = C2045.m5502(dialogC4392.f15946);
m5502.putString("token_key", stringBuffer2);
m5502.putString(i.a, m5819);
m5502.putString("browser", "1");
String str2 = substring + "?" + C8638.m19710(m5502);
dialogC4392.f15946 = str2;
return C2045.m5496(dialogC4392.f15936, str2);
}
public DialogC4392(Activity activity, String str, InterfaceC10054 interfaceC10054, C12119 c12119) {
super(activity, R.style.Theme_Translucent_NoTitleBar);
this.f15940 = false;
this.f15954 = 0L;
this.f15947 = 30000L;
this.f15936 = activity;
this.f15946 = str;
c12119.getClass();
this.f15952 = new C4838(this, str, interfaceC10054);
this.f15948 = new HandlerC1479(this, this.f15952, activity.getMainLooper());
this.f15943 = interfaceC10054;
this.f15944 = "action_login";
this.f15951 = new C6414();
getWindow().setSoftInputMode(32);
}
@Override
public final void onCreate(Bundle bundle) {
TextView textView;
requestWindowFeature(1);
super.onCreate(bundle);
this.f15939 = new ProgressBar(this.f15936);
this.f15939.setLayoutParams(new LinearLayout.LayoutParams(-2, -2));
this.f15949 = new LinearLayout(this.f15936);
if (this.f15944.equals("action_login")) {
LinearLayout.LayoutParams layoutParams = new LinearLayout.LayoutParams(-2, -2);
layoutParams.gravity = 16;
layoutParams.leftMargin = 5;
textView = new TextView(this.f15936);
if (Locale.getDefault().getLanguage().equals("zh")) {
textView.setText("登录中...");
} else {
textView.setText("Logging in...");
}
textView.setTextColor(Color.rgb(255, 255, 255));
textView.setTextSize(18.0f);
textView.setLayoutParams(layoutParams);
} else {
textView = null;
}
FrameLayout.LayoutParams layoutParams2 = new FrameLayout.LayoutParams(-2, -2);
layoutParams2.gravity = 17;
this.f15949.setLayoutParams(layoutParams2);
this.f15949.addView(this.f15939);
if (textView != null) {
this.f15949.addView(textView);
}
this.f15938 = new FrameLayout(this.f15936);
FrameLayout.LayoutParams layoutParams3 = new FrameLayout.LayoutParams(-1, -1);
layoutParams3.gravity = 17;
this.f15938.setLayoutParams(layoutParams3);
this.f15938.setBackgroundColor(Color.parseColor("#B3000000"));
this.f15938.addView(this.f15949);
Button button = new Button(this.f15936);
this.f15942 = button;
button.setBackgroundDrawable(C2045.m5488(this.f15936, "h5_qr_back.png"));
FrameLayout.LayoutParams layoutParams4 = new FrameLayout.LayoutParams(-2, -2);
layoutParams4.leftMargin = C7809.m18182(this.f15936, 20.0f);
layoutParams4.topMargin = C7809.m18182(this.f15936, 10.0f);
this.f15942.setLayoutParams(layoutParams4);
this.f15942.setOnClickListener(new ViewOnClickListenerC6294(this));
FrameLayout.LayoutParams layoutParams5 = new FrameLayout.LayoutParams(-1, -1);
C9286 c9286 = new C9286(this.f15936);
this.f15941 = c9286;
c9286.setLayerType(1, null);
this.f15941.setLayoutParams(layoutParams5);
FrameLayout frameLayout = new FrameLayout(this.f15936);
this.f15950 = frameLayout;
layoutParams5.gravity = 17;
frameLayout.setLayoutParams(layoutParams5);
this.f15950.addView(this.f15941);
this.f15950.addView(this.f15938);
String string = C2045.m5502(this.f15946).getString("style");
if (string != null && "qr".equals(string)) {
this.f15950.addView(this.f15942);
}
setContentView(this.f15950);
this.f15941.setVerticalScrollBarEnabled(false);
this.f15941.setHorizontalScrollBarEnabled(false);
this.f15941.setWebViewClient(new C7022(this));
this.f15941.setWebChromeClient(new WebChromeClient());
this.f15941.clearFormData();
this.f15941.clearSslPreferences();
this.f15941.setOnLongClickListener(new ViewOnLongClickListenerC9206());
this.f15941.setOnTouchListener(new ViewOnTouchListenerC10662());
WebSettings settings = this.f15941.getSettings();
settings.setSavePassword(false);
settings.setSaveFormData(false);
settings.setCacheMode(-1);
settings.setNeedInitialFocus(false);
settings.setBuiltInZoomControls(true);
settings.setSupportZoom(true);
settings.setRenderPriority(WebSettings.RenderPriority.HIGH);
settings.setJavaScriptEnabled(true);
settings.setDatabaseEnabled(true);
settings.setDatabasePath(this.f15936.getDir("databases", 0).getPath());
settings.setDomStorageEnabled(true);
C10014.m22462("openSDK_LOG.AuthDialog", "-->mUrl : " + this.f15946);
String str = this.f15946;
this.f15937 = str;
this.f15941.loadUrl(str);
this.f15941.setVisibility(4);
this.f15941.getSettings().setSavePassword(false);
this.f15951.m27731(new C8598(), "SecureJsInterface");
setOnDismissListener(new DialogInterfaceOnDismissListenerC9934());
this.f15953 = new HashMap();
}
@Override
public final void onBackPressed() {
if (!this.f15940) {
this.f15952.onCancel();
}
super.onBackPressed();
}
@Override
public final void onStop() {
super.onStop();
}
public static String m10696(DialogC4392 dialogC4392) {
String str = dialogC4392.f15946;
String str2 = "http://login.imgcache.qq.com/ptlogin/static/qzsjump.html?" + str.substring(str.indexOf("?") + 1);
C10014.m22468("openSDK_LOG.AuthDialog", "-->generateDownloadUrl, url: http://login.imgcache.qq.com/ptlogin/static/qzsjump.html?");
return str2;
}
public final void m10710(String str) {
StringBuilder m27577 = C12809.m27577("javascript:", str, "();void(");
m27577.append(System.currentTimeMillis());
m27577.append(");");
this.f15941.loadUrl(m27577.toString());
}
@Override
public final void dismiss() {
this.f15953.clear();
this.f15948.removeCallbacksAndMessages(null);
if (isShowing()) {
super.dismiss();
}
C9286 c9286 = this.f15941;
if (c9286 != null) {
c9286.destroy();
this.f15941 = null;
}
}
}