2019-02-17 02:24:41 +00:00
|
|
|
.class final Lcom/facebook/soloader/SysUtil$LollipopSysdeps;
|
2019-02-04 20:08:30 +00:00
|
|
|
.super Ljava/lang/Object;
|
2019-02-04 20:29:01 +00:00
|
|
|
.source "SysUtil.java"
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
|
|
|
|
# annotations
|
2019-02-17 02:24:41 +00:00
|
|
|
.annotation build Landroid/annotation/TargetApi;
|
|
|
|
value = 0x15
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
.annotation build Lcom/facebook/soloader/d;
|
|
|
|
.end annotation
|
|
|
|
|
2019-02-04 20:08:30 +00:00
|
|
|
.annotation system Ldalvik/annotation/EnclosingClass;
|
2019-02-17 02:24:41 +00:00
|
|
|
value = Lcom/facebook/soloader/SysUtil;
|
2019-02-04 20:08:30 +00:00
|
|
|
.end annotation
|
|
|
|
|
|
|
|
.annotation system Ldalvik/annotation/InnerClass;
|
|
|
|
accessFlags = 0x18
|
2019-02-17 02:24:41 +00:00
|
|
|
name = "LollipopSysdeps"
|
2019-02-04 20:08:30 +00:00
|
|
|
.end annotation
|
|
|
|
|
|
|
|
|
|
|
|
# direct methods
|
2019-02-17 02:24:41 +00:00
|
|
|
.method private constructor <init>()V
|
|
|
|
.locals 0
|
|
|
|
|
|
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
2019-02-04 20:08:30 +00:00
|
|
|
.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
|