正在查看: Cantique de Louanges v12 应用的 FullscreenAdService.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: Cantique de Louanges v12 应用的 FullscreenAdService.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package com.applovin.impl.adview.activity;
import android.app.Service;
import android.content.Intent;
import android.os.Bundle;
import android.os.Handler;
import android.os.IBinder;
import android.os.Message;
import android.os.Messenger;
import android.os.RemoteException;
import androidx.annotation.NonNull;
import com.applovin.adview.AppLovinFullscreenActivity;
import com.applovin.impl.adview.q;
import com.applovin.impl.sdk.ad.e;
import com.applovin.impl.sdk.utils.m;
import com.applovin.impl.sdk.utils.u;
import com.applovin.impl.sdk.x;
public class FullscreenAdService extends Service {
public static final String DATA_KEY_AD_SOURCE = "ad_source";
public static final String DATA_KEY_RAW_FULL_AD_RESPONSE = "raw_full_ad_response";
private static final String TAG = "FullscreenAdService";
private static class a extends Handler {
private a() {
}
@Override
public void handleMessage(@NonNull Message message) {
try {
q qVar = AppLovinFullscreenActivity.parentInterstitialWrapper;
if (qVar == null) {
if (!u.gY(1)) {
super.handleMessage(message);
return;
}
throw new RuntimeException("parentWrapper is null for " + message.what);
}
e currentAd = qVar.getCurrentAd();
int i5 = message.what;
b bVar = b.AD;
if (i5 == bVar.getValue()) {
Bundle bundle = new Bundle();
bundle.putString(FullscreenAdService.DATA_KEY_RAW_FULL_AD_RESPONSE, currentAd.getRawFullResponse());
bundle.putInt(FullscreenAdService.DATA_KEY_AD_SOURCE, currentAd.getSource().getValue());
Message obtain = Message.obtain((Handler) null, bVar.getValue());
obtain.setData(bundle);
try {
message.replyTo.send(obtain);
return;
} catch (RemoteException e5) {
x.e(FullscreenAdService.TAG, "Failed to respond to Fullscreen Activity in another process with ad", e5);
return;
}
}
if (message.what == b.AD_DISPLAYED.getValue()) {
m.a(qVar.rS(), currentAd);
return;
}
if (message.what == b.AD_CLICKED.getValue()) {
m.a(qVar.rU(), currentAd);
return;
}
if (message.what == b.AD_VIDEO_STARTED.getValue()) {
m.a(qVar.rT(), currentAd);
return;
}
if (message.what == b.AD_VIDEO_ENDED.getValue()) {
Bundle data = message.getData();
m.a(qVar.rT(), currentAd, data.getDouble("percent_viewed"), data.getBoolean("fully_watched"));
return;
}
if (message.what == b.AD_HIDDEN.getValue()) {
m.b(qVar.rS(), currentAd);
} else {
super.handleMessage(message);
}
} catch (Throwable unused) {
}
}
}
public enum b {
AD(0),
AD_DISPLAYED(1),
AD_CLICKED(2),
AD_VIDEO_STARTED(3),
AD_VIDEO_ENDED(4),
AD_HIDDEN(5);
private final int ahF;
b(int i5) {
this.ahF = i5;
}
public int getValue() {
return this.ahF;
}
}
@Override
public IBinder onBind(Intent intent) {
return new Messenger(new a()).getBinder();
}
}