- 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
32 lines
857 B
Java
32 lines
857 B
Java
package com.google.protobuf;
|
|
|
|
/* loaded from: classes3.dex */
|
|
public final class Android {
|
|
private static boolean ASSUME_ANDROID;
|
|
private static final boolean IS_ROBOLECTRIC;
|
|
private static final Class<?> MEMORY_CLASS = getClassForName("libcore.io.Memory");
|
|
|
|
public static Class<?> getMemoryClass() {
|
|
return MEMORY_CLASS;
|
|
}
|
|
|
|
public static boolean isOnAndroidDevice() {
|
|
return ASSUME_ANDROID || !(MEMORY_CLASS == null || IS_ROBOLECTRIC);
|
|
}
|
|
|
|
private Android() {
|
|
}
|
|
|
|
static {
|
|
IS_ROBOLECTRIC = (ASSUME_ANDROID || getClassForName("org.robolectric.Robolectric") == null) ? false : true;
|
|
}
|
|
|
|
private static <T> Class<T> getClassForName(String str) {
|
|
try {
|
|
return (Class<T>) Class.forName(str);
|
|
} catch (Throwable unused) {
|
|
return null;
|
|
}
|
|
}
|
|
}
|