正在查看: OVO v3.139.0 应用的 ProcessHttpRequestIntentService.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: OVO v3.139.0 应用的 ProcessHttpRequestIntentService.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package com.vkey.android.internal.vguard.cache;
import android.content.Context;
import android.content.Intent;
import android.util.Log;
import androidx.core.app.JobIntentService;
import androidx.core.app.VKJobIntentService;
import com.vkey.android.bc;
import com.vkey.android.g;
import com.vkey.android.h;
import com.vkey.android.i;
import com.vkey.android.internal.vguard.secure.preference.SecurePreferences;
import com.vkey.android.internal.vguard.webservice.VTrackWebService;
import com.vkey.android.l;
import com.vkey.android.vguard.VGException;
import java.io.IOException;
import o.i.pb2;
public class ProcessHttpRequestIntentService extends VKJobIntentService {
private SecurePreferences b;
private volatile int c;
private static final byte[] f662d = {37, -35, 91, -115, -35, 2, 11, -3, -15, -1, 42, -45, -1, 3, 29, -20, -13, -5, 15, -15, -2, 42, -38, -7, 14, -10, -7, 32, -19, -14, -5, 12, 5, -3, 12, -13, -5, 15, -15, -2, 83, -78, 43, -52, -1, 14, -9, -4, -5, 48, -45, -7, 6, -7, 57, 25, -32, -5, -2, 83, -83, 12, -12, 0, -4, -3, 83, -66, -3, -18, 10, -14, 20, -20, 10, -7, 0, 77, -53, -21, -11, 12, 3, -20, 83, -74, -6, 77, -67, 0, -3, -9, -8, 2, -7, 6, 9, 67, -70, -14, -1, 2, -4, 55, 25, -31, -14, 77, -79, -2, -6, 83, -71, 0, -16, 16, -6, 71, -69, 2, -20, 18, 64, -24, -16, -4, 7, -4, 6, 74, -86, 6, 12, -22, 20, -9, -4, 10, -2, -11, 6, 68, -80, -4, 81, -55, 40, -35, -5, 50, -73, 6, -19, 82, -84, -2, 4, -2, -1, 10, 0, 55, 11, -81, 0, -5, -2, 3, 0, 0, 8, 68, -81, -3, 2, 11, -3, -15, -1, 9, -6, 6, 70, -83, 12, -13, -5, 15, -15, -2, 0, 68, -1, -1, -24, -16, -4, 7, -4, 6, 13, -14, -5, 12, 5, -3, 68, -74, -11, 82, -83, -4, 6, -1, 4, -6, 6, 58, 11, -84, 7, 1, -8, 79, -74, -12, 69, -1, -1, 12, -13, -5, 15, -15, -2, 83, -42, 4, 9, -26, -6, -3, 17, -1, -3, -15, -1, 12, -16, 8, 75, -66, -20, -1, 14, -9, -4, -5, 0, 82, -83, 12, 3, -3, -6, 2, 0, 67, -78, 11, -24, 87, -66, -12, -1, -4, -9, 17, 0, 53, -1, -35, 2, 11, -3, -15, -1, 42, -45, -1, 3, 29, -20, -13, -5, 15, -15, -2, 42, -38, -7, 14, -10, -7, 32, -19, -14, -5, 12, 5, -3, -11, 0, 37, -26, -14, 9, -9, 6, 13, -25, -4, 6, 74, -81, 14, -18, -1, 12, -10, -7, 83, -71, 4, -9, -4, 6, 0, 67, -88, 13, -12, 11, 71, -70, -20, 20, -3, -12, -5, 10, -7, 0, 51, 13, -14, -5, 12, 5, -3, 68, -74, -11, 82, -79, -2, -6, 83, -83, -4, 6, -1, 4, -6, 6, 58, 11, -66, -4, -1, 67, -85, 4, 78, -82, -5, 15, -17, 15, 54, -1, -1, 0, -16, 16, -6, 71, -79, 8, -19, 86, -75, -6, 12, 65, -42, 4, 9, 25, -3, -18, 10, -14, 20, -20, 10, -7, 0, 12, -14, 9, -17, 11, -11, 12, 3, -20, 0, 51, -33, -22, -6, 8, 10, 39, -46, -10, 3, 0, -78, 43, -52, -1, 14, -9, -4, -5, 48, -45, -7, 6, -7, 57, -32, -5, -2, 83, -34, -48, -1, 3, 2, 5, 1, -20, 10, -7, 0, -7, 83, -74, -6, 77, -67, 0, -3, -9, -8, 2, -7, 6, 9, 67, -70, -14, -1, 2, -4, 55, 25, -24, -16, -4, 7, -4, 6, 74, -66, -22, 20, -9, -4, 10, -2, -11, 6, 56, 11, -81, -3, 2, 11, -3, -15, -1, 9, -6, 6, 70, -83, 12, -13, -5, 15, -15, -2, 0, 68, -1, -1, -2, 18, -3, -9, -10, 1, 16, -3, -3, 1, -1, -4, -4, -20, -15, 13, -16, -1, 10, -6, 6, 70, -71, 4, -9, -4, 6, 0, 67, -66, -20, -1, 14, -9, -4, -5, 0, 82, -68, -13, -7, 6, -7, 14, -14, 67, -1, -32, -5, -2, 83, -84, -2, 18, -3, -9, 61, -72, 1, 16, -3, -3, 68, -74, -6, 77, -67, 0, -3, -9, 3, -12, 2, -7, 6, 9, 67, -70, -14, -1, 2, -4, 55, 25, 13, -16, 38, -21, -24, 14, -5, -9, 7, 30, -24, -16, -4, 7, -4, 6, 24, -20, -16, 1, -8, 36, -22, -5, 7, 68, -71, -10, -4, 81, -49, -35, 2, 11, -3, -15, -1, 42, -45, -1, 3, 29, -20, -13, -5, 15, -15, -2, 42, -38, -7, 14, -10, -7, 32, -19, -14, -5, 12, 5, -3, 42, 25, 12, -13, -5, 15, -15, -2, 83, -67, -14, 10, -22, 88, -74, -11, 82, -70, -9, -4, -5, -6, 76, 11, -69, -2, -8, 6, -16, 14, 0, 67, -74, -12, 69, -38, -11, 17, -2, -11, 6, 0, 67, -85, 10, -5, 7, 68, -81, 10, -14, 8, -7, 10, 67, -73, 6, -19, 82, -70, -20, 7, 6, -10, 12, 0, 53, -1, 12, -13, -5, 15, -15, -2, 83, -37, 1, 33, -74, -11, 82, -70, -9, -4, -5, -6, 76, 11, -82, -5, 11, -12, 10, -6, 6, 56, -1, 13, 5, -21, 25, -6, -6, -11, 19, -20, 12, -13, 17, -22, 10, -5, 7, -38, -11, 17, -2, -11, 6, 0, 67, -85, 10, -5, 7, 68, -81, 10, -14, 8, -7, 10, 67, -84, -2, 10, -4, -1, 75, -74, -6, 77, -81, -3, 2, 11, -3, -15, -1, 68, -1, 0, 37, -26, -14, 9, -9, 6, 27, -38, -7, 14, -10, -7, -26, -6, -3, 17, -1, -3, -15, -1, 12, -16, 8, 75, -66, -20, -1, 14, -9, -4, -5, 0, 82, -73, 6, -19, 82, -83, 12, 3, -3, -6, 2, 0, 67, -78, 11, -24, 87, -66, -12, -1, -4, -9, 17, 0, 53, 13, -70, -20, 14, -12, 10, -6, 6, 56, -1, -16, -1, 3, 2, 5, 1, -20, 10, -7, 0, 46, -33, -22, -6, 8, 10, 39, -46, -10, 3, 0, 12, -13, -5, 15, -15, -2, 83, -78, 43, -52, -1, 14, -9, -4, -5, 48, -45, -7, 6, -7, 83, -83, 12, 3, -3, -6, 71, -78, 11, -24, 87, 11, -20, -9, -3, -8, 12, -6, 6, 70, -83, 12, -13, -5, 15, -15, -2, 0, 82, -75, -6, 12, 65, -85, 11, 6, -20, 83, -69, -12, 9, -15, 4, 70, -78, 83, -78, 11, -20, 16, -6, 59, 11, -80, -4, 81, -74, -11, 82, -70, -9, -4, -5, -6};
private static int f663e = 37;
public static volatile boolean shouldContinue = true;
public static volatile boolean isRunning = false;
private static int a = 2;
private static String a(int i, int i2, int i3) {
int i4 = 947 - i2;
int i5 = i3 + 2;
byte[] bArr = f662d;
int i6 = 115 - i;
byte[] bArr2 = new byte[i5];
int i7 = i5 - 1;
int i8 = -1;
while (true) {
i8++;
bArr2[i8] = (byte) i6;
if (i8 == i7) {
return new String(bArr2, 0).intern();
}
i6 = (i6 - bArr[i4]) - 1;
i4++;
}
}
private void b(VTrackWebService vTrackWebService, HttpRequest httpRequest, DatabaseHandler databaseHandler) throws IOException, VGException {
try {
vTrackWebService.postApplicationSynchronous(httpRequest.a, new h(this, databaseHandler, httpRequest), getApplicationContext());
} catch (VGException | IOException e4) {
String str = bc.f595d;
StringBuilder sb = new StringBuilder();
byte[] bArr = f662d;
String e5 = pb2.e(sb, a(-bArr[1], 494, bArr[635]), e4);
DatabaseHandler databaseHandler2 = bc.c;
if (databaseHandler2 != null && str != null && e5 != null) {
databaseHandler2.a(str, e5, false);
}
String a2 = a(f663e, 753, bArr[32]);
int i = -bArr[1];
l.b(a2, a(i, i | 908, bArr[14]), pb2.e(new StringBuilder(), a(-bArr[1], 494, bArr[635]), e4), false);
throw e4;
}
}
private void c(VTrackWebService vTrackWebService, HttpRequest httpRequest, DatabaseHandler databaseHandler) throws IOException, VGException {
try {
vTrackWebService.postStacktraceSynchronous(httpRequest.a, new i(this, databaseHandler, httpRequest), getApplicationContext());
} catch (VGException e4) {
String str = bc.f595d;
StringBuilder sb = new StringBuilder();
byte[] bArr = f662d;
sb.append(a(-bArr[1], 370, bArr[635]));
sb.append(e4.getMessage());
String sb2 = sb.toString();
DatabaseHandler databaseHandler2 = bc.c;
if (databaseHandler2 != null && str != null && sb2 != null) {
databaseHandler2.a(str, sb2, false);
}
String a2 = a(f663e, 753, bArr[32]);
int i = -bArr[1];
l.b(a2, a(i, i | 908, bArr[14]), a(-bArr[1], 370, bArr[635]) + e4.getMessage(), false);
throw e4;
}
}
public static synchronized void enqueueWork(Context context) {
synchronized (ProcessHttpRequestIntentService.class) {
if (isRunning) {
byte b = f662d[63];
a(b, b | 747, r4[14] - 1);
DatabaseHandler databaseHandler = bc.c;
} else {
byte b2 = f662d[63];
a(b2, b2 | 593, f663e);
DatabaseHandler databaseHandler2 = bc.c;
if (context != null) {
JobIntentService.enqueueWork(context, ProcessHttpRequestIntentService.class, 1000, new Intent(context, (Class<?>) ProcessHttpRequestIntentService.class));
}
}
}
}
public static void setMaximumNetworkRetryTime(int i) {
if (i < 0) {
a = 2;
} else {
a = i;
}
String str = bc.f595d;
StringBuilder sb = new StringBuilder();
byte[] bArr = f662d;
byte b = bArr[63];
sb.append(a(b, b | 333, bArr[586] + 1));
sb.append(a);
String sb2 = sb.toString();
DatabaseHandler databaseHandler = bc.c;
if (databaseHandler == null || str == null || sb2 == null) {
return;
}
databaseHandler.a(str, sb2, false);
}
public static void setShouldContinue(boolean z) {
shouldContinue = z;
}
public void onHandleWork(android.content.Intent r17) {
throw new UnsupportedOperationException("Method not decompiled: com.vkey.android.internal.vguard.cache.ProcessHttpRequestIntentService.onHandleWork(android.content.Intent):void");
}
private long a() throws VGException {
String str;
try {
SecurePreferences securePreferences = this.b;
if (securePreferences != null) {
byte[] bArr = f662d;
byte b = bArr[170];
str = securePreferences.get(a(b, b | 166, bArr[24]));
} else {
str = null;
}
if (str == null || str.length() <= 0) {
return 0L;
}
return Long.valueOf(str).longValue();
} catch (Exception e4) {
byte[] bArr2 = f662d;
int i = -bArr2[1];
a(i, i | 908, bArr2[14]);
Log.getStackTraceString(e4);
if (a(bArr2[404], 408, bArr2[13]).equals(e4.getMessage())) {
throw new VGException(e4);
}
return 0L;
}
}
private boolean a(long j) throws VGException {
if (j <= 0) {
return true;
}
if (System.currentTimeMillis() - j >= 120000) {
byte[] bArr = f662d;
int i = -bArr[1];
a(i, i | 908, bArr[14]);
int i2 = f663e;
a(i2 | 10, i2 | 200, bArr[27]);
try {
SecurePreferences securePreferences = this.b;
byte b = bArr[170];
securePreferences.remove(a(b, b | 166, bArr[24]));
return true;
} catch (Exception e4) {
byte[] bArr2 = f662d;
int i3 = -bArr2[1];
a(i3, i3 | 908, bArr2[14]);
Log.getStackTraceString(e4);
if (a(bArr2[404], 408, bArr2[13]).equals(e4.getMessage())) {
throw new VGException(e4);
}
}
}
return false;
}
private void a(VTrackWebService vTrackWebService, HttpRequest httpRequest, DatabaseHandler databaseHandler) throws IOException, VGException {
try {
byte[] bArr = f662d;
int i = -bArr[1];
a(i, i | 908, bArr[14]);
a(bArr[623], 108, bArr[389]);
vTrackWebService.postActivationThreatReportSynchronous(httpRequest.a, new g(this, databaseHandler, httpRequest), getApplicationContext());
} catch (VGException | IOException e4) {
String str = bc.f595d;
StringBuilder sb = new StringBuilder();
byte[] bArr2 = f662d;
int i2 = -bArr2[1];
String e5 = pb2.e(sb, a(i2, i2 | 856, bArr2[49]), e4);
DatabaseHandler databaseHandler2 = bc.c;
if (databaseHandler2 != null && str != null && e5 != null) {
databaseHandler2.a(str, e5, false);
}
String a2 = a(f663e, 753, bArr2[32]);
int i3 = -bArr2[1];
String a3 = a(i3, i3 | 908, bArr2[14]);
StringBuilder sb2 = new StringBuilder();
int i4 = -bArr2[1];
l.b(a2, a3, pb2.e(sb2, a(i4, i4 | 856, bArr2[49]), e4), false);
throw e4;
}
}
}