导航菜单

页面标题

页面副标题

Share Any v2.1.7 - FacebookContentProvider.java 源代码

正在查看: Share Any v2.1.7 应用的 FacebookContentProvider.java JAVA 源代码文件

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


package com.facebook;

import android.content.ContentProvider;
import android.content.ContentValues;
import android.database.Cursor;
import android.net.Uri;
import android.os.ParcelFileDescriptor;
import android.util.Pair;
import com.facebook.internal.a0;
import e8.e;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.util.UUID;
import xc.i;

public final class FacebookContentProvider extends ContentProvider {
    @Override
    public int delete(Uri uri, String str, String[] strArr) {
        e.f(uri, "uri");
        return 0;
    }

    @Override
    public String getType(Uri uri) {
        e.f(uri, "uri");
        return null;
    }

    @Override
    public Uri insert(Uri uri, ContentValues contentValues) {
        e.f(uri, "uri");
        return null;
    }

    @Override
    public boolean onCreate() {
        return true;
    }

    @Override
    public ParcelFileDescriptor openFile(Uri uri, String str) {
        Pair pair;
        String path;
        e.f(uri, "uri");
        e.f(str, "mode");
        try {
            path = uri.getPath();
        } catch (Exception unused) {
            pair = null;
        }
        if (path == null) {
            throw new IllegalStateException("Required value was null.".toString());
        }
        String substring = path.substring(1);
        e.e(substring, "(this as java.lang.String).substring(startIndex)");
        Object[] array = i.Y(substring, new String[]{"/"}, false, 0, 6).toArray(new String[0]);
        if (array == null) {
            throw new NullPointerException("null cannot be cast to non-null type kotlin.Array<T>");
        }
        String[] strArr = (String[]) array;
        String str2 = strArr[0];
        String str3 = strArr[1];
        if ("..".contentEquals(str2) || "..".contentEquals(str3)) {
            throw new Exception();
        }
        pair = new Pair(UUID.fromString(str2), str3);
        if (pair == null) {
            throw new FileNotFoundException();
        }
        try {
            UUID uuid = (UUID) pair.first;
            if (a0.D((String) pair.second) || uuid == null) {
                throw new FileNotFoundException();
            }
            try {
                e.f(uuid, "callId");
                e.f(uuid, "callId");
                throw new FileNotFoundException();
            } catch (IOException unused2) {
                throw new FileNotFoundException();
            }
        } catch (FileNotFoundException e10) {
            e.l("Got unexpected exception:", e10);
            throw e10;
        }
    }

    @Override
    public Cursor query(Uri uri, String[] strArr, String str, String[] strArr2, String str2) {
        e.f(uri, "uri");
        return null;
    }

    @Override
    public int update(Uri uri, ContentValues contentValues, String str, String[] strArr) {
        e.f(uri, "uri");
        return 0;
    }
}