正在查看: OLX India v19.42.007 应用的 t0.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: OLX India v19.42.007 应用的 t0.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package com.jio.jioads.multiad;
import android.content.Context;
import android.util.Log;
import com.jio.jioads.adinterfaces.JioAds;
import com.jio.jioads.adinterfaces.y1;
import com.jio.jioads.util.Utility;
import com.jio.jioads.utils.Constants;
import java.io.BufferedReader;
import java.io.File;
import java.io.FileInputStream;
import java.io.InputStreamReader;
import java.util.Arrays;
import java.util.concurrent.Executors;
import java.util.concurrent.TimeUnit;
import kotlin.jvm.internal.StringCompanionObject;
import kotlin.text.StringsKt;
public abstract class t0 {
public static void a(Context context) {
long longValue = ((Long) com.jio.jioads.util.p.a(context, "master_config_pref", 3, -1L, "omsdkJsStoreTime")).longValue();
if (!Utility.INSTANCE.isInternetAvailable(context)) {
if (JioAds.Companion.getInstance().getLogLevel$jio_ads_sdk_exo_2_18Location_21SsaiCommonVideoModuleCompanionNativeDynamicDisplayInstreamAudioInstreamVideoInterstitialMediationRetargetingCarouselRelease() != JioAds.LogLevel.NONE) {
Log.e("merc", "Internet is not available");
}
} else {
if (System.currentTimeMillis() >= longValue) {
new com.jio.jioads.network.c(context).b(0, "https://mercury.akamaized.net/jioads/om/omsdk-js-1.3.36/Service/omsdk-v1.js", null, null, 0, new r0(context), Boolean.FALSE);
return;
}
StringBuilder sb = new StringBuilder("Next js will be fetched after: ");
long currentTimeMillis = longValue - System.currentTimeMillis();
StringCompanionObject stringCompanionObject = StringCompanionObject.a;
TimeUnit timeUnit = TimeUnit.MILLISECONDS;
sb.append(String.format("%02d:%02d:%02d", Arrays.copyOf(new Object[]{Long.valueOf(timeUnit.toHours(currentTimeMillis)), Long.valueOf(timeUnit.toMinutes(currentTimeMillis) % TimeUnit.HOURS.toMinutes(1L)), Long.valueOf(timeUnit.toSeconds(currentTimeMillis) % TimeUnit.MINUTES.toSeconds(1L))}, 3)));
String sb2 = sb.toString();
if (JioAds.Companion.getInstance().getLogLevel$jio_ads_sdk_exo_2_18Location_21SsaiCommonVideoModuleCompanionNativeDynamicDisplayInstreamAudioInstreamVideoInterstitialMediationRetargetingCarouselRelease() != JioAds.LogLevel.NONE) {
Log.d("merc", sb2);
}
}
}
public static final void b(final String str, final Context context, final c0 c0Var) {
Executors.newFixedThreadPool(1).submit(new Runnable() {
@Override
public final void run() {
t0.c(str, context, c0Var);
}
});
}
public static final void c(String str, Context context, c0 c0Var) {
FileInputStream fileInputStream;
StringBuilder sb = new StringBuilder();
try {
if (StringsKt.B(str, "jio_js", true)) {
File file = new File(context.getFilesDir().getAbsolutePath(), "jio_js");
fileInputStream = new FileInputStream(new File(file.getAbsolutePath() + File.separator + Constants.TARGETING_JS_FILE_NAME));
StringBuilder sb2 = new StringBuilder("Reading targeting from file path=");
sb2.append(file.getAbsolutePath());
String sb3 = sb2.toString();
if (JioAds.Companion.getInstance().getLogLevel$jio_ads_sdk_exo_2_18Location_21SsaiCommonVideoModuleCompanionNativeDynamicDisplayInstreamAudioInstreamVideoInterstitialMediationRetargetingCarouselRelease() != JioAds.LogLevel.NONE) {
Log.d("merc", sb3);
}
} else {
File file2 = new File(context.getFilesDir().getAbsolutePath(), "omid_js");
fileInputStream = new FileInputStream(new File(file2.getAbsolutePath() + File.separator + Constants.OMSDK_JS_FILE_NAME));
StringBuilder sb4 = new StringBuilder("Reading OMID JS from file path=");
sb4.append(file2.getAbsolutePath());
String sb5 = sb4.toString();
if (JioAds.Companion.getInstance().getLogLevel$jio_ads_sdk_exo_2_18Location_21SsaiCommonVideoModuleCompanionNativeDynamicDisplayInstreamAudioInstreamVideoInterstitialMediationRetargetingCarouselRelease() != JioAds.LogLevel.NONE) {
Log.d("merc", sb5);
}
}
InputStreamReader inputStreamReader = new InputStreamReader(fileInputStream);
BufferedReader bufferedReader = new BufferedReader(inputStreamReader);
while (true) {
String readLine = bufferedReader.readLine();
if (readLine == null) {
break;
} else {
sb.append(readLine);
}
}
inputStreamReader.close();
bufferedReader.close();
c0Var.a(sb.toString());
} catch (Exception e) {
String a = y1.a(Utility.INSTANCE, e, new StringBuilder("Exception while reading JS file: "), "message");
if (JioAds.Companion.getInstance().getLogLevel$jio_ads_sdk_exo_2_18Location_21SsaiCommonVideoModuleCompanionNativeDynamicDisplayInstreamAudioInstreamVideoInterstitialMediationRetargetingCarouselRelease() != JioAds.LogLevel.NONE) {
Log.e("merc", a);
}
}
if (StringsKt.B(str, "jio_js", true)) {
c0Var.a(sb.toString());
}
}
}