Play House Simulation v3.0版本的 MD5 值为:4dbd745af43e6bcde3a0dca90b9e5934
以下内容为反编译后的 o0OOO0o.java 源代码,内容仅作参考
package OooO0OO.OooO00o.OooO00o;
import OooO0Oo.OooO00o.OooOoo.OooO0o0.OooO0O0.OooO00o;
import android.annotation.TargetApi;
import android.app.Activity;
import android.app.AlarmManager;
import android.app.PendingIntent;
import android.content.Context;
import android.content.Intent;
import android.content.res.Resources;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.graphics.Point;
import android.net.ConnectivityManager;
import android.net.NetworkInfo;
import android.net.Uri;
import android.nfc.NfcAdapter;
import android.nfc.NfcManager;
import android.os.Build;
import android.provider.Settings;
import android.text.TextUtils;
import android.util.DisplayMetrics;
import android.util.Log;
import android.view.Display;
import android.view.WindowManager;
import android.webkit.URLUtil;
import android.widget.Toast;
import androidx.browser.trusted.sharing.ShareTarget;
import androidx.core.app.NotificationCompat;
import com.adfly.sdk.R$string;
import com.adfly.sdk.a;
import com.adfly.sdk.core.activity.WebViewActivity;
import com.adfly.sdk.h;
import com.google.gson.JsonObject;
import com.huawei.agconnect.apms.instrument.BitmapFactoryInstrumentation;
import com.huawei.hms.framework.common.ContainerUtils;
import com.huawei.hms.support.api.entity.common.CommonConstant;
import com.huawei.openalliance.ad.constant.ao;
import com.sun.from_base.notify.AlarmReceiver;
import java.io.ByteArrayOutputStream;
import java.io.File;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.io.RandomAccessFile;
import java.io.Serializable;
import java.io.UnsupportedEncodingException;
import java.net.MalformedURLException;
import java.net.URL;
import java.nio.charset.Charset;
import java.security.DigestException;
import java.security.GeneralSecurityException;
import java.security.InvalidAlgorithmParameterException;
import java.security.InvalidKeyException;
import java.security.MessageDigest;
import java.security.NoSuchAlgorithmException;
import java.security.PublicKey;
import java.security.interfaces.RSAPublicKey;
import java.security.spec.AlgorithmParameterSpec;
import java.util.ArrayList;
import java.util.Calendar;
import java.util.Collections;
import java.util.Date;
import java.util.HashMap;
import java.util.Iterator;
import java.util.List;
import java.util.Locale;
import java.util.Map;
import java.util.Objects;
import java.util.concurrent.Callable;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.LinkedBlockingQueue;
import java.util.concurrent.ThreadPoolExecutor;
import java.util.concurrent.TimeUnit;
import java.util.regex.Pattern;
import javax.crypto.BadPaddingException;
import javax.crypto.Cipher;
import javax.crypto.IllegalBlockSizeException;
import javax.crypto.NoSuchPaddingException;
import javax.crypto.spec.GCMParameterSpec;
import javax.crypto.spec.IvParameterSpec;
import javax.crypto.spec.SecretKeySpec;
public class o0OOO0o {
public static Boolean f671OooO00o;
public static Boolean f672OooO0O0;
public static ExecutorService f673OooO0OO;
public static String f674OooO0Oo;
public static Context f675OooO0o0;
public static String OooO(JsonObject jsonObject, String str, String str2) {
if (!jsonObject.has(str)) {
return null;
}
try {
return jsonObject.get(str).getAsString();
} catch (Exception unused) {
return null;
}
}
public static void OooO00o(Context context, int i, long j, Map<String, Serializable> map) {
Intent intent = new Intent();
intent.setAction("TIMER_ACTION");
((AlarmManager) context.getSystemService(NotificationCompat.CATEGORY_ALARM)).cancel(PendingIntent.getService(context, i, intent, 0));
Intent intent2 = new Intent();
intent2.setClass(context, AlarmReceiver.class);
intent2.setAction("TIMER_ACTION");
intent2.setPackage(context.getPackageName());
for (String str : map.keySet()) {
intent2.putExtra(str, map.get(str));
}
PendingIntent broadcast = PendingIntent.getBroadcast(context, i, intent2, 0);
AlarmManager alarmManager = (AlarmManager) context.getSystemService(NotificationCompat.CATEGORY_ALARM);
Calendar calendar = Calendar.getInstance();
calendar.setTime(new Date(j));
String str2 = "_" + calendar.get(11) + "_" + calendar.get(12);
OooO0OO.OooO0Oo.OooO0O0.OooO0oO.o0OoOo0.OooO0OO(OooO0OO.OooO0O0.OooO00o.OooO00o.OooO00o.OooOOO0("注册执行---- : ", str2), new Object[0]);
OooO0OO.OooO0Oo.OooO0OO.OooO0o.OooO0oo(OooO0OO.OooO0Oo.OooO0O0.OooO0OO.OooO.DotAnalyse, "fx_notify_zc", new String[]{"ntype", str2});
int i2 = Build.VERSION.SDK_INT;
if (i2 >= 23) {
alarmManager.setExactAndAllowWhileIdle(0, j, broadcast);
} else if (i2 >= 21) {
alarmManager.setAlarmClock(new AlarmManager.AlarmClockInfo(j, broadcast), broadcast);
} else {
alarmManager.setExact(0, j, broadcast);
}
}
public static int OooO0O0(String str, String str2) {
return Log.e("AdFly-" + str, str2);
}
public static Bitmap OooO0OO(Context context, Uri uri, int i, int i2) {
int i3;
Exception e;
InputStream inputStream;
StringBuilder sb;
BitmapFactory.Options options = new BitmapFactory.Options();
int i4 = 1;
options.inJustDecodeBounds = true;
InputStream inputStream2 = null;
if (i > 0 && i2 > 0) {
if (uri != null) {
String scheme = uri.getScheme();
if ("content".equals(scheme) || "file".equals(scheme)) {
try {
inputStream = context.getContentResolver().openInputStream(uri);
try {
BitmapFactoryInstrumentation.decodeStream(inputStream, null, options);
if (inputStream != null) {
try {
inputStream.close();
} catch (IOException e2) {
e = e2;
sb = new StringBuilder();
sb.append("Unable to close content: ");
sb.append(uri);
Log.e("readBitmapScale", sb.toString(), e);
while (i3 < Integer.MAX_VALUE) {
}
options.inSampleSize = i4;
options.inJustDecodeBounds = false;
options.inPreferredConfig = Bitmap.Config.RGB_565;
return OooO0Oo(context, uri, options);
}
}
} catch (Exception e3) {
e = e3;
try {
Log.w("readBitmapScale", "Unable to open content: " + uri, e);
if (inputStream != null) {
try {
inputStream.close();
} catch (IOException e4) {
e = e4;
sb = new StringBuilder();
sb.append("Unable to close content: ");
sb.append(uri);
Log.e("readBitmapScale", sb.toString(), e);
while (i3 < Integer.MAX_VALUE) {
}
options.inSampleSize = i4;
options.inJustDecodeBounds = false;
options.inPreferredConfig = Bitmap.Config.RGB_565;
return OooO0Oo(context, uri, options);
}
}
while (i3 < Integer.MAX_VALUE) {
}
options.inSampleSize = i4;
options.inJustDecodeBounds = false;
options.inPreferredConfig = Bitmap.Config.RGB_565;
return OooO0Oo(context, uri, options);
} catch (Throwable th) {
th = th;
inputStream2 = inputStream;
inputStream = inputStream2;
if (inputStream != null) {
try {
inputStream.close();
} catch (IOException e5) {
Log.e("readBitmapScale", "Unable to close content: " + uri, e5);
}
}
throw th;
}
} catch (Throwable th2) {
th = th2;
if (inputStream != null) {
}
throw th;
}
} catch (Exception e6) {
e = e6;
inputStream = null;
} catch (Throwable th3) {
th = th3;
inputStream = inputStream2;
if (inputStream != null) {
}
throw th;
}
} else {
StringBuilder sb2 = "android.resource".equals(scheme) ? new StringBuilder() : new StringBuilder();
sb2.append("Unable to close content: ");
sb2.append(uri);
Log.e("readBitmapScale", sb2.toString());
}
}
for (i3 = 0; i3 < Integer.MAX_VALUE; i3++) {
int i5 = options.outWidth / i4;
if (i5 > i) {
double d = i5;
double d2 = i;
Double.isNaN(d2);
if (d > d2 * 1.4d) {
continue;
i4++;
}
}
int i6 = options.outHeight / i4;
if (i6 <= i2) {
break;
}
double d3 = i6;
double d4 = i2;
Double.isNaN(d4);
if (d3 <= d4 * 1.4d) {
break;
}
i4++;
}
}
options.inSampleSize = i4;
options.inJustDecodeBounds = false;
options.inPreferredConfig = Bitmap.Config.RGB_565;
try {
return OooO0Oo(context, uri, options);
} catch (Throwable th4) {
th4.printStackTrace();
return null;
}
}
public static Bitmap OooO0Oo(Context context, Uri uri, BitmapFactory.Options options) {
Exception e;
InputStream inputStream;
StringBuilder sb;
InputStream inputStream2 = null;
r0 = null;
r0 = null;
r0 = null;
Bitmap bitmap = null;
if (uri == null) {
return null;
}
String scheme = uri.getScheme();
if ("content".equals(scheme) || "file".equals(scheme)) {
try {
inputStream = context.getContentResolver().openInputStream(uri);
try {
try {
bitmap = BitmapFactoryInstrumentation.decodeStream(inputStream, null, options);
if (inputStream != null) {
try {
inputStream.close();
} catch (IOException e2) {
e = e2;
sb = new StringBuilder();
sb.append("Unable to close content: ");
sb.append(uri);
Log.e("readBitmapData", sb.toString(), e);
return bitmap;
}
}
} catch (Exception e3) {
e = e3;
Log.e("readBitmapData", "Unable to open content: " + uri, e);
if (inputStream != null) {
try {
inputStream.close();
} catch (IOException e4) {
e = e4;
sb = new StringBuilder();
sb.append("Unable to close content: ");
sb.append(uri);
Log.e("readBitmapData", sb.toString(), e);
return bitmap;
}
}
return bitmap;
}
} catch (Throwable th) {
inputStream2 = inputStream;
th = th;
if (inputStream2 != null) {
try {
inputStream2.close();
} catch (IOException e5) {
Log.e("readBitmapData", "Unable to close content: " + uri, e5);
}
}
throw th;
}
} catch (Exception e6) {
e = e6;
inputStream = null;
} catch (Throwable th2) {
th = th2;
if (inputStream2 != null) {
}
throw th;
}
} else {
StringBuilder sb2 = "android.resource".equals(scheme) ? new StringBuilder() : new StringBuilder();
sb2.append("Unable to close content: ");
sb2.append(uri);
Log.e("readBitmapData", sb2.toString());
}
return bitmap;
}
public static <T> o000Oo0 OooO0o(String str, Map<String, String> map, o000O000<T> o000o000, o0000OO0<T> o0000oo0) {
final oo0o0Oo oo0o0oo = new oo0o0Oo(o000o000, o0000oo0);
return new o000Oo0(new OooO0Oo.OooO00o.OooOoo.OooO0o0.OooO0O0.OooO00o(new o00000OO(str, map)).OooO0oO(OooOooO()).OooO0Oo(OooO0Oo.OooO00o.OooOoO0.OooO00o.OooO00o.OooO00o()).OooO0o0(new o00oO0o(oo0o0oo), new OooO0Oo.OooO00o.OooOoo0.OooO0OO() {
@Override
public final void accept(Object obj) {
oo0o0Oo.this.OooO00o(null, (Throwable) obj);
}
}));
}
public static <T> o000Oo0 OooO0o0(String str, String str2, o000O000<T> o000o000, o0000OO0<T> o0000oo0) {
final oo0o0Oo oo0o0oo = new oo0o0Oo(o000o000, o0000oo0);
return new o000Oo0(new OooO0Oo.OooO00o.OooOoo.OooO0o0.OooO0O0.OooO00o(new o0000Ooo(str, str2)).OooO0oO(OooOooO()).OooO0Oo(OooO0Oo.OooO00o.OooOoO0.OooO00o.OooO00o.OooO00o()).OooO0o0(new o0ooOOo(oo0o0oo), new OooO0Oo.OooO00o.OooOoo0.OooO0OO() {
@Override
public final void accept(Object obj) {
oo0o0Oo.this.OooO00o(null, (Throwable) obj);
}
}));
}
public static <T> o000Oo0 OooO0oO(final String str, final Map<String, String> map, final String str2, o000O000<T> o000o000, o0000OO0<T> o0000oo0) {
final oo0o0Oo oo0o0oo = new oo0o0Oo(o000o000, o0000oo0);
OooO0Oo.OooO00o.OooOOO0<T> OooO0oO2 = new OooO0Oo.OooO00o.OooOoo.OooO0o0.OooO0O0.OooO00o(new OooO0Oo.OooO00o.OooOo00() {
@Override
public final void OooO00o(OooO0Oo.OooO00o.OooOOO oooOOO) {
Map map2 = map;
String str3 = str2;
try {
HashMap hashMap = new HashMap();
for (String str4 : map2.keySet()) {
hashMap.put(str4, map2.get(str4));
}
hashMap.put("appSecret", str3);
((OooO00o.C0043OooO00o) oooOOO).OooO0O0(o0OOO0o.OooOOO0(hashMap));
} catch (DigestException unused) {
throw new Exception("signature error");
}
}
}).OooO0oO(OooO0Oo.OooO00o.OooOooO.OooO.f1699OooO0O0);
OooO0Oo.OooO00o.OooOoo0.OooO0o oooO0o = new OooO0Oo.OooO00o.OooOoo0.OooO0o() {
@Override
public final Object apply(Object obj) {
Map map2 = map;
String str3 = str;
map2.put("signature", (String) obj);
return OooO0Oo.OooO00o.OooOOO0.OooO0OO(new o00000OO(str3, map2));
}
};
Objects.requireNonNull(OooO0oO2);
return new o000Oo0(new OooO0Oo.OooO00o.OooOoo.OooO0o0.OooO0O0.OooO0OO(OooO0oO2, oooO0o).OooO0oO(OooOooO()).OooO0Oo(OooO0Oo.OooO00o.OooOoO0.OooO00o.OooO00o.OooO00o()).OooO0o0(new oo000o(oo0o0oo), new OooO0Oo.OooO00o.OooOoo0.OooO0OO() {
@Override
public final void accept(Object obj) {
oo0o0Oo.this.OooO00o(null, (Throwable) obj);
}
}));
}
public static String OooO0oo(long j) {
if (j < 1024) {
return j + " B";
}
double d = j;
double d2 = 1024;
int log = (int) (Math.log(d) / Math.log(d2));
String str = "KMGTPE".charAt(log - 1) + "";
double pow = Math.pow(d2, log);
Double.isNaN(d);
return String.format("%.1f %sB", Double.valueOf(d / pow), str);
}
public static String OooOO0(File file) {
RandomAccessFile randomAccessFile = new RandomAccessFile(file, "r");
byte[] bArr = new byte[(int) randomAccessFile.length()];
randomAccessFile.readFully(bArr);
randomAccessFile.close();
return new String(bArr);
}
public static String OooOO0O(InputStream inputStream, Charset charset) {
ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream();
byte[] bArr = new byte[1024];
while (true) {
int read = inputStream.read(bArr);
if (read == -1) {
return byteArrayOutputStream.toString(charset.name());
}
byteArrayOutputStream.write(bArr, 0, read);
}
}
public static String OooOO0o(String str) {
try {
str = new URL(str).getPath();
} catch (MalformedURLException unused) {
}
return str.lastIndexOf(".") == -1 ? "" : str.substring(str.lastIndexOf(".")).toLowerCase();
}
public static void OooOOO(Context context) {
if (context == null || f675OooO0o0 != null) {
return;
}
f675OooO0o0 = context.getApplicationContext();
}
public static String OooOOO0(Map<String, Object> map) {
StringBuilder sb = new StringBuilder("");
OooOooo(map);
List<String> OooOooo = OooOooo(map);
Collections.sort(OooOooo);
Iterator it = ((ArrayList) OooOooo).iterator();
while (it.hasNext()) {
String str = (String) it.next();
if (!TextUtils.isEmpty(sb.toString())) {
sb.append(",");
}
sb.append(str);
sb.append(ContainerUtils.KEY_VALUE_DELIMITER);
sb.append(map.get(str));
}
try {
MessageDigest messageDigest = MessageDigest.getInstance("sha1");
messageDigest.update(sb.toString().getBytes());
byte[] digest = messageDigest.digest();
StringBuffer stringBuffer = new StringBuffer();
for (byte b : digest) {
String hexString = Integer.toHexString(b & 255);
if (hexString.length() < 2) {
stringBuffer.append(0);
}
stringBuffer.append(hexString);
}
return stringBuffer.toString();
} catch (NoSuchAlgorithmException e) {
e.printStackTrace();
throw new DigestException("签名错误!");
}
}
public static void OooOOOO(Context context, a aVar) {
h hVar;
aVar.toString();
if (context == null || (hVar = aVar.OooOOo0) == null || hVar.OooO0Oo() == null) {
return;
}
h.b OooO0Oo2 = aVar.OooOOo0.OooO0Oo();
OooOo0(context, OooO0Oo2.OooO0OO(), OooO0Oo2.OooO00o(), OooO0Oo2.OooO0O0());
}
public static void OooOOOo(Context context, String str, boolean z, boolean z2) {
int i = WebViewActivity.OooOO0O;
Intent intent = new Intent(context, (Class<?>) WebViewActivity.class);
intent.putExtra("link", str);
intent.putExtra("trusted", false);
if (z) {
intent.putExtra("fullscreen", true);
intent.putExtra("show_titlebar", false);
}
intent.putExtra("offline_html", z2);
OooOOoo(context, intent);
}
public static boolean OooOOo(long j, long j2) {
return (j & j2) == j2;
}
public static void OooOOo0(InputStream inputStream) {
if (inputStream != null) {
try {
inputStream.close();
} catch (IOException unused) {
Oooo0O0("IOUtil", "closeSecure IOException");
}
}
}
public static boolean OooOOoo(Context context, Intent intent) {
if (context != null && intent != null) {
if (!(context instanceof Activity)) {
intent.addFlags(268435456);
}
try {
context.startActivity(intent);
return true;
} catch (Exception e) {
e.printStackTrace();
}
}
return false;
}
public static byte[] OooOo(InputStream inputStream) {
ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream();
byte[] bArr = new byte[4096];
long j = 0;
while (true) {
int read = inputStream.read(bArr);
if (-1 == read) {
int i = (j > 2147483647L ? 1 : (j == 2147483647L ? 0 : -1));
return byteArrayOutputStream.toByteArray();
}
byteArrayOutputStream.write(bArr, 0, read);
j += read;
}
}
public static boolean OooOo0(Context context, String str, String str2, int i) {
if (i == 0) {
if (!URLUtil.isHttpUrl(str) && !URLUtil.isHttpsUrl(str)) {
return Oooo0(context, str);
}
o0O0O0o0.OooO0OO(context).OooO0O0(context, str);
return true;
}
if (i == 2) {
return OooOo00(context, "com.android.vending", str2);
}
if (i != 1) {
return Oooo0(context, str);
}
int i2 = WebViewActivity.OooOO0O;
Intent intent = new Intent(context, (Class<?>) WebViewActivity.class);
intent.putExtra("link", str);
intent.putExtra("trusted", false);
return OooOOoo(context, intent);
}
public static boolean OooOo00(Context context, String str, String str2) {
if (context == null || TextUtils.isEmpty(str2)) {
return false;
}
Intent intent = new Intent(CommonConstant.ACTION.HWID_SCHEME_URL);
intent.setData(Uri.parse(str2));
if (!TextUtils.isEmpty(str)) {
intent.setPackage(str);
}
boolean OooOOoo = OooOOoo(context, intent);
if (!OooOOoo) {
Toast.makeText(context, R$string.adfly_app_no_install_tips, 0).show();
}
return OooOOoo;
}
public static boolean OooOo0O(Context context, String str, boolean z) {
if (TextUtils.isEmpty(str) || context == null) {
return false;
}
Intent intent = null;
if (!TextUtils.isEmpty(str)) {
if (str.startsWith("intent://")) {
try {
Intent parseUri = Intent.parseUri(str, 1);
parseUri.addCategory("android.intent.category.BROWSABLE");
parseUri.setComponent(null);
parseUri.setSelector(null);
if (context.getPackageManager().queryIntentActivities(parseUri, 0).size() > 0) {
intent = parseUri;
}
} catch (Exception e) {
e.printStackTrace();
}
} else {
intent = new Intent(CommonConstant.ACTION.HWID_SCHEME_URL, Uri.parse(str));
}
}
if (intent == null) {
return false;
}
if (!z || (!(URLUtil.isHttpUrl(str) || URLUtil.isHttpsUrl(str)) || context.getPackageManager().queryIntentActivities(intent, 65536).size() <= 1)) {
return OooOOoo(context, intent);
}
o0O0O0o0.OooO0OO(context).OooO0O0(context, str);
return true;
}
public static boolean OooOo0o(String[] strArr) {
return true;
}
public static o000Oo0 OooOoO(String str, o0000OO0<a> o0000oo0) {
o0O0OO0 o0o0oo0 = new o0O0OO0("https://apia.adfly.global/advert/rewarded_video");
o0o0oo0.f633OooO0O0.put(ao.ao, "self");
if (!TextUtils.isEmpty(str)) {
try {
o0o0oo0.f633OooO0O0.put("wid", Integer.valueOf(Integer.parseInt(str)));
} catch (Exception unused) {
}
}
return OooO0o0(o0o0oo0.f632OooO00o, o0o0oo0.OooO00o().toString(), new o000000(a.class, "data"), o0000oo0);
}
public static int[] OooOoO0(Context context) {
WindowManager windowManager = (WindowManager) context.getSystemService("window");
windowManager.getDefaultDisplay().getMetrics(new DisplayMetrics());
Display defaultDisplay = windowManager.getDefaultDisplay();
Point point = new Point();
defaultDisplay.getRealSize(point);
return new int[]{point.x, point.y};
}
public static void OooOoOO(OutputStream outputStream) {
if (outputStream != null) {
try {
outputStream.close();
} catch (IOException unused) {
Oooo0O0("IOUtil", "closeSecure IOException");
}
}
}
public static String OooOoo(String str) {
if (!TextUtils.isEmpty(str)) {
return !URLUtil.isNetworkUrl(str) ? str : OooooO0(str);
}
Pattern pattern = OooO0OO.OooO0OO.OooO0O0.OooO00o.OooO00o.OooO0OO.OooO00o.f905OooO00o;
if (TextUtils.isEmpty("whiteListUrl is null")) {
return null;
}
Log.i("UriUtil", OooO0OO.OooO0OO.OooO0O0.OooO00o.OooO00o.OooO0OO.OooO00o.OooO0O0("whiteListUrl is null", false));
return null;
}
public static String OooOoo0(String str) {
return OooO0OO.OooO0O0.OooO00o.OooO00o.OooO00o.OooOOO0("SecurityComp10105310: ", str);
}
public static OooO0Oo.OooO00o.OooOO0O OooOooO() {
ExecutorService executorService = f673OooO0OO;
if (executorService == null || executorService.isShutdown()) {
synchronized (o0000.class) {
ExecutorService executorService2 = f673OooO0OO;
if (executorService2 == null || executorService2.isShutdown()) {
f673OooO0OO = new ThreadPoolExecutor(5, 5, 60L, TimeUnit.MILLISECONDS, new LinkedBlockingQueue());
}
}
}
ExecutorService executorService3 = f673OooO0OO;
OooO0Oo.OooO00o.OooOO0O oooOO0O = OooO0Oo.OooO00o.OooOooO.OooO.f1698OooO00o;
return new OooO0Oo.OooO00o.OooOoo.OooO0oO.Oooo0(executorService3);
}
public static List<String> OooOooo(Map<String, Object> map) {
ArrayList arrayList = new ArrayList();
Iterator<Map.Entry<String, Object>> it = map.entrySet().iterator();
while (it.hasNext()) {
arrayList.add(it.next().getKey());
}
return arrayList;
}
public static OooO0Oo.OooO00o.OooOO0O Oooo(Callable<OooO0Oo.OooO00o.OooOO0O> callable) {
try {
OooO0Oo.OooO00o.OooOO0O call = callable.call();
Objects.requireNonNull(call, "Scheduler Callable result can't be null");
return call;
} catch (Throwable th) {
throw OooO0Oo.OooO00o.OooOoo.OooO0oo.o000OOo.OooO00o(th);
}
}
public static boolean Oooo0(Context context, String str) {
return OooOo0O(context, str, false);
}
public static void Oooo000(String str, String str2) {
Log.e("SecurityComp10105310: " + str, str2);
}
public static boolean Oooo00O(Activity activity) {
String str = Build.MANUFACTURER;
if (str == null) {
str = "";
}
if ("xiaomi".equalsIgnoreCase(str) && Settings.Global.getInt(activity.getContentResolver(), "force_fsg_nav_bar", 0) != 0) {
return false;
}
if ("vivo".equalsIgnoreCase(str) && Settings.Secure.getInt(activity.getContentResolver(), "navigation_gesture_on", 0) != 0) {
return true;
}
Display defaultDisplay = activity.getWindowManager().getDefaultDisplay();
Point point = new Point();
Point point2 = new Point();
defaultDisplay.getSize(point);
defaultDisplay.getRealSize(point2);
return point2.y != point.y;
}
public static boolean Oooo00o(Context context) {
ConnectivityManager connectivityManager;
NetworkInfo activeNetworkInfo;
return (context == null || (connectivityManager = (ConnectivityManager) context.getSystemService("connectivity")) == null || (activeNetworkInfo = connectivityManager.getActiveNetworkInfo()) == null || !activeNetworkInfo.isAvailable()) ? false : true;
}
public static void Oooo0O0(String str, String str2) {
Log.e(OooOoo0(str), str2);
}
public static boolean Oooo0OO(Context context) {
try {
Resources resources = context.getResources();
int identifier = resources.getIdentifier("config_mainBuiltInDisplayCutout", "string", "android");
String string = identifier > 0 ? resources.getString(identifier) : null;
if (string != null) {
if (!TextUtils.isEmpty(string)) {
return true;
}
}
} catch (Exception unused) {
}
return false;
}
public static String Oooo0o(byte[] bArr) {
if (bArr == null || bArr.length == 0) {
return "";
}
StringBuilder sb = new StringBuilder();
for (byte b : bArr) {
String hexString = Integer.toHexString(b & 255);
if (hexString.length() == 1) {
sb.append('0');
}
sb.append(hexString);
}
return sb.toString();
}
public static String Oooo0o0(byte[] bArr) {
if (bArr == null || bArr.length == 0) {
return "";
}
StringBuilder sb = new StringBuilder();
for (byte b : bArr) {
String hexString = Integer.toHexString(b & 255);
if (hexString.length() == 1) {
sb.append('0');
}
sb.append(hexString);
}
return sb.toString();
}
public static void Oooo0oO(String str, String str2) {
Log.i("SecurityComp10105310: " + str, str2);
}
public static void Oooo0oo(String str, String str2) {
Log.i(OooOoo0(str), str2);
}
public static String OoooO(String str, String str2) {
if (TextUtils.isEmpty(str)) {
Oooo000("CBC", "decrypt 1 content is null");
return "";
}
if (TextUtils.isEmpty(str2)) {
Oooo000("CBC", "decrypt 1 key is null");
return "";
}
byte[] OooooOO = OooooOO(str2);
if (OooooOO.length < 16) {
Oooo000("CBC", "decrypt 1 key length is not right");
return "";
}
return OoooOO0(str, OooooOO);
}
public static void OoooO0(OutputStream outputStream) {
if (outputStream != null) {
try {
outputStream.close();
} catch (IOException unused) {
Log.e("IOUtil", "closeSecure IOException");
}
}
}
public static void OoooO00(InputStream inputStream) {
if (inputStream != null) {
try {
inputStream.close();
} catch (IOException unused) {
Log.e("IOUtil", "closeSecure IOException");
}
}
}
public static int OoooO0O(String str) {
return Log.d("greenDAO", str);
}
public static String OoooOO0(String str, byte[] bArr) {
String str2;
String str3;
if (TextUtils.isEmpty(str)) {
Oooo000("CBC", "decrypt 2 content is null");
return "";
}
if (bArr == null) {
Oooo000("CBC", "decrypt 2 key is null");
return "";
}
if (bArr.length < 16) {
Oooo000("CBC", "decrypt 2 key lengh is not right");
return "";
}
if (!TextUtils.isEmpty(str)) {
try {
str2 = str.substring(6, 12) + str.substring(16, 26) + str.substring(32, 48);
} catch (Exception e) {
StringBuilder OooOOo0 = OooO0OO.OooO0O0.OooO00o.OooO00o.OooO00o.OooOOo0("getIv exception : ");
OooOOo0.append(e.getMessage());
Oooo000("CBC", OooOOo0.toString());
}
if (!TextUtils.isEmpty(str)) {
try {
str3 = str.substring(0, 6) + str.substring(12, 16) + str.substring(26, 32) + str.substring(48);
} catch (Exception e2) {
StringBuilder OooOOo02 = OooO0OO.OooO0O0.OooO00o.OooO00o.OooO00o.OooOOo0("get encryptword exception : ");
OooOOo02.append(e2.getMessage());
Oooo000("CBC", OooOOo02.toString());
}
if (TextUtils.isEmpty(str2)) {
Oooo000("CBC", "decrypt 2 iv is null");
return "";
}
if (TextUtils.isEmpty(str3)) {
Oooo000("CBC", "decrypt 2 encrypt content is null");
return "";
}
return o000oOoO(str3, bArr, OooooOO(str2));
}
str3 = "";
if (TextUtils.isEmpty(str2)) {
}
}
str2 = "";
if (!TextUtils.isEmpty(str)) {
}
str3 = "";
if (TextUtils.isEmpty(str2)) {
}
}
public static byte[] OoooOOO(byte[] bArr, byte[] bArr2, byte[] bArr3) {
if (bArr.length == 0) {
Oooo000("CBC", "decrypt 6 content length is 0");
return new byte[0];
}
if (bArr2.length < 16) {
Oooo000("CBC", "decrypt 6 key length is error");
return new byte[0];
}
if (bArr3 == null) {
Oooo000("CBC", "decrypt 6 iv is null");
return new byte[0];
}
if (bArr3.length < 16) {
Oooo000("CBC", "decrypt 6 iv length is error");
return new byte[0];
}
SecretKeySpec secretKeySpec = new SecretKeySpec(bArr2, "AES");
try {
Cipher cipher = Cipher.getInstance("AES/CBC/PKCS5Padding");
cipher.init(2, secretKeySpec, new IvParameterSpec(bArr3));
return cipher.doFinal(bArr);
} catch (InvalidAlgorithmParameterException e) {
StringBuilder OooOOo0 = OooO0OO.OooO0O0.OooO00o.OooO00o.OooO00o.OooOOo0("InvalidAlgorithmParameterException: ");
OooOOo0.append(e.getMessage());
Oooo000("CBC", OooOOo0.toString());
return new byte[0];
} catch (InvalidKeyException e2) {
StringBuilder OooOOo02 = OooO0OO.OooO0O0.OooO00o.OooO00o.OooO00o.OooOOo0("InvalidKeyException: ");
OooOOo02.append(e2.getMessage());
Oooo000("CBC", OooOOo02.toString());
return new byte[0];
} catch (NoSuchAlgorithmException e3) {
StringBuilder OooOOo03 = OooO0OO.OooO0O0.OooO00o.OooO00o.OooO00o.OooOOo0("NoSuchAlgorithmException: ");
OooOOo03.append(e3.getMessage());
Oooo000("CBC", OooOOo03.toString());
return new byte[0];
} catch (BadPaddingException e4) {
StringBuilder OooOOo04 = OooO0OO.OooO0O0.OooO00o.OooO00o.OooO00o.OooOOo0("BadPaddingException: ");
OooOOo04.append(e4.getMessage());
Oooo000("CBC", OooOOo04.toString());
Oooo000("CBC", "key is not right");
return new byte[0];
} catch (IllegalBlockSizeException e5) {
StringBuilder OooOOo05 = OooO0OO.OooO0O0.OooO00o.OooO00o.OooO00o.OooOOo0("IllegalBlockSizeException: ");
OooOOo05.append(e5.getMessage());
Oooo000("CBC", OooOOo05.toString());
return new byte[0];
} catch (NoSuchPaddingException e6) {
StringBuilder OooOOo06 = OooO0OO.OooO0O0.OooO00o.OooO00o.OooO00o.OooOOo0("NoSuchPaddingException: ");
OooOOo06.append(e6.getMessage());
Oooo000("CBC", OooOOo06.toString());
return new byte[0];
}
}
public static String OoooOOo(String str, String str2) {
if (TextUtils.isEmpty(str)) {
Oooo000("CBC", "encrypt 1 content is null");
return "";
}
if (TextUtils.isEmpty(str2)) {
Oooo000("CBC", "encrypt 1 key is null");
return "";
}
byte[] OooooOO = OooooOO(str2);
if (OooooOO.length < 16) {
Oooo000("CBC", "encrypt 1 key length is not right");
return "";
}
return OoooOo0(str, OooooOO);
}
public static String OoooOo0(String str, byte[] bArr) {
byte[] bArr2;
if (TextUtils.isEmpty(str)) {
Oooo000("CBC", "encrypt 2 content is null");
return "";
}
if (bArr == null) {
Oooo000("CBC", "encrypt 2 key is null");
return "";
}
if (bArr.length < 16) {
Oooo000("CBC", "encrypt 2 key lengh is not right");
return "";
}
byte[] OooO0O02 = OooO0OO.OooO0OO.OooO0O0.OooO00o.OooO00o.OooO00o.OooO0OO.OooO0O0.OooO0O0(16);
if (TextUtils.isEmpty(str)) {
Oooo000("CBC", "encrypt 5 content is null");
bArr2 = new byte[0];
} else if (bArr.length < 16) {
Oooo000("CBC", "encrypt 5 key lengh is not right");
bArr2 = new byte[0];
} else if (OooO0O02.length < 16) {
Oooo000("CBC", "encrypt 5 iv lengh is not right");
bArr2 = new byte[0];
} else {
try {
bArr2 = Ooooo00(str.getBytes("UTF-8"), bArr, OooO0O02);
} catch (UnsupportedEncodingException e) {
StringBuilder OooOOo0 = OooO0OO.OooO0O0.OooO00o.OooO00o.OooO00o.OooOOo0(" cbc encrypt data error");
OooOOo0.append(e.getMessage());
Oooo000("CBC", OooOOo0.toString());
bArr2 = new byte[0];
}
}
if (bArr2 == null || bArr2.length == 0) {
return "";
}
String Oooo0o0 = Oooo0o0(OooO0O02);
String Oooo0o02 = Oooo0o0(bArr2);
if (TextUtils.isEmpty(Oooo0o0) || TextUtils.isEmpty(Oooo0o02)) {
return "";
}
try {
return Oooo0o02.substring(0, 6) + Oooo0o0.substring(0, 6) + Oooo0o02.substring(6, 10) + Oooo0o0.substring(6, 16) + Oooo0o02.substring(10, 16) + Oooo0o0.substring(16) + Oooo0o02.substring(16);
} catch (Exception e2) {
StringBuilder OooOOo02 = OooO0OO.OooO0O0.OooO00o.OooO00o.OooO00o.OooOOo0("mix exception: ");
OooOOo02.append(e2.getMessage());
Oooo000("CBC", OooOOo02.toString());
return "";
}
}
public static byte[] OoooOoO(byte[] bArr, PublicKey publicKey) {
byte[] bArr2 = new byte[0];
if (bArr != null && publicKey != null) {
if (((RSAPublicKey) publicKey).getModulus().bitLength() >= 2048) {
try {
Cipher cipher = Cipher.getInstance("RSA/ECB/OAEPWithSHA-256AndMGF1Padding");
cipher.init(1, publicKey);
return cipher.doFinal(bArr);
} catch (GeneralSecurityException e) {
StringBuilder OooOOo0 = OooO0OO.OooO0O0.OooO00o.OooO00o.OooO00o.OooOOo0("RSA encrypt exception : ");
OooOOo0.append(e.getMessage());
Oooo000("RSAEncrypt", OooOOo0.toString());
return bArr2;
}
}
}
Oooo000("RSAEncrypt", "content or PublicKey is null , or length is too short");
return bArr2;
}
public static byte[] OoooOoo(byte[] bArr, byte[] bArr2) {
byte[] OooO0O02 = OooO0OO.OooO0OO.OooO0O0.OooO00o.OooO00o.OooO00o.OooO0OO.OooO0O0.OooO0O0(16);
byte[] Ooooo00 = Ooooo00(bArr, bArr2, OooO0O02);
byte[] bArr3 = new byte[OooO0O02.length + Ooooo00.length];
System.arraycopy(OooO0O02, 0, bArr3, 0, OooO0O02.length);
System.arraycopy(Ooooo00, 0, bArr3, OooO0O02.length, Ooooo00.length);
return bArr3;
}
public static byte[] Ooooo00(byte[] bArr, byte[] bArr2, byte[] bArr3) {
if (bArr == null) {
Oooo000("CBC", "encrypt 6 content is null");
return new byte[0];
}
if (bArr.length == 0) {
Oooo000("CBC", "encrypt 6 content length is 0");
return new byte[0];
}
if (bArr2 == null) {
Oooo000("CBC", "encrypt 6 key is null");
return new byte[0];
}
if (bArr2.length < 16) {
Oooo000("CBC", "encrypt 6 key length is error");
return new byte[0];
}
if (bArr3.length < 16) {
Oooo000("CBC", "encrypt 6 iv length is error");
return new byte[0];
}
SecretKeySpec secretKeySpec = new SecretKeySpec(bArr2, "AES");
try {
Cipher cipher = Cipher.getInstance("AES/CBC/PKCS5Padding");
cipher.init(1, secretKeySpec, new IvParameterSpec(bArr3));
return cipher.doFinal(bArr);
} catch (InvalidAlgorithmParameterException e) {
StringBuilder OooOOo0 = OooO0OO.OooO0O0.OooO00o.OooO00o.OooO00o.OooOOo0("InvalidAlgorithmParameterException: ");
OooOOo0.append(e.getMessage());
Oooo000("CBC", OooOOo0.toString());
return new byte[0];
} catch (InvalidKeyException e2) {
StringBuilder OooOOo02 = OooO0OO.OooO0O0.OooO00o.OooO00o.OooO00o.OooOOo0("InvalidKeyException: ");
OooOOo02.append(e2.getMessage());
Oooo000("CBC", OooOOo02.toString());
return new byte[0];
} catch (NoSuchAlgorithmException e3) {
StringBuilder OooOOo03 = OooO0OO.OooO0O0.OooO00o.OooO00o.OooO00o.OooOOo0("NoSuchAlgorithmException: ");
OooOOo03.append(e3.getMessage());
Oooo000("CBC", OooOOo03.toString());
return new byte[0];
} catch (BadPaddingException e4) {
StringBuilder OooOOo04 = OooO0OO.OooO0O0.OooO00o.OooO00o.OooO00o.OooOOo0("BadPaddingException: ");
OooOOo04.append(e4.getMessage());
Oooo000("CBC", OooOOo04.toString());
return new byte[0];
} catch (IllegalBlockSizeException e5) {
StringBuilder OooOOo05 = OooO0OO.OooO0O0.OooO00o.OooO00o.OooO00o.OooOOo0("IllegalBlockSizeException: ");
OooOOo05.append(e5.getMessage());
Oooo000("CBC", OooOOo05.toString());
return new byte[0];
} catch (NoSuchPaddingException e6) {
StringBuilder OooOOo06 = OooO0OO.OooO0O0.OooO00o.OooO00o.OooO00o.OooOOo0("NoSuchPaddingException: ");
OooOOo06.append(e6.getMessage());
Oooo000("CBC", OooOOo06.toString());
return new byte[0];
}
}
public static byte[] Ooooo0o(byte[] bArr, byte[] bArr2, byte[] bArr3) {
AlgorithmParameterSpec gCMParameterSpec;
if (bArr == null) {
Oooo000("GCM", "encrypt 6 content is null");
return new byte[0];
}
if (bArr.length == 0) {
Oooo000("GCM", "encrypt 6 content length is 0");
return new byte[0];
}
if (bArr2.length < 16) {
Oooo000("GCM", "encrypt 6 key length is error");
return new byte[0];
}
if (bArr3.length < 12) {
Oooo000("GCM", "encrypt 6 iv length is error");
return new byte[0];
}
try {
SecretKeySpec secretKeySpec = new SecretKeySpec(bArr2, "AES");
Cipher cipher = Cipher.getInstance("AES/GCM/NoPadding");
if (Build.VERSION.SDK_INT < 21) {
gCMParameterSpec = new IvParameterSpec(bArr3);
} else {
gCMParameterSpec = new GCMParameterSpec(128, bArr3);
}
cipher.init(1, secretKeySpec, gCMParameterSpec);
return cipher.doFinal(bArr);
} catch (GeneralSecurityException e) {
StringBuilder OooOOo0 = OooO0OO.OooO0O0.OooO00o.OooO00o.OooO00o.OooOOo0("GCM encrypt data error");
OooOOo0.append(e.getMessage());
Oooo000("GCM", OooOOo0.toString());
return new byte[0];
}
}
@TargetApi(9)
public static String OooooO0(String str) {
if (TextUtils.isEmpty(str)) {
Pattern pattern = OooO0OO.OooO0OO.OooO0O0.OooO00o.OooO00o.OooO0OO.OooO00o.f905OooO00o;
if (!TextUtils.isEmpty("url is null")) {
Log.i("UriUtil", OooO0OO.OooO0OO.OooO0O0.OooO00o.OooO00o.OooO0OO.OooO00o.OooO0O0("url is null", false));
}
return str;
}
try {
if (!URLUtil.isNetworkUrl(str)) {
OooO0OO.OooO0OO.OooO0O0.OooO00o.OooO00o.OooO0OO.OooO00o.OooO0OO("UriUtil", "url don't starts with http or https");
return "";
}
return new URL(str.replaceAll("[\\\\#]", "/")).getHost();
} catch (MalformedURLException e) {
StringBuilder OooOOo0 = OooO0OO.OooO0O0.OooO00o.OooO00o.OooO00o.OooOOo0("getHostByURI error MalformedURLException : ");
OooOOo0.append(e.getMessage());
OooO0OO.OooO0OO.OooO0O0.OooO00o.OooO00o.OooO0OO.OooO00o.OooO0OO("UriUtil", OooOOo0.toString());
return "";
}
}
public static byte[] OooooOO(String str) {
if (TextUtils.isEmpty(str)) {
return new byte[0];
}
try {
String upperCase = str.toUpperCase(Locale.ENGLISH);
int length = upperCase.length() / 2;
byte[] bArr = new byte[length];
try {
byte[] bytes = upperCase.getBytes("UTF-8");
for (int i = 0; i < length; i++) {
StringBuilder sb = new StringBuilder();
sb.append("0x");
int i2 = i * 2;
sb.append(new String(new byte[]{bytes[i2]}, "UTF-8"));
bArr[i] = (byte) (((byte) (Byte.decode(sb.toString()).byteValue() << 4)) ^ Byte.decode("0x" + new String(new byte[]{bytes[i2 + 1]}, "UTF-8")).byteValue());
}
return bArr;
} catch (UnsupportedEncodingException | NumberFormatException e) {
StringBuilder OooOOo0 = OooO0OO.OooO0O0.OooO00o.OooO00o.OooO00o.OooOOo0("hex string 2 byte array exception : ");
OooOOo0.append(e.getMessage());
Oooo000("HexUtil", OooOOo0.toString());
return new byte[0];
}
} catch (Throwable th) {
StringBuilder OooOOo02 = OooO0OO.OooO0O0.OooO00o.OooO00o.OooO00o.OooOOo0("hex string toUpperCase exception : ");
OooOOo02.append(th.getMessage());
Oooo000("HexUtil", OooOOo02.toString());
return new byte[0];
}
}
public static byte[] OooooOo(String str) {
if (TextUtils.isEmpty(str)) {
return new byte[0];
}
String upperCase = str.toUpperCase(Locale.ENGLISH);
int length = upperCase.length() / 2;
byte[] bArr = new byte[length];
try {
byte[] bytes = upperCase.getBytes("UTF-8");
for (int i = 0; i < length; i++) {
StringBuilder sb = new StringBuilder();
sb.append("0x");
int i2 = i * 2;
sb.append(new String(new byte[]{bytes[i2]}, "UTF-8"));
bArr[i] = (byte) (((byte) (Byte.decode(sb.toString()).byteValue() << 4)) ^ Byte.decode("0x" + new String(new byte[]{bytes[i2 + 1]}, "UTF-8")).byteValue());
}
} catch (UnsupportedEncodingException e) {
e = e;
StringBuilder OooOOo0 = OooO0OO.OooO0O0.OooO00o.OooO00o.OooO00o.OooOOo0("hex string 2 byte UnsupportedEncodingException or NumberFormatException : ");
OooOOo0.append(e.getMessage());
Log.e("HexUtil", OooOOo0.toString());
} catch (NumberFormatException e2) {
e = e2;
StringBuilder OooOOo02 = OooO0OO.OooO0O0.OooO00o.OooO00o.OooO00o.OooOOo0("hex string 2 byte UnsupportedEncodingException or NumberFormatException : ");
OooOOo02.append(e.getMessage());
Log.e("HexUtil", OooOOo02.toString());
} catch (Exception e3) {
StringBuilder OooOOo03 = OooO0OO.OooO0O0.OooO00o.OooO00o.OooO00o.OooOOo0("byte array 2 hex string exception : ");
OooOOo03.append(e3.getMessage());
Log.e("HexUtil", OooOOo03.toString());
}
return bArr;
}
public static <T> OooO0Oo.OooO00o.OooOOO0<T> Oooooo(OooO0Oo.OooO00o.OooOOO0<T> oooOOO0) {
return oooOOO0;
}
public static boolean Oooooo0(Context context) {
NfcAdapter defaultAdapter;
return (context == null || (defaultAdapter = ((NfcManager) context.getSystemService("nfc")).getDefaultAdapter()) == null || !defaultAdapter.isEnabled()) ? false : true;
}
public static void OoooooO(Throwable th) {
if (th == null) {
th = new NullPointerException("onError called with null. Null values are generally not allowed in 2.x operators and sources.");
} else {
boolean z = true;
if (!(th instanceof OooO0Oo.OooO00o.OooOoOO.OooO0O0) && !(th instanceof IllegalStateException) && !(th instanceof NullPointerException) && !(th instanceof IllegalArgumentException) && !(th instanceof OooO0Oo.OooO00o.OooOoOO.OooO00o)) {
z = false;
}
if (!z) {
th = new OooO0Oo.OooO00o.OooOoOO.OooO0o(th);
}
}
th.printStackTrace();
Thread currentThread = Thread.currentThread();
currentThread.getUncaughtExceptionHandler().uncaughtException(currentThread, th);
}
public static boolean Ooooooo(String str) {
return (str.equals(ShareTarget.METHOD_GET) || str.equals("HEAD")) ? false : true;
}
public static String o000oOoO(String str, byte[] bArr, byte[] bArr2) {
if (TextUtils.isEmpty(str)) {
Oooo000("CBC", "decrypt 4 content is null");
return "";
}
if (bArr.length < 16) {
Oooo000("CBC", "decrypt 4 key lengh is not right");
return "";
}
if (bArr2.length < 16) {
Oooo000("CBC", "decrypt 4 iv lengh is not right");
return "";
}
try {
return new String(OoooOOO(OooooOO(str), bArr, bArr2), "UTF-8");
} catch (UnsupportedEncodingException e) {
StringBuilder OooOOo0 = OooO0OO.OooO0O0.OooO00o.OooO00o.OooO00o.OooOOo0(" cbc decrypt data error");
OooOOo0.append(e.getMessage());
Oooo000("CBC", OooOOo0.toString());
return "";
}
}
public static void o00O0O(Throwable th) {
if (!(th instanceof VirtualMachineError)) {
if (!(th instanceof ThreadDeath)) {
if (th instanceof LinkageError) {
throw ((LinkageError) th);
}
return;
}
throw ((ThreadDeath) th);
}
throw ((VirtualMachineError) th);
}
public static <T, R> boolean o00Oo0(OooO0Oo.OooO00o.OooO<T> oooO, OooO0Oo.OooO00o.OooOO0<? super R> oooOO0, OooO0Oo.OooO00o.OooOoo0.OooO0o<? super T, ? extends OooO0Oo.OooO00o.OooO<? extends R>> oooO0o) {
OooO0Oo.OooO00o.OooOoo.OooO00o.OooO0o oooO0o2 = OooO0Oo.OooO00o.OooOoo.OooO00o.OooO0o.INSTANCE;
if (!(oooO instanceof Callable)) {
return false;
}
try {
OooO.OooO00o.OooO00o.OooOO0O.OooO0O0 oooO0O0 = (Object) ((Callable) oooO).call();
if (oooO0O0 == null) {
oooOO0.OooO00o(oooO0o2);
oooOO0.OooO0OO();
return true;
}
try {
OooO0Oo.OooO00o.OooO<? extends R> apply = oooO0o.apply(oooO0O0);
Objects.requireNonNull(apply, "The mapper returned a null ObservableSource");
OooO0Oo.OooO00o.OooO<? extends R> oooO2 = apply;
if (oooO2 instanceof Callable) {
try {
Object call = ((Callable) oooO2).call();
if (call == null) {
oooOO0.OooO00o(oooO0o2);
oooOO0.OooO0OO();
return true;
}
OooO0Oo.OooO00o.OooOoo.OooO0o0.OooO00o.Oooo0 oooo0 = new OooO0Oo.OooO00o.OooOoo.OooO0o0.OooO00o.Oooo0(oooOO0, call);
oooOO0.OooO00o(oooo0);
oooo0.run();
} catch (Throwable th) {
o00O0O(th);
oooOO0.OooO00o(oooO0o2);
oooOO0.OooO0O0(th);
return true;
}
} else {
oooO2.OooO00o(oooOO0);
}
return true;
} catch (Throwable th2) {
o00O0O(th2);
oooOO0.OooO00o(oooO0o2);
oooOO0.OooO0O0(th2);
return true;
}
} catch (Throwable th3) {
o00O0O(th3);
oooOO0.OooO00o(oooO0o2);
oooOO0.OooO0O0(th3);
return true;
}
}
public static int o00Ooo(String str, Throwable th) {
return Log.w("greenDAO", str, th);
}
public static String o0OoOo0(OooO0oO.o00Ooo o00ooo) {
String OooO0o2 = o00ooo.OooO0o();
String OooO0oo2 = o00ooo.OooO0oo();
if (OooO0oo2 == null) {
return OooO0o2;
}
return OooO0o2 + '?' + OooO0oo2;
}
public static int ooOO(int i) {
return 1 << (32 - Integer.numberOfLeadingZeros(i - 1));
}
}