90 lines
1.6 KiB
Smali
90 lines
1.6 KiB
Smali
.class public final Lrx/internal/util/h;
|
|
.super Ljava/lang/Object;
|
|
.source "PlatformDependent.java"
|
|
|
|
|
|
# static fields
|
|
.field private static final IS_ANDROID:Z
|
|
|
|
.field private static final bMY:I
|
|
|
|
|
|
# direct methods
|
|
.method static constructor <clinit>()V
|
|
.locals 1
|
|
|
|
invoke-static {}, Lrx/internal/util/h;->JQ()I
|
|
|
|
move-result v0
|
|
|
|
sput v0, Lrx/internal/util/h;->bMY:I
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
const/4 v0, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
const/4 v0, 0x0
|
|
|
|
:goto_0
|
|
sput-boolean v0, Lrx/internal/util/h;->IS_ANDROID:Z
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public static JO()Z
|
|
.locals 1
|
|
|
|
sget-boolean v0, Lrx/internal/util/h;->IS_ANDROID:Z
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public static JP()I
|
|
.locals 1
|
|
|
|
sget v0, Lrx/internal/util/h;->bMY:I
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method private static JQ()I
|
|
.locals 2
|
|
|
|
:try_start_0
|
|
const-string v0, "android.os.Build$VERSION"
|
|
|
|
invoke-static {v0}, Ljava/lang/Class;->forName(Ljava/lang/String;)Ljava/lang/Class;
|
|
|
|
move-result-object v0
|
|
|
|
const-string v1, "SDK_INT"
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/Class;->getField(Ljava/lang/String;)Ljava/lang/reflect/Field;
|
|
|
|
move-result-object v0
|
|
|
|
const/4 v1, 0x0
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/reflect/Field;->get(Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
move-result-object v0
|
|
|
|
check-cast v0, Ljava/lang/Integer;
|
|
|
|
invoke-virtual {v0}, Ljava/lang/Integer;->intValue()I
|
|
|
|
move-result v0
|
|
:try_end_0
|
|
.catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0
|
|
|
|
return v0
|
|
|
|
:catch_0
|
|
const/4 v0, 0x0
|
|
|
|
return v0
|
|
.end method
|