正在查看: Simple Préstamo v2.1.4 应用的 h.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: Simple Préstamo v2.1.4 应用的 h.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package com.datavisorobfus;
import android.annotation.SuppressLint;
import android.app.Activity;
import android.app.KeyguardManager;
import android.bluetooth.BluetoothAdapter;
import android.content.Context;
import android.content.Intent;
import android.content.IntentFilter;
import android.hardware.Sensor;
import android.hardware.SensorManager;
import android.hardware.display.DisplayManager;
import android.location.Location;
import android.location.LocationManager;
import android.media.AudioManager;
import android.media.MediaDrm;
import android.net.ConnectivityManager;
import android.net.NetworkInfo;
import android.net.wifi.ScanResult;
import android.net.wifi.WifiManager;
import android.opengl.GLSurfaceView;
import android.os.BatteryManager;
import android.os.Build;
import android.os.Environment;
import android.os.Handler;
import android.os.Process;
import android.os.SystemClock;
import android.provider.Settings;
import android.telephony.TelephonyManager;
import android.util.DisplayMetrics;
import android.view.View;
import android.view.ViewGroup;
import android.view.WindowManager;
import android.view.accessibility.AccessibilityManager;
import android.view.inputmethod.InputMethodInfo;
import android.view.inputmethod.InputMethodManager;
import android.webkit.WebSettings;
import android.widget.FrameLayout;
import com.datavisor.vangogh.bridge.crypto;
import java.io.BufferedReader;
import java.io.File;
import java.io.FileFilter;
import java.io.FileReader;
import java.lang.reflect.Field;
import java.lang.reflect.Method;
import java.net.InetAddress;
import java.net.NetworkInterface;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Collections;
import java.util.Comparator;
import java.util.Date;
import java.util.Enumeration;
import java.util.Iterator;
import java.util.List;
import java.util.Locale;
import java.util.Map;
import java.util.TimeZone;
import java.util.UUID;
import java.util.regex.Pattern;
import javax.microedition.khronos.egl.EGLConfig;
import javax.microedition.khronos.opengles.GL10;
import org.json.JSONArray;
import org.json.JSONException;
import org.json.JSONObject;
public class h {
private static h f6746d = new h();
public static String f6747e = j.f6766a;
private final Object f6748a = new Object();
private final Object f6749b = new Object();
private final Object f6750c = new Object();
public class a implements Comparator<JSONArray> {
public a(h hVar) {
}
@Override
public int compare(JSONArray jSONArray, JSONArray jSONArray2) {
try {
int i4 = jSONArray.getInt(2);
int i5 = jSONArray2.getInt(2);
if (i4 < i5) {
return 1;
}
return i4 == i5 ? 0 : -1;
} catch (JSONException unused) {
return 0;
}
}
}
public class b implements FileFilter {
public b(h hVar) {
}
@Override
public boolean accept(File file) {
try {
return Pattern.matches("cpu[0-9]", file.getName());
} catch (Throwable th) {
n0.a(th);
return false;
}
}
}
public class c implements GLSurfaceView.Renderer {
final JSONObject f6751a;
final Context f6752b;
final View f6753c;
final GLSurfaceView f6754d;
public class a implements Runnable {
public a() {
}
@Override
public void run() {
try {
c cVar = c.this;
((ViewGroup) cVar.f6753c).removeView(cVar.f6754d);
} catch (Throwable th) {
n0.a(th);
}
}
}
public c(JSONObject jSONObject, Context context, View view, GLSurfaceView gLSurfaceView) {
this.f6751a = jSONObject;
this.f6752b = context;
this.f6753c = view;
this.f6754d = gLSurfaceView;
}
@Override
public void onDrawFrame(GL10 gl10) {
}
@Override
public void onSurfaceChanged(GL10 gl10, int i4, int i5) {
}
@Override
public void onSurfaceCreated(GL10 gl10, EGLConfig eGLConfig) {
try {
try {
String glGetString = gl10.glGetString(7936);
if (glGetString == null) {
glGetString = "";
}
String glGetString2 = gl10.glGetString(7937);
if (glGetString2 == null) {
glGetString2 = "";
}
n0.a("strVendor: " + glGetString + " strRenderer: " + glGetString2);
this.f6751a.put("vendor", glGetString);
this.f6751a.put("renderer", glGetString2);
synchronized (h.this.f6748a) {
try {
h.this.f6748a.notifyAll();
} catch (Throwable th) {
n0.a(th);
}
}
new Handler(this.f6752b.getMainLooper()).post(new a());
} catch (Throwable th2) {
n0.a(th2);
}
} catch (Throwable th3) {
try {
n0.a(th3);
new Handler(this.f6752b.getMainLooper()).post(new a());
} catch (Throwable th4) {
try {
new Handler(this.f6752b.getMainLooper()).post(new a());
} catch (Throwable th5) {
n0.a(th5);
}
throw th4;
}
}
}
}
public class d implements Runnable {
final View f6757a;
final GLSurfaceView f6758b;
public d(h hVar, View view, GLSurfaceView gLSurfaceView) {
this.f6757a = view;
this.f6758b = gLSurfaceView;
}
@Override
public void run() {
try {
((ViewGroup) this.f6757a).addView(this.f6758b, 0);
} catch (Throwable th) {
n0.a(th);
}
}
}
public class e implements p {
final String[] f6759a;
final boolean[] f6760b;
public e(String[] strArr, boolean[] zArr) {
this.f6759a = strArr;
this.f6760b = zArr;
}
@Override
public void a(String str) {
this.f6759a[0] = str;
synchronized (h.this.f6749b) {
this.f6760b[0] = true;
try {
h.this.f6749b.notifyAll();
} catch (Throwable th) {
n0.a(th);
}
}
}
}
public class f implements p {
final String[] f6762a;
final boolean[] f6763b;
public f(String[] strArr, boolean[] zArr) {
this.f6762a = strArr;
this.f6763b = zArr;
}
@Override
public void a(String str) {
this.f6762a[0] = str;
synchronized (h.this.f6750c) {
this.f6763b[0] = true;
try {
h.this.f6750c.notifyAll();
} catch (Throwable th) {
n0.a(th);
}
}
}
}
private String C() {
try {
BluetoothAdapter defaultAdapter = BluetoothAdapter.getDefaultAdapter();
if (defaultAdapter == null) {
return null;
}
String address = defaultAdapter.isEnabled() ? defaultAdapter.getAddress() : null;
if (address == null || address.endsWith("00:00:00:00:00")) {
address = a(defaultAdapter);
}
if (p0.a(address)) {
return null;
}
return address;
} catch (Throwable th) {
n0.a(th);
return null;
}
}
private Activity D() {
try {
Class<?> cls = Class.forName("android.app.ActivityThread");
Object invoke = cls.getMethod("currentActivityThread", null).invoke(null, null);
Field declaredField = cls.getDeclaredField("mActivities");
declaredField.setAccessible(true);
for (Object obj : ((Map) declaredField.get(invoke)).values()) {
Class<?> cls2 = obj.getClass();
Field declaredField2 = cls2.getDeclaredField("paused");
declaredField2.setAccessible(true);
if (!declaredField2.getBoolean(obj)) {
Field declaredField3 = cls2.getDeclaredField("activity");
declaredField3.setAccessible(true);
return (Activity) declaredField3.get(obj);
}
}
return null;
} catch (Throwable th) {
n0.a(th);
return null;
}
}
public static h E() {
return f6746d;
}
private String F() {
String str;
try {
new FileReader("/sys/block/mmcblk0/device/type");
str = "/sys/block/mmcblk0/device/";
} catch (Throwable unused) {
str = null;
}
try {
new FileReader("/sys/block/mmcblk1/device/type");
str = "/sys/block/mmcblk1/device/";
} catch (Throwable unused2) {
}
try {
new FileReader("/sys/block/mmcblk2/device/type");
return "/sys/block/mmcblk2/device/";
} catch (Throwable unused3) {
return str;
}
}
private String d0(Context context) {
byte[] hardwareAddress;
if (b(context, "android.permission.ACCESS_WIFI_STATE")) {
n0.a(f6747e, "no permission ACCESS_WIFI_STATE");
return "no_permission";
}
try {
String a4 = i.d().a(context);
if (p0.a(a4) || (hardwareAddress = NetworkInterface.getByInetAddress(InetAddress.getByName(a4)).getHardwareAddress()) == null) {
return "empty";
}
StringBuilder sb = new StringBuilder();
for (byte b4 : hardwareAddress) {
sb.append(String.format("%02X:", Integer.valueOf(b4 & 255)));
}
if (sb.length() > 0) {
sb.deleteCharAt(sb.length() - 1);
}
if (!sb.toString().equals("02:00:00:00:00:00") && !sb.toString().equals("00:00:00:00:00:00")) {
return sb.toString();
}
return "empty";
} catch (Throwable th) {
n0.a(th);
return "exception";
}
}
private WindowManager e0(Context context) {
Object systemService;
try {
if (Build.VERSION.SDK_INT > 30) {
systemService = context.getSystemService((Class<Object>) DisplayManager.class);
context = context.createDisplayContext(((DisplayManager) systemService).getDisplay(0)).createWindowContext(2038, null);
}
return (WindowManager) context.getSystemService("window");
} catch (Throwable th) {
n0.a(th);
return null;
}
}
public String A() {
try {
String displayName = TimeZone.getDefault().getDisplayName(false, 0);
return p0.a(displayName) ? "empty" : displayName;
} catch (Throwable th) {
n0.a(th);
return "exception";
}
}
public String B() {
try {
byte[] propertyByteArray = new MediaDrm(new UUID(-1301668207276963122L, -6645017420763422227L)).getPropertyByteArray("deviceUniqueId");
StringBuilder sb = new StringBuilder();
for (byte b4 : propertyByteArray) {
sb.append(String.format("%02x", Byte.valueOf(b4)));
}
return sb.toString();
} catch (Throwable th) {
n0.a(th);
return "exception";
}
}
public String G(Context context) {
try {
if (b(context, "android.permission.READ_PHONE_STATE")) {
n0.a(f6747e, "no permission READ_PHONE_STATE");
return "no_permission";
}
if (context == null) {
n0.a(f6747e, "context is null");
return "para_err";
}
String simOperator = ((TelephonyManager) context.getSystemService("phone")).getSimOperator();
return p0.a(simOperator) ? "empty" : simOperator;
} catch (Throwable th) {
n0.a(th);
return "exception";
}
}
public String H(Context context) {
try {
if (b(context, "android.permission.READ_PHONE_STATE")) {
n0.a(f6747e, "no permission READ_PHONE_STATE");
return "no_permission";
}
if (context == null) {
n0.a(f6747e, "context is null");
return "para_err";
}
String networkOperatorName = ((TelephonyManager) context.getSystemService("phone")).getNetworkOperatorName();
return p0.a(networkOperatorName) ? "empty" : networkOperatorName;
} catch (Throwable th) {
n0.a(th);
return "exception";
}
}
public String I(Context context) {
boolean isMock;
try {
if (b(context, "android.permission.ACCESS_COARSE_LOCATION") && b(context, "android.permission.ACCESS_FINE_LOCATION")) {
return "no_permission";
}
JSONObject jSONObject = new JSONObject();
LocationManager locationManager = (LocationManager) context.getSystemService("location");
for (String str : locationManager.getProviders(true)) {
Location lastKnownLocation = locationManager.getLastKnownLocation(str);
if (lastKnownLocation != null) {
JSONArray jSONArray = new JSONArray();
int i4 = Build.VERSION.SDK_INT;
jSONArray.put(lastKnownLocation.isFromMockProvider() ? "1" : "0");
if (i4 >= 31) {
isMock = lastKnownLocation.isMock();
jSONArray.put(isMock ? "1" : "0");
} else {
jSONArray.put("empty");
}
jSONObject.put(str, jSONArray);
}
}
return jSONObject.toString();
} catch (Throwable th) {
n0.a(th);
return "exception";
}
}
public String J(Context context) {
String str;
String str2;
if (b(context, "android.permission.CHANGE_WIFI_STATE")) {
str = f6747e;
str2 = "no permission CHANGE_WIFI_STATE";
} else if (b(context, "android.permission.ACCESS_WIFI_STATE")) {
str = f6747e;
str2 = "no permission ACCESS_WIFI_STATE";
} else if (b(context, "android.permission.ACCESS_NETWORK_STATE")) {
str = f6747e;
str2 = "no permission ACCESS_NETWORK_STATE";
} else {
if (!b(context, "android.permission.ACCESS_FINE_LOCATION")) {
try {
JSONArray jSONArray = new JSONArray();
WifiManager wifiManager = (WifiManager) context.getSystemService("wifi");
wifiManager.startScan();
for (ScanResult scanResult : wifiManager.getScanResults()) {
JSONArray jSONArray2 = new JSONArray();
jSONArray2.put(scanResult.SSID);
jSONArray2.put(scanResult.BSSID);
jSONArray2.put(scanResult.level);
jSONArray.put(jSONArray2);
}
ArrayList arrayList = new ArrayList();
for (int i4 = 0; i4 < jSONArray.length(); i4++) {
arrayList.add((JSONArray) jSONArray.get(i4));
}
Collections.sort(arrayList, new a(this));
JSONArray jSONArray3 = new JSONArray();
for (int i5 = 0; i5 < Math.min(arrayList.size(), 10); i5++) {
jSONArray3.put(arrayList.get(i5));
}
return jSONArray3.toString();
} catch (Throwable th) {
n0.a(th);
return "exception";
}
}
str = f6747e;
str2 = "no permission ACCESS_FINE_LOCATION";
}
n0.a(str, str2);
return "no_permission";
}
public String K(Context context) {
NetworkInfo activeNetworkInfo;
if (context == null) {
n0.a(f6747e, "context is null");
return "para_err";
}
if (b(context, "android.permission.ACCESS_NETWORK_STATE")) {
n0.a(f6747e, "no ACCESS_NETWORK_STATE");
return "no_permission";
}
try {
ConnectivityManager connectivityManager = (ConnectivityManager) context.getSystemService("connectivity");
if (connectivityManager == null || (activeNetworkInfo = connectivityManager.getActiveNetworkInfo()) == null || !activeNetworkInfo.isAvailable()) {
return "-1";
}
return activeNetworkInfo.getType() + "";
} catch (Throwable th) {
n0.a(th);
return "exception";
}
}
public synchronized String L(Context context) {
String[] strArr;
strArr = new String[]{"empty"};
boolean[] zArr = {false};
o.b(context, new e(strArr, zArr));
synchronized (this.f6749b) {
try {
if (!zArr[0]) {
try {
this.f6749b.wait(50L);
} catch (Throwable th) {
n0.a(th);
}
}
} catch (Throwable th2) {
throw th2;
}
}
n0.a("getOAID getOAID getOAID getOAID: " + strArr[0]);
return strArr[0];
}
public String M(Context context) {
return o0.a(context);
}
public String N(Context context) {
return o0.b(context);
}
public String O(Context context) {
if (!b(context, "android.permission.READ_PHONE_STATE")) {
return o0.c(context);
}
n0.a(f6747e, "no permission READ_PHONE_STATE");
return "no_permission";
}
public String P(Context context) {
if (!b(context, "android.permission.READ_PHONE_STATE")) {
return o0.d(context);
}
n0.a(f6747e, "no permission READ_PHONE_STATE");
return "no_permission";
}
public String Q(Context context) {
if (!b(context, "android.permission.READ_PHONE_STATE")) {
return o0.e(context);
}
n0.a(f6747e, "no permission READ_PHONE_STATE");
return "no_permission";
}
@SuppressLint({"MissingPermission"})
public String R(Context context) {
String str;
if (b(context, "android.permission.READ_PHONE_STATE")) {
n0.a(f6747e, "no permission READ_PHONE_STATE");
return "no_permission";
}
if (context == null) {
n0.a(f6747e, "context is null");
return "para_err";
}
try {
TelephonyManager telephonyManager = (TelephonyManager) context.getSystemService("phone");
str = telephonyManager != null ? telephonyManager.getSimSerialNumber() : "default";
} catch (Throwable th) {
n0.a(th);
str = "exception";
}
return p0.a(str) ? "empty" : str;
}
public String S(Context context) {
try {
WindowManager e02 = e0(context);
if (e02 == null) {
return "empty";
}
DisplayMetrics displayMetrics = new DisplayMetrics();
e02.getDefaultDisplay().getRealMetrics(displayMetrics);
return "" + displayMetrics.heightPixels;
} catch (Throwable th) {
n0.a(th);
return "exception";
}
}
public String T(Context context) {
try {
WindowManager e02 = e0(context);
if (e02 == null) {
return "empty";
}
DisplayMetrics displayMetrics = new DisplayMetrics();
e02.getDefaultDisplay().getRealMetrics(displayMetrics);
return "" + displayMetrics.widthPixels;
} catch (Throwable th) {
n0.a(th);
return "exception";
}
}
public String U(Context context) {
try {
JSONArray jSONArray = new JSONArray();
for (Sensor sensor : ((SensorManager) context.getSystemService("sensor")).getSensorList(-1)) {
JSONArray jSONArray2 = new JSONArray();
jSONArray2.put(sensor.getName());
jSONArray2.put(sensor.getType() + "");
jSONArray2.put(sensor.getVendor());
jSONArray.put(jSONArray2);
}
return jSONArray.toString();
} catch (Throwable th) {
n0.a(th);
return "exception";
}
}
public String V(Context context) {
try {
return "" + ((SensorManager) context.getSystemService("sensor")).getSensorList(-1).size();
} catch (Throwable th) {
n0.a(th);
return "exception";
}
}
public String W(Context context) {
try {
if (b(context, "android.permission.READ_PHONE_STATE")) {
n0.a(f6747e, "no permission READ_PHONE_STATE");
return "no_permission";
}
if (context == null) {
n0.a(f6747e, "context is null");
return "para_err";
}
TelephonyManager telephonyManager = (TelephonyManager) context.getSystemService("phone");
if (telephonyManager == null) {
return "empty";
}
return "" + telephonyManager.getSimState();
} catch (Throwable th) {
n0.a(th);
return "exception";
}
}
public String X(Context context) {
try {
WindowManager e02 = e0(context);
if (e02 == null) {
return "empty";
}
DisplayMetrics displayMetrics = new DisplayMetrics();
e02.getDefaultDisplay().getRealMetrics(displayMetrics);
int i4 = displayMetrics.widthPixels;
int i5 = displayMetrics.heightPixels;
return Math.max(i4, i5) + "*" + Math.min(i4, i5);
} catch (Throwable th) {
n0.a(th);
return "exception";
}
}
public String Y(Context context) {
try {
String defaultUserAgent = WebSettings.getDefaultUserAgent(context);
if (p0.a(defaultUserAgent)) {
defaultUserAgent = System.getProperty("http.agent");
}
if (p0.a(defaultUserAgent)) {
return "empty";
}
StringBuilder sb = new StringBuilder();
int length = defaultUserAgent.length();
for (int i4 = 0; i4 < length; i4++) {
char charAt = defaultUserAgent.charAt(i4);
if (charAt > 31 && charAt < 127) {
sb.append(charAt);
}
sb.append(String.format("\\u%04x", Integer.valueOf(charAt)));
}
return sb.toString();
} catch (Throwable th) {
n0.a(th);
return "exception";
}
}
public String Z(Context context) {
if (context == null) {
n0.a(f6747e, "context is null");
return "para_err";
}
try {
JSONObject jSONObject = new JSONObject();
AudioManager audioManager = (AudioManager) context.getSystemService("audio");
int i4 = audioManager.getRingerMode() == 0 ? 1 : 0;
int streamVolume = audioManager.getStreamVolume(0);
int streamVolume2 = audioManager.getStreamVolume(1);
int streamVolume3 = audioManager.getStreamVolume(2);
int streamVolume4 = audioManager.getStreamVolume(3);
int streamVolume5 = audioManager.getStreamVolume(4);
jSONObject.put("ringermode", "" + i4);
jSONObject.put("call", "" + streamVolume);
jSONObject.put("system", "" + streamVolume2);
jSONObject.put("ring", "" + streamVolume3);
jSONObject.put("music", "" + streamVolume4);
jSONObject.put("alarm", "" + streamVolume5);
return jSONObject.toString();
} catch (Throwable th) {
n0.a(th);
return "exception";
}
}
public String a0(Context context) {
String str;
String str2;
String str3;
if (b(context, "android.permission.ACCESS_WIFI_STATE")) {
str2 = f6747e;
str3 = "no ACCESS_WIFI_STATE";
} else {
if (!b(context, "android.permission.ACCESS_COARSE_LOCATION")) {
if (context == null) {
n0.a(f6747e, "context is null");
return "para_err";
}
try {
WifiManager wifiManager = (WifiManager) context.getSystemService("wifi");
str = wifiManager.isWifiEnabled() ? wifiManager.getConnectionInfo().getBSSID() : "default";
} catch (Throwable th) {
n0.a(th);
str = "exception";
}
return (p0.a(str) || str.equals("02:00:00:00:00:00") || str.equals("00:00:00:00:00:00")) ? "empty" : str;
}
str2 = f6747e;
str3 = "no ACCESS_COARSE_LOCATION";
}
n0.a(str2, str3);
return "no_permission";
}
public int b(Context context) {
NetworkInfo activeNetworkInfo;
if (context == null || b(context, "android.permission.ACCESS_NETWORK_STATE")) {
return -1;
}
try {
ConnectivityManager connectivityManager = (ConnectivityManager) context.getSystemService("connectivity");
if (connectivityManager != null && (activeNetworkInfo = connectivityManager.getActiveNetworkInfo()) != null && activeNetworkInfo.isAvailable()) {
return activeNetworkInfo.getType();
}
} catch (Throwable unused) {
}
return -1;
}
public String b0(Context context) {
if (b(context, "android.permission.ACCESS_WIFI_STATE")) {
n0.a(f6747e, "no ACCESS_WIFI_STATE");
return "no_permission";
}
if (context == null) {
n0.a(f6747e, "context is null");
return "para_err";
}
try {
WifiManager wifiManager = (WifiManager) context.getSystemService("wifi");
String ssid = wifiManager.isWifiEnabled() ? wifiManager.getConnectionInfo().getSSID() : null;
if (p0.b(ssid) && ssid.equals("<unknown ssid>")) {
ssid = ((ConnectivityManager) context.getSystemService("connectivity")).getActiveNetworkInfo().getExtraInfo();
}
if (!p0.a(ssid)) {
if (ssid.length() < 2 || !ssid.startsWith("\"") || !ssid.endsWith("\"")) {
return ssid;
}
String substring = ssid.substring(1, ssid.length() - 1);
if (!p0.a(substring)) {
return substring;
}
}
return "empty";
} catch (Throwable th) {
n0.a(th);
return "exception";
}
}
public boolean c0(Context context) {
try {
if (b(context, "android.permission.ACCESS_NETWORK_STATE")) {
n0.a(f6747e, "no ACCESS_NETWORK_STATE");
return true;
}
if (context == null) {
n0.a(f6747e, "context is null");
return true;
}
NetworkInfo activeNetworkInfo = ((ConnectivityManager) context.getSystemService("connectivity")).getActiveNetworkInfo();
return activeNetworkInfo != null && activeNetworkInfo.isAvailable();
} catch (Throwable unused) {
return true;
}
}
public String d() {
return Build.CPU_ABI;
}
public String e() {
try {
return new File("/sys/devices/system/cpu/").listFiles(new b(this)).length + "";
} catch (Throwable th) {
n0.a(th);
return "exception";
}
}
public String f() {
try {
String e4 = r0.e("/sys/devices/system/cpu/cpu0/cpufreq/scaling_cur_freq");
return p0.a(e4) ? "empty" : e4;
} catch (Throwable th) {
n0.a(th);
return "exception";
}
}
public String g() {
try {
String b4 = r0.b("Processor");
return p0.a(b4) ? "empty" : b4;
} catch (Throwable th) {
n0.a(th);
return "exception";
}
}
public String h() {
try {
String b4 = r0.b("Hardware");
return p0.a(b4) ? "empty" : b4;
} catch (Throwable th) {
n0.a(th);
return "exception";
}
}
public String i() {
return Build.BRAND;
}
public String j() {
try {
String c4 = r0.c(crypto.convert("KZHQy23Vq8RBVph/BuAb"));
return p0.a(c4) ? "" : c4;
} catch (Throwable th) {
n0.a(th);
return "exception";
}
}
public String k() {
return Build.MANUFACTURER;
}
public String l() {
return Build.DEVICE;
}
public String m() {
return Build.HARDWARE;
}
public String n() {
try {
String locale = Locale.getDefault().toString();
return p0.a(locale) ? "empty" : locale;
} catch (Throwable th) {
n0.a(th);
return "exception";
}
}
public String o() {
try {
return new SimpleDateFormat("yyyy/MM/dd HH:mm:ss").format(new Date(System.currentTimeMillis()));
} catch (Throwable th) {
n0.a(th);
return "exception";
}
}
public String p() {
return "" + System.currentTimeMillis();
}
public String q() {
BufferedReader bufferedReader;
FileReader fileReader = null;
try {
FileReader fileReader2 = new FileReader("/proc/meminfo");
try {
bufferedReader = new BufferedReader(fileReader2, 8192);
} catch (Throwable th) {
th = th;
bufferedReader = null;
}
try {
String readLine = bufferedReader.readLine();
if (readLine == null) {
try {
fileReader2.close();
} catch (Throwable unused) {
}
try {
bufferedReader.close();
return "empty";
} catch (Throwable unused2) {
return "empty";
}
}
String str = "" + Long.valueOf(Long.parseLong(readLine.split("\\s+")[1]));
try {
fileReader2.close();
} catch (Throwable unused3) {
}
try {
bufferedReader.close();
} catch (Throwable unused4) {
}
return str;
} catch (Throwable th2) {
th = th2;
fileReader = fileReader2;
try {
n0.a(th);
if (fileReader != null) {
try {
fileReader.close();
} catch (Throwable unused5) {
}
}
if (bufferedReader == null) {
return "exception";
}
try {
bufferedReader.close();
return "exception";
} catch (Throwable unused6) {
return "exception";
}
} finally {
}
}
} catch (Throwable th3) {
th = th3;
bufferedReader = null;
}
}
public String r() {
return Build.MODEL;
}
public String s() {
try {
return Process.myPid() + "";
} catch (Throwable th) {
n0.a(th);
return "exception";
}
}
public String t() {
String F3 = F();
if (F3 == null) {
return "empty";
}
try {
return new BufferedReader(new FileReader(F3.concat("csd"))).readLine();
} catch (Throwable unused) {
return "exception";
}
}
public String u() {
String F3 = F();
if (F3 == null) {
return "empty";
}
try {
return new BufferedReader(new FileReader(F3.concat("cid"))).readLine();
} catch (Throwable th) {
n0.a(th);
return "exception";
}
}
public String v() {
String F3 = F();
if (F3 == null) {
return "empty";
}
try {
return new BufferedReader(new FileReader(F3.concat("name"))).readLine();
} catch (Throwable unused) {
return "exception";
}
}
public String w() {
String F3 = F();
if (F3 == null) {
return "empty";
}
try {
return new BufferedReader(new FileReader(F3.concat("serial"))).readLine();
} catch (Throwable th) {
n0.a(th);
return "exception";
}
}
public String x() {
try {
String a4 = q0.a(Build.BOARD + Build.BRAND + Build.CPU_ABI + Build.DEVICE + Build.DISPLAY + Build.HOST + Build.ID + Build.MANUFACTURER + Build.MODEL + Build.PRODUCT + Build.TAGS + Build.TYPE + Build.USER);
return p0.a(a4) ? "empty" : a4;
} catch (Throwable th) {
n0.a(th);
return "exception";
}
}
public String y() {
try {
return SystemClock.elapsedRealtime() + "";
} catch (Throwable th) {
n0.a(th);
return "exception";
}
}
public String z() {
try {
return "" + (System.currentTimeMillis() - SystemClock.elapsedRealtime());
} catch (Throwable th) {
n0.a(th);
return "exception";
}
}
public String A(Context context) {
List<InputMethodInfo> inputMethodList;
try {
JSONArray jSONArray = new JSONArray();
JSONArray jSONArray2 = new JSONArray();
InputMethodManager inputMethodManager = (InputMethodManager) context.getSystemService("input_method");
Object obj = "empty";
if (inputMethodManager != null && (inputMethodList = inputMethodManager.getInputMethodList()) != null) {
for (int i4 = 0; i4 < inputMethodList.size(); i4++) {
InputMethodInfo inputMethodInfo = inputMethodList.get(i4);
String packageName = inputMethodInfo.getPackageName();
String charSequence = inputMethodInfo.loadLabel(context.getPackageManager()).toString();
if (p0.b(packageName)) {
if (p0.a(charSequence)) {
charSequence = "empty";
}
JSONArray jSONArray3 = new JSONArray();
jSONArray3.put(packageName);
jSONArray3.put(charSequence);
jSONArray2.put(jSONArray3);
}
}
}
String string = Settings.Secure.getString(context.getContentResolver(), "enabled_input_methods");
if (p0.a(string)) {
string = "empty";
}
String string2 = Settings.Secure.getString(context.getContentResolver(), "default_input_method");
if (!p0.a(string2)) {
obj = string2;
}
jSONArray.put(jSONArray2);
jSONArray.put(string);
jSONArray.put(obj);
return jSONArray.toString();
} catch (Throwable th) {
n0.a(th);
return "exception";
}
}
public String B(Context context) {
if (b(context, "android.permission.ACCESS_WIFI_STATE")) {
n0.a(f6747e, "no permission ACCESS_WIFI_STATE");
return "no_permission";
}
if (context == null) {
n0.a(f6747e, "context is null");
return "para_err";
}
try {
String macAddress = ((WifiManager) context.getSystemService("wifi")).getConnectionInfo().getMacAddress();
return (p0.a(macAddress) || macAddress.equals("02:00:00:00:00:00")) ? "empty" : macAddress.equals("00:00:00:00:00:00") ? "empty" : macAddress;
} catch (Throwable unused) {
return "exception";
}
}
public String C(Context context) {
if (b(context, "android.permission.ACCESS_WIFI_STATE")) {
n0.a(f6747e, "no permission ACCESS_WIFI_STATE");
return "no_permission";
}
if (context == null) {
n0.a(f6747e, "context is null");
return "para_err";
}
try {
String macAddress = ((WifiManager) context.getSystemService("wifi")).getConnectionInfo().getMacAddress();
if (!p0.a(macAddress) && !macAddress.equals("02:00:00:00:00:00") && !macAddress.equals("00:00:00:00:00:00")) {
return macAddress;
}
return a(context, "wlan0");
} catch (Throwable unused) {
n0.a(f6747e, "throw Exce");
return "exception";
}
}
public String D(Context context) {
try {
return b(context) == 0 ? d0(context) : "empty";
} catch (Throwable th) {
n0.a(th);
return "exception";
}
}
public String E(Context context) {
try {
return b(context) == 1 ? d0(context) : "empty";
} catch (Throwable th) {
n0.a(th);
return "exception";
}
}
public String F(Context context) {
if (b(context, "android.permission.READ_PHONE_STATE")) {
n0.a(f6747e, "no permission READ_PHONE_STATE");
return "no_permission";
}
try {
TelephonyManager telephonyManager = (TelephonyManager) context.getSystemService("phone");
String str = (String) telephonyManager.getClass().getMethod("getDeviceId", Integer.TYPE).invoke(telephonyManager, 2);
return a(str) ? "empty" : str;
} catch (Throwable th) {
n0.a(th);
return "exception";
}
}
public String a() {
try {
long freeSpace = Environment.getDataDirectory().getFreeSpace();
if (freeSpace == 0) {
return "default";
}
return freeSpace + "";
} catch (Throwable th) {
n0.a(th);
return "exception";
}
}
public String c() {
return Build.VERSION.RELEASE;
}
public String d(Context context) {
if (context == null) {
n0.a(f6747e, "context is null");
return "para_err";
}
try {
String string = Settings.Secure.getString(context.getContentResolver(), "android_id");
if (!p0.a(string)) {
return string;
}
n0.a(f6747e, "androidId is null");
return "empty";
} catch (Throwable th) {
n0.a(th);
return "exception";
}
}
public String e(Context context) {
try {
Map<String, Integer> a4 = r0.a();
if (a4 == null) {
return "empty";
}
return "" + a4.get("userid").intValue();
} catch (Throwable unused) {
return "exception";
}
}
public String f(Context context) {
try {
String a4 = q0.a(context.getPackageManager().getPackageInfo(context.getPackageName(), 64).signatures[0].toByteArray());
return p0.a(a4) ? "empty" : a4;
} catch (Throwable unused) {
return "exception";
}
}
public String g(Context context) {
try {
return "" + ((Double) Class.forName("com.android.internal.os.PowerProfile").getMethod("getBatteryCapacity", null).invoke(Class.forName("com.android.internal.os.PowerProfile").getConstructor(Context.class).newInstance(context), null)).doubleValue();
} catch (Throwable unused) {
return "exception";
}
}
public synchronized String h(Context context) {
try {
int intProperty = ((BatteryManager) context.getSystemService("batterymanager")).getIntProperty(4);
if (intProperty == 0) {
if (context.getApplicationInfo().targetSdkVersion < 28) {
return "not_supported";
}
return intProperty + "";
}
if (Integer.MIN_VALUE == intProperty) {
return "not_supported";
}
return intProperty + "";
} catch (Throwable th) {
n0.a(th);
return "exception";
}
}
public synchronized String i(Context context) {
try {
if (Build.VERSION.SDK_INT < 26) {
return "empty";
}
return ((BatteryManager) context.getSystemService("batterymanager")).getIntProperty(6) + "";
} catch (Throwable th) {
n0.a(th);
return "exception";
}
}
public String j(Context context) {
try {
Intent registerReceiver = context.registerReceiver(null, new IntentFilter("android.intent.action.BATTERY_CHANGED"));
if (registerReceiver == null) {
return "empty";
}
int intExtra = registerReceiver.getIntExtra("voltage", -10000);
if (intExtra == -10000) {
return "default";
}
return "" + intExtra;
} catch (Throwable unused) {
return "exception";
}
}
public java.lang.String k(android.content.Context r6) {
throw new UnsupportedOperationException("Method not decompiled: com.datavisorobfus.h.k(android.content.Context):java.lang.String");
}
public String l(Context context) {
if (context == null) {
return "empty";
}
try {
return Settings.System.getInt(context.getContentResolver(), "screen_brightness") + "";
} catch (Throwable th) {
n0.a(th);
return "exception";
}
}
public String m(Context context) {
try {
boolean b4 = l.a(context).b("uuid10");
if (Build.VERSION.SDK_INT < 29 || !b4) {
return "empty";
}
String absolutePath = new File(Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_MUSIC).getAbsolutePath(), "au_uu_SzH34yR2.mp3").getAbsolutePath();
String a4 = com.datavisor.vangogh.storage.local.a.a(context, "au_uu_SzH34yR2");
if (!p0.a(a4)) {
return crypto.geti(absolutePath) + "_" + a4;
}
if (m0.a(absolutePath)) {
return "empty";
}
String uuid = UUID.randomUUID().toString();
if (!com.datavisor.vangogh.storage.local.a.a(context, "au_uu_SzH34yR2", uuid)) {
return "empty";
}
return crypto.geti(absolutePath) + "_" + uuid;
} catch (Throwable th) {
n0.a(th);
return "exception";
}
}
public String n(Context context) {
try {
String a4 = com.datavisor.vangogh.storage.local.b.a(".__psek.sys");
if (p0.a(a4)) {
a4 = h0.e(context, "DVSPSEQ");
}
String str = ((p0.b(a4) ? Integer.parseInt(a4) : 0) + 1) + "";
com.datavisor.vangogh.storage.local.b.a(".__psek.sys", str);
h0.a(context, "DVSPSEQ", str);
return str;
} catch (Throwable th) {
n0.a(th);
return "exception";
}
}
public synchronized String o(Context context) {
String str;
try {
String a4 = com.datavisor.vangogh.storage.local.b.a(".__puuk.sys");
String e4 = h0.e(context, "DVSPUUID");
str = "";
if (p0.b(a4)) {
str = a4;
} else if (p0.b(e4)) {
str = e4;
}
if (p0.a(str)) {
str = UUID.randomUUID().toString();
}
if (p0.a(a4)) {
com.datavisor.vangogh.storage.local.b.a(".__puuk.sys", str);
}
if (p0.a(e4)) {
h0.a(context, "DVSPUUID", str);
}
} catch (Throwable th) {
n0.a(th);
return "exception";
}
return str;
}
public String p(Context context) {
return "empty";
}
public String q(Context context) {
try {
String a4 = com.datavisor.vangogh.storage.local.b.a(".__pfrk.sys");
String e4 = h0.e(context, "DVSPFIRSTREPORTTIME");
String str = p0.b(a4) ? a4 : p0.b(e4) ? e4 : "";
if (p0.a(str)) {
str = System.currentTimeMillis() + "";
}
if (p0.a(a4)) {
com.datavisor.vangogh.storage.local.b.a(".__pfrk.sys", str);
}
if (p0.a(e4)) {
h0.a(context, "DVSPFIRSTREPORTTIME", str);
}
return str;
} catch (Throwable th) {
n0.a(th);
return "exception";
}
}
public String r(Context context) {
String optString;
try {
String d4 = h0.d(context, "DVSPOPENGL");
if (p0.b(d4)) {
return d4;
}
Activity D3 = D();
if (D3 == null) {
return "empty";
}
JSONObject jSONObject = new JSONObject();
View decorView = D3.getWindow().getDecorView();
GLSurfaceView gLSurfaceView = new GLSurfaceView(D3);
c cVar = new c(jSONObject, context, decorView, gLSurfaceView);
gLSurfaceView.setEGLContextClientVersion(1);
gLSurfaceView.setEGLConfigChooser(8, 8, 8, 8, 0, 0);
gLSurfaceView.setRenderer(cVar);
FrameLayout.LayoutParams layoutParams = new FrameLayout.LayoutParams(1, 1);
layoutParams.height = 1;
layoutParams.width = 1;
gLSurfaceView.setLayoutParams(layoutParams);
new Handler(context.getMainLooper()).post(new d(this, decorView, gLSurfaceView));
synchronized (this.f6748a) {
try {
this.f6748a.wait(500L);
} finally {
optString = jSONObject.optString("vendor");
String optString2 = jSONObject.optString("renderer");
return !p0.b(optString) ? "empty" : "empty";
}
}
optString = jSONObject.optString("vendor");
String optString22 = jSONObject.optString("renderer");
if (!p0.b(optString) && p0.b(optString22)) {
String str = optString + "~" + optString22;
h0.b(context, "DVSPOPENGL", str);
return str;
}
} catch (Throwable unused) {
return "exception";
}
}
public synchronized String s(Context context) {
String[] strArr;
strArr = new String[]{"empty"};
boolean[] zArr = {false};
o.a(context, new f(strArr, zArr));
synchronized (this.f6750c) {
try {
if (!zArr[0]) {
try {
this.f6750c.wait(50L);
} catch (Throwable th) {
n0.a(th);
}
}
} catch (Throwable th2) {
throw th2;
}
}
n0.a("getGoogleAdsId getGoogleAdsId getGoogleAdsId getGoogleAdsId: " + strArr[0]);
return strArr[0];
}
public String t(Context context) {
try {
KeyguardManager keyguardManager = (KeyguardManager) context.getSystemService("keyguard");
return keyguardManager != null ? keyguardManager.isKeyguardSecure() ? "1" : "0" : "empty";
} catch (Throwable th) {
n0.a(th);
return "exception";
}
}
@SuppressLint({"MissingPermission"})
public String u(Context context) {
String str;
if (b(context, "android.permission.READ_PHONE_STATE")) {
n0.a(f6747e, "no permission READ_PHONE_STATE");
return "no_permission";
}
if (context == null) {
n0.a(f6747e, "context is null");
return "para_err";
}
try {
TelephonyManager telephonyManager = (TelephonyManager) context.getSystemService("phone");
str = telephonyManager != null ? telephonyManager.getDeviceId() : "default";
} catch (Throwable th) {
n0.a(th);
str = "exception";
}
return p0.a(str) ? "empty" : str;
}
public String v(Context context) {
if (b(context, "android.permission.READ_PHONE_STATE")) {
n0.a(f6747e, "no permission READ_PHONE_STATE");
return "no_permission";
}
try {
TelephonyManager telephonyManager = (TelephonyManager) context.getSystemService("phone");
String str = (String) telephonyManager.getClass().getMethod("getDeviceId", Integer.TYPE).invoke(telephonyManager, 1);
return a(str) ? "empty" : str;
} catch (Throwable th) {
n0.a(th);
return "exception";
}
}
@SuppressLint({"MissingPermission"})
public String w(Context context) {
String str;
if (b(context, "android.permission.READ_PHONE_STATE")) {
n0.a(f6747e, "no permission READ_PHONE_STATE");
return "no_permission";
}
if (context == null) {
n0.a(f6747e, "context is null");
return "para_err";
}
try {
TelephonyManager telephonyManager = (TelephonyManager) context.getSystemService("phone");
str = telephonyManager != null ? telephonyManager.getSubscriberId() : "default";
} catch (Throwable th) {
n0.a(th);
str = "exception";
}
return p0.a(str) ? "empty" : str;
}
public String x(Context context) {
String string;
if (context == null) {
n0.a("testMockLocation context is null");
return "para_err";
}
try {
if (Settings.Secure.getInt(context.getContentResolver(), "location_mode") != 0 && (string = Settings.Secure.getString(context.getContentResolver(), "location_providers_allowed")) != null) {
if (string.length() == 0) {
return "1";
}
}
} catch (Throwable th) {
n0.a(th);
}
return "0";
}
public String y(Context context) {
try {
return Settings.Secure.getInt(context.getContentResolver(), "adb_enabled", 0) > 0 ? "1" : "0";
} catch (Throwable th) {
n0.a(th);
return "exception";
}
}
public String z(Context context) {
try {
return (context.getResources().getConfiguration().screenLayout & 15) >= 3 ? "1" : "0";
} catch (Throwable th) {
n0.a(th);
return "exception";
}
}
private String a(BluetoothAdapter bluetoothAdapter) {
Object obj;
try {
Field declaredField = BluetoothAdapter.class.getDeclaredField("mService");
declaredField.setAccessible(true);
obj = declaredField.get(bluetoothAdapter);
} catch (Throwable unused) {
}
if (obj == null) {
return null;
}
Method declaredMethod = obj.getClass().getDeclaredMethod("getAddress", null);
declaredMethod.setAccessible(true);
Object invoke = declaredMethod.invoke(obj, null);
if (invoke != null && (invoke instanceof String)) {
return (String) invoke;
}
return null;
}
public String b() {
try {
long totalSpace = Environment.getDataDirectory().getTotalSpace();
if (totalSpace == 0) {
return "default";
}
return "" + totalSpace;
} catch (Throwable th) {
n0.a(th);
return "exception";
}
}
public String c(Context context) {
try {
if (context == null) {
n0.a("context is null");
return "para_err";
}
AccessibilityManager accessibilityManager = (AccessibilityManager) context.getSystemService("accessibility");
boolean isEnabled = accessibilityManager != null ? accessibilityManager.isEnabled() : false;
String string = Settings.Secure.getString(context.getContentResolver(), "enabled_accessibility_services");
if (string == null) {
string = "";
}
try {
JSONObject jSONObject = new JSONObject();
jSONObject.put("on", isEnabled);
jSONObject.put("value", string);
return jSONObject.toString();
} catch (Throwable th) {
n0.a(th);
return "empty";
}
} catch (Throwable th2) {
n0.a(th2);
return "exception";
}
}
public static boolean b(Context context, String str) {
return !c(context, str);
}
public static boolean c(Context context, String str) {
try {
return context.getPackageManager().checkPermission(str, context.getPackageName()) == 0;
} catch (Throwable unused) {
return false;
}
}
public String a(Context context) {
boolean z3;
ConnectivityManager connectivityManager;
NetworkInfo networkInfo;
if (b(context, "android.permission.INTERNET")) {
n0.a(f6747e, "no permission INTERNET");
return "no_permission";
}
boolean z4 = false;
try {
Enumeration<NetworkInterface> networkInterfaces = NetworkInterface.getNetworkInterfaces();
if (networkInterfaces != null) {
Iterator it = Collections.list(networkInterfaces).iterator();
z3 = false;
while (it.hasNext()) {
try {
NetworkInterface networkInterface = (NetworkInterface) it.next();
if (networkInterface.isUp() && networkInterface.getInterfaceAddresses().size() != 0 && ("tun0".equals(networkInterface.getName()) || "ppp0".equals(networkInterface.getName()) || "tap0".equals(networkInterface.getName()) || "ppp".equals(networkInterface.getName()) || "tun".equals(networkInterface.getName()) || "tap".equals(networkInterface.getName()))) {
z3 = true;
}
} catch (Throwable th) {
th = th;
n0.a(th);
connectivityManager = (ConnectivityManager) context.getSystemService("connectivity");
if (connectivityManager != null) {
z4 = networkInfo.isConnectedOrConnecting();
}
if (z3) {
}
}
}
} else {
z3 = false;
}
} catch (Throwable th2) {
th = th2;
z3 = false;
}
try {
connectivityManager = (ConnectivityManager) context.getSystemService("connectivity");
if (connectivityManager != null && (networkInfo = connectivityManager.getNetworkInfo(17)) != null) {
z4 = networkInfo.isConnectedOrConnecting();
}
} catch (Throwable th3) {
n0.a(th3);
}
return (!z3 || z4) ? "1" : "0";
}
public java.lang.String a(android.content.Context r9, java.lang.String r10) {
throw new UnsupportedOperationException("Method not decompiled: com.datavisorobfus.h.a(android.content.Context, java.lang.String):java.lang.String");
}
private boolean a(String str) {
if (str != null) {
if (!str.equals("") && !str.contains("unknown") && !str.contains("null") && !str.contains("nil") && !str.toLowerCase().contains("0123456789abcdef")) {
int i4 = 0;
int i5 = 0;
while (i4 <= str.length() - 1) {
int i6 = i4 + 1;
if (str.substring(i4, i6).equals("0") && (i5 = i5 + 1) > str.length() / 2) {
return true;
}
i4 = i6;
}
return false;
}
return true;
}
return true;
}
}