正在查看: 万能钥匙 v1.1.23 应用的 TaichiProvider.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: 万能钥匙 v1.1.23 应用的 TaichiProvider.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package com.wifitutu.widget.svc.taichi.imp;
import android.content.ContentProvider;
import android.content.ContentValues;
import android.content.UriMatcher;
import android.database.Cursor;
import android.database.MatrixCursor;
import android.net.Uri;
import android.os.Bundle;
import com.meituan.robust.ChangeQuickRedirect;
import com.meituan.robust.PatchProxy;
import com.meituan.robust.PatchProxyResult;
import com.wifitutu.widget.svc.taichi.imp.log.TCLog;
import expo.modules.imagepicker.MediaTypes;
import s90.e;
public class TaichiProvider extends ContentProvider {
public static String a;
public static Uri b;
public static UriMatcher c;
public static ChangeQuickRedirect changeQuickRedirect;
public static e d;
@Override
public Bundle call(String str, String str2, Bundle bundle) {
PatchProxyResult proxy = PatchProxy.proxy(new Object[]{str, str2, bundle}, this, changeQuickRedirect, false, 48667, new Class[]{String.class, String.class, Bundle.class}, Bundle.class);
if (proxy.isSupported) {
return (Bundle) proxy.result;
}
Bundle bundle2 = new Bundle();
if ("m_config_version".equals(str)) {
long b2 = d.p().b();
bundle2.putLong("key_exp", b2);
TCLog.i("%s val=%s", str, Long.valueOf(b2));
}
TCLog.i("call %s %s %s", "TaichiProvider", str, str2);
return bundle2;
}
@Override
public int delete(Uri uri, String str, String[] strArr) {
PatchProxyResult proxy = PatchProxy.proxy(new Object[]{uri, str, strArr}, this, changeQuickRedirect, false, 48669, new Class[]{Uri.class, String.class, String[].class}, Integer.TYPE);
if (proxy.isSupported) {
return ((Integer) proxy.result).intValue();
}
throw new UnsupportedOperationException();
}
@Override
public String getType(Uri uri) {
PatchProxyResult proxy = PatchProxy.proxy(new Object[]{uri}, this, changeQuickRedirect, false, 48668, new Class[]{Uri.class}, String.class);
if (proxy.isSupported) {
return (String) proxy.result;
}
return "vnd.android.cursor.item/vnd." + a + ".item";
}
@Override
public Uri insert(Uri uri, ContentValues contentValues) {
PatchProxyResult proxy = PatchProxy.proxy(new Object[]{uri, contentValues}, this, changeQuickRedirect, false, 48670, new Class[]{Uri.class, ContentValues.class}, Uri.class);
if (proxy.isSupported) {
return (Uri) proxy.result;
}
throw new UnsupportedOperationException();
}
@Override
public boolean onCreate() {
PatchProxyResult proxy = PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 48666, new Class[0], Boolean.TYPE);
if (proxy.isSupported) {
return ((Boolean) proxy.result).booleanValue();
}
TCLog.i("TaichiProvider onCreate");
c = new UriMatcher(-1);
String str = getContext().getPackageName() + TCConstants.AUTHORITIES_SUFFIX;
a = str;
c.addURI(str, MediaTypes.AllMimeType, 65536);
b = Uri.parse("content://" + a);
d = e.o(getContext());
return true;
}
@Override
public Cursor query(Uri uri, String[] strArr, String str, String[] strArr2, String str2) {
PatchProxyResult proxy = PatchProxy.proxy(new Object[]{uri, strArr, str, strArr2, str2}, this, changeQuickRedirect, false, 48671, new Class[]{Uri.class, String[].class, String.class, String[].class, String.class}, Cursor.class);
if (proxy.isSupported) {
return (Cursor) proxy.result;
}
if (c.match(uri) != 65536) {
throw new IllegalArgumentException("Unsupported uri " + uri);
}
String str3 = uri.getPathSegments().get(0);
String str4 = uri.getPathSegments().get(1);
TCLog.d("%s key=%s type=%s", "TaichiProvider", str3, str4);
Object n = "all".equals(str3) ? d.n() : "allKey".equals(str3) ? d.m() : d.q(str3, Integer.parseInt(str4));
MatrixCursor matrixCursor = new MatrixCursor(new String[]{str3});
if (n == null) {
return matrixCursor;
}
matrixCursor.newRow().add(n);
return matrixCursor;
}
@Override
public int update(Uri uri, ContentValues contentValues, String str, String[] strArr) {
PatchProxyResult proxy = PatchProxy.proxy(new Object[]{uri, contentValues, str, strArr}, this, changeQuickRedirect, false, 48672, new Class[]{Uri.class, ContentValues.class, String.class, String[].class}, Integer.TYPE);
if (proxy.isSupported) {
return ((Integer) proxy.result).intValue();
}
throw new UnsupportedOperationException();
}
}