导航菜单

页面标题

页面副标题

All File Recovery v1.0.2 - C0554i5.java 源代码

正在查看: All File Recovery v1.0.2 应用的 C0554i5.java JAVA 源代码文件

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


package com.applovin.impl;

import android.text.TextUtils;
import android.webkit.URLUtil;
import com.applovin.impl.C0471a0;
import com.applovin.impl.sdk.C0672k;
import com.applovin.impl.sdk.C0676o;
import java.util.regex.Matcher;
import java.util.regex.Pattern;

public class C0554i5 extends AbstractRunnableC0716w4 {
    private final b g;

    public interface b {
        void a(C0471a0.b bVar);

        void a(String str);
    }

    public C0554i5(C0672k c0672k, b bVar) {
        super("TaskFetchDeveloperUri", c0672k);
        this.g = bVar;
    }

    @Override
    public void run() {
        String valueOf = String.valueOf(this.a.B().D().get("package_name"));
        if (C0676o.a()) {
            this.c.a(this.b, "Looking up developer URI for package name: ".concat(valueOf));
        }
        this.a.q0().a(new a(com.applovin.impl.sdk.network.a.a(this.a).c("GET").b("https://play.google.com/store/apps/details?id=".concat(valueOf)).a((Object) "").a(false).a(), this.a));
    }

    public class a extends AbstractC0741z5 {
        public a(com.applovin.impl.sdk.network.a aVar, C0672k c0672k) {
            super(aVar, c0672k);
        }

        @Override
        public void a(String str, String str2, int i) {
            if (TextUtils.isEmpty(str2)) {
                if (C0676o.a()) {
                    this.c.b(this.b, "No developer URI found - response from the Play Store is empty");
                }
                C0554i5.this.g.a(C0471a0.b.APP_DETAILS_NOT_FOUND);
                return;
            }
            Matcher matcher = Pattern.compile("(?<=\"appstore:developer_url\" content=\").*?(?=\">)").matcher(str2);
            if (!matcher.find()) {
                if (C0676o.a()) {
                    this.c.b(this.b, "No developer URI found - unable to find the developer_url meta tag from the Play Store listing");
                }
                C0554i5.this.g.a(C0471a0.b.INVALID_DEVELOPER_URI);
                return;
            }
            String group = matcher.group();
            if (!URLUtil.isValidUrl(group)) {
                if (C0676o.a()) {
                    this.c.b(this.b, "Developer URI (" + group + ") is not valid");
                }
                C0554i5.this.g.a(C0471a0.b.INVALID_DEVELOPER_URI);
                return;
            }
            if (C0676o.a()) {
                E.a("Found developer URI: ", group, this.c, this.b);
            }
            C0554i5.this.g.a(group);
        }

        @Override
        public void a(String str, int i, String str2, String str3) {
            if (C0676o.a()) {
                this.c.b(this.b, "Unable to fetch app details due to: " + str2 + ", and received error code: " + i);
            }
            C0554i5.this.g.a(C0471a0.b.APP_DETAILS_NOT_FOUND);
        }
    }
}