Play House Simulation v3.0版本的 MD5 值为:4dbd745af43e6bcde3a0dca90b9e5934
以下内容为反编译后的 o000000.java 源代码,内容仅作参考
package OooO0OO.OooO00o.OooO00o.o00000O0;
import OooO0OO.OooO00o.OooO00o.o00000O;
import OooO0OO.OooO00o.OooO00o.o00000O0.OooOO0O;
import OooO0OO.OooO00o.OooO00o.o00000O0.o0Oo0oo;
import OooO0OO.OooO00o.OooO00o.o0000O0;
import OooO0OO.OooO00o.OooO00o.o0000OO0;
import OooO0OO.OooO00o.OooO00o.o000Oo0;
import OooO0OO.OooO00o.OooO00o.o00OO00O;
import OooO0OO.OooO00o.OooO00o.o00OOO0;
import OooO0OO.OooO00o.OooO00o.o00OOOOo;
import android.app.Application;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.content.IntentFilter;
import android.net.ConnectivityManager;
import android.net.NetworkInfo;
import android.os.Build;
import android.util.Log;
import com.google.gson.JsonElement;
import com.huawei.agconnect.apms.collect.model.EventType;
import com.huawei.hms.support.feature.result.CommonConstant;
import com.umeng.analytics.pro.ak;
import java.util.Arrays;
import java.util.HashMap;
import java.util.Locale;
import java.util.Map;
import java.util.concurrent.TimeUnit;
public class o000000 {
public final Context f167OooO00o;
public final OooOOOO f168OooO0O0;
public final OooO0OO f169OooO0OO;
public o000Oo0 f171OooO0o;
public OooO0Oo.OooO00o.OooOoO.OooO0O0 f172OooO0o0;
public o0000O0 f173OooO0oO;
public int f170OooO0Oo = 0;
public final Object f174OooO0oo = new Object();
public boolean f166OooO = false;
public final BroadcastReceiver f175OooOO0 = new OooO00o();
public class OooO00o extends BroadcastReceiver {
public OooO00o() {
}
@Override
public void onReceive(Context context, Intent intent) {
ConnectivityManager connectivityManager;
NetworkInfo activeNetworkInfo;
if (intent.getAction().equals("android.net.conn.CONNECTIVITY_CHANGE")) {
if ((context == null || (connectivityManager = (ConnectivityManager) context.getSystemService("connectivity")) == null || (activeNetworkInfo = connectivityManager.getActiveNetworkInfo()) == null || !activeNetworkInfo.isAvailable() || !activeNetworkInfo.isConnected()) ? false : true) {
int i = OooOO0O.OooOO0O;
o0ooOOo o0ooooo = OooOO0O.OooO0OO.f143OooO00o.f136OooO0o;
if (o0ooooo != null) {
if (!(o0ooooo.f267OooO0O0.size() > 0) || o000000.this.OooO0O0() || o000000.this.OooO0OO()) {
return;
}
o000000.OooO00o(o000000.this);
}
}
}
}
}
public class OooO0O0 implements o0000OO0<o0000O0> {
public OooO0O0() {
}
@Override
public void OooO00o(o0000O0 o0000o0) {
o0000O0 o0000o02 = o0000o0;
o000000 o000000Var = o000000.this;
o000000Var.f171OooO0o = null;
o000000Var.f173OooO0oO = o0000o02;
o000000Var.OooO0o();
o000000 o000000Var2 = o000000.this;
synchronized (o000000Var2.f174OooO0oo) {
if (o000000Var2.f166OooO) {
o000000Var2.f167OooO00o.unregisterReceiver(o000000Var2.f175OooOO0);
}
}
o0OO00O.OooO0O0(o000000.this.f167OooO00o, o0000o02.OooO0oo());
o0Oo0oo o0oo0oo = o0Oo0oo.OooO00o.f263OooO00o;
o0oo0oo.f258OooO0Oo = o0000o02.OooO0o0();
o0oo0oo.f260OooO0o0 = o0000o02.OooO00o();
o0oo0oo.f259OooO0o = o0000o02.OooO0oO();
o0oo0oo.f261OooO0oO = o0000o02.OooO0Oo();
o0oo0oo.f262OooO0oo = o0000o02.OooO0O0();
o000OOo o000ooo = (o000OOo) o000000.this.f169OooO0OO;
Application application = o000ooo.f230OooO00o;
StringBuilder sb = new StringBuilder();
sb.append("[AdFly SDK]");
sb.append("\n");
sb.append("========== INITIALIZATION SUCCESS ==========");
sb.append("\n");
sb.append("======User Info======");
sb.append("\n");
sb.append("UserId: ");
sb.append(o0OO00O.OooO00o(application));
sb.append("\n");
sb.append("======Unit Info======");
o0000O0.OooO0OO oooO0OO = o0oo0oo.f259OooO0o;
if (oooO0OO != null) {
if (oooO0OO.OooO0Oo() != null) {
sb.append("\n");
sb.append("Interactives: ");
sb.append(Arrays.toString(o0oo0oo.f259OooO0o.OooO0Oo()));
}
if (o0oo0oo.f259OooO0o.OooO() != null) {
sb.append("\n");
sb.append("PopupBanners: ");
sb.append(Arrays.toString(o0oo0oo.f259OooO0o.OooO()));
}
if (o0oo0oo.f259OooO0o.OooO0o() != null) {
sb.append("\n");
sb.append("LandingPages: ");
sb.append(Arrays.toString(o0oo0oo.f259OooO0o.OooO0o()));
}
if (o0oo0oo.f259OooO0o.OooOO0O() != null) {
sb.append("\n");
sb.append("Rewards: ");
sb.append(Arrays.toString(o0oo0oo.f259OooO0o.OooOO0O()));
}
if (o0oo0oo.f259OooO0o.OooO0o0() != null) {
sb.append("\n");
sb.append("Interstitials: ");
sb.append(Arrays.toString(o0oo0oo.f259OooO0o.OooO0o0()));
}
if (o0oo0oo.f259OooO0o.OooO0oo() != null) {
sb.append("\n");
sb.append("Natives: ");
sb.append(Arrays.toString(o0oo0oo.f259OooO0o.OooO0oo()));
}
if (o0oo0oo.f259OooO0o.OooO0O0() != null) {
sb.append("\n");
sb.append("Banners: ");
sb.append(Arrays.toString(o0oo0oo.f259OooO0o.OooO0O0()));
}
if (o0oo0oo.f259OooO0o.OooO0oO() != null) {
sb.append("\n");
sb.append("MRECs: ");
sb.append(Arrays.toString(o0oo0oo.f259OooO0o.OooO0oO()));
}
if (o0oo0oo.f259OooO0o.OooOO0o() != null) {
sb.append("\n");
sb.append("Splashs: ");
sb.append(Arrays.toString(o0oo0oo.f259OooO0o.OooOO0o()));
}
}
Log.i("AdFly", sb.toString());
o000ooo.f231OooO0O0.OooO00o();
o00OOO0.OooO0O0(new o00OO00O[]{new o00000O(true, 0, null, null)});
}
@Override
public void OooO0O0(int i, String str, String str2) {
OooO0OO.OooO00o.OooO00o.o0OOO0o.OooO0O0("AdFly", "init failed: " + i + ", " + str2);
o000000 o000000Var = o000000.this;
o000000Var.f171OooO0o = null;
o000000Var.f170OooO0Oo = o000000Var.f170OooO0Oo + 1;
o000000Var.OooO0o0();
o000000 o000000Var2 = o000000.this;
synchronized (o000000Var2.f174OooO0oo) {
if (!o000000Var2.f166OooO) {
o000000Var2.f166OooO = true;
IntentFilter intentFilter = new IntentFilter();
intentFilter.addAction("android.net.conn.CONNECTIVITY_CHANGE");
o000000Var2.f167OooO00o.registerReceiver(o000000Var2.f175OooOO0, intentFilter);
}
}
o00OOO0.OooO0O0(new o00OO00O[]{new o00000O(false, i, str, str2)});
}
}
public interface OooO0OO {
}
public o000000(Context context, OooOOOO oooOOOO, OooO0OO oooO0OO) {
this.f167OooO00o = context;
this.f168OooO0O0 = oooOOOO;
this.f169OooO0OO = oooO0OO;
}
public static void OooO00o(o000000 o000000Var) {
synchronized (o000000Var) {
if (!o000000Var.OooO0O0() && !o000000Var.OooO0OO() && o000000Var.f172OooO0o0 == null) {
o000000Var.OooO0o();
o000000Var.OooO0o0();
}
}
}
public boolean OooO0O0() {
return this.f173OooO0oO != null;
}
public final boolean OooO0OO() {
return this.f171OooO0o != null;
}
public void OooO0Oo() {
ConnectivityManager connectivityManager;
NetworkInfo activeNetworkInfo;
if (this.f171OooO0o != null) {
return;
}
OooOOOO oooOOOO = this.f168OooO0O0;
String str = oooOOOO.f144OooO00o;
String str2 = oooOOOO.f145OooO0O0;
o0Oo0oo o0oo0oo = o0Oo0oo.OooO00o.f263OooO00o;
String str3 = o0oo0oo.f256OooO0O0;
OooO0O0 oooO0O0 = new OooO0O0();
HashMap hashMap = new HashMap();
String str4 = null;
int i = OooOO0O.OooOO0O;
OooOO0O oooOO0O = OooOO0O.OooO0OO.f143OooO00o;
Application application = oooOO0O.f132OooO00o;
int i2 = -1;
if (application != null && (connectivityManager = (ConnectivityManager) application.getSystemService("connectivity")) != null && (activeNetworkInfo = connectivityManager.getActiveNetworkInfo()) != null) {
i2 = activeNetworkInfo.getType();
}
hashMap.put("network", Integer.valueOf(i2));
hashMap.put("manufacturer", Build.MANUFACTURER);
hashMap.put("device_model", Build.MODEL);
hashMap.put("utc", Long.valueOf(System.currentTimeMillis()));
hashMap.put("version", o0oo0oo.f257OooO0OO);
hashMap.put("app_ver", o0oo0oo.f257OooO0OO);
hashMap.put("client", o0oo0oo.f255OooO00o);
hashMap.put("os_ver", o0oo0oo.f255OooO00o);
hashMap.put("flavor", "adflysdk");
hashMap.put("product", "adflysdk");
hashMap.put("advertiser_id", o0oo0oo.f256OooO0O0);
hashMap.put(EventType.PLATFORM, "android");
Application application2 = oooOO0O.f132OooO00o;
if (application2 != null) {
hashMap.put(CommonConstant.KEY_UID, o0OO00O.OooO00o(application2));
try {
str4 = application2.getPackageManager().getPackageInfo(application2.getPackageName(), 0).versionName;
} catch (Exception unused) {
}
if (str4 != null) {
hashMap.put("appversion", str4);
}
}
JsonElement jsonElement = o0Oo0oo.OooO00o.f263OooO00o.f258OooO0Oo;
if (jsonElement != null) {
hashMap.put("publisher_flag", jsonElement);
}
hashMap.put("appKey", str);
hashMap.put("nonce", o00OOOOo.OooO00o(6));
hashMap.put("timestamp", Long.valueOf(System.currentTimeMillis()));
hashMap.put("deviceId", str3);
hashMap.put("sdkVersion", "2.1");
hashMap.put("advertiserId", str3);
hashMap.put(ak.x, "android_" + Build.VERSION.RELEASE);
hashMap.put(ak.N, Locale.getDefault().getLanguage());
HashMap hashMap2 = new HashMap();
for (Map.Entry entry : hashMap.entrySet()) {
if (entry.getValue() != null) {
hashMap2.put(entry.getKey(), entry.getValue().toString());
}
}
this.f171OooO0o = OooO0OO.OooO00o.OooO00o.o0OOO0o.OooO0oO("https://api.adfly.global/api/ig/sdk/init", hashMap2, str2, new OooO0OO.OooO00o.OooO00o.o000000(o0000O0.class), oooO0O0);
}
public void OooO0o() {
this.f170OooO0Oo = 0;
OooO0Oo.OooO00o.OooOoO.OooO0O0 oooO0O0 = this.f172OooO0o0;
if (oooO0O0 != null) {
oooO0O0.OooO0Oo();
this.f172OooO0o0 = null;
}
}
public void OooO0o0() {
OooO0Oo.OooO00o.OooOoO.OooO0O0 oooO0O0 = this.f172OooO0o0;
if (oooO0O0 != null) {
oooO0O0.OooO0Oo();
}
int pow = ((int) Math.pow(this.f170OooO0Oo, 2.0d)) * 10;
if (pow > 0) {
this.f172OooO0o0 = OooO0Oo.OooO00o.OooO0O0.OooOO0o(pow, TimeUnit.SECONDS).OooO(new OooO0Oo.OooO00o.OooOoo0.OooO0OO() {
@Override
public final void accept(Object obj) {
o000000 o000000Var = o000000.this;
o000000Var.f172OooO0o0 = null;
o000000Var.OooO0Oo();
}
}, OooO0Oo.OooO00o.OooOoo.OooO0O0.OooO00o.f1432OooO0o0, OooO0Oo.OooO00o.OooOoo.OooO0O0.OooO00o.f1430OooO0OO, OooO0Oo.OooO00o.OooOoo.OooO0O0.OooO00o.f1431OooO0Oo);
} else {
OooO0Oo();
}
}
}