Code with Finding: |
/*
* Decompiled with CFR 0_128.
*
* Could not load the following classes:
* android.content.Context
* android.content.Intent
* android.os.Handler
* com.fivefeiwo.coverscreen.H
* com.fivefeiwo.coverscreen.I
* com.fivefeiwo.coverscreen.P
* com.fivefeiwo.coverscreen.S
* com.fivefeiwo.coverscreen.SA
* com.fivefeiwo.coverscreen.Z
* com.fivefeiwo.coverscreen.aa
* com.fivefeiwo.coverscreen.ab
* com.fivefeiwo.coverscreen.aj
* com.fivefeiwo.coverscreen.ap
* com.fivefeiwo.coverscreen.aq
* com.fivefeiwo.coverscreen.b
* com.fivefeiwo.coverscreen.c
* com.fivefeiwo.coverscreen.d
* com.fivefeiwo.coverscreen.e
* com.fivefeiwo.coverscreen.f
* com.fivefeiwo.coverscreen.g
* com.fivefeiwo.coverscreen.h
* org.json.JSONArray
* org.json.JSONException
* org.json.JSONObject
*/
package com.fivefeiwo.coverscreen;
import android.content.Context;
import android.content.Intent;
import android.os.Handler;
import com.fivefeiwo.coverscreen.H;
import com.fivefeiwo.coverscreen.I;
import com.fivefeiwo.coverscreen.P;
import com.fivefeiwo.coverscreen.S;
import com.fivefeiwo.coverscreen.SA;
import com.fivefeiwo.coverscreen.Z;
import com.fivefeiwo.coverscreen.aa;
import com.fivefeiwo.coverscreen.ab;
import com.fivefeiwo.coverscreen.aj;
import com.fivefeiwo.coverscreen.ap;
import com.fivefeiwo.coverscreen.aq;
import com.fivefeiwo.coverscreen.b;
import com.fivefeiwo.coverscreen.c;
import com.fivefeiwo.coverscreen.d;
import com.fivefeiwo.coverscreen.e;
import com.fivefeiwo.coverscreen.f;
import com.fivefeiwo.coverscreen.g;
import com.fivefeiwo.coverscreen.h;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;
import java.util.Timer;
import java.util.TimerTask;
import org.json.JSONArray;
import org.json.JSONException;
import org.json.JSONObject;
abstract class a {
static boolean a = false;
boolean b;
private String c;
private Context d;
private boolean e;
private int f;
private TimerTask g;
private Timer h;
private Handler i;
/*
* Enabled aggressive block sorting
* Enabled unnecessary exception pruning
* Enabled aggressive exception aggregation
*/
protected a(Context context, String string) {
boolean bl;
boolean bl2;
Object object;
bl = true;
this.b = false;
this.e = false;
this.f = 10;
bl2 = false;
this.i = null;
this.d = context;
this.c = string;
object = new Object();
this.h = object;
a = false;
object = S.j;
String string2 = S.k;
ap.b((Context)context, (String)object, (String)string2, (String)string);
object = S.j;
string2 = S.m;
ap.a((Context)context, (String)object, (String)string2, (boolean)bl);
try {
this.i = object = new Object();
}
catch (Exception exception) {}
try {
aj.a();
}
catch (Exception exception) {}
try {
P.c((Context)context);
}
catch (Exception exception) {}
if ((bl2 = P.a((Context)context)) && (bl2 = P.a((Context)(object = this.d)))) {
bl2 = this.e;
if (!bl2) {
object = this.d;
this.a(bl);
}
object = new Object(this);
object.start();
}
}
static /* synthetic */ void a(a a2) {
Object object = a2.d;
String string = a2.c;
String string2 = S.a;
object = H.a((Context)object, (String)string, (String)string2);
super();
string2 = a2.d;
String string3 = I.c();
String string4 = a2.c;
object = object.toString();
string.a((Context)string2, string3, string4, (String)object);
object = new Object(a2);
string.a((aa)object);
Z.a().a((ab)string);
}
/*
* Enabled aggressive block sorting
* Enabled unnecessary exception pruning
* Enabled aggressive exception aggregation
*/
static /* synthetic */ void b(a a2) {
int n2;
Object object = a2.d;
Object object2 = S.j;
String string = "";
String string2 = "packnames_feiwocp".replace("_feiwocp", string);
int n = 0;
String string3 = null;
if ((object = ap.a((Context)object, (String)object2, (String)string2, (String)null)) == null) return;
object2 = object.split(",");
super();
n = object2.length;
object = null;
for (n2 = 0; n2 < n; ++n2) {
JSONObject jSONObject;
string = object2[n2];
boolean bl = aq.a((String)string);
if (bl) continue;
jSONObject = new JSONObject();
String string4 = "packageName_feiwocp";
String string5 = "_feiwocp";
String string6 = "";
try {
string4 = string4.replace(string5, string6);
jSONObject.put(string4, (Object)string);
}
catch (JSONException jSONException) {}
string2.put((Object)jSONObject);
}
n2 = string2.length();
if (n2 != 0) {
object = a2.d;
object2 = S.a;
object = H.a((Context)object, (String)object2, (JSONArray)string2);
object2 = new Object();
string2 = a2.d;
string3 = I.d();
string = a2.c;
object = object.toString();
object2.a((Context)string2, string3, string, (String)object);
object = new Object(a2);
object2.a((aa)object);
object = Z.a();
object.a((ab)object2);
}
}
static /* synthetic */ Context c(a a2) {
return a2.d;
}
public static boolean isShowAtScreenOn() {
return a;
}
protected void a() {
boolean bl;
this.e = bl = true;
Object object = this.g;
if (object != null) {
this.g.cancel();
bl = false;
this.g = null;
object = this.h;
object.cancel();
}
}
protected final void a(JSONArray jSONArray) {
int n;
long l = 10;
for (int i = 0; i < (n = jSONArray.length()); ++i) {
Object object = jSONArray.optJSONObject(i);
String string = "_feiwocp";
String string2 = "";
String string3 = "image_feiwocp".replace(string, string2);
boolean bl = aq.a((String)(object = object.optString(string3)));
if (!bl) {
string3 = this.i;
super(this, (String)object);
string3.postDelayed((Runnable)((Object)string), l);
}
object = jSONArray.optJSONObject(i);
string = "_feiwocp";
string2 = "";
string3 = "icon_feiwocp".replace(string, string2);
bl = aq.a((String)(object = object.optString(string3)));
if (bl) continue;
string3 = this.i;
super(this, (String)object);
string3.postDelayed((Runnable)((Object)string), l);
}
}
/*
* Enabled aggressive block sorting
*/
protected final void a(boolean bl) {
int n;
this.f = bl ? (n = 10) : (n = this.f + -1);
n = this.f;
if (n < 0) {
return;
}
n = this.e ? 1 : 0;
if (n != 0) return;
if (bl) {
TimerTask timerTask = this.g;
if (timerTask != null) {
this.g.cancel();
timerTask = this.d;
}
this.b();
return;
}
Object object = this.g;
if (object != null) {
object = this.d;
return;
}
super(this);
this.g = object;
object = this.h;
TimerTask timerTask = this.g;
long l = 360000L;
object.schedule(timerTask, l);
object = this.d;
}
/*
* Enabled force condition propagation
* Lifted jumps to return sites
*/
protected final boolean a(List list, int n) {
Object object;
Intent intent;
block17 : {
Object object2;
try {
object = this.d;
object2 = SA.class;
}
catch (Exception exception) {
return false;
}
intent = new Intent((Context)object, object2);
int n2 = 335544320;
intent.addFlags(n2);
object = "itemList_feiwocp";
object2 = "_feiwocp";
String string = "";
object = object.replace((CharSequence)object2, string);
list = (ArrayList)list;
intent.putExtra((String)object, (Serializable)((Object)list));
object = "index_feiwocp";
object2 = "_feiwocp";
string = "";
object = object.replace((CharSequence)object2, string);
intent.putExtra((String)object, n);
object = this.i;
if (object == null) break block17;
object = this.i;
object2 = new Object(this, intent);
object.post((Runnable)object2);
do {
return true;
break;
} while (true);
}
object = this.d;
object.startActivity(intent);
return true;
}
protected abstract void b();
protected void c() {
this.b = false;
this.g = null;
}
protected final String d() {
return this.c;
}
protected final Context e() {
return this.d;
}
}
|