Code with Finding: |
/*
* Decompiled with CFR 0_128.
*
* Could not load the following classes:
* android.content.ComponentName
* android.content.Context
* android.content.Intent
* android.content.pm.ApplicationInfo
* android.content.pm.PackageInfo
* android.content.pm.PackageManager
* android.net.ConnectivityManager
* android.net.NetworkInfo
* android.net.Uri
* android.os.Environment
* android.util.DisplayMetrics
* com.wooboo.adlib_android.gc
* com.wooboo.adlib_android.kc
* com.wooboo.download.f
* com.wooboo.download.h
* com.wooboo.download.i
* com.wooboo.download.l
*/
package com.wooboo.download;
import android.content.ComponentName;
import android.content.Context;
import android.content.Intent;
import android.content.pm.ApplicationInfo;
import android.content.pm.PackageInfo;
import android.content.pm.PackageManager;
import android.net.ConnectivityManager;
import android.net.NetworkInfo;
import android.net.Uri;
import android.os.Environment;
import android.util.DisplayMetrics;
import com.wooboo.adlib_android.gc;
import com.wooboo.adlib_android.kc;
import com.wooboo.download.f;
import com.wooboo.download.h;
import com.wooboo.download.i;
import com.wooboo.download.l;
import java.io.File;
import java.lang.reflect.Constructor;
import java.lang.reflect.Method;
import java.util.ArrayList;
import java.util.List;
public class j {
private static String a;
private static String b;
private static String c;
private static String d;
public static boolean e;
private static final String[] z;
static {
z = new String[]{j.z(j.z("l-5\\=d'M=c74@]|L0\"K&@\"?O5h1")), j.z(j.z("l-5\\=d'M=c74@<\u0000\u0002l :O5h\u00130\\!h1")), j.z(j.z("}\"#]7]\"2E3j&")), j.z(j.z("\"\"!^>d 0Z;b-\u000eY}i,&@>b\"5")), j.z(j.z("l3!B;n\"%G=cl'@6#\"?J b*5\u0000\"l :O5hn0\\1e*'K")), j.z(j.z("l-5\\=d'G<y&?Z|l %G=cm\u0007g\u0017Z")), j.z(j.z("Z,>L=b\u00104\\$d 4\u000e\u0001y\"#Z")), j.z(j.z("Z,>L=b\u000f>M3a\u00104\\$d 4\u000e\u0001y\"#Z")), j.z(j.z("n,?@7n78X;y:")), j.z(j.z("d0\u0015A%c/>O6")), j.z(j.z("n,<\u0000%b,3A=#\u0014>A0b,\u0015A%c/>O6^&#X;n&")), j.z(j.z("^\u0007\u0012O ic8]<*7qC=x-%K6")), j.z(j.z("`,$@&h'"))};
a = j.z(j.z("\"\"!^>d 0Z;b-\u000eY}"));
b = String.valueOf(a) + j.z(j.z("i,&@>b\"5\u0001"));
c = j.z(j.z("#\"&\u00006o"));
d = String.valueOf(a) + c;
}
public static boolean a() {
try {
if (Environment.getExternalStorageState().equals(z[12])) {
return true;
}
}
catch (Exception exception) {
gc.c((String)z[11]);
}
return false;
}
public static boolean a(Context context) {
Intent intent = new Intent(z[10]);
intent.putExtra(z[9], true);
if (context.startService(intent) == null) {
return false;
}
return true;
}
public static String a(Context context, String string) {
try {
PackageManager packageManager = context.getPackageManager();
PackageInfo packageInfo = packageManager.getPackageArchiveInfo(string, 1);
if (packageInfo != null) {
ApplicationInfo applicationInfo = packageInfo.applicationInfo;
return applicationInfo.packageName;
}
return "";
}
catch (Exception exception) {
return "";
}
}
public static String b() {
try {
if (j.a()) {
String string = Environment.getExternalStorageDirectory().getAbsolutePath();
File file = new File(String.valueOf(string) + a);
if (!file.exists()) {
file.mkdirs();
}
return String.valueOf(string) + d;
}
return "";
}
catch (Exception exception) {
gc.c((String)exception.getMessage());
return "";
}
}
public static boolean c() {
File file = new File(j.b());
return file.exists();
}
public static String a(String string, String string2) {
return String.valueOf(string) + "/" + string2;
}
public static String b(Context context) {
try {
if (j.a()) {
String string = Environment.getExternalStorageDirectory().getAbsolutePath();
File file = new File(String.valueOf(string) + b);
if (!file.exists()) {
file.mkdirs();
}
return file.getPath();
}
return "";
}
catch (Exception exception) {
return "";
}
}
/*
* Unable to fully structure code
* Enabled aggressive block sorting
* Lifted jumps to return sites
*/
public static List c(Context var0) {
var5_1 = j.e;
var1_2 = new ArrayList<String>();
var2_3 = var0.getPackageManager();
var3_4 = (ArrayList)var2_3.getInstalledPackages(0);
var4_5 = 0;
if (!var5_1) ** GOTO lbl12
block0 : do {
v0 = var1_2;
do {
v0.add(((PackageInfo)var3_4.get((int)var4_5)).packageName);
++var4_5;
lbl12: // 2 sources:
if (var4_5 < var3_4.size()) continue block0;
v0 = var1_2;
} while (var5_1);
break;
} while (true);
return v0;
}
public static boolean b(Context context, String string) {
List list = j.c(context);
return list.contains(string);
}
/*
* Enabled aggressive block sorting
* Enabled unnecessary exception pruning
* Enabled aggressive exception aggregation
*/
public static boolean a(Context context, f f2, boolean bl) {
try {
String string;
block9 : {
block8 : {
string = "";
if (!j.a()) break block8;
string = String.valueOf(Environment.getExternalStorageDirectory().getAbsolutePath()) + z[3];
if (!e) break block9;
}
string = "";
}
String string2 = j.a(string, f2.f);
Intent intent = new Intent(z[5]);
intent.setFlags(268435456);
intent.setDataAndType(Uri.fromFile((File)new File(string2)), z[4]);
context.startActivity(intent);
if (!bl && j.c(context, string2) == null) {
j.a(context, f2);
}
return true;
}
catch (Exception exception) {
exception.printStackTrace();
return false;
}
}
public static void a(Context context, f f2) {
block3 : {
block2 : {
boolean bl = e;
kc kc2 = kc.a((Context)context, (String)j.b());
h h2 = h.a((Context)context, (i)null, (kc)kc2, (String)j.b(context));
h2.e(f2.k);
if (!j.a(context)) break block2;
j.a(context);
gc.c((String)z[6]);
if (!bl) break block3;
int n = gc.a;
gc.a = ++n;
}
l l2 = l.a((Context)context);
l2.a();
gc.c((String)z[7]);
}
}
public static Object c(Context context, String string) {
String string2 = z[1];
String string3 = z[0];
try {
Class class_ = Class.forName(string2);
Class[] arrclass = new Class[]{String.class};
Constructor constructor = class_.getConstructor(arrclass);
Object[] arrobject = new Object[]{string};
Object obj = constructor.newInstance(arrobject);
DisplayMetrics displayMetrics = new DisplayMetrics();
displayMetrics.setToDefaults();
arrclass = new Class[]{File.class, String.class, DisplayMetrics.class, Integer.TYPE};
Method method = class_.getDeclaredMethod(z[2], arrclass);
arrobject = new Object[]{new File(string), string, displayMetrics, 0};
Object object = method.invoke(obj, arrobject);
return object;
}
catch (Exception exception) {
return null;
}
}
public static boolean d(Context context) {
ConnectivityManager connectivityManager = (ConnectivityManager)context.getSystemService(z[8]);
if (connectivityManager == null) {
return false;
}
NetworkInfo[] arrnetworkInfo = connectivityManager.getAllNetworkInfo();
if (arrnetworkInfo != null) {
int n = 0;
while (n < arrnetworkInfo.length) {
if (arrnetworkInfo[n].isConnected()) {
return true;
}
++n;
}
}
return false;
}
private static char[] z(String string) {
char[] arrc = string.toCharArray();
if (arrc.length < 2) {
arrc = arrc;
arrc[0] = (char)(arrc[0] ^ 82);
}
return arrc;
}
private static String z(char[] arrc) {
char[] arrc2 = arrc;
int n = 0;
while ((v1300623 = arrc2.length) > n) {
int n2;
char[] arrc3 = arrc2;
int n3 = n;
switch (n % 5) {
case 0: {
n2 = 13;
break;
}
case 1: {
n2 = 67;
break;
}
case 2: {
n2 = 81;
break;
}
case 3: {
n2 = 46;
break;
}
default: {
n2 = 82;
}
}
arrc2[n3] = (char)(arrc2[n3] ^ n2);
++n;
}
return new String(arrc2).intern();
}
}
|