正在查看: Oolka v2.4.42 应用的 gn.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: Oolka v2.4.42 应用的 gn.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package com.uxcam.internals;
import android.content.Context;
import com.rudderstack.android.sdk.core.ecomm.ECommerceParamNames;
import com.uxcam.internals.jk;
import com.uxcam.screenaction.di.ScreenActionModule;
import com.uxcam.screenaction.utils.Connectivity;
import com.uxcam.screenaction.utils.FilePath;
import com.uxcam.screenaction.utils.Util;
import com.uxcam.screenshot.di.ScreenshotModule;
import java.io.File;
import java.util.Arrays;
import java.util.Comparator;
import java.util.HashMap;
import java.util.Iterator;
import kotlin.jvm.internal.Intrinsics;
public final class gn {
public final Context a;
public class aa implements Comparator {
@Override
public final int compare(Object obj, Object obj2) {
File file = (File) obj;
File file2 = (File) obj2;
if (file.lastModified() > file2.lastModified()) {
return -1;
}
return file.lastModified() < file2.lastModified() ? 1 : 0;
}
}
public gn(Context context) {
this.a = context;
}
public static boolean d(File file, String str) {
return FilePath.l(str) || FilePath.i(str) || FilePath.j(str);
}
public final void a() {
String str = v3.a;
try {
c(false, false);
} catch (Exception e) {
jk.a("Session upload failed with reason: " + e, 3);
HashMap hashMap = new HashMap();
String replace = "[ #event# ]".replace("#event#", "Exception");
hashMap.put("site_of_error", "SendOfflineData::uploadOfflineData()");
hashMap.put(ECommerceParamNames.REASON, e.getMessage());
a5.g(replace, hashMap);
}
}
public final void b(boolean z) {
String str = v3.a;
try {
c(true, z);
} catch (Exception e) {
ho.c.getClass();
HashMap hashMap = new HashMap();
String replace = "[ #event# ]".replace("#event#", "Exception");
hashMap.put("site_of_error", "SendOfflineData::deleteOfflineData()");
hashMap.put(ECommerceParamNames.REASON, e.getMessage());
a5.g(replace, hashMap);
}
}
public final void c(boolean z, boolean z2) {
File[] listFiles;
try {
String str = v3.a;
?? r9 = 1;
File[] listFiles2 = new File(FilePath.d(true)).listFiles();
if (listFiles2 == null) {
HashMap hashMap = new HashMap();
String replace = "[ #event# ]".replace("#event#", "Process offline files on session");
hashMap.put("site_of_error", "SendOfflineData::ProcessFilesInSDCard()");
hashMap.put(ECommerceParamNames.REASON, "Folder is empty");
a5.f(replace, hashMap);
return;
}
Arrays.sort(listFiles2, new aa());
HashMap hashMap2 = new HashMap();
String replace2 = "[ #event# ]".replace("#event#", "Processing Previous Session");
hashMap2.put("site_of_error", "SendOfflineData::ProcessFilesInSDCard()");
hashMap2.put("sessionCount", "" + (listFiles2.length - 1));
a5.f(replace2, hashMap2);
String message = "Session await upload remained: " + (listFiles2.length - 1);
Intrinsics.checkNotNullParameter(message, "message");
jk.aa.a(message, 4, 3);
int length = listFiles2.length;
int i = 0;
while (i < length) {
File file = listFiles2[i];
if (!file.getName().equals(v3.a) && (listFiles = file.listFiles()) != null) {
if (listFiles.length == 0) {
file.delete();
} else if (z) {
if (Util.c(file)) {
Util.d(file);
if (z2) {
try {
String n = Util.n(file);
if (!n.isEmpty()) {
if (bt.K == null) {
bt.K = new bt(ScreenshotModule.s.a(), ScreenActionModule.i.a());
}
bt btVar = bt.K;
Intrinsics.checkNotNull(btVar);
new bw(btVar.d()).c = -1;
new f2(Util.t()).c(n, r9);
}
} catch (Exception unused) {
}
}
} else {
Util.e(file);
}
} else if (Connectivity.b(this.a, r9)) {
if (bt.K == null) {
bt.K = new bt(ScreenshotModule.s.a(), ScreenActionModule.i.a());
}
bt btVar2 = bt.K;
Intrinsics.checkNotNull(btVar2);
z4 p = btVar2.p();
String name = file.getName();
String str2 = ((iz) p).a().b;
Iterator it = j.a().iterator();
while (true) {
if (!it.hasNext()) {
break;
}
String str3 = (String) it.next();
if (name.endsWith(String.valueOf(str3.hashCode()))) {
str2 = str3;
break;
}
}
e(file, str2);
}
}
i++;
r9 = 1;
}
} catch (Exception e) {
jk.a("Session upload failed with reason: " + e, 3);
HashMap hashMap3 = new HashMap();
String replace3 = "[ #event# ]".replace("#event#", "Exception");
hashMap3.put("site_of_error", "SendOfflineData::ProcessFilesInSDCard()");
hashMap3.put(ECommerceParamNames.REASON, e.getMessage());
a5.g(replace3, hashMap3);
}
}
public final void e(java.io.File r21, java.lang.String r22) {
throw new UnsupportedOperationException("Method not decompiled: com.uxcam.internals.gn.e(java.io.File, java.lang.String):void");
}
}