正在查看: AdaModal v1.4.0 应用的 MultipleInstallBroadcastReceiver.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: AdaModal v1.4.0 应用的 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.AFb1vSDK;
import com.common.fine.receiver.InstallReferrerReceiver;
public class MultipleInstallBroadcastReceiver extends BroadcastReceiver {
@Override
public void onReceive(Context context, Intent intent) {
String str;
if (intent == null) {
return;
}
try {
str = intent.getStringExtra(InstallReferrerReceiver.REFERRER_KEY);
} catch (Throwable th) {
AFLogger.afErrorLog("error in BroadcastReceiver ", th);
str = null;
}
if (str != null && AFb1vSDK.AFInAppEventParameterName(context).getString(InstallReferrerReceiver.REFERRER_KEY, null) != null) {
AFb1vSDK.valueOf().values(context, str);
return;
}
AFLogger.afInfoLog("MultipleInstallBroadcastReceiver called");
AFb1vSDK.valueOf().values(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);
}
}
}
}
}