Files
Daniel Elliott c080f0d97f Add Discord community version (64-bit only)
- 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
2026-02-18 15:48:36 -08:00

70 lines
2.2 KiB
Java

package com.google.android.gms.internal.ads;
import android.content.Context;
import android.content.SharedPreferences;
import android.util.Log;
import java.io.IOException;
/* loaded from: classes3.dex */
final class zzfrc {
private static zzfrc zza;
private final String zzb;
private final SharedPreferences zzc;
private zzfrc(Context context) {
this.zzb = context.getPackageName();
this.zzc = context.getSharedPreferences("paid_storage_sp", 0);
}
public static zzfrc zzb(Context context) {
if (zza == null) {
zza = new zzfrc(context);
}
return zza;
}
public final long zza(String str, long j) {
return this.zzc.getLong(str, -1L);
}
public final String zzc(String str, String str2) {
return this.zzc.getString(str, null);
}
public final void zzd(String str, Object obj) throws IOException {
boolean commit;
if (obj instanceof String) {
commit = this.zzc.edit().putString(str, (String) obj).commit();
} else if (obj instanceof Long) {
commit = this.zzc.edit().putLong(str, ((Long) obj).longValue()).commit();
} else if (obj instanceof Boolean) {
commit = this.zzc.edit().putBoolean(str, ((Boolean) obj).booleanValue()).commit();
} else {
if (!(obj instanceof Integer)) {
Log.e("GpidLifecycleSPHandler", "Unexpected object class " + String.valueOf(obj.getClass()) + " for app " + this.zzb);
throw new IOException("Failed to store " + str + " for app " + this.zzb);
}
commit = this.zzc.edit().putInt(str, ((Integer) obj).intValue()).commit();
}
if (commit) {
return;
}
throw new IOException("Failed to store " + str + " for app " + this.zzb);
}
public final void zze(String str) throws IOException {
if (this.zzc.edit().remove(str).commit()) {
return;
}
throw new IOException("Failed to remove " + str + " for app " + this.zzb);
}
public final boolean zzf(String str, boolean z) {
return this.zzc.getBoolean(str, true);
}
public final boolean zzg(String str) {
return this.zzc.contains(str);
}
}