导航菜单

页面标题

页面副标题

AdaModal v1.4.0 - AFg1tSDK.java 源代码

正在查看: AdaModal v1.4.0 应用的 AFg1tSDK.java JAVA 源代码文件

本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。


package com.appsflyer.internal;

import android.content.Context;
import android.content.Intent;
import com.appsflyer.AFLogger;
import com.appsflyer.AppsFlyerLib;
import com.appsflyer.AppsFlyerProperties;
import com.appsflyer.FirebaseMessagingServiceListener;
import com.appsflyer.internal.AFe1dSDK.AnonymousClass4;

public final class AFg1tSDK {
    public static String valueOf;
    public final AFd1xSDK AFKeystoreWrapper;

    static {
        StringBuilder sb = new StringBuilder("https://%sregister.%s/api/v");
        sb.append(AFb1vSDK.AFKeystoreWrapper);
        valueOf = sb.toString();
    }

    public AFg1tSDK(Context context) {
        this.AFKeystoreWrapper = AFb1vSDK.valueOf().valueOf(context);
    }

    public static boolean valueOf(Context context) {
        if (AppsFlyerLib.getInstance().isStopped()) {
            return false;
        }
        try {
            Class.forName("com.google.firebase.messaging.FirebaseMessagingService");
        } catch (ClassNotFoundException unused) {
        } catch (Throwable th) {
            AFLogger.INSTANCE.e(AFg1hSDK.UNINSTALL, "An error occurred while trying to verify manifest declarations: ", th);
        }
        return AFb1qSDK.AFInAppEventParameterName(context, new Intent("com.google.firebase.MESSAGING_EVENT", null, context, FirebaseMessagingServiceListener.class));
    }

    public static boolean values(AFd1xSDK aFd1xSDK) {
        return aFd1xSDK.valueOf("sentRegisterRequestToAF");
    }

    public static void valueOf(String str) {
        AFd1nSDK AFInAppEventType = AFb1vSDK.valueOf().AFInAppEventType();
        AFf1jSDK aFf1jSDK = new AFf1jSDK(str, AFInAppEventType);
        AFe1dSDK w = AFInAppEventType.w();
        w.values.execute(w.new AnonymousClass4(aFf1jSDK));
    }

    public final AFg1uSDK AFInAppEventType() {
        String string;
        String string2;
        String valueOf2 = this.AFKeystoreWrapper.valueOf("afUninstallToken", (String) null);
        long AFInAppEventType = this.AFKeystoreWrapper.AFInAppEventType("afUninstallToken_received_time", 0L);
        boolean valueOf3 = this.AFKeystoreWrapper.valueOf("afUninstallToken_queued");
        this.AFKeystoreWrapper.AFInAppEventParameterName("afUninstallToken_queued", false);
        if (valueOf2 == null && (string2 = AppsFlyerProperties.getInstance().getString("afUninstallToken")) != null) {
            valueOf2 = string2.split(",")[r0.length - 1];
        }
        if (AFInAppEventType == 0 && (string = AppsFlyerProperties.getInstance().getString("afUninstallToken")) != null) {
            String[] split = string.split(",");
            if (split.length >= 2) {
                try {
                    AFInAppEventType = Long.parseLong(split[split.length - 2]);
                } catch (NumberFormatException unused) {
                }
            }
        }
        if (valueOf2 != null) {
            return new AFg1uSDK(valueOf2, AFInAppEventType, valueOf3);
        }
        return null;
    }
}