整点视频 v3.3.0版本的 MD5 值为:cba0457dc37421eed445b30f92de25d3
以下内容为反编译后的 d.java 源代码,内容仅作参考
package com.kwad.components.core.n.b.a;
import android.content.Context;
import android.location.Location;
import com.kwad.components.offline.api.BuildConfig;
import com.kwad.components.offline.api.core.api.IEnvironment;
import com.kwad.components.offline.api.core.api.OfflineOnAudioConflictListener;
import com.kwad.sdk.components.DevelopMangerComponents;
import com.kwad.sdk.service.ServiceProvider;
import com.kwad.sdk.utils.AbiUtil;
import com.kwad.sdk.utils.SystemUtil;
import com.kwad.sdk.utils.ag;
import com.kwad.sdk.utils.av;
import com.kwad.sdk.utils.bi;
final class d implements IEnvironment {
@Override
public final void addOnAudioConflictListener(Context context, OfflineOnAudioConflictListener offlineOnAudioConflictListener) {
if (context == null || offlineOnAudioConflictListener == null) {
return;
}
com.kwad.components.core.s.a.ah(context).a(offlineOnAudioConflictListener);
}
@Override
public final String getAppId() {
return ServiceProvider.getAppId();
}
@Override
public final String getAppVersion() {
return BuildConfig.VERSION_NAME;
}
@Override
public final String getBiz() {
return com.kwad.sdk.h.akD;
}
@Override
public final Context getContext() {
return ServiceProvider.getContext();
}
@Override
public final String getDeviceId() {
return bi.getDeviceId();
}
@Override
public final String getKpf() {
return "ANDROID_PHONE";
}
@Override
public final String getKpn() {
return "kseulivesdk";
}
@Override
public final double getLatitude(Context context) {
Location location;
com.kwad.sdk.utils.c.a bV = av.bV(context);
if (bV == null || (location = bV.aSf) == null) {
return 0.0d;
}
return location.getLatitude();
}
@Override
public final double getLongitude(Context context) {
Location location;
com.kwad.sdk.utils.c.a bV = av.bV(context);
if (bV == null || (location = bV.aSf) == null) {
return 0.0d;
}
return location.getLongitude();
}
@Override
public final String getOperator(Context context) {
return String.valueOf(ag.ck(context));
}
@Override
public final String getOsVersion() {
return bi.getOsVersion();
}
@Override
public final String getProcessName(Context context) {
return SystemUtil.getProcessName(context);
}
@Override
public final String getSdkVersion() {
return BuildConfig.VERSION_NAME;
}
@Override
public final int getStatusBarHeight(Context context) {
return com.kwad.sdk.d.a.a.getStatusBarHeight(context);
}
@Override
public final String getUserAgent() {
return com.kwad.sdk.core.network.p.getUserAgent();
}
@Override
public final boolean isArm64(Context context) {
return AbiUtil.isArm64(context);
}
@Override
public final boolean isDebug() {
return false;
}
@Override
public final boolean isDevelopEnable() {
return com.kwad.components.core.a.md.booleanValue();
}
@Override
public final boolean isInMainProcess(Context context) {
return SystemUtil.isInMainProcess(context);
}
@Override
public final boolean isTKCrashCollectEnable() {
return com.kwad.sdk.core.config.c.asP.getValue().booleanValue();
}
@Override
public final String localIpAddress() {
if (com.kwad.components.core.a.md.booleanValue()) {
com.kwad.sdk.components.c.f(DevelopMangerComponents.class);
return "10.244.57.228";
}
return "10.244.57.228";
}
@Override
public final void removeOnAudioConflictListener(Context context, OfflineOnAudioConflictListener offlineOnAudioConflictListener) {
if (context == null || offlineOnAudioConflictListener == null) {
return;
}
com.kwad.components.core.s.a.ah(context).b(offlineOnAudioConflictListener);
}
@Override
public final boolean requestAudioFocus(Context context, boolean z) {
return com.kwad.components.core.s.a.ah(context).aN(z);
}
}