我要上王者 v1.1版本的 MD5 值为:b7d3566522def961cabeb92cb17f5db9
以下内容为反编译后的 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.KsAdSDKImpl;
import com.kwad.sdk.components.DevelopMangerComponents;
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.bh;
final class d implements IEnvironment {
@Override
public final String getAppVersion() {
return BuildConfig.VERSION_NAME;
}
@Override
public final String getKpf() {
return "ANDROID_PHONE";
}
@Override
public final String getKpn() {
return "kseulivesdk";
}
@Override
public final String getSdkVersion() {
return BuildConfig.VERSION_NAME;
}
@Override
public final boolean isDebug() {
return false;
}
@Override
public final Context getContext() {
return KsAdSDKImpl.get().getContext();
}
@Override
public final String getAppId() {
return KsAdSDKImpl.get().getAppId();
}
@Override
public final String getOsVersion() {
return bh.getOsVersion();
}
@Override
public final String getProcessName(Context context) {
return SystemUtil.getProcessName(context);
}
@Override
public final boolean isInMainProcess(Context context) {
return SystemUtil.isInMainProcess(context);
}
@Override
public final String getDeviceId() {
return bh.getDeviceId();
}
@Override
public final String getUserAgent() {
return com.kwad.sdk.core.network.p.getUserAgent();
}
@Override
public final boolean isDevelopEnable() {
return com.kwad.components.core.a.lX.booleanValue();
}
@Override
public final String localIpAddress() {
if (com.kwad.components.core.a.lX.booleanValue()) {
com.kwad.sdk.components.c.f(DevelopMangerComponents.class);
return "10.244.70.138";
}
return "10.244.70.138";
}
@Override
public final boolean isArm64(Context context) {
return AbiUtil.isArm64(context);
}
@Override
public final String getOperator(Context context) {
return String.valueOf(ag.cl(context));
}
@Override
public final double getLatitude(Context context) {
Location bW = av.bW(context);
if (bW != null) {
return bW.getLatitude();
}
return 0.0d;
}
@Override
public final double getLongitude(Context context) {
Location bW = av.bW(context);
if (bW != null) {
return bW.getLongitude();
}
return 0.0d;
}
@Override
public final String getBiz() {
return com.kwad.sdk.h.ajI;
}
@Override
public final int getStatusBarHeight(Context context) {
return com.kwad.sdk.d.a.a.getStatusBarHeight(context);
}
@Override
public final boolean requestAudioFocus(Context context, boolean z) {
return com.kwad.components.core.t.a.al(context).aI(z);
}
@Override
public final void addOnAudioConflictListener(Context context, OfflineOnAudioConflictListener offlineOnAudioConflictListener) {
if (context == null || offlineOnAudioConflictListener == null) {
return;
}
com.kwad.components.core.t.a.al(context).a(offlineOnAudioConflictListener);
}
@Override
public final void removeOnAudioConflictListener(Context context, OfflineOnAudioConflictListener offlineOnAudioConflictListener) {
if (context == null || offlineOnAudioConflictListener == null) {
return;
}
com.kwad.components.core.t.a.al(context).b(offlineOnAudioConflictListener);
}
@Override
public final boolean isTKCrashCollectEnable() {
return com.kwad.sdk.core.config.c.aqb.getValue().booleanValue();
}
}