- Added realracing3-community.apk (71.57 MB) - Removed 32-bit support (armeabi-v7a) - Only includes arm64-v8a libraries - Decompiled source code included - Added README-community.md with analysis
74 lines
2.1 KiB
Java
74 lines
2.1 KiB
Java
package com.ironsource.environment;
|
|
|
|
import android.content.ContentProvider;
|
|
import android.content.ContentValues;
|
|
import android.content.Context;
|
|
import android.content.UriMatcher;
|
|
import android.database.Cursor;
|
|
import android.net.Uri;
|
|
import com.ironsource.s9;
|
|
|
|
/* loaded from: classes4.dex */
|
|
public class CrashProvider extends ContentProvider {
|
|
Context a;
|
|
s9 b;
|
|
String c;
|
|
Uri e;
|
|
String h;
|
|
String i;
|
|
UriMatcher d = new UriMatcher(-1);
|
|
final int f = 1;
|
|
final int g = 2;
|
|
final String j = "REPORTS";
|
|
|
|
@Override // android.content.ContentProvider
|
|
public int delete(Uri uri, String str, String[] strArr) {
|
|
return 0;
|
|
}
|
|
|
|
@Override // android.content.ContentProvider
|
|
public String getType(Uri uri) {
|
|
int match = this.d.match(uri);
|
|
if (match == 1) {
|
|
return this.h;
|
|
}
|
|
if (match == 2) {
|
|
return this.i;
|
|
}
|
|
throw new IllegalArgumentException("Invalid URI: " + uri);
|
|
}
|
|
|
|
@Override // android.content.ContentProvider
|
|
public Uri insert(Uri uri, ContentValues contentValues) {
|
|
return null;
|
|
}
|
|
|
|
@Override // android.content.ContentProvider
|
|
public boolean onCreate() {
|
|
this.a = getContext();
|
|
this.b = new s9(this.a);
|
|
this.c = this.a.getPackageName();
|
|
this.e = Uri.parse("content://" + this.c + "/REPORTS");
|
|
this.h = "vnd.android.cursor.dir/CrashReporter.Reports";
|
|
this.i = "vnd.android.cursor.item/CrashReporter/Reports";
|
|
return true;
|
|
}
|
|
|
|
@Override // android.content.ContentProvider
|
|
public Cursor query(Uri uri, String[] strArr, String str, String[] strArr2, String str2) {
|
|
int match = this.d.match(uri);
|
|
if (match == 1) {
|
|
return s9.c();
|
|
}
|
|
if (match == 2) {
|
|
return s9.a(Integer.parseInt(uri.getLastPathSegment()));
|
|
}
|
|
throw new IllegalArgumentException("Invalid URI: " + uri);
|
|
}
|
|
|
|
@Override // android.content.ContentProvider
|
|
public int update(Uri uri, ContentValues contentValues, String str, String[] strArr) {
|
|
return 0;
|
|
}
|
|
}
|