正在查看: Préstamo Rápido v2.5.7 应用的 MultipleInstallBroadcastReceiver.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: Préstamo Rápido v2.5.7 应用的 MultipleInstallBroadcastReceiver.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package com.appsflyer;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.content.pm.PackageItemInfo;
import android.content.pm.ResolveInfo;
import com.appsflyer.internal.AFb1rSDK;
public class MultipleInstallBroadcastReceiver extends BroadcastReceiver {
@Override
public void onReceive(Context context, Intent intent) {
String str;
if (intent == null) {
return;
}
try {
str = intent.getStringExtra("referrer");
} catch (Throwable th) {
AFLogger.afErrorLog("error in BroadcastReceiver ", th);
str = null;
}
if (str != null && AFb1rSDK.h_(context).getString("referrer", null) != null) {
AFb1rSDK revenue = AFb1rSDK.getRevenue();
AFb1rSDK.getRevenue(new Object[]{revenue, context, str}, -1996805506, 1996805527, System.identityHashCode(revenue));
return;
}
AFLogger.afInfoLog("MultipleInstallBroadcastReceiver called");
AFb1rSDK.getRevenue().g_(context, intent);
for (ResolveInfo resolveInfo : context.getPackageManager().queryBroadcastReceivers(new Intent("com.android.vending.INSTALL_REFERRER"), 0)) {
String action = intent.getAction();
if (((PackageItemInfo) resolveInfo.activityInfo).packageName.equals(context.getPackageName()) && "com.android.vending.INSTALL_REFERRER".equals(action) && !getClass().getName().equals(((PackageItemInfo) resolveInfo.activityInfo).name)) {
StringBuilder sb = new StringBuilder("trigger onReceive: class: ");
sb.append(((PackageItemInfo) resolveInfo.activityInfo).name);
AFLogger.afInfoLog(sb.toString());
try {
((BroadcastReceiver) Class.forName(((PackageItemInfo) resolveInfo.activityInfo).name).newInstance()).onReceive(context, intent);
} catch (Throwable th2) {
StringBuilder sb2 = new StringBuilder("error in BroadcastReceiver ");
sb2.append(((PackageItemInfo) resolveInfo.activityInfo).name);
AFLogger.afErrorLog(sb2.toString(), th2);
}
}
}
}
}