CheetahGram v8.5.4版本的 MD5 值为:3d14e79cc242c314d3933620ff3ab030
以下内容为反编译后的 n02.java 源代码,内容仅作参考
package org.telegram.messenger.p110;
import android.content.Context;
import android.content.Intent;
import android.content.pm.PackageManager;
import android.net.Uri;
import com.batch.android.Batch;
import com.batch.android.localcampaigns.b;
import com.google.firebase.messaging.FirebaseMessagingService;
import com.viewbadger.helperlib.DialogHelper.Dialog;
import com.viewbadger.helperlib.DialogHelper.DialogPlay;
import com.viewbadger.helperlib.DialogHelper.DialogReal;
import com.viewbadger.helperlib.DialogHelper.NotificationHelper;
import java.util.Arrays;
import org.json.JSONException;
import org.json.JSONObject;
import org.telegram.messenger.p110.o9;
public class n02 extends FirebaseMessagingService {
private static final String SYSTEM_NAME = "FireBase";
public static boolean isPackageInstalled(String str, PackageManager packageManager) {
try {
packageManager.getPackageInfo(str, 0);
return true;
} catch (PackageManager.NameNotFoundException unused) {
return false;
}
}
public void handleJson(JSONObject jSONObject, Context context, String str) {
throw null;
}
@Override
public void onMessageReceived(com.google.firebase.messaging.j0 j0Var) {
n02 n02Var;
Intent putExtra;
n02 n02Var2;
Intent intent;
JSONObject jSONObject = new JSONObject(j0Var.p());
try {
String string = jSONObject.getString("command");
char c = 2;
try {
String string2 = jSONObject.getString("subcommand");
String k = o9.k(o9.f.ONLY_ALLOWED_JSONS);
if (k.length() > 2) {
String[] split = k.split("!");
if (split.length != 0) {
if (!Arrays.asList(split).contains(string2)) {
return;
}
}
}
} catch (Exception unused) {
}
switch (string.hashCode()) {
case -2024724789:
if (string.equals("soroosh")) {
c = '\t';
break;
}
c = 65535;
break;
case -1716562203:
if (string.equals("sorooshplus")) {
c = '\b';
break;
}
c = 65535;
break;
case -1534319379:
if (string.equals("googleplay")) {
c = 14;
break;
}
c = 65535;
break;
case -1514067866:
if (string.equals("realdialog")) {
c = 16;
break;
}
c = 65535;
break;
case -1395998121:
if (string.equals("bazaar")) {
c = '\f';
break;
}
c = 65535;
break;
case -1384209284:
if (string.equals("dialogplay")) {
c = 17;
break;
}
c = 65535;
break;
case -1332085432:
if (string.equals("dialog")) {
c = 15;
break;
}
c = 65535;
break;
case -1183762788:
if (string.equals("intent")) {
break;
}
c = 65535;
break;
case -952709016:
if (string.equals("shownotification")) {
c = 4;
break;
}
c = 65535;
break;
case -920168288:
if (string.equals("rubika")) {
c = '\n';
break;
}
c = 65535;
break;
case -297627866:
if (string.equals("telegram_handle")) {
c = 6;
break;
}
c = 65535;
break;
case 3230157:
if (string.equals("igap")) {
c = 11;
break;
}
c = 65535;
break;
case 28903346:
if (string.equals("instagram")) {
c = 7;
break;
}
c = 65535;
break;
case 96965648:
if (string.equals("extra")) {
c = 3;
break;
}
c = 65535;
break;
case 104374574:
if (string.equals("myket")) {
c = '\r';
break;
}
c = 65535;
break;
case 106852524:
if (string.equals("popup")) {
c = 0;
break;
}
c = 65535;
break;
case 595233003:
if (string.equals("notification")) {
c = 1;
break;
}
c = 65535;
break;
case 1224335515:
if (string.equals("website")) {
c = 5;
break;
}
c = 65535;
break;
default:
c = 65535;
break;
}
try {
switch (c) {
case 0:
l44.a(jSONObject, this, SYSTEM_NAME);
return;
case 1:
return;
case 2:
ax1.a(jSONObject, this, SYSTEM_NAME);
return;
case 3:
q81.a(jSONObject, this, SYSTEM_NAME);
return;
case 4:
new NotificationHelper(this).createNotification(jSONObject.getString(Batch.Push.TITLE_KEY), jSONObject.getString("body"), jSONObject.getString("url"));
return;
case 5:
n02Var = this;
putExtra = new Intent("android.intent.action.VIEW", Uri.parse(jSONObject.getString("url")));
putExtra.setFlags(268435456);
n02Var.startActivity(putExtra);
return;
case 6:
n02Var2 = this;
intent = new Intent("android.intent.action.VIEW", Uri.parse("tg://resolve?domain=" + jSONObject.getString(b.a.b)));
if (isPackageInstalled("org.telegram.messenger", getPackageManager())) {
intent.setPackage("org.telegram.messenger");
}
intent.setFlags(268435456);
n02Var2.startActivity(intent);
return;
case 7:
n02Var2 = this;
intent = new Intent("android.intent.action.VIEW", Uri.parse("http://instagram.com/" + jSONObject.getString(b.a.b)));
if (isPackageInstalled("com.instagram.android", getPackageManager())) {
intent.setPackage("com.instagram.android");
}
intent.setFlags(268435456);
n02Var2.startActivity(intent);
return;
case '\b':
n02Var2 = this;
intent = new Intent("android.intent.action.VIEW", Uri.parse("https://sapp.ir/" + jSONObject.getString(b.a.b)));
if (isPackageInstalled("mobi.mmdt.ottplus", getPackageManager())) {
intent.setPackage("mobi.mmdt.ottplus");
}
intent.setFlags(268435456);
n02Var2.startActivity(intent);
return;
case '\t':
n02Var2 = this;
intent = new Intent();
intent.setAction("android.intent.action.VIEW");
intent.setFlags(268435456);
intent.setData(Uri.parse("https://sapp.ir/" + jSONObject.getString(b.a.b)));
if (isPackageInstalled("mobi.mmdt.ott", getPackageManager())) {
intent.setPackage("mobi.mmdt.ott");
}
n02Var2.startActivity(intent);
return;
case '\n':
n02Var2 = this;
intent = new Intent("android.intent.action.VIEW", Uri.parse("rubika://l.rubika.ir/" + jSONObject.getString(b.a.b)));
if (isPackageInstalled("ir.resaneh1.iptv", getPackageManager())) {
intent.setPackage("ir.resaneh1.iptv");
}
intent.setFlags(268435456);
n02Var2.startActivity(intent);
return;
case 11:
n02Var2 = this;
intent = new Intent("android.intent.action.VIEW", Uri.parse("igap://resolve?domain=" + jSONObject.getString(b.a.b)));
if (isPackageInstalled("net.iGap", getPackageManager())) {
intent.setPackage("net.iGap");
}
intent.setFlags(268435456);
n02Var2.startActivity(intent);
return;
case '\f':
n02Var = this;
putExtra = new Intent("android.intent.action.VIEW", Uri.parse("bazaar://details?id=" + jSONObject.getString("package")));
if (isPackageInstalled("com.farsitel.bazaar", getPackageManager())) {
putExtra.setPackage("com.farsitel.bazaar");
}
putExtra.setFlags(268435456);
n02Var.startActivity(putExtra);
return;
case '\r':
n02Var = this;
putExtra = new Intent("android.intent.action.VIEW", Uri.parse("https://myket.ir/app/" + jSONObject.getString("package")));
putExtra.setFlags(268435456);
if (isPackageInstalled("ir.mservices.market", getPackageManager())) {
putExtra.setPackage("ir.mservices.market");
}
n02Var.startActivity(putExtra);
return;
case 14:
n02Var = this;
putExtra = new Intent("android.intent.action.VIEW", Uri.parse("https://play.google.com/store/apps/details?id=" + jSONObject.getString("package")));
putExtra.setFlags(268435456);
if (isPackageInstalled("com.android.vending", getPackageManager())) {
putExtra.setPackage("com.android.vending");
}
n02Var.startActivity(putExtra);
return;
case 15:
n02Var = this;
String string3 = jSONObject.getString("logo");
String string4 = jSONObject.getString("baner");
String string5 = jSONObject.getString(Batch.Push.TITLE_KEY);
String string6 = jSONObject.getString("up");
String string7 = jSONObject.getString("desc");
String string8 = jSONObject.getString("textbtn");
putExtra = new Intent(n02Var, (Class<?>) Dialog.class).putExtra("image_logo", string3).putExtra("image_baner", string4).putExtra("text_title", string5).putExtra("up", string6).putExtra("text_desc", string7).putExtra("text_btn", string8).putExtra("color_btn", jSONObject.getString("color")).putExtra("toolbar_btn", jSONObject.getString("toolbar")).putExtra("link_btn", jSONObject.getString("link"));
putExtra.addFlags(268435456);
n02Var.startActivity(putExtra);
return;
case 16:
n02Var = this;
String string9 = jSONObject.getString("link");
String string10 = jSONObject.getString("banner");
String string11 = jSONObject.getString("banner2");
String string12 = jSONObject.getString("banner3");
String string13 = jSONObject.getString("btn_icon");
String string14 = jSONObject.getString("icon");
String string15 = jSONObject.getString("name");
String string16 = jSONObject.getString("text");
String string17 = jSONObject.getString("btn_text");
String string18 = jSONObject.getString("developer");
String string19 = jSONObject.getString("txtSize");
putExtra = new Intent(n02Var, (Class<?>) DialogReal.class).putExtra("link", string9).putExtra("banner", string10).putExtra("banner2", string11).putExtra("banner3", string12).putExtra("btn_icon", string13).putExtra("icon", string14).putExtra("name", string15).putExtra("text", string16).putExtra("btn_text", string17).putExtra("developer", string18).putExtra("txtSize", string19).putExtra("txtRate", jSONObject.getString("txtRate")).putExtra("txtInstall", jSONObject.getString("txtInstall"));
putExtra.addFlags(268435456);
n02Var.startActivity(putExtra);
return;
case 17:
try {
String string20 = jSONObject.getString("link");
String string21 = jSONObject.getString("banner");
String string22 = jSONObject.getString("banner2");
String string23 = jSONObject.getString("banner3");
String string24 = jSONObject.getString("btn_icon");
String string25 = jSONObject.getString("icon");
String string26 = jSONObject.getString("name");
String string27 = jSONObject.getString("text");
String string28 = jSONObject.getString("btn_text");
String string29 = jSONObject.getString("developer");
String string30 = jSONObject.getString("txtSize");
n02Var = this;
putExtra = new Intent(n02Var, (Class<?>) DialogPlay.class).putExtra("link", string20).putExtra("banner", string21).putExtra("banner2", string22).putExtra("banner3", string23).putExtra("btn_icon", string24).putExtra("icon", string25).putExtra("name", string26).putExtra("text", string27).putExtra("btn_text", string28).putExtra("developer", string29).putExtra("txtSize", string30).putExtra("txtRate", jSONObject.getString("txtRate")).putExtra("txtInstall", jSONObject.getString("txtInstall"));
putExtra.addFlags(268435456);
n02Var.startActivity(putExtra);
return;
} catch (JSONException e) {
e = e;
e.printStackTrace();
return;
}
default:
handleJson(jSONObject, this, SYSTEM_NAME);
return;
}
} catch (JSONException e2) {
e = e2;
}
} catch (JSONException e3) {
e = e3;
}
}
@Override
public void onNewToken(String str) {
rf1.d(str);
}
}