QQ浏览器 v12.2.3.7053版本的 MD5 值为:8285ab3059e5c8b521a264dfbc5c3685

以下内容为反编译后的 ap.java 源代码,内容仅作参考


package com.tencent.luggage.wxa.lo;

import android.net.Uri;
import com.tencent.mm.plugin.appbrand.appstorage.AppBrandLocalMediaObjectManager;
import com.tencent.mm.plugin.appbrand.appstorage.f;
import java.util.LinkedList;
import java.util.List;
import java.util.regex.Pattern;
import tmsdk.common.gourd.vine.IActionReportService;

public class ap extends com.tencent.mm.plugin.appbrand.appstorage.u {
    static {
        com.tencent.luggage.wxa.hw.f.a("appbrandcommon", ap.class.getClassLoader());
    }

    public ap(final com.tencent.luggage.wxa.eo.d dVar, a aVar) {
        super(new LinkedList());
        com.tencent.mm.plugin.appbrand.appstorage.o vVar = com.tencent.mm.plugin.appbrand.appcache.ai.a(dVar) != null ? new com.tencent.mm.plugin.appbrand.appcache.v(com.tencent.mm.plugin.appbrand.appcache.ac.b(dVar)) : com.tencent.mm.plugin.appbrand.appcache.w.a(dVar);
        e().clear();
        com.tencent.mm.plugin.appbrand.appstorage.f fVar = new com.tencent.mm.plugin.appbrand.appstorage.f(f() + dVar.ab() + "/blobTmp/", dVar.ab(), "wxblob://", new f.a() {
            @Override
            public com.tencent.luggage.wxa.kr.c a() {
                return dVar.af();
            }
        });
        fVar.a(aVar.f21614a * 1048576);
        e().add(fVar);
        com.tencent.mm.plugin.appbrand.appstorage.l n = n(dVar.ab());
        n.a(aVar.f21614a * 1048576);
        com.tencent.mm.plugin.appbrand.appstorage.y a2 = a(dVar.B().a(), dVar.ab());
        a2.a(aVar.f21614a * 1048576);
        com.tencent.mm.plugin.appbrand.appstorage.y b2 = b(dVar.B().a(), dVar.ab());
        b2.a(aVar.e * 1048576);
        e().add(b2);
        com.tencent.mm.plugin.appbrand.appstorage.y c2 = c(dVar.B().a(), dVar.ab());
        c2.a(Long.MAX_VALUE);
        e().add(c2);
        com.tencent.mm.plugin.appbrand.appstorage.y d2 = d(dVar.B().a(), dVar.ab());
        d2.a(aVar.f21614a * 1048576);
        e().add(d2);
        e().add(a2);
        e().add(n);
        e().add(vVar);
        a();
    }

    public static com.tencent.mm.plugin.appbrand.appstorage.y a(String str, String str2) {
        return new com.tencent.mm.plugin.appbrand.appstorage.y(a(str, str2), "wxfile://usr");
    }

    public static String a(String... strArr) {
        StringBuilder sb = new StringBuilder(IActionReportService.COMMON_SEPARATOR);
        for (String str : strArr) {
            sb.append(com.tencent.luggage.wxa.se.ai.b(str));
            sb.append(';');
        }
        String a2 = com.tencent.luggage.wxa.hb.c.a(sb.toString().getBytes());
        com.tencent.luggage.wxa.ta.r g = g();
        if (g == null) {
            com.tencent.luggage.wxa.se.r.b("MicroMsg.AppBrand.LuggageFileSystemRegistryWC", "getIndependentRootPath, extRoot NULL");
            return null;
        }
        return new com.tencent.luggage.wxa.ta.r(g.b() + "/" + a2).b();
    }

    public static com.tencent.mm.plugin.appbrand.appstorage.y b(String str, String str2) {
        return new com.tencent.mm.plugin.appbrand.appstorage.y(a(str, str2, "opendata"), "wxfile://opendata");
    }

    public static com.tencent.mm.plugin.appbrand.appstorage.y c(String str, String str2) {
        return new com.tencent.mm.plugin.appbrand.appstorage.y(a(str, str2, "clientdata"), "wxfile://clientdata");
    }

    public static com.tencent.mm.plugin.appbrand.appstorage.y d(String str, String str2) {
        return new com.tencent.mm.plugin.appbrand.appstorage.y(a(str, str2, "singlePage"), "wxfile://singlepage");
    }

    public static String f() {
        return AppBrandLocalMediaObjectManager.a();
    }

    private static com.tencent.luggage.wxa.ta.r g() {
        if (!com.tencent.luggage.wxa.hw.d.a()) {
            return null;
        }
        String a2 = com.tencent.luggage.wxa.qg.c.a();
        if (!a2.endsWith("/")) {
            a2 = a2 + "/";
        }
        return new com.tencent.luggage.wxa.ta.r(a2 + "wxanewfiles/");
    }

    public static com.tencent.mm.plugin.appbrand.appstorage.l n(String str) {
        return new com.tencent.mm.plugin.appbrand.appstorage.l(f() + str + "/", str, "wxfile://");
    }

    @Override
    public com.tencent.mm.plugin.appbrand.appstorage.j a(com.tencent.luggage.wxa.ta.r rVar, String str, boolean z, com.tencent.luggage.wxa.qg.i<String> iVar) {
        return ((com.tencent.mm.plugin.appbrand.appstorage.l) a(com.tencent.mm.plugin.appbrand.appstorage.l.class)).a(rVar, str, z, iVar);
    }

    @Override
    public com.tencent.mm.plugin.appbrand.appstorage.j a(String str, com.tencent.luggage.wxa.qg.i<List<com.tencent.mm.plugin.appbrand.appstorage.h>> iVar) {
        Uri parse = Uri.parse(str);
        if (!"wxfile".equals(parse.getScheme()) || !com.tencent.luggage.wxa.se.ai.c(parse.getAuthority())) {
            return super.a(str, iVar);
        }
        ?? linkedList = new LinkedList();
        ((com.tencent.mm.plugin.appbrand.appstorage.l) a(com.tencent.mm.plugin.appbrand.appstorage.l.class)).a("", iVar);
        if (!com.tencent.luggage.wxa.se.ai.a((List) iVar.f24341a)) {
            for (com.tencent.mm.plugin.appbrand.appstorage.h hVar : iVar.f24341a) {
                hVar.f28160a = hVar.f28160a.replaceFirst(Pattern.quote("wxfile://"), "");
            }
        }
        com.tencent.luggage.util.b.a(linkedList, iVar.f24341a);
        ((com.tencent.mm.plugin.appbrand.appstorage.y) m("wxfile://usr")).a("wxfile://usr", iVar);
        com.tencent.luggage.util.b.a(linkedList, iVar.f24341a);
        iVar.f24341a = linkedList;
        return com.tencent.mm.plugin.appbrand.appstorage.j.OK;
    }

    @Override
    public List<com.tencent.mm.plugin.appbrand.appstorage.x> c() {
        return ((com.tencent.mm.plugin.appbrand.appstorage.l) a(com.tencent.mm.plugin.appbrand.appstorage.l.class)).c();
    }

    @Override
    public com.tencent.luggage.wxa.ta.r i(String str) {
        return ((com.tencent.mm.plugin.appbrand.appstorage.l) a(com.tencent.mm.plugin.appbrand.appstorage.l.class)).i(str);
    }
}