小马软件库 v4.3版本的 MD5 值为:5bdc4b93cc4814bc786c18efbaeb25d1
以下内容为反编译后的 main.java 源代码,内容仅作参考
package com.xiaomaabcdrjk.app;
import android.app.Activity;
import android.app.AlertDialog;
import android.content.Context;
import android.content.DialogInterface;
import android.content.Intent;
import android.content.IntentSender;
import android.os.Bundle;
import android.support.v4.app.FragmentActivity;
import android.support.v4.app.NotificationCompat;
import android.util.AttributeSet;
import android.view.View;
import android.widget.ImageView;
import com.bumptech.glide.Glide;
import com.qt.box.tool;
import i.app.iActivity;
import i.runlibrary.app.gj;
import i.runlibrary.app.zf;
import org.json.JSONObject;
public class main extends iActivity {
private View.OnClickListener $_on_setOnClickListener_i34dc7bf20a = new View.OnClickListener() {
@Override
public void onClick(View view) {
main.this.$_onClick_i34dc7bf20a(view);
}
};
public final main lei = this;
public final main f48 = this;
public static String url = "https://app.xmruan.xyz/api/";
public static String f45 = "https://app.xmruan.xyz/kami.html";
public static String f47 = "https://app.xmruan.xyz/liuyan.html";
public static String file = "%Android/data/xmrjk/files/";
public static String f44 = "软件库永久下载地址:发送任意邮件到xiaomaruanjianku@gmail.com获取";
public static String f43 = "https://app.xmruan.xyz/gonggao.html";
public static String f46 = "";
@Override
public View onCreateView(View view, String str, Context context, AttributeSet attributeSet) {
return super.onCreateView(view, str, context, attributeSet);
}
@Override
public View onCreateView(String str, Context context, AttributeSet attributeSet) {
return super.onCreateView(str, context, attributeSet);
}
@Override
public void startActivityForResult(Intent intent, int i2, Bundle bundle) {
super.startActivityForResult(intent, i2, bundle);
}
@Override
public void startIntentSenderForResult(IntentSender intentSender, int i2, Intent intent, int i3, int i4, int i5) throws IntentSender.SendIntentException {
super.startIntentSenderForResult(intentSender, i2, intent, i3, i4, i5);
}
@Override
public void startIntentSenderForResult(IntentSender intentSender, int i2, Intent intent, int i3, int i4, int i5, Bundle bundle) throws IntentSender.SendIntentException {
super.startIntentSenderForResult(intentSender, i2, intent, i3, i4, i5, bundle);
}
@Override
public void onCreate(Bundle bundle) {
super.onCreate(bundle);
setContentView(R.layout.main);
_$_viewAutomaticSettingEvent();
this.xt.pm().ztl("#00000000", 1);
Glide.with((FragmentActivity) this.lei).load(String.valueOf(this.zf.th(url, "api/", "")) + "png.php?type=png&png=" + this.xt.sj(4)).into((ImageView) findViewById(R.id.tx1));
String str = String.valueOf(file) + "downurl.so";
if (!this.wj.cz(str)) {
this.wj.xrwb(str, "内部存储/小马软件库/");
}
new tool();
this.gj.xc(new AnonymousClass2());
}
class AnonymousClass2 extends Thread {
AnonymousClass2() {
}
@Override
public void run() {
main.this.gj.zt(1500);
String hq = main.this.wl.hq(String.valueOf(main.url) + "update.php", new String[]{"edition=" + tool.m39()}, "utf-8");
main.this.gj.sc(hq);
main.this.gj.jmxc(new AnonymousClass1(hq));
}
class AnonymousClass1 implements Runnable {
private final String val$edwz;
AnonymousClass1(String str) {
this.val$edwz = str;
}
@Override
public void run() {
final zf.json json = main.this.zf.json(this.val$edwz);
final JSONObject jSONObject = json.json;
main.this.gj.sc(jSONObject);
Object hq = json.hq(jSONObject, "code");
if (main.this.zf.dy(hq, "update")) {
main.this.gj.jmxc(new Runnable() {
@Override
public void run() {
String th = main.this.zf.th(json.hq(jSONObject, "content"), "<br>", "\n");
final Object hq2 = json.hq(jSONObject, "link");
AlertDialog tc = main.this.st.tc(null, "本次更新", th, "马上更新", new DialogInterface.OnClickListener() {
@Override
public void onClick(DialogInterface dialogInterface, int i2) {
main.this.wl.fw(hq2);
}
});
tc.setCancelable(false);
tc.getWindow().setBackgroundDrawableResource(R.drawable.tmtc);
}
});
return;
}
if (!main.this.zf.dy(hq, "true")) {
main.this.gj.ts("检测更新失败");
return;
}
String str = String.valueOf(main.file) + "email.so";
String str2 = String.valueOf(main.file) + "token.so";
boolean cz = main.this.wj.cz(str);
boolean cz2 = main.this.wj.cz(str2);
if (!cz || !cz2) {
main.this.gj.ts("暂无登录信息");
main.this.gj.tz(logon.class);
main.this.gj.gb();
return;
}
main.this.gj.xc(new C00382());
}
class C00382 extends Thread {
C00382() {
}
@Override
public void run() {
String str = String.valueOf(main.file) + "token.so";
String str2 = String.valueOf(main.file) + "email.so";
main.this.gj.jmxc(new RunnableC00391(main.this.wl.hq(String.valueOf(main.url) + "logon.php", new String[]{"email=" + main.this.wj.dqwb(str2), "token=" + main.this.wj.dqwb(str)}, "utf-8"), str, str2));
}
class RunnableC00391 implements Runnable {
private final String val$ej;
private final String val$tj;
private final String val$wz;
RunnableC00391(String str, String str2, String str3) {
this.val$wz = str;
this.val$tj = str2;
this.val$ej = str3;
}
@Override
public void run() {
final zf.json json = main.this.zf.json(this.val$wz);
final JSONObject jSONObject = json.json;
if (!main.this.zf.dy(json.hq(jSONObject, "code"), "true")) {
main.this.gj.ts(json.hq(jSONObject, NotificationCompat.CATEGORY_MESSAGE));
main.this.gj.tz(logon.class);
main.this.gj.gb();
return;
}
Object hq = json.hq(jSONObject, "user");
Object hq2 = json.hq(jSONObject, "time");
Object hq3 = json.hq(jSONObject, "token");
main.this.wj.xrwb(this.val$tj, hq3);
Object hq4 = json.hq(jSONObject, NotificationCompat.CATEGORY_EMAIL);
main.this.wj.xrwb(this.val$ej, hq4);
Object hq5 = json.hq(jSONObject, "notice");
final String[] strArr = {NotificationCompat.CATEGORY_EMAIL, "token", "user", "time", "notice"};
final Object[] objArr = {hq4, hq3, hq, hq2, hq5};
main.this.st.wb(Integer.valueOf(R.id.wb1)).zf("3");
main.this.gj.xc(new Thread() {
@Override
public void run() {
for (int i2 = 0; i2 < 3; i2++) {
main.this.gj.zt(1000);
final int i3 = 2 - i2;
main.this.gj.jmxc(new Runnable() {
@Override
public void run() {
main.this.st.wb(Integer.valueOf(R.id.wb1)).zf(Integer.valueOf(i3));
}
});
}
gj gjVar = main.this.gj;
final zf.json jsonVar = json;
final JSONObject jSONObject2 = jSONObject;
final String[] strArr2 = strArr;
final Object[] objArr2 = objArr;
gjVar.jmxc(new Runnable() {
@Override
public void run() {
jsonVar.hq(jSONObject2, NotificationCompat.CATEGORY_MESSAGE);
main.this.gj.tz("zhuye", strArr2, objArr2);
main.this.gj.gb();
}
});
}
});
}
}
}
}
}
public void $_onClick_i34dc7bf20a(View view) {
this.wl.fw("https://app.xmruan.xyz/png.php?type=get");
}
private void _$_viewAutomaticSettingEvent() {
_$_viewAutomaticSettingEvent(this, null);
}
@Override
public void _$_viewAutomaticSettingEvent(Activity activity, View view) {
((ImageView) findViewById(activity, view, R.id.tx1)).setOnClickListener(this.$_on_setOnClickListener_i34dc7bf20a);
__layoutIsLoaded(activity, view);
}
}