apkfuckery/com.discord/smali/com/facebook/soloader/SysUtil$LollipopSysdeps.smali
2019-02-06 21:30:57 +01:00

100 lines
2.2 KiB
Smali

.class final Lcom/facebook/soloader/SysUtil$LollipopSysdeps;
.super Ljava/lang/Object;
.source "SysUtil.java"
# annotations
.annotation build Landroid/annotation/TargetApi;
value = 0x15
.end annotation
.annotation build Lcom/facebook/soloader/d;
.end annotation
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/facebook/soloader/SysUtil;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x18
name = "LollipopSysdeps"
.end annotation
# direct methods
.method private constructor <init>()V
.locals 0
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
.method public static fallocateIfSupported(Ljava/io/FileDescriptor;J)V
.locals 2
.annotation build Lcom/facebook/soloader/d;
.end annotation
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
const-wide/16 v0, 0x0
:try_start_0
invoke-static {p0, v0, v1, p1, p2}, Landroid/system/Os;->posix_fallocate(Ljava/io/FileDescriptor;JJ)V
:try_end_0
.catch Landroid/system/ErrnoException; {:try_start_0 .. :try_end_0} :catch_0
return-void
:catch_0
move-exception p0
iget p1, p0, Landroid/system/ErrnoException;->errno:I
sget p2, Landroid/system/OsConstants;->EOPNOTSUPP:I
if-eq p1, p2, :cond_1
iget p1, p0, Landroid/system/ErrnoException;->errno:I
sget p2, Landroid/system/OsConstants;->ENOSYS:I
if-eq p1, p2, :cond_1
iget p1, p0, Landroid/system/ErrnoException;->errno:I
sget p2, Landroid/system/OsConstants;->EINVAL:I
if-ne p1, p2, :cond_0
goto :goto_0
:cond_0
new-instance p1, Ljava/io/IOException;
invoke-virtual {p0}, Landroid/system/ErrnoException;->toString()Ljava/lang/String;
move-result-object p2
invoke-direct {p1, p2, p0}, Ljava/io/IOException;-><init>(Ljava/lang/String;Ljava/lang/Throwable;)V
throw p1
:cond_1
:goto_0
return-void
.end method
.method public static getSupportedAbis()[Ljava/lang/String;
.locals 1
.annotation build Lcom/facebook/soloader/d;
.end annotation
sget-object v0, Landroid/os/Build;->SUPPORTED_ABIS:[Ljava/lang/String;
return-object v0
.end method