First Upload

Just the APK
Force update disabled, will only work offline.
This commit is contained in:
supermegamestre
2026-01-26 00:26:29 -03:00
commit 4bbd74a497
44413 changed files with 11043538 additions and 0 deletions

View File

@@ -0,0 +1,40 @@
.class Landroidx/profileinstaller/BenchmarkOperation$Api21ContextHelper;
.super Ljava/lang/Object;
.source "SourceFile"
# annotations
.annotation build Landroidx/annotation/RequiresApi;
api = 0x15
.end annotation
.annotation system Ldalvik/annotation/EnclosingClass;
value = Landroidx/profileinstaller/BenchmarkOperation;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x9
name = "Api21ContextHelper"
.end annotation
# direct methods
.method private constructor <init>()V
.locals 0
.line 76
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
.method public static getCodeCacheDir(Landroid/content/Context;)Ljava/io/File;
.locals 0
.line 79
invoke-virtual {p0}, Landroid/content/Context;->getCodeCacheDir()Ljava/io/File;
move-result-object p0
return-object p0
.end method

View File

@@ -0,0 +1,44 @@
.class Landroidx/profileinstaller/BenchmarkOperation$Api24ContextHelper;
.super Ljava/lang/Object;
.source "SourceFile"
# annotations
.annotation build Landroidx/annotation/RequiresApi;
api = 0x18
.end annotation
.annotation system Ldalvik/annotation/EnclosingClass;
value = Landroidx/profileinstaller/BenchmarkOperation;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x9
name = "Api24ContextHelper"
.end annotation
# direct methods
.method private constructor <init>()V
.locals 0
.line 84
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
.method public static getDeviceProtectedCodeCacheDir(Landroid/content/Context;)Ljava/io/File;
.locals 0
.line 87
invoke-virtual {p0}, Landroid/content/Context;->createDeviceProtectedStorageContext()Landroid/content/Context;
move-result-object p0
invoke-virtual {p0}, Landroid/content/Context;->getCodeCacheDir()Ljava/io/File;
move-result-object p0
return-object p0
.end method

View File

@@ -0,0 +1,132 @@
.class Landroidx/profileinstaller/BenchmarkOperation;
.super Ljava/lang/Object;
.source "SourceFile"
# annotations
.annotation system Ldalvik/annotation/MemberClasses;
value = {
Landroidx/profileinstaller/BenchmarkOperation$Api24ContextHelper;,
Landroidx/profileinstaller/BenchmarkOperation$Api21ContextHelper;
}
.end annotation
# direct methods
.method private constructor <init>()V
.locals 0
.line 28
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
.method public static deleteFilesRecursively(Ljava/io/File;)Z
.locals 6
.line 58
invoke-virtual {p0}, Ljava/io/File;->isDirectory()Z
move-result v0
const/4 v1, 0x1
if-eqz v0, :cond_3
.line 59
invoke-virtual {p0}, Ljava/io/File;->listFiles()[Ljava/io/File;
move-result-object p0
const/4 v0, 0x0
if-nez p0, :cond_0
return v0
.line 64
:cond_0
array-length v2, p0
move v3, v0
move v4, v1
:goto_0
if-ge v3, v2, :cond_2
aget-object v5, p0, v3
.line 65
invoke-static {v5}, Landroidx/profileinstaller/BenchmarkOperation;->deleteFilesRecursively(Ljava/io/File;)Z
move-result v5
if-eqz v5, :cond_1
if-eqz v4, :cond_1
move v4, v1
goto :goto_1
:cond_1
move v4, v0
:goto_1
add-int/lit8 v3, v3, 0x1
goto :goto_0
:cond_2
return v4
.line 70
:cond_3
invoke-virtual {p0}, Ljava/io/File;->delete()Z
return v1
.end method
.method public static dropShaderCache(Landroid/content/Context;Landroidx/profileinstaller/ProfileInstallReceiver$ResultDiagnostics;)V
.locals 1
.param p0 # Landroid/content/Context;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.param p1 # Landroidx/profileinstaller/ProfileInstallReceiver$ResultDiagnostics;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.line 37
invoke-static {p0}, Landroidx/profileinstaller/BenchmarkOperation$Api24ContextHelper;->getDeviceProtectedCodeCacheDir(Landroid/content/Context;)Ljava/io/File;
move-result-object p0
.line 44
invoke-static {p0}, Landroidx/profileinstaller/BenchmarkOperation;->deleteFilesRecursively(Ljava/io/File;)Z
move-result p0
const/4 v0, 0x0
if-eqz p0, :cond_0
const/16 p0, 0xe
.line 45
invoke-virtual {p1, p0, v0}, Landroidx/profileinstaller/ProfileInstallReceiver$ResultDiagnostics;->onResultReceived(ILjava/lang/Object;)V
goto :goto_0
:cond_0
const/16 p0, 0xf
.line 47
invoke-virtual {p1, p0, v0}, Landroidx/profileinstaller/ProfileInstallReceiver$ResultDiagnostics;->onResultReceived(ILjava/lang/Object;)V
:goto_0
return-void
.end method

View File

@@ -0,0 +1,48 @@
.class public final synthetic Landroidx/profileinstaller/DeviceProfileWriter$$ExternalSyntheticLambda0;
.super Ljava/lang/Object;
.source "SourceFile"
# interfaces
.implements Ljava/lang/Runnable;
# instance fields
.field public final synthetic f$0:Landroidx/profileinstaller/DeviceProfileWriter;
.field public final synthetic f$1:I
.field public final synthetic f$2:Ljava/lang/Object;
# direct methods
.method public synthetic constructor <init>(Landroidx/profileinstaller/DeviceProfileWriter;ILjava/lang/Object;)V
.locals 0
.line 0
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
iput-object p1, p0, Landroidx/profileinstaller/DeviceProfileWriter$$ExternalSyntheticLambda0;->f$0:Landroidx/profileinstaller/DeviceProfileWriter;
iput p2, p0, Landroidx/profileinstaller/DeviceProfileWriter$$ExternalSyntheticLambda0;->f$1:I
iput-object p3, p0, Landroidx/profileinstaller/DeviceProfileWriter$$ExternalSyntheticLambda0;->f$2:Ljava/lang/Object;
return-void
.end method
# virtual methods
.method public final run()V
.locals 3
.line 0
iget-object v0, p0, Landroidx/profileinstaller/DeviceProfileWriter$$ExternalSyntheticLambda0;->f$0:Landroidx/profileinstaller/DeviceProfileWriter;
iget v1, p0, Landroidx/profileinstaller/DeviceProfileWriter$$ExternalSyntheticLambda0;->f$1:I
iget-object v2, p0, Landroidx/profileinstaller/DeviceProfileWriter$$ExternalSyntheticLambda0;->f$2:Ljava/lang/Object;
invoke-static {v0, v1, v2}, Landroidx/profileinstaller/DeviceProfileWriter;->$r8$lambda$ERhlvXCSfTRq-n5iULYjO-Ntn-w(Landroidx/profileinstaller/DeviceProfileWriter;ILjava/lang/Object;)V
return-void
.end method

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,101 @@
.class Landroidx/profileinstaller/DexProfileData;
.super Ljava/lang/Object;
.source "SourceFile"
# instance fields
.field final apkName:Ljava/lang/String;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end field
.field classSetSize:I
.field classes:[I
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end field
.field final dexChecksum:J
.field final dexName:Ljava/lang/String;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end field
.field final hotMethodRegionSize:I
.field mTypeIdCount:J
.field final methods:Ljava/util/TreeMap;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/TreeMap<",
"Ljava/lang/Integer;",
"Ljava/lang/Integer;",
">;"
}
.end annotation
.end field
.field final numMethodIds:I
# direct methods
.method public constructor <init>(Ljava/lang/String;Ljava/lang/String;JJIII[ILjava/util/TreeMap;)V
.locals 0
.param p1 # Ljava/lang/String;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.param p2 # Ljava/lang/String;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.param p10 # [I
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.param p11 # Ljava/util/TreeMap;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/lang/String;",
"Ljava/lang/String;",
"JJIII[I",
"Ljava/util/TreeMap<",
"Ljava/lang/Integer;",
"Ljava/lang/Integer;",
">;)V"
}
.end annotation
.line 47
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
iput-object p1, p0, Landroidx/profileinstaller/DexProfileData;->apkName:Ljava/lang/String;
iput-object p2, p0, Landroidx/profileinstaller/DexProfileData;->dexName:Ljava/lang/String;
iput-wide p3, p0, Landroidx/profileinstaller/DexProfileData;->dexChecksum:J
iput-wide p5, p0, Landroidx/profileinstaller/DexProfileData;->mTypeIdCount:J
iput p7, p0, Landroidx/profileinstaller/DexProfileData;->classSetSize:I
iput p8, p0, Landroidx/profileinstaller/DexProfileData;->hotMethodRegionSize:I
iput p9, p0, Landroidx/profileinstaller/DexProfileData;->numMethodIds:I
iput-object p10, p0, Landroidx/profileinstaller/DexProfileData;->classes:[I
iput-object p11, p0, Landroidx/profileinstaller/DexProfileData;->methods:Ljava/util/TreeMap;
return-void
.end method

View File

@@ -0,0 +1,776 @@
.class Landroidx/profileinstaller/Encoding;
.super Ljava/lang/Object;
.source "SourceFile"
# annotations
.annotation build Landroidx/annotation/RequiresApi;
value = 0x13
.end annotation
# static fields
.field static final SIZEOF_BYTE:I = 0x8
.field static final UINT_16_SIZE:I = 0x2
.field static final UINT_32_SIZE:I = 0x4
.field static final UINT_8_SIZE:I = 0x1
# direct methods
.method private constructor <init>()V
.locals 0
.line 38
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
.method public static bitsToBytes(I)I
.locals 0
add-int/lit8 p0, p0, 0x7
and-int/lit8 p0, p0, -0x8
.line 75
div-int/lit8 p0, p0, 0x8
return p0
.end method
.method public static compress([B)[B
.locals 3
.param p0 # [B
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
.line 177
new-instance v0, Ljava/util/zip/Deflater;
const/4 v1, 0x1
invoke-direct {v0, v1}, Ljava/util/zip/Deflater;-><init>(I)V
.line 178
new-instance v1, Ljava/io/ByteArrayOutputStream;
invoke-direct {v1}, Ljava/io/ByteArrayOutputStream;-><init>()V
.line 179
:try_start_0
new-instance v2, Ljava/util/zip/DeflaterOutputStream;
invoke-direct {v2, v1, v0}, Ljava/util/zip/DeflaterOutputStream;-><init>(Ljava/io/OutputStream;Ljava/util/zip/Deflater;)V
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
.line 180
:try_start_1
invoke-virtual {v2, p0}, Ljava/io/OutputStream;->write([B)V
:try_end_1
.catchall {:try_start_1 .. :try_end_1} :catchall_1
.line 181
:try_start_2
invoke-virtual {v2}, Ljava/util/zip/DeflaterOutputStream;->close()V
:try_end_2
.catchall {:try_start_2 .. :try_end_2} :catchall_0
.line 182
invoke-virtual {v0}, Ljava/util/zip/Deflater;->end()V
.line 184
invoke-virtual {v1}, Ljava/io/ByteArrayOutputStream;->toByteArray()[B
move-result-object p0
return-object p0
:catchall_0
move-exception p0
goto :goto_1
:catchall_1
move-exception p0
.line 179
:try_start_3
invoke-virtual {v2}, Ljava/util/zip/DeflaterOutputStream;->close()V
:try_end_3
.catchall {:try_start_3 .. :try_end_3} :catchall_2
goto :goto_0
:catchall_2
move-exception v1
:try_start_4
invoke-virtual {p0, v1}, Ljava/lang/Throwable;->addSuppressed(Ljava/lang/Throwable;)V
:goto_0
throw p0
:try_end_4
.catchall {:try_start_4 .. :try_end_4} :catchall_0
.line 182
:goto_1
invoke-virtual {v0}, Ljava/util/zip/Deflater;->end()V
.line 183
throw p0
.end method
.method public static error(Ljava/lang/String;)Ljava/lang/RuntimeException;
.locals 1
.param p0 # Ljava/lang/String;
.annotation build Landroidx/annotation/Nullable;
.end annotation
.end param
.annotation build Landroidx/annotation/NonNull;
.end annotation
.line 196
new-instance v0, Ljava/lang/IllegalStateException;
invoke-direct {v0, p0}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
return-object v0
.end method
.method public static read(Ljava/io/InputStream;I)[B
.locals 3
.param p0 # Ljava/io/InputStream;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.annotation build Landroidx/annotation/NonNull;
.end annotation
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
.line 79
new-array v0, p1, [B
const/4 v1, 0x0
:goto_0
if-ge v1, p1, :cond_1
sub-int v2, p1, v1
.line 82
invoke-virtual {p0, v0, v1, v2}, Ljava/io/InputStream;->read([BII)I
move-result v2
if-ltz v2, :cond_0
add-int/2addr v1, v2
goto :goto_0
.line 84
:cond_0
new-instance p0, Ljava/lang/StringBuilder;
invoke-direct {p0}, Ljava/lang/StringBuilder;-><init>()V
const-string v0, "Not enough bytes to read: "
invoke-virtual {p0, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {p0, p1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
invoke-virtual {p0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object p0
invoke-static {p0}, Landroidx/profileinstaller/Encoding;->error(Ljava/lang/String;)Ljava/lang/RuntimeException;
move-result-object p0
throw p0
:cond_1
return-object v0
.end method
.method public static readCompressed(Ljava/io/InputStream;II)[B
.locals 8
.param p0 # Ljava/io/InputStream;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.annotation build Landroidx/annotation/NonNull;
.end annotation
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
.line 123
new-instance v0, Ljava/util/zip/Inflater;
invoke-direct {v0}, Ljava/util/zip/Inflater;-><init>()V
.line 125
:try_start_0
new-array v1, p2, [B
const/16 v2, 0x800
new-array v2, v2, [B
const/4 v3, 0x0
move v4, v3
move v5, v4
.line 130
:goto_0
invoke-virtual {v0}, Ljava/util/zip/Inflater;->finished()Z
move-result v6
if-nez v6, :cond_1
.line 131
invoke-virtual {v0}, Ljava/util/zip/Inflater;->needsDictionary()Z
move-result v6
if-nez v6, :cond_1
if-ge v4, p1, :cond_1
.line 134
invoke-virtual {p0, v2}, Ljava/io/InputStream;->read([B)I
move-result v6
if-ltz v6, :cond_0
.line 141
invoke-virtual {v0, v2, v3, v6}, Ljava/util/zip/Inflater;->setInput([BII)V
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
sub-int v7, p2, v5
.line 143
:try_start_1
invoke-virtual {v0, v1, v5, v7}, Ljava/util/zip/Inflater;->inflate([BII)I
move-result v7
:try_end_1
.catch Ljava/util/zip/DataFormatException; {:try_start_1 .. :try_end_1} :catch_0
.catchall {:try_start_1 .. :try_end_1} :catchall_0
add-int/2addr v5, v7
add-int/2addr v4, v6
goto :goto_0
:catchall_0
move-exception p0
goto :goto_1
:catch_0
move-exception p0
.line 149
:try_start_2
invoke-virtual {p0}, Ljava/lang/Throwable;->getMessage()Ljava/lang/String;
move-result-object p0
invoke-static {p0}, Landroidx/profileinstaller/Encoding;->error(Ljava/lang/String;)Ljava/lang/RuntimeException;
move-result-object p0
throw p0
.line 136
:cond_0
new-instance p0, Ljava/lang/StringBuilder;
invoke-direct {p0}, Ljava/lang/StringBuilder;-><init>()V
const-string p2, "Invalid zip data. Stream ended after $totalBytesRead bytes. Expected "
invoke-virtual {p0, p2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {p0, p1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
const-string p1, " bytes"
invoke-virtual {p0, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {p0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object p0
invoke-static {p0}, Landroidx/profileinstaller/Encoding;->error(Ljava/lang/String;)Ljava/lang/RuntimeException;
move-result-object p0
throw p0
:cond_1
if-ne v4, p1, :cond_3
.line 160
invoke-virtual {v0}, Ljava/util/zip/Inflater;->finished()Z
move-result p0
:try_end_2
.catchall {:try_start_2 .. :try_end_2} :catchall_0
if-eqz p0, :cond_2
.line 165
invoke-virtual {v0}, Ljava/util/zip/Inflater;->end()V
return-object v1
:cond_2
:try_start_3
const-string p0, "Inflater did not finish"
.line 161
invoke-static {p0}, Landroidx/profileinstaller/Encoding;->error(Ljava/lang/String;)Ljava/lang/RuntimeException;
move-result-object p0
throw p0
.line 154
:cond_3
new-instance p0, Ljava/lang/StringBuilder;
invoke-direct {p0}, Ljava/lang/StringBuilder;-><init>()V
const-string p2, "Didn\'t read enough bytes during decompression. expected="
invoke-virtual {p0, p2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {p0, p1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
const-string p1, " actual="
invoke-virtual {p0, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {p0, v4}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
invoke-virtual {p0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object p0
invoke-static {p0}, Landroidx/profileinstaller/Encoding;->error(Ljava/lang/String;)Ljava/lang/RuntimeException;
move-result-object p0
throw p0
:try_end_3
.catchall {:try_start_3 .. :try_end_3} :catchall_0
.line 165
:goto_1
invoke-virtual {v0}, Ljava/util/zip/Inflater;->end()V
.line 166
throw p0
.end method
.method public static readString(Ljava/io/InputStream;I)Ljava/lang/String;
.locals 1
.annotation build Landroidx/annotation/NonNull;
.end annotation
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
.line 114
new-instance v0, Ljava/lang/String;
invoke-static {p0, p1}, Landroidx/profileinstaller/Encoding;->read(Ljava/io/InputStream;I)[B
move-result-object p0
sget-object p1, Ljava/nio/charset/StandardCharsets;->UTF_8:Ljava/nio/charset/Charset;
invoke-direct {v0, p0, p1}, Ljava/lang/String;-><init>([BLjava/nio/charset/Charset;)V
return-object v0
.end method
.method public static readUInt(Ljava/io/InputStream;I)J
.locals 6
.param p0 # Ljava/io/InputStream;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
.line 92
invoke-static {p0, p1}, Landroidx/profileinstaller/Encoding;->read(Ljava/io/InputStream;I)[B
move-result-object p0
const-wide/16 v0, 0x0
const/4 v2, 0x0
:goto_0
if-ge v2, p1, :cond_0
.line 95
aget-byte v3, p0, v2
and-int/lit16 v3, v3, 0xff
int-to-long v3, v3
mul-int/lit8 v5, v2, 0x8
shl-long/2addr v3, v5
add-long/2addr v0, v3
add-int/lit8 v2, v2, 0x1
goto :goto_0
:cond_0
return-wide v0
.end method
.method public static readUInt16(Ljava/io/InputStream;)I
.locals 2
.param p0 # Ljava/io/InputStream;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
const/4 v0, 0x2
.line 106
invoke-static {p0, v0}, Landroidx/profileinstaller/Encoding;->readUInt(Ljava/io/InputStream;I)J
move-result-wide v0
long-to-int p0, v0
return p0
.end method
.method public static readUInt32(Ljava/io/InputStream;)J
.locals 2
.param p0 # Ljava/io/InputStream;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
const/4 v0, 0x4
.line 110
invoke-static {p0, v0}, Landroidx/profileinstaller/Encoding;->readUInt(Ljava/io/InputStream;I)J
move-result-wide v0
return-wide v0
.end method
.method public static readUInt8(Ljava/io/InputStream;)I
.locals 2
.param p0 # Ljava/io/InputStream;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
const/4 v0, 0x1
.line 102
invoke-static {p0, v0}, Landroidx/profileinstaller/Encoding;->readUInt(Ljava/io/InputStream;I)J
move-result-wide v0
long-to-int p0, v0
return p0
.end method
.method public static utf8Length(Ljava/lang/String;)I
.locals 1
.param p0 # Ljava/lang/String;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.line 46
sget-object v0, Ljava/nio/charset/StandardCharsets;->UTF_8:Ljava/nio/charset/Charset;
invoke-virtual {p0, v0}, Ljava/lang/String;->getBytes(Ljava/nio/charset/Charset;)[B
move-result-object p0
array-length p0, p0
return p0
.end method
.method public static writeAll(Ljava/io/InputStream;Ljava/io/OutputStream;)V
.locals 3
.param p0 # Ljava/io/InputStream;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.param p1 # Ljava/io/OutputStream;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
const/16 v0, 0x200
new-array v0, v0, [B
.line 190
:goto_0
invoke-virtual {p0, v0}, Ljava/io/InputStream;->read([B)I
move-result v1
if-lez v1, :cond_0
const/4 v2, 0x0
.line 191
invoke-virtual {p1, v0, v2, v1}, Ljava/io/OutputStream;->write([BII)V
goto :goto_0
:cond_0
return-void
.end method
.method public static writeCompressed(Ljava/io/OutputStream;[B)V
.locals 2
.param p0 # Ljava/io/OutputStream;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
.line 170
array-length v0, p1
int-to-long v0, v0
invoke-static {p0, v0, v1}, Landroidx/profileinstaller/Encoding;->writeUInt32(Ljava/io/OutputStream;J)V
.line 171
invoke-static {p1}, Landroidx/profileinstaller/Encoding;->compress([B)[B
move-result-object p1
.line 172
array-length v0, p1
int-to-long v0, v0
invoke-static {p0, v0, v1}, Landroidx/profileinstaller/Encoding;->writeUInt32(Ljava/io/OutputStream;J)V
.line 173
invoke-virtual {p0, p1}, Ljava/io/OutputStream;->write([B)V
return-void
.end method
.method public static writeString(Ljava/io/OutputStream;Ljava/lang/String;)V
.locals 1
.param p0 # Ljava/io/OutputStream;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.param p1 # Ljava/lang/String;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
.line 71
sget-object v0, Ljava/nio/charset/StandardCharsets;->UTF_8:Ljava/nio/charset/Charset;
invoke-virtual {p1, v0}, Ljava/lang/String;->getBytes(Ljava/nio/charset/Charset;)[B
move-result-object p1
invoke-virtual {p0, p1}, Ljava/io/OutputStream;->write([B)V
return-void
.end method
.method public static writeUInt(Ljava/io/OutputStream;JI)V
.locals 6
.param p0 # Ljava/io/OutputStream;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
.line 51
new-array v0, p3, [B
const/4 v1, 0x0
:goto_0
if-ge v1, p3, :cond_0
mul-int/lit8 v2, v1, 0x8
shr-long v2, p1, v2
const-wide/16 v4, 0xff
and-long/2addr v2, v4
long-to-int v2, v2
int-to-byte v2, v2
.line 53
aput-byte v2, v0, v1
add-int/lit8 v1, v1, 0x1
goto :goto_0
.line 55
:cond_0
invoke-virtual {p0, v0}, Ljava/io/OutputStream;->write([B)V
return-void
.end method
.method public static writeUInt16(Ljava/io/OutputStream;I)V
.locals 2
.param p0 # Ljava/io/OutputStream;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
int-to-long v0, p1
const/4 p1, 0x2
.line 63
invoke-static {p0, v0, v1, p1}, Landroidx/profileinstaller/Encoding;->writeUInt(Ljava/io/OutputStream;JI)V
return-void
.end method
.method public static writeUInt32(Ljava/io/OutputStream;J)V
.locals 1
.param p0 # Ljava/io/OutputStream;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
const/4 v0, 0x4
.line 67
invoke-static {p0, p1, p2, v0}, Landroidx/profileinstaller/Encoding;->writeUInt(Ljava/io/OutputStream;JI)V
return-void
.end method
.method public static writeUInt8(Ljava/io/OutputStream;I)V
.locals 2
.param p0 # Ljava/io/OutputStream;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
int-to-long v0, p1
const/4 p1, 0x1
.line 59
invoke-static {p0, v0, v1, p1}, Landroidx/profileinstaller/Encoding;->writeUInt(Ljava/io/OutputStream;JI)V
return-void
.end method

View File

@@ -0,0 +1,247 @@
.class final enum Landroidx/profileinstaller/FileSectionType;
.super Ljava/lang/Enum;
.source "SourceFile"
# annotations
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/lang/Enum<",
"Landroidx/profileinstaller/FileSectionType;",
">;"
}
.end annotation
# static fields
.field private static final synthetic $VALUES:[Landroidx/profileinstaller/FileSectionType;
.field public static final enum AGGREGATION_COUNT:Landroidx/profileinstaller/FileSectionType;
.field public static final enum CLASSES:Landroidx/profileinstaller/FileSectionType;
.field public static final enum DEX_FILES:Landroidx/profileinstaller/FileSectionType;
.field public static final enum EXTRA_DESCRIPTORS:Landroidx/profileinstaller/FileSectionType;
.field public static final enum METHODS:Landroidx/profileinstaller/FileSectionType;
# instance fields
.field private final mValue:J
# direct methods
.method private static synthetic $values()[Landroidx/profileinstaller/FileSectionType;
.locals 5
sget-object v0, Landroidx/profileinstaller/FileSectionType;->DEX_FILES:Landroidx/profileinstaller/FileSectionType;
sget-object v1, Landroidx/profileinstaller/FileSectionType;->EXTRA_DESCRIPTORS:Landroidx/profileinstaller/FileSectionType;
sget-object v2, Landroidx/profileinstaller/FileSectionType;->CLASSES:Landroidx/profileinstaller/FileSectionType;
sget-object v3, Landroidx/profileinstaller/FileSectionType;->METHODS:Landroidx/profileinstaller/FileSectionType;
sget-object v4, Landroidx/profileinstaller/FileSectionType;->AGGREGATION_COUNT:Landroidx/profileinstaller/FileSectionType;
filled-new-array {v0, v1, v2, v3, v4}, [Landroidx/profileinstaller/FileSectionType;
move-result-object v0
return-object v0
.end method
.method static constructor <clinit>()V
.locals 5
.line 24
new-instance v0, Landroidx/profileinstaller/FileSectionType;
const/4 v1, 0x0
const-wide/16 v2, 0x0
const-string v4, "DEX_FILES"
invoke-direct {v0, v4, v1, v2, v3}, Landroidx/profileinstaller/FileSectionType;-><init>(Ljava/lang/String;IJ)V
sput-object v0, Landroidx/profileinstaller/FileSectionType;->DEX_FILES:Landroidx/profileinstaller/FileSectionType;
.line 30
new-instance v0, Landroidx/profileinstaller/FileSectionType;
const/4 v1, 0x1
const-wide/16 v2, 0x1
const-string v4, "EXTRA_DESCRIPTORS"
invoke-direct {v0, v4, v1, v2, v3}, Landroidx/profileinstaller/FileSectionType;-><init>(Ljava/lang/String;IJ)V
sput-object v0, Landroidx/profileinstaller/FileSectionType;->EXTRA_DESCRIPTORS:Landroidx/profileinstaller/FileSectionType;
.line 31
new-instance v0, Landroidx/profileinstaller/FileSectionType;
const/4 v1, 0x2
const-wide/16 v2, 0x2
const-string v4, "CLASSES"
invoke-direct {v0, v4, v1, v2, v3}, Landroidx/profileinstaller/FileSectionType;-><init>(Ljava/lang/String;IJ)V
sput-object v0, Landroidx/profileinstaller/FileSectionType;->CLASSES:Landroidx/profileinstaller/FileSectionType;
.line 32
new-instance v0, Landroidx/profileinstaller/FileSectionType;
const/4 v1, 0x3
const-wide/16 v2, 0x3
const-string v4, "METHODS"
invoke-direct {v0, v4, v1, v2, v3}, Landroidx/profileinstaller/FileSectionType;-><init>(Ljava/lang/String;IJ)V
sput-object v0, Landroidx/profileinstaller/FileSectionType;->METHODS:Landroidx/profileinstaller/FileSectionType;
.line 33
new-instance v0, Landroidx/profileinstaller/FileSectionType;
const/4 v1, 0x4
const-wide/16 v2, 0x4
const-string v4, "AGGREGATION_COUNT"
invoke-direct {v0, v4, v1, v2, v3}, Landroidx/profileinstaller/FileSectionType;-><init>(Ljava/lang/String;IJ)V
sput-object v0, Landroidx/profileinstaller/FileSectionType;->AGGREGATION_COUNT:Landroidx/profileinstaller/FileSectionType;
.line 22
invoke-static {}, Landroidx/profileinstaller/FileSectionType;->$values()[Landroidx/profileinstaller/FileSectionType;
move-result-object v0
sput-object v0, Landroidx/profileinstaller/FileSectionType;->$VALUES:[Landroidx/profileinstaller/FileSectionType;
return-void
.end method
.method private constructor <init>(Ljava/lang/String;IJ)V
.locals 0
.annotation system Ldalvik/annotation/Signature;
value = {
"(J)V"
}
.end annotation
.line 37
invoke-direct {p0, p1, p2}, Ljava/lang/Enum;-><init>(Ljava/lang/String;I)V
iput-wide p3, p0, Landroidx/profileinstaller/FileSectionType;->mValue:J
return-void
.end method
.method public static fromValue(J)Landroidx/profileinstaller/FileSectionType;
.locals 4
.line 46
invoke-static {}, Landroidx/profileinstaller/FileSectionType;->values()[Landroidx/profileinstaller/FileSectionType;
move-result-object v0
const/4 v1, 0x0
.line 47
:goto_0
array-length v2, v0
if-ge v1, v2, :cond_1
.line 48
aget-object v2, v0, v1
invoke-virtual {v2}, Landroidx/profileinstaller/FileSectionType;->getValue()J
move-result-wide v2
cmp-long v2, v2, p0
if-nez v2, :cond_0
.line 49
aget-object p0, v0, v1
return-object p0
:cond_0
add-int/lit8 v1, v1, 0x1
goto :goto_0
.line 52
:cond_1
new-instance v0, Ljava/lang/IllegalArgumentException;
new-instance v1, Ljava/lang/StringBuilder;
invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V
const-string v2, "Unsupported FileSection Type "
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v1, p0, p1}, Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder;
invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object p0
invoke-direct {v0, p0}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
throw v0
.end method
.method public static valueOf(Ljava/lang/String;)Landroidx/profileinstaller/FileSectionType;
.locals 1
const-class v0, Landroidx/profileinstaller/FileSectionType;
.line 22
invoke-static {v0, p0}, Ljava/lang/Enum;->valueOf(Ljava/lang/Class;Ljava/lang/String;)Ljava/lang/Enum;
move-result-object p0
check-cast p0, Landroidx/profileinstaller/FileSectionType;
return-object p0
.end method
.method public static values()[Landroidx/profileinstaller/FileSectionType;
.locals 1
sget-object v0, Landroidx/profileinstaller/FileSectionType;->$VALUES:[Landroidx/profileinstaller/FileSectionType;
.line 22
invoke-virtual {v0}, [Landroidx/profileinstaller/FileSectionType;->clone()Ljava/lang/Object;
move-result-object v0
check-cast v0, [Landroidx/profileinstaller/FileSectionType;
return-object v0
.end method
# virtual methods
.method public getValue()J
.locals 2
iget-wide v0, p0, Landroidx/profileinstaller/FileSectionType;->mValue:J
return-wide v0
.end method

View File

@@ -0,0 +1,71 @@
.class Landroidx/profileinstaller/ProfileInstallReceiver$ResultDiagnostics;
.super Ljava/lang/Object;
.source "SourceFile"
# interfaces
.implements Landroidx/profileinstaller/ProfileInstaller$DiagnosticsCallback;
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Landroidx/profileinstaller/ProfileInstallReceiver;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x1
name = "ResultDiagnostics"
.end annotation
# instance fields
.field final synthetic this$0:Landroidx/profileinstaller/ProfileInstallReceiver;
# direct methods
.method public constructor <init>(Landroidx/profileinstaller/ProfileInstallReceiver;)V
.locals 0
iput-object p1, p0, Landroidx/profileinstaller/ProfileInstallReceiver$ResultDiagnostics;->this$0:Landroidx/profileinstaller/ProfileInstallReceiver;
.line 157
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
# virtual methods
.method public onDiagnosticReceived(ILjava/lang/Object;)V
.locals 1
.param p2 # Ljava/lang/Object;
.annotation build Landroidx/annotation/Nullable;
.end annotation
.end param
.line 160
sget-object v0, Landroidx/profileinstaller/ProfileInstaller;->LOG_DIAGNOSTICS:Landroidx/profileinstaller/ProfileInstaller$DiagnosticsCallback;
invoke-interface {v0, p1, p2}, Landroidx/profileinstaller/ProfileInstaller$DiagnosticsCallback;->onDiagnosticReceived(ILjava/lang/Object;)V
return-void
.end method
.method public onResultReceived(ILjava/lang/Object;)V
.locals 1
.param p2 # Ljava/lang/Object;
.annotation build Landroidx/annotation/Nullable;
.end annotation
.end param
.line 165
sget-object v0, Landroidx/profileinstaller/ProfileInstaller;->LOG_DIAGNOSTICS:Landroidx/profileinstaller/ProfileInstaller$DiagnosticsCallback;
invoke-interface {v0, p1, p2}, Landroidx/profileinstaller/ProfileInstaller$DiagnosticsCallback;->onResultReceived(ILjava/lang/Object;)V
iget-object p2, p0, Landroidx/profileinstaller/ProfileInstallReceiver$ResultDiagnostics;->this$0:Landroidx/profileinstaller/ProfileInstallReceiver;
.line 166
invoke-virtual {p2, p1}, Landroid/content/BroadcastReceiver;->setResultCode(I)V
return-void
.end method

View File

@@ -0,0 +1,286 @@
.class public Landroidx/profileinstaller/ProfileInstallReceiver;
.super Landroid/content/BroadcastReceiver;
.source "SourceFile"
# annotations
.annotation system Ldalvik/annotation/MemberClasses;
value = {
Landroidx/profileinstaller/ProfileInstallReceiver$ResultDiagnostics;
}
.end annotation
# static fields
.field public static final ACTION_BENCHMARK_OPERATION:Ljava/lang/String; = "androidx.profileinstaller.action.BENCHMARK_OPERATION"
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end field
.field public static final ACTION_INSTALL_PROFILE:Ljava/lang/String; = "androidx.profileinstaller.action.INSTALL_PROFILE"
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end field
.field public static final ACTION_SAVE_PROFILE:Ljava/lang/String; = "androidx.profileinstaller.action.SAVE_PROFILE"
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end field
.field public static final ACTION_SKIP_FILE:Ljava/lang/String; = "androidx.profileinstaller.action.SKIP_FILE"
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end field
.field private static final EXTRA_BENCHMARK_OPERATION:Ljava/lang/String; = "EXTRA_BENCHMARK_OPERATION"
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end field
.field private static final EXTRA_BENCHMARK_OPERATION_DROP_SHADER_CACHE:Ljava/lang/String; = "DROP_SHADER_CACHE"
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end field
.field private static final EXTRA_SKIP_FILE_OPERATION:Ljava/lang/String; = "EXTRA_SKIP_FILE_OPERATION"
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end field
.field private static final EXTRA_SKIP_FILE_OPERATION_DELETE:Ljava/lang/String; = "DELETE_SKIP_FILE"
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end field
.field private static final EXTRA_SKIP_FILE_OPERATION_WRITE:Ljava/lang/String; = "WRITE_SKIP_FILE"
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end field
# direct methods
.method public constructor <init>()V
.locals 0
.line 38
invoke-direct {p0}, Landroid/content/BroadcastReceiver;-><init>()V
return-void
.end method
.method public static saveProfile(Landroidx/profileinstaller/ProfileInstaller$DiagnosticsCallback;)V
.locals 2
.param p0 # Landroidx/profileinstaller/ProfileInstaller$DiagnosticsCallback;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.line 150
invoke-static {}, Landroid/os/Process;->myPid()I
move-result v0
const/16 v1, 0xa
invoke-static {v0, v1}, Landroid/os/Process;->sendSignal(II)V
const/16 v0, 0xc
const/4 v1, 0x0
.line 151
invoke-interface {p0, v0, v1}, Landroidx/profileinstaller/ProfileInstaller$DiagnosticsCallback;->onResultReceived(ILjava/lang/Object;)V
return-void
.end method
# virtual methods
.method public onReceive(Landroid/content/Context;Landroid/content/Intent;)V
.locals 2
.param p1 # Landroid/content/Context;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.param p2 # Landroid/content/Intent;
.annotation build Landroidx/annotation/Nullable;
.end annotation
.end param
if-nez p2, :cond_0
return-void
.line 102
:cond_0
invoke-virtual {p2}, Landroid/content/Intent;->getAction()Ljava/lang/String;
move-result-object v0
const-string v1, "androidx.profileinstaller.action.INSTALL_PROFILE"
.line 103
invoke-virtual {v1, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result v1
if-eqz v1, :cond_1
.line 104
new-instance p2, Landroidx/credentials/CredentialManager$$ExternalSyntheticLambda0;
invoke-direct {p2}, Landroidx/credentials/CredentialManager$$ExternalSyntheticLambda0;-><init>()V
new-instance v0, Landroidx/profileinstaller/ProfileInstallReceiver$ResultDiagnostics;
invoke-direct {v0, p0}, Landroidx/profileinstaller/ProfileInstallReceiver$ResultDiagnostics;-><init>(Landroidx/profileinstaller/ProfileInstallReceiver;)V
const/4 v1, 0x1
invoke-static {p1, p2, v0, v1}, Landroidx/profileinstaller/ProfileInstaller;->writeProfile(Landroid/content/Context;Ljava/util/concurrent/Executor;Landroidx/profileinstaller/ProfileInstaller$DiagnosticsCallback;Z)V
goto/16 :goto_0
:cond_1
const-string v1, "androidx.profileinstaller.action.SKIP_FILE"
.line 106
invoke-virtual {v1, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result v1
if-eqz v1, :cond_3
.line 107
invoke-virtual {p2}, Landroid/content/Intent;->getExtras()Landroid/os/Bundle;
move-result-object p2
if-eqz p2, :cond_6
const-string v0, "EXTRA_SKIP_FILE_OPERATION"
.line 109
invoke-virtual {p2, v0}, Landroid/os/BaseBundle;->getString(Ljava/lang/String;)Ljava/lang/String;
move-result-object p2
const-string v0, "WRITE_SKIP_FILE"
.line 110
invoke-virtual {v0, p2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result v0
if-eqz v0, :cond_2
.line 111
new-instance p2, Landroidx/credentials/CredentialManager$$ExternalSyntheticLambda0;
invoke-direct {p2}, Landroidx/credentials/CredentialManager$$ExternalSyntheticLambda0;-><init>()V
new-instance v0, Landroidx/profileinstaller/ProfileInstallReceiver$ResultDiagnostics;
invoke-direct {v0, p0}, Landroidx/profileinstaller/ProfileInstallReceiver$ResultDiagnostics;-><init>(Landroidx/profileinstaller/ProfileInstallReceiver;)V
invoke-static {p1, p2, v0}, Landroidx/profileinstaller/ProfileInstaller;->writeSkipFile(Landroid/content/Context;Ljava/util/concurrent/Executor;Landroidx/profileinstaller/ProfileInstaller$DiagnosticsCallback;)V
goto :goto_0
:cond_2
const-string v0, "DELETE_SKIP_FILE"
.line 112
invoke-virtual {v0, p2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result p2
if-eqz p2, :cond_6
.line 113
new-instance p2, Landroidx/credentials/CredentialManager$$ExternalSyntheticLambda0;
invoke-direct {p2}, Landroidx/credentials/CredentialManager$$ExternalSyntheticLambda0;-><init>()V
new-instance v0, Landroidx/profileinstaller/ProfileInstallReceiver$ResultDiagnostics;
invoke-direct {v0, p0}, Landroidx/profileinstaller/ProfileInstallReceiver$ResultDiagnostics;-><init>(Landroidx/profileinstaller/ProfileInstallReceiver;)V
invoke-static {p1, p2, v0}, Landroidx/profileinstaller/ProfileInstaller;->deleteSkipFile(Landroid/content/Context;Ljava/util/concurrent/Executor;Landroidx/profileinstaller/ProfileInstaller$DiagnosticsCallback;)V
goto :goto_0
:cond_3
const-string v1, "androidx.profileinstaller.action.SAVE_PROFILE"
.line 117
invoke-virtual {v1, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result v1
if-eqz v1, :cond_4
.line 118
new-instance p1, Landroidx/profileinstaller/ProfileInstallReceiver$ResultDiagnostics;
invoke-direct {p1, p0}, Landroidx/profileinstaller/ProfileInstallReceiver$ResultDiagnostics;-><init>(Landroidx/profileinstaller/ProfileInstallReceiver;)V
invoke-static {p1}, Landroidx/profileinstaller/ProfileInstallReceiver;->saveProfile(Landroidx/profileinstaller/ProfileInstaller$DiagnosticsCallback;)V
goto :goto_0
:cond_4
const-string v1, "androidx.profileinstaller.action.BENCHMARK_OPERATION"
.line 119
invoke-virtual {v1, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result v0
if-eqz v0, :cond_6
.line 120
invoke-virtual {p2}, Landroid/content/Intent;->getExtras()Landroid/os/Bundle;
move-result-object p2
if-eqz p2, :cond_6
const-string v0, "EXTRA_BENCHMARK_OPERATION"
.line 122
invoke-virtual {p2, v0}, Landroid/os/BaseBundle;->getString(Ljava/lang/String;)Ljava/lang/String;
move-result-object p2
.line 123
new-instance v0, Landroidx/profileinstaller/ProfileInstallReceiver$ResultDiagnostics;
invoke-direct {v0, p0}, Landroidx/profileinstaller/ProfileInstallReceiver$ResultDiagnostics;-><init>(Landroidx/profileinstaller/ProfileInstallReceiver;)V
const-string v1, "DROP_SHADER_CACHE"
.line 124
invoke-virtual {v1, p2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result p2
if-eqz p2, :cond_5
.line 125
invoke-static {p1, v0}, Landroidx/profileinstaller/BenchmarkOperation;->dropShaderCache(Landroid/content/Context;Landroidx/profileinstaller/ProfileInstallReceiver$ResultDiagnostics;)V
goto :goto_0
:cond_5
const/16 p1, 0x10
const/4 p2, 0x0
.line 127
invoke-virtual {v0, p1, p2}, Landroidx/profileinstaller/ProfileInstallReceiver$ResultDiagnostics;->onResultReceived(ILjava/lang/Object;)V
:cond_6
:goto_0
return-void
.end method

View File

@@ -0,0 +1,48 @@
.class public final synthetic Landroidx/profileinstaller/ProfileInstaller$$ExternalSyntheticLambda0;
.super Ljava/lang/Object;
.source "SourceFile"
# interfaces
.implements Ljava/lang/Runnable;
# instance fields
.field public final synthetic f$0:Landroidx/profileinstaller/ProfileInstaller$DiagnosticsCallback;
.field public final synthetic f$1:I
.field public final synthetic f$2:Ljava/lang/Object;
# direct methods
.method public synthetic constructor <init>(Landroidx/profileinstaller/ProfileInstaller$DiagnosticsCallback;ILjava/lang/Object;)V
.locals 0
.line 0
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
iput-object p1, p0, Landroidx/profileinstaller/ProfileInstaller$$ExternalSyntheticLambda0;->f$0:Landroidx/profileinstaller/ProfileInstaller$DiagnosticsCallback;
iput p2, p0, Landroidx/profileinstaller/ProfileInstaller$$ExternalSyntheticLambda0;->f$1:I
iput-object p3, p0, Landroidx/profileinstaller/ProfileInstaller$$ExternalSyntheticLambda0;->f$2:Ljava/lang/Object;
return-void
.end method
# virtual methods
.method public final run()V
.locals 3
.line 0
iget-object v0, p0, Landroidx/profileinstaller/ProfileInstaller$$ExternalSyntheticLambda0;->f$0:Landroidx/profileinstaller/ProfileInstaller$DiagnosticsCallback;
iget v1, p0, Landroidx/profileinstaller/ProfileInstaller$$ExternalSyntheticLambda0;->f$1:I
iget-object v2, p0, Landroidx/profileinstaller/ProfileInstaller$$ExternalSyntheticLambda0;->f$2:Ljava/lang/Object;
invoke-static {v0, v1, v2}, Landroidx/profileinstaller/ProfileInstaller;->$r8$lambda$lAFgOixnKjpoenploWSedI8N01U(Landroidx/profileinstaller/ProfileInstaller$DiagnosticsCallback;ILjava/lang/Object;)V
return-void
.end method

View File

@@ -0,0 +1,48 @@
.class public final synthetic Landroidx/profileinstaller/ProfileInstaller$$ExternalSyntheticLambda1;
.super Ljava/lang/Object;
.source "SourceFile"
# interfaces
.implements Ljava/lang/Runnable;
# instance fields
.field public final synthetic f$0:Landroidx/profileinstaller/ProfileInstaller$DiagnosticsCallback;
.field public final synthetic f$1:I
.field public final synthetic f$2:Ljava/lang/Object;
# direct methods
.method public synthetic constructor <init>(Landroidx/profileinstaller/ProfileInstaller$DiagnosticsCallback;ILjava/lang/Object;)V
.locals 0
.line 0
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
iput-object p1, p0, Landroidx/profileinstaller/ProfileInstaller$$ExternalSyntheticLambda1;->f$0:Landroidx/profileinstaller/ProfileInstaller$DiagnosticsCallback;
iput p2, p0, Landroidx/profileinstaller/ProfileInstaller$$ExternalSyntheticLambda1;->f$1:I
iput-object p3, p0, Landroidx/profileinstaller/ProfileInstaller$$ExternalSyntheticLambda1;->f$2:Ljava/lang/Object;
return-void
.end method
# virtual methods
.method public final run()V
.locals 3
.line 0
iget-object v0, p0, Landroidx/profileinstaller/ProfileInstaller$$ExternalSyntheticLambda1;->f$0:Landroidx/profileinstaller/ProfileInstaller$DiagnosticsCallback;
iget v1, p0, Landroidx/profileinstaller/ProfileInstaller$$ExternalSyntheticLambda1;->f$1:I
iget-object v2, p0, Landroidx/profileinstaller/ProfileInstaller$$ExternalSyntheticLambda1;->f$2:Ljava/lang/Object;
invoke-static {v0, v1, v2}, Landroidx/profileinstaller/ProfileInstaller;->$r8$lambda$iHnuUYEYFyPsnqaxqpFGpzQNiIg(Landroidx/profileinstaller/ProfileInstaller$DiagnosticsCallback;ILjava/lang/Object;)V
return-void
.end method

View File

@@ -0,0 +1,50 @@
.class Landroidx/profileinstaller/ProfileInstaller$1;
.super Ljava/lang/Object;
.source "SourceFile"
# interfaces
.implements Landroidx/profileinstaller/ProfileInstaller$DiagnosticsCallback;
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Landroidx/profileinstaller/ProfileInstaller;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x1
name = null
.end annotation
# direct methods
.method public constructor <init>()V
.locals 0
.line 109
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
# virtual methods
.method public onDiagnosticReceived(ILjava/lang/Object;)V
.locals 0
.param p2 # Ljava/lang/Object;
.annotation build Landroidx/annotation/Nullable;
.end annotation
.end param
return-void
.end method
.method public onResultReceived(ILjava/lang/Object;)V
.locals 0
.param p2 # Ljava/lang/Object;
.annotation build Landroidx/annotation/Nullable;
.end annotation
.end param
return-void
.end method

View File

@@ -0,0 +1,148 @@
.class Landroidx/profileinstaller/ProfileInstaller$2;
.super Ljava/lang/Object;
.source "SourceFile"
# interfaces
.implements Landroidx/profileinstaller/ProfileInstaller$DiagnosticsCallback;
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Landroidx/profileinstaller/ProfileInstaller;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x1
name = null
.end annotation
# static fields
.field static final TAG:Ljava/lang/String; = "ProfileInstaller"
# direct methods
.method public constructor <init>()V
.locals 0
.line 122
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
# virtual methods
.method public onDiagnosticReceived(ILjava/lang/Object;)V
.locals 0
.param p2 # Ljava/lang/Object;
.annotation build Landroidx/annotation/Nullable;
.end annotation
.end param
return-void
.end method
.method public onResultReceived(ILjava/lang/Object;)V
.locals 2
.param p2 # Ljava/lang/Object;
.annotation build Landroidx/annotation/Nullable;
.end annotation
.end param
packed-switch p1, :pswitch_data_0
:pswitch_0
const-string v0, ""
goto :goto_0
:pswitch_1
const-string v0, "RESULT_DELETE_SKIP_FILE_SUCCESS"
goto :goto_0
:pswitch_2
const-string v0, "RESULT_INSTALL_SKIP_FILE_SUCCESS"
goto :goto_0
:pswitch_3
const-string v0, "RESULT_PARSE_EXCEPTION"
goto :goto_0
:pswitch_4
const-string v0, "RESULT_IO_EXCEPTION"
goto :goto_0
:pswitch_5
const-string v0, "RESULT_BASELINE_PROFILE_NOT_FOUND"
goto :goto_0
:pswitch_6
const-string v0, "RESULT_DESIRED_FORMAT_UNSUPPORTED"
goto :goto_0
:pswitch_7
const-string v0, "RESULT_NOT_WRITABLE"
goto :goto_0
:pswitch_8
const-string v0, "RESULT_UNSUPPORTED_ART_VERSION"
goto :goto_0
:pswitch_9
const-string v0, "RESULT_ALREADY_INSTALLED"
goto :goto_0
:pswitch_a
const-string v0, "RESULT_INSTALL_SUCCESS"
:goto_0
const/4 v1, 0x6
if-eq p1, v1, :cond_0
const/4 v1, 0x7
if-eq p1, v1, :cond_0
const/16 v1, 0x8
if-eq p1, v1, :cond_0
goto :goto_1
:cond_0
const-string p1, "ProfileInstaller"
.line 177
check-cast p2, Ljava/lang/Throwable;
invoke-static {p1, v0, p2}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)I
:goto_1
return-void
:pswitch_data_0
.packed-switch 0x1
:pswitch_a
:pswitch_9
:pswitch_8
:pswitch_7
:pswitch_6
:pswitch_5
:pswitch_4
:pswitch_3
:pswitch_0
:pswitch_2
:pswitch_1
.end packed-switch
.end method

View File

@@ -0,0 +1,27 @@
.class public interface abstract annotation Landroidx/profileinstaller/ProfileInstaller$DiagnosticCode;
.super Ljava/lang/Object;
.source "SourceFile"
# interfaces
.implements Ljava/lang/annotation/Annotation;
# annotations
.annotation build Landroidx/annotation/RestrictTo;
value = {
.enum Landroidx/annotation/RestrictTo$Scope;->LIBRARY:Landroidx/annotation/RestrictTo$Scope;
}
.end annotation
.annotation system Ldalvik/annotation/EnclosingClass;
value = Landroidx/profileinstaller/ProfileInstaller;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x2609
name = "DiagnosticCode"
.end annotation
.annotation runtime Ljava/lang/annotation/Retention;
value = .enum Ljava/lang/annotation/RetentionPolicy;->SOURCE:Ljava/lang/annotation/RetentionPolicy;
.end annotation

View File

@@ -0,0 +1,30 @@
.class public interface abstract Landroidx/profileinstaller/ProfileInstaller$DiagnosticsCallback;
.super Ljava/lang/Object;
.source "SourceFile"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Landroidx/profileinstaller/ProfileInstaller;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x609
name = "DiagnosticsCallback"
.end annotation
# virtual methods
.method public abstract onDiagnosticReceived(ILjava/lang/Object;)V
.param p2 # Ljava/lang/Object;
.annotation build Landroidx/annotation/Nullable;
.end annotation
.end param
.end method
.method public abstract onResultReceived(ILjava/lang/Object;)V
.param p2 # Ljava/lang/Object;
.annotation build Landroidx/annotation/Nullable;
.end annotation
.end param
.end method

View File

@@ -0,0 +1,27 @@
.class public interface abstract annotation Landroidx/profileinstaller/ProfileInstaller$ResultCode;
.super Ljava/lang/Object;
.source "SourceFile"
# interfaces
.implements Ljava/lang/annotation/Annotation;
# annotations
.annotation build Landroidx/annotation/RestrictTo;
value = {
.enum Landroidx/annotation/RestrictTo$Scope;->LIBRARY:Landroidx/annotation/RestrictTo$Scope;
}
.end annotation
.annotation system Ldalvik/annotation/EnclosingClass;
value = Landroidx/profileinstaller/ProfileInstaller;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x2609
name = "ResultCode"
.end annotation
.annotation runtime Ljava/lang/annotation/Retention;
value = .enum Ljava/lang/annotation/RetentionPolicy;->SOURCE:Ljava/lang/annotation/RetentionPolicy;
.end annotation

View File

@@ -0,0 +1,807 @@
.class public Landroidx/profileinstaller/ProfileInstaller;
.super Ljava/lang/Object;
.source "SourceFile"
# annotations
.annotation system Ldalvik/annotation/MemberClasses;
value = {
Landroidx/profileinstaller/ProfileInstaller$DiagnosticsCallback;,
Landroidx/profileinstaller/ProfileInstaller$ResultCode;,
Landroidx/profileinstaller/ProfileInstaller$DiagnosticCode;
}
.end annotation
# static fields
.field public static final DIAGNOSTIC_CURRENT_PROFILE_DOES_NOT_EXIST:I = 0x2
.field public static final DIAGNOSTIC_CURRENT_PROFILE_EXISTS:I = 0x1
.field public static final DIAGNOSTIC_PROFILE_IS_COMPRESSED:I = 0x5
.field public static final DIAGNOSTIC_REF_PROFILE_DOES_NOT_EXIST:I = 0x4
.field public static final DIAGNOSTIC_REF_PROFILE_EXISTS:I = 0x3
.field private static final EMPTY_DIAGNOSTICS:Landroidx/profileinstaller/ProfileInstaller$DiagnosticsCallback;
.field static final LOG_DIAGNOSTICS:Landroidx/profileinstaller/ProfileInstaller$DiagnosticsCallback;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end field
.field private static final PROFILE_BASE_DIR:Ljava/lang/String; = "/data/misc/profiles/cur/0"
.field private static final PROFILE_FILE:Ljava/lang/String; = "primary.prof"
.field private static final PROFILE_INSTALLER_SKIP_FILE_NAME:Ljava/lang/String; = "profileinstaller_profileWrittenFor_lastUpdateTime.dat"
.field private static final PROFILE_META_LOCATION:Ljava/lang/String; = "dexopt/baseline.profm"
.field private static final PROFILE_SOURCE_LOCATION:Ljava/lang/String; = "dexopt/baseline.prof"
.field public static final RESULT_ALREADY_INSTALLED:I = 0x2
.field public static final RESULT_BASELINE_PROFILE_NOT_FOUND:I = 0x6
.field public static final RESULT_BENCHMARK_OPERATION_FAILURE:I = 0xf
.field public static final RESULT_BENCHMARK_OPERATION_SUCCESS:I = 0xe
.field public static final RESULT_BENCHMARK_OPERATION_UNKNOWN:I = 0x10
.field public static final RESULT_DELETE_SKIP_FILE_SUCCESS:I = 0xb
.field public static final RESULT_DESIRED_FORMAT_UNSUPPORTED:I = 0x5
.field public static final RESULT_INSTALL_SKIP_FILE_SUCCESS:I = 0xa
.field public static final RESULT_INSTALL_SUCCESS:I = 0x1
.field public static final RESULT_IO_EXCEPTION:I = 0x7
.field public static final RESULT_META_FILE_REQUIRED_BUT_NOT_FOUND:I = 0x9
.field public static final RESULT_NOT_WRITABLE:I = 0x4
.field public static final RESULT_PARSE_EXCEPTION:I = 0x8
.field public static final RESULT_SAVE_PROFILE_SIGNALLED:I = 0xc
.field public static final RESULT_SAVE_PROFILE_SKIPPED:I = 0xd
.field public static final RESULT_UNSUPPORTED_ART_VERSION:I = 0x3
.field private static final TAG:Ljava/lang/String; = "ProfileInstaller"
# direct methods
.method public static synthetic $r8$lambda$iHnuUYEYFyPsnqaxqpFGpzQNiIg(Landroidx/profileinstaller/ProfileInstaller$DiagnosticsCallback;ILjava/lang/Object;)V
.locals 0
.line 0
invoke-static {p0, p1, p2}, Landroidx/profileinstaller/ProfileInstaller;->lambda$diagnostic$1(Landroidx/profileinstaller/ProfileInstaller$DiagnosticsCallback;ILjava/lang/Object;)V
return-void
.end method
.method public static synthetic $r8$lambda$lAFgOixnKjpoenploWSedI8N01U(Landroidx/profileinstaller/ProfileInstaller$DiagnosticsCallback;ILjava/lang/Object;)V
.locals 0
.line 0
invoke-static {p0, p1, p2}, Landroidx/profileinstaller/ProfileInstaller;->lambda$result$0(Landroidx/profileinstaller/ProfileInstaller$DiagnosticsCallback;ILjava/lang/Object;)V
return-void
.end method
.method static constructor <clinit>()V
.locals 1
.line 109
new-instance v0, Landroidx/profileinstaller/ProfileInstaller$1;
invoke-direct {v0}, Landroidx/profileinstaller/ProfileInstaller$1;-><init>()V
sput-object v0, Landroidx/profileinstaller/ProfileInstaller;->EMPTY_DIAGNOSTICS:Landroidx/profileinstaller/ProfileInstaller$DiagnosticsCallback;
.line 122
new-instance v0, Landroidx/profileinstaller/ProfileInstaller$2;
invoke-direct {v0}, Landroidx/profileinstaller/ProfileInstaller$2;-><init>()V
sput-object v0, Landroidx/profileinstaller/ProfileInstaller;->LOG_DIAGNOSTICS:Landroidx/profileinstaller/ProfileInstaller$DiagnosticsCallback;
return-void
.end method
.method private constructor <init>()V
.locals 0
.line 54
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
.method public static deleteProfileWrittenFor(Ljava/io/File;)Z
.locals 2
.param p0 # Ljava/io/File;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.annotation build Landroidx/annotation/RestrictTo;
value = {
.enum Landroidx/annotation/RestrictTo$Scope;->LIBRARY:Landroidx/annotation/RestrictTo$Scope;
}
.end annotation
.line 407
new-instance v0, Ljava/io/File;
const-string v1, "profileinstaller_profileWrittenFor_lastUpdateTime.dat"
invoke-direct {v0, p0, v1}, Ljava/io/File;-><init>(Ljava/io/File;Ljava/lang/String;)V
.line 408
invoke-virtual {v0}, Ljava/io/File;->delete()Z
move-result p0
return p0
.end method
.method public static deleteSkipFile(Landroid/content/Context;Ljava/util/concurrent/Executor;Landroidx/profileinstaller/ProfileInstaller$DiagnosticsCallback;)V
.locals 1
.param p0 # Landroid/content/Context;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.param p1 # Ljava/util/concurrent/Executor;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.param p2 # Landroidx/profileinstaller/ProfileInstaller$DiagnosticsCallback;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.annotation build Landroidx/annotation/WorkerThread;
.end annotation
.line 630
invoke-virtual {p0}, Landroid/content/Context;->getFilesDir()Ljava/io/File;
move-result-object p0
.line 631
invoke-static {p0}, Landroidx/profileinstaller/ProfileInstaller;->deleteProfileWrittenFor(Ljava/io/File;)Z
const/16 p0, 0xb
const/4 v0, 0x0
.line 632
invoke-static {p1, p2, p0, v0}, Landroidx/profileinstaller/ProfileInstaller;->result(Ljava/util/concurrent/Executor;Landroidx/profileinstaller/ProfileInstaller$DiagnosticsCallback;ILjava/lang/Object;)V
return-void
.end method
.method public static diagnostic(Ljava/util/concurrent/Executor;Landroidx/profileinstaller/ProfileInstaller$DiagnosticsCallback;ILjava/lang/Object;)V
.locals 1
.param p0 # Ljava/util/concurrent/Executor;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.param p1 # Landroidx/profileinstaller/ProfileInstaller$DiagnosticsCallback;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.param p3 # Ljava/lang/Object;
.annotation build Landroidx/annotation/Nullable;
.end annotation
.end param
.line 106
new-instance v0, Landroidx/profileinstaller/ProfileInstaller$$ExternalSyntheticLambda1;
invoke-direct {v0, p1, p2, p3}, Landroidx/profileinstaller/ProfileInstaller$$ExternalSyntheticLambda1;-><init>(Landroidx/profileinstaller/ProfileInstaller$DiagnosticsCallback;ILjava/lang/Object;)V
invoke-interface {p0, v0}, Ljava/util/concurrent/Executor;->execute(Ljava/lang/Runnable;)V
return-void
.end method
.method public static hasAlreadyWrittenProfileForThisInstall(Landroid/content/pm/PackageInfo;Ljava/io/File;Landroidx/profileinstaller/ProfileInstaller$DiagnosticsCallback;)Z
.locals 4
.annotation build Landroidx/annotation/RestrictTo;
value = {
.enum Landroidx/annotation/RestrictTo$Scope;->LIBRARY:Landroidx/annotation/RestrictTo$Scope;
}
.end annotation
.annotation build Landroidx/annotation/WorkerThread;
.end annotation
.line 367
new-instance v0, Ljava/io/File;
const-string v1, "profileinstaller_profileWrittenFor_lastUpdateTime.dat"
invoke-direct {v0, p1, v1}, Ljava/io/File;-><init>(Ljava/io/File;Ljava/lang/String;)V
.line 368
invoke-virtual {v0}, Ljava/io/File;->exists()Z
move-result p1
const/4 v1, 0x0
if-nez p1, :cond_0
return v1
.line 374
:cond_0
:try_start_0
new-instance p1, Ljava/io/DataInputStream;
new-instance v2, Ljava/io/FileInputStream;
invoke-direct {v2, v0}, Ljava/io/FileInputStream;-><init>(Ljava/io/File;)V
invoke-direct {p1, v2}, Ljava/io/DataInputStream;-><init>(Ljava/io/InputStream;)V
:try_end_0
.catch Ljava/io/IOException; {:try_start_0 .. :try_end_0} :catch_0
.line 375
:try_start_1
invoke-virtual {p1}, Ljava/io/DataInputStream;->readLong()J
move-result-wide v2
:try_end_1
.catchall {:try_start_1 .. :try_end_1} :catchall_0
.line 376
:try_start_2
invoke-virtual {p1}, Ljava/io/InputStream;->close()V
:try_end_2
.catch Ljava/io/IOException; {:try_start_2 .. :try_end_2} :catch_0
.line 382
iget-wide p0, p0, Landroid/content/pm/PackageInfo;->lastUpdateTime:J
cmp-long p0, v2, p0
if-nez p0, :cond_1
const/4 v1, 0x1
:cond_1
if-eqz v1, :cond_2
const/4 p0, 0x2
const/4 p1, 0x0
.line 384
invoke-interface {p2, p0, p1}, Landroidx/profileinstaller/ProfileInstaller$DiagnosticsCallback;->onResultReceived(ILjava/lang/Object;)V
:cond_2
return v1
:catchall_0
move-exception p0
.line 374
:try_start_3
invoke-virtual {p1}, Ljava/io/InputStream;->close()V
:try_end_3
.catchall {:try_start_3 .. :try_end_3} :catchall_1
goto :goto_0
:catchall_1
move-exception p1
:try_start_4
invoke-virtual {p0, p1}, Ljava/lang/Throwable;->addSuppressed(Ljava/lang/Throwable;)V
:goto_0
throw p0
:try_end_4
.catch Ljava/io/IOException; {:try_start_4 .. :try_end_4} :catch_0
:catch_0
return v1
.end method
.method private static synthetic lambda$diagnostic$1(Landroidx/profileinstaller/ProfileInstaller$DiagnosticsCallback;ILjava/lang/Object;)V
.locals 0
.line 106
invoke-interface {p0, p1, p2}, Landroidx/profileinstaller/ProfileInstaller$DiagnosticsCallback;->onDiagnosticReceived(ILjava/lang/Object;)V
return-void
.end method
.method private static synthetic lambda$result$0(Landroidx/profileinstaller/ProfileInstaller$DiagnosticsCallback;ILjava/lang/Object;)V
.locals 0
.line 96
invoke-interface {p0, p1, p2}, Landroidx/profileinstaller/ProfileInstaller$DiagnosticsCallback;->onResultReceived(ILjava/lang/Object;)V
return-void
.end method
.method public static noteProfileWrittenFor(Landroid/content/pm/PackageInfo;Ljava/io/File;)V
.locals 2
.param p0 # Landroid/content/pm/PackageInfo;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.param p1 # Ljava/io/File;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.annotation build Landroidx/annotation/RestrictTo;
value = {
.enum Landroidx/annotation/RestrictTo$Scope;->LIBRARY:Landroidx/annotation/RestrictTo$Scope;
}
.end annotation
.line 394
new-instance v0, Ljava/io/File;
const-string v1, "profileinstaller_profileWrittenFor_lastUpdateTime.dat"
invoke-direct {v0, p1, v1}, Ljava/io/File;-><init>(Ljava/io/File;Ljava/lang/String;)V
.line 395
:try_start_0
new-instance p1, Ljava/io/DataOutputStream;
new-instance v1, Ljava/io/FileOutputStream;
invoke-direct {v1, v0}, Ljava/io/FileOutputStream;-><init>(Ljava/io/File;)V
invoke-direct {p1, v1}, Ljava/io/DataOutputStream;-><init>(Ljava/io/OutputStream;)V
:try_end_0
.catch Ljava/io/IOException; {:try_start_0 .. :try_end_0} :catch_0
.line 396
:try_start_1
iget-wide v0, p0, Landroid/content/pm/PackageInfo;->lastUpdateTime:J
invoke-virtual {p1, v0, v1}, Ljava/io/DataOutputStream;->writeLong(J)V
:try_end_1
.catchall {:try_start_1 .. :try_end_1} :catchall_0
.line 397
:try_start_2
invoke-virtual {p1}, Ljava/io/OutputStream;->close()V
:try_end_2
.catch Ljava/io/IOException; {:try_start_2 .. :try_end_2} :catch_0
goto :goto_1
:catchall_0
move-exception p0
.line 395
:try_start_3
invoke-virtual {p1}, Ljava/io/OutputStream;->close()V
:try_end_3
.catchall {:try_start_3 .. :try_end_3} :catchall_1
goto :goto_0
:catchall_1
move-exception p1
:try_start_4
invoke-virtual {p0, p1}, Ljava/lang/Throwable;->addSuppressed(Ljava/lang/Throwable;)V
:goto_0
throw p0
:try_end_4
.catch Ljava/io/IOException; {:try_start_4 .. :try_end_4} :catch_0
:catch_0
:goto_1
return-void
.end method
.method public static result(Ljava/util/concurrent/Executor;Landroidx/profileinstaller/ProfileInstaller$DiagnosticsCallback;ILjava/lang/Object;)V
.locals 1
.param p0 # Ljava/util/concurrent/Executor;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.param p1 # Landroidx/profileinstaller/ProfileInstaller$DiagnosticsCallback;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.param p3 # Ljava/lang/Object;
.annotation build Landroidx/annotation/Nullable;
.end annotation
.end param
.line 96
new-instance v0, Landroidx/profileinstaller/ProfileInstaller$$ExternalSyntheticLambda0;
invoke-direct {v0, p1, p2, p3}, Landroidx/profileinstaller/ProfileInstaller$$ExternalSyntheticLambda0;-><init>(Landroidx/profileinstaller/ProfileInstaller$DiagnosticsCallback;ILjava/lang/Object;)V
invoke-interface {p0, v0}, Ljava/util/concurrent/Executor;->execute(Ljava/lang/Runnable;)V
return-void
.end method
.method private static transcodeAndWrite(Landroid/content/res/AssetManager;Ljava/lang/String;Landroid/content/pm/PackageInfo;Ljava/io/File;Ljava/lang/String;Ljava/util/concurrent/Executor;Landroidx/profileinstaller/ProfileInstaller$DiagnosticsCallback;)Z
.locals 8
.param p0 # Landroid/content/res/AssetManager;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.param p1 # Ljava/lang/String;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.param p2 # Landroid/content/pm/PackageInfo;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.param p3 # Ljava/io/File;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.param p4 # Ljava/lang/String;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.param p5 # Ljava/util/concurrent/Executor;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.param p6 # Landroidx/profileinstaller/ProfileInstaller$DiagnosticsCallback;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.line 435
new-instance v7, Ljava/io/File;
new-instance v0, Ljava/io/File;
const-string v1, "/data/misc/profiles/cur/0"
invoke-direct {v0, v1, p1}, Ljava/io/File;-><init>(Ljava/lang/String;Ljava/lang/String;)V
const-string p1, "primary.prof"
invoke-direct {v7, v0, p1}, Ljava/io/File;-><init>(Ljava/io/File;Ljava/lang/String;)V
.line 437
new-instance p1, Landroidx/profileinstaller/DeviceProfileWriter;
const-string v5, "dexopt/baseline.prof"
const-string v6, "dexopt/baseline.profm"
move-object v0, p1
move-object v1, p0
move-object v2, p5
move-object v3, p6
move-object v4, p4
invoke-direct/range {v0 .. v7}, Landroidx/profileinstaller/DeviceProfileWriter;-><init>(Landroid/content/res/AssetManager;Ljava/util/concurrent/Executor;Landroidx/profileinstaller/ProfileInstaller$DiagnosticsCallback;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/io/File;)V
.line 440
invoke-virtual {p1}, Landroidx/profileinstaller/DeviceProfileWriter;->deviceAllowsProfileInstallerAotWrites()Z
move-result p0
if-nez p0, :cond_0
const/4 p0, 0x0
return p0
.line 444
:cond_0
invoke-virtual {p1}, Landroidx/profileinstaller/DeviceProfileWriter;->read()Landroidx/profileinstaller/DeviceProfileWriter;
move-result-object p0
.line 445
invoke-virtual {p0}, Landroidx/profileinstaller/DeviceProfileWriter;->transcodeIfNeeded()Landroidx/profileinstaller/DeviceProfileWriter;
move-result-object p0
.line 446
invoke-virtual {p0}, Landroidx/profileinstaller/DeviceProfileWriter;->write()Z
move-result p0
if-eqz p0, :cond_1
.line 449
invoke-static {p2, p3}, Landroidx/profileinstaller/ProfileInstaller;->noteProfileWrittenFor(Landroid/content/pm/PackageInfo;Ljava/io/File;)V
:cond_1
return p0
.end method
.method public static writeProfile(Landroid/content/Context;)V
.locals 2
.param p0 # Landroid/content/Context;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.annotation build Landroidx/annotation/WorkerThread;
.end annotation
.line 479
new-instance v0, Landroidx/credentials/CredentialManager$$ExternalSyntheticLambda0;
invoke-direct {v0}, Landroidx/credentials/CredentialManager$$ExternalSyntheticLambda0;-><init>()V
sget-object v1, Landroidx/profileinstaller/ProfileInstaller;->EMPTY_DIAGNOSTICS:Landroidx/profileinstaller/ProfileInstaller$DiagnosticsCallback;
invoke-static {p0, v0, v1}, Landroidx/profileinstaller/ProfileInstaller;->writeProfile(Landroid/content/Context;Ljava/util/concurrent/Executor;Landroidx/profileinstaller/ProfileInstaller$DiagnosticsCallback;)V
return-void
.end method
.method public static writeProfile(Landroid/content/Context;Ljava/util/concurrent/Executor;Landroidx/profileinstaller/ProfileInstaller$DiagnosticsCallback;)V
.locals 1
.param p0 # Landroid/content/Context;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.param p1 # Ljava/util/concurrent/Executor;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.param p2 # Landroidx/profileinstaller/ProfileInstaller$DiagnosticsCallback;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.annotation build Landroidx/annotation/WorkerThread;
.end annotation
const/4 v0, 0x0
.line 515
invoke-static {p0, p1, p2, v0}, Landroidx/profileinstaller/ProfileInstaller;->writeProfile(Landroid/content/Context;Ljava/util/concurrent/Executor;Landroidx/profileinstaller/ProfileInstaller$DiagnosticsCallback;Z)V
return-void
.end method
.method public static writeProfile(Landroid/content/Context;Ljava/util/concurrent/Executor;Landroidx/profileinstaller/ProfileInstaller$DiagnosticsCallback;Z)V
.locals 9
.param p0 # Landroid/content/Context;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.param p1 # Ljava/util/concurrent/Executor;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.param p2 # Landroidx/profileinstaller/ProfileInstaller$DiagnosticsCallback;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.annotation build Landroidx/annotation/WorkerThread;
.end annotation
.line 554
invoke-virtual {p0}, Landroid/content/Context;->getApplicationContext()Landroid/content/Context;
move-result-object v0
.line 555
invoke-virtual {v0}, Landroid/content/Context;->getPackageName()Ljava/lang/String;
move-result-object v2
.line 556
invoke-virtual {v0}, Landroid/content/Context;->getApplicationInfo()Landroid/content/pm/ApplicationInfo;
move-result-object v1
.line 557
invoke-virtual {v0}, Landroid/content/Context;->getAssets()Landroid/content/res/AssetManager;
move-result-object v0
.line 558
new-instance v3, Ljava/io/File;
iget-object v1, v1, Landroid/content/pm/ApplicationInfo;->sourceDir:Ljava/lang/String;
invoke-direct {v3, v1}, Ljava/io/File;-><init>(Ljava/lang/String;)V
invoke-virtual {v3}, Ljava/io/File;->getName()Ljava/lang/String;
move-result-object v5
.line 559
invoke-virtual {p0}, Landroid/content/Context;->getPackageManager()Landroid/content/pm/PackageManager;
move-result-object v1
const/4 v8, 0x0
.line 562
:try_start_0
invoke-virtual {v1, v2, v8}, Landroid/content/pm/PackageManager;->getPackageInfo(Ljava/lang/String;I)Landroid/content/pm/PackageInfo;
move-result-object v3
:try_end_0
.catch Landroid/content/pm/PackageManager$NameNotFoundException; {:try_start_0 .. :try_end_0} :catch_0
.line 571
invoke-virtual {p0}, Landroid/content/Context;->getFilesDir()Ljava/io/File;
move-result-object v4
if-nez p3, :cond_1
.line 573
invoke-static {v3, v4, p2}, Landroidx/profileinstaller/ProfileInstaller;->hasAlreadyWrittenProfileForThisInstall(Landroid/content/pm/PackageInfo;Ljava/io/File;Landroidx/profileinstaller/ProfileInstaller$DiagnosticsCallback;)Z
move-result v1
if-nez v1, :cond_0
goto :goto_0
.line 580
:cond_0
new-instance p1, Ljava/lang/StringBuilder;
invoke-direct {p1}, Ljava/lang/StringBuilder;-><init>()V
const-string p2, "Skipping profile installation for "
invoke-virtual {p1, p2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {p0}, Landroid/content/Context;->getPackageName()Ljava/lang/String;
move-result-object p2
invoke-virtual {p1, p2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
.line 581
invoke-static {p0, v8}, Landroidx/profileinstaller/ProfileVerifier;->writeProfileVerification(Landroid/content/Context;Z)Landroidx/profileinstaller/ProfileVerifier$CompilationStatus;
goto :goto_1
.line 574
:cond_1
:goto_0
new-instance v1, Ljava/lang/StringBuilder;
invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V
const-string v6, "Installing profile for "
invoke-virtual {v1, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {p0}, Landroid/content/Context;->getPackageName()Ljava/lang/String;
move-result-object v6
invoke-virtual {v1, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-object v1, v0
move-object v6, p1
move-object v7, p2
.line 575
invoke-static/range {v1 .. v7}, Landroidx/profileinstaller/ProfileInstaller;->transcodeAndWrite(Landroid/content/res/AssetManager;Ljava/lang/String;Landroid/content/pm/PackageInfo;Ljava/io/File;Ljava/lang/String;Ljava/util/concurrent/Executor;Landroidx/profileinstaller/ProfileInstaller$DiagnosticsCallback;)Z
move-result p1
if-eqz p1, :cond_2
if-eqz p3, :cond_2
const/4 v8, 0x1
.line 577
:cond_2
invoke-static {p0, v8}, Landroidx/profileinstaller/ProfileVerifier;->writeProfileVerification(Landroid/content/Context;Z)Landroidx/profileinstaller/ProfileVerifier$CompilationStatus;
:goto_1
return-void
:catch_0
move-exception p1
const/4 p3, 0x7
.line 564
invoke-interface {p2, p3, p1}, Landroidx/profileinstaller/ProfileInstaller$DiagnosticsCallback;->onResultReceived(ILjava/lang/Object;)V
.line 568
invoke-static {p0, v8}, Landroidx/profileinstaller/ProfileVerifier;->writeProfileVerification(Landroid/content/Context;Z)Landroidx/profileinstaller/ProfileVerifier$CompilationStatus;
return-void
.end method
.method public static writeSkipFile(Landroid/content/Context;Ljava/util/concurrent/Executor;Landroidx/profileinstaller/ProfileInstaller$DiagnosticsCallback;)V
.locals 3
.param p0 # Landroid/content/Context;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.param p1 # Ljava/util/concurrent/Executor;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.param p2 # Landroidx/profileinstaller/ProfileInstaller$DiagnosticsCallback;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.annotation build Landroidx/annotation/WorkerThread;
.end annotation
.line 601
invoke-virtual {p0}, Landroid/content/Context;->getApplicationContext()Landroid/content/Context;
move-result-object v0
.line 602
invoke-virtual {v0}, Landroid/content/Context;->getPackageName()Ljava/lang/String;
move-result-object v0
.line 603
invoke-virtual {p0}, Landroid/content/Context;->getPackageManager()Landroid/content/pm/PackageManager;
move-result-object v1
const/4 v2, 0x0
.line 606
:try_start_0
invoke-virtual {v1, v0, v2}, Landroid/content/pm/PackageManager;->getPackageInfo(Ljava/lang/String;I)Landroid/content/pm/PackageInfo;
move-result-object v0
:try_end_0
.catch Landroid/content/pm/PackageManager$NameNotFoundException; {:try_start_0 .. :try_end_0} :catch_0
.line 611
invoke-virtual {p0}, Landroid/content/Context;->getFilesDir()Ljava/io/File;
move-result-object p0
.line 612
invoke-static {v0, p0}, Landroidx/profileinstaller/ProfileInstaller;->noteProfileWrittenFor(Landroid/content/pm/PackageInfo;Ljava/io/File;)V
const/16 p0, 0xa
const/4 v0, 0x0
.line 613
invoke-static {p1, p2, p0, v0}, Landroidx/profileinstaller/ProfileInstaller;->result(Ljava/util/concurrent/Executor;Landroidx/profileinstaller/ProfileInstaller$DiagnosticsCallback;ILjava/lang/Object;)V
return-void
:catch_0
move-exception p0
const/4 v0, 0x7
.line 608
invoke-static {p1, p2, v0, p0}, Landroidx/profileinstaller/ProfileInstaller;->result(Ljava/util/concurrent/Executor;Landroidx/profileinstaller/ProfileInstaller$DiagnosticsCallback;ILjava/lang/Object;)V
return-void
.end method

View File

@@ -0,0 +1,36 @@
.class public final synthetic Landroidx/profileinstaller/ProfileInstallerInitializer$$ExternalSyntheticLambda0;
.super Ljava/lang/Object;
.source "SourceFile"
# interfaces
.implements Ljava/lang/Runnable;
# instance fields
.field public final synthetic f$0:Landroid/content/Context;
# direct methods
.method public synthetic constructor <init>(Landroid/content/Context;)V
.locals 0
.line 0
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
iput-object p1, p0, Landroidx/profileinstaller/ProfileInstallerInitializer$$ExternalSyntheticLambda0;->f$0:Landroid/content/Context;
return-void
.end method
# virtual methods
.method public final run()V
.locals 1
.line 0
iget-object v0, p0, Landroidx/profileinstaller/ProfileInstallerInitializer$$ExternalSyntheticLambda0;->f$0:Landroid/content/Context;
invoke-static {v0}, Landroidx/profileinstaller/ProfileInstallerInitializer;->$r8$lambda$nkOIpN4NfyreWbcXjHv0xCvwgTY(Landroid/content/Context;)V
return-void
.end method

View File

@@ -0,0 +1,42 @@
.class public final synthetic Landroidx/profileinstaller/ProfileInstallerInitializer$$ExternalSyntheticLambda1;
.super Ljava/lang/Object;
.source "SourceFile"
# interfaces
.implements Ljava/lang/Runnable;
# instance fields
.field public final synthetic f$0:Landroidx/profileinstaller/ProfileInstallerInitializer;
.field public final synthetic f$1:Landroid/content/Context;
# direct methods
.method public synthetic constructor <init>(Landroidx/profileinstaller/ProfileInstallerInitializer;Landroid/content/Context;)V
.locals 0
.line 0
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
iput-object p1, p0, Landroidx/profileinstaller/ProfileInstallerInitializer$$ExternalSyntheticLambda1;->f$0:Landroidx/profileinstaller/ProfileInstallerInitializer;
iput-object p2, p0, Landroidx/profileinstaller/ProfileInstallerInitializer$$ExternalSyntheticLambda1;->f$1:Landroid/content/Context;
return-void
.end method
# virtual methods
.method public final run()V
.locals 2
.line 0
iget-object v0, p0, Landroidx/profileinstaller/ProfileInstallerInitializer$$ExternalSyntheticLambda1;->f$0:Landroidx/profileinstaller/ProfileInstallerInitializer;
iget-object v1, p0, Landroidx/profileinstaller/ProfileInstallerInitializer$$ExternalSyntheticLambda1;->f$1:Landroid/content/Context;
invoke-static {v0, v1}, Landroidx/profileinstaller/ProfileInstallerInitializer;->$r8$lambda$QGpANLTF0YGY0pXfe2eje4OKwkc(Landroidx/profileinstaller/ProfileInstallerInitializer;Landroid/content/Context;)V
return-void
.end method

View File

@@ -0,0 +1,36 @@
.class public final synthetic Landroidx/profileinstaller/ProfileInstallerInitializer$$ExternalSyntheticLambda2;
.super Ljava/lang/Object;
.source "SourceFile"
# interfaces
.implements Ljava/lang/Runnable;
# instance fields
.field public final synthetic f$0:Landroid/content/Context;
# direct methods
.method public synthetic constructor <init>(Landroid/content/Context;)V
.locals 0
.line 0
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
iput-object p1, p0, Landroidx/profileinstaller/ProfileInstallerInitializer$$ExternalSyntheticLambda2;->f$0:Landroid/content/Context;
return-void
.end method
# virtual methods
.method public final run()V
.locals 1
.line 0
iget-object v0, p0, Landroidx/profileinstaller/ProfileInstallerInitializer$$ExternalSyntheticLambda2;->f$0:Landroid/content/Context;
invoke-static {v0}, Landroidx/profileinstaller/ProfileInstallerInitializer;->$r8$lambda$nvFqT5BztGB-MvszW9GUTUoI9rw(Landroid/content/Context;)V
return-void
.end method

View File

@@ -0,0 +1,36 @@
.class public final synthetic Landroidx/profileinstaller/ProfileInstallerInitializer$Choreographer16Impl$$ExternalSyntheticLambda0;
.super Ljava/lang/Object;
.source "SourceFile"
# interfaces
.implements Landroid/view/Choreographer$FrameCallback;
# instance fields
.field public final synthetic f$0:Ljava/lang/Runnable;
# direct methods
.method public synthetic constructor <init>(Ljava/lang/Runnable;)V
.locals 0
.line 0
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
iput-object p1, p0, Landroidx/profileinstaller/ProfileInstallerInitializer$Choreographer16Impl$$ExternalSyntheticLambda0;->f$0:Ljava/lang/Runnable;
return-void
.end method
# virtual methods
.method public final doFrame(J)V
.locals 1
.line 0
iget-object v0, p0, Landroidx/profileinstaller/ProfileInstallerInitializer$Choreographer16Impl$$ExternalSyntheticLambda0;->f$0:Ljava/lang/Runnable;
invoke-static {v0, p1, p2}, Landroidx/profileinstaller/ProfileInstallerInitializer$Choreographer16Impl;->$r8$lambda$DSwPKNQiVu4DdgIKQZrSpqkWM-A(Ljava/lang/Runnable;J)V
return-void
.end method

View File

@@ -0,0 +1,66 @@
.class Landroidx/profileinstaller/ProfileInstallerInitializer$Choreographer16Impl;
.super Ljava/lang/Object;
.source "SourceFile"
# annotations
.annotation build Landroidx/annotation/RequiresApi;
value = 0x10
.end annotation
.annotation system Ldalvik/annotation/EnclosingClass;
value = Landroidx/profileinstaller/ProfileInstallerInitializer;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x9
name = "Choreographer16Impl"
.end annotation
# direct methods
.method public static synthetic $r8$lambda$DSwPKNQiVu4DdgIKQZrSpqkWM-A(Ljava/lang/Runnable;J)V
.locals 0
.line 0
invoke-static {p0, p1, p2}, Landroidx/profileinstaller/ProfileInstallerInitializer$Choreographer16Impl;->lambda$postFrameCallback$0(Ljava/lang/Runnable;J)V
return-void
.end method
.method private constructor <init>()V
.locals 0
.line 155
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
.method private static synthetic lambda$postFrameCallback$0(Ljava/lang/Runnable;J)V
.locals 0
.line 161
invoke-interface {p0}, Ljava/lang/Runnable;->run()V
return-void
.end method
.method public static postFrameCallback(Ljava/lang/Runnable;)V
.locals 2
.annotation build Landroidx/annotation/DoNotInline;
.end annotation
.line 161
invoke-static {}, Landroid/view/Choreographer;->getInstance()Landroid/view/Choreographer;
move-result-object v0
new-instance v1, Landroidx/profileinstaller/ProfileInstallerInitializer$Choreographer16Impl$$ExternalSyntheticLambda0;
invoke-direct {v1, p0}, Landroidx/profileinstaller/ProfileInstallerInitializer$Choreographer16Impl$$ExternalSyntheticLambda0;-><init>(Ljava/lang/Runnable;)V
invoke-virtual {v0, v1}, Landroid/view/Choreographer;->postFrameCallback(Landroid/view/Choreographer$FrameCallback;)V
return-void
.end method

View File

@@ -0,0 +1,42 @@
.class Landroidx/profileinstaller/ProfileInstallerInitializer$Handler28Impl;
.super Ljava/lang/Object;
.source "SourceFile"
# annotations
.annotation build Landroidx/annotation/RequiresApi;
value = 0x1c
.end annotation
.annotation system Ldalvik/annotation/EnclosingClass;
value = Landroidx/profileinstaller/ProfileInstallerInitializer;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x9
name = "Handler28Impl"
.end annotation
# direct methods
.method private constructor <init>()V
.locals 0
.line 167
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
.method public static createAsync(Landroid/os/Looper;)Landroid/os/Handler;
.locals 0
.annotation build Landroidx/annotation/DoNotInline;
.end annotation
.line 174
invoke-static {p0}, Landroidx/emoji2/text/ConcurrencyHelpers$Handler28Impl$$ExternalSyntheticApiModelOutline0;->m(Landroid/os/Looper;)Landroid/os/Handler;
move-result-object p0
return-object p0
.end method

View File

@@ -0,0 +1,25 @@
.class public Landroidx/profileinstaller/ProfileInstallerInitializer$Result;
.super Ljava/lang/Object;
.source "SourceFile"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Landroidx/profileinstaller/ProfileInstallerInitializer;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x9
name = "Result"
.end annotation
# direct methods
.method public constructor <init>()V
.locals 0
.line 151
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method

View File

@@ -0,0 +1,284 @@
.class public Landroidx/profileinstaller/ProfileInstallerInitializer;
.super Ljava/lang/Object;
.source "SourceFile"
# interfaces
.implements Landroidx/startup/Initializer;
# annotations
.annotation system Ldalvik/annotation/MemberClasses;
value = {
Landroidx/profileinstaller/ProfileInstallerInitializer$Result;,
Landroidx/profileinstaller/ProfileInstallerInitializer$Choreographer16Impl;,
Landroidx/profileinstaller/ProfileInstallerInitializer$Handler28Impl;
}
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/lang/Object;",
"Landroidx/startup/Initializer<",
"Landroidx/profileinstaller/ProfileInstallerInitializer$Result;",
">;"
}
.end annotation
# static fields
.field private static final DELAY_MS:I = 0x1388
# direct methods
.method public static synthetic $r8$lambda$QGpANLTF0YGY0pXfe2eje4OKwkc(Landroidx/profileinstaller/ProfileInstallerInitializer;Landroid/content/Context;)V
.locals 0
.line 0
invoke-direct {p0, p1}, Landroidx/profileinstaller/ProfileInstallerInitializer;->lambda$delayAfterFirstFrame$0(Landroid/content/Context;)V
return-void
.end method
.method public static synthetic $r8$lambda$nkOIpN4NfyreWbcXjHv0xCvwgTY(Landroid/content/Context;)V
.locals 0
.line 0
invoke-static {p0}, Landroidx/profileinstaller/ProfileInstallerInitializer;->lambda$installAfterDelay$1(Landroid/content/Context;)V
return-void
.end method
.method public static synthetic $r8$lambda$nvFqT5BztGB-MvszW9GUTUoI9rw(Landroid/content/Context;)V
.locals 0
.line 0
invoke-static {p0}, Landroidx/profileinstaller/ProfileInstallerInitializer;->lambda$writeInBackground$2(Landroid/content/Context;)V
return-void
.end method
.method public constructor <init>()V
.locals 0
.line 64
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
.method private synthetic lambda$delayAfterFirstFrame$0(Landroid/content/Context;)V
.locals 0
.line 94
invoke-virtual {p0, p1}, Landroidx/profileinstaller/ProfileInstallerInitializer;->installAfterDelay(Landroid/content/Context;)V
return-void
.end method
.method private static synthetic lambda$installAfterDelay$1(Landroid/content/Context;)V
.locals 0
.line 117
invoke-static {p0}, Landroidx/profileinstaller/ProfileInstallerInitializer;->writeInBackground(Landroid/content/Context;)V
return-void
.end method
.method private static synthetic lambda$writeInBackground$2(Landroid/content/Context;)V
.locals 0
.line 145
invoke-static {p0}, Landroidx/profileinstaller/ProfileInstaller;->writeProfile(Landroid/content/Context;)V
return-void
.end method
.method private static writeInBackground(Landroid/content/Context;)V
.locals 8
.param p0 # Landroid/content/Context;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.line 138
new-instance v7, Ljava/util/concurrent/ThreadPoolExecutor;
const/4 v1, 0x0
const/4 v2, 0x1
const-wide/16 v3, 0x0
sget-object v5, Ljava/util/concurrent/TimeUnit;->MILLISECONDS:Ljava/util/concurrent/TimeUnit;
new-instance v6, Ljava/util/concurrent/LinkedBlockingQueue;
invoke-direct {v6}, Ljava/util/concurrent/LinkedBlockingQueue;-><init>()V
move-object v0, v7
invoke-direct/range {v0 .. v6}, Ljava/util/concurrent/ThreadPoolExecutor;-><init>(IIJLjava/util/concurrent/TimeUnit;Ljava/util/concurrent/BlockingQueue;)V
.line 145
new-instance v0, Landroidx/profileinstaller/ProfileInstallerInitializer$$ExternalSyntheticLambda2;
invoke-direct {v0, p0}, Landroidx/profileinstaller/ProfileInstallerInitializer$$ExternalSyntheticLambda2;-><init>(Landroid/content/Context;)V
invoke-interface {v7, v0}, Ljava/util/concurrent/Executor;->execute(Ljava/lang/Runnable;)V
return-void
.end method
# virtual methods
.method public create(Landroid/content/Context;)Landroidx/profileinstaller/ProfileInstallerInitializer$Result;
.locals 0
.param p1 # Landroid/content/Context;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.annotation build Landroidx/annotation/NonNull;
.end annotation
.line 82
invoke-virtual {p1}, Landroid/content/Context;->getApplicationContext()Landroid/content/Context;
move-result-object p1
invoke-virtual {p0, p1}, Landroidx/profileinstaller/ProfileInstallerInitializer;->delayAfterFirstFrame(Landroid/content/Context;)V
.line 83
new-instance p1, Landroidx/profileinstaller/ProfileInstallerInitializer$Result;
invoke-direct {p1}, Landroidx/profileinstaller/ProfileInstallerInitializer$Result;-><init>()V
return-object p1
.end method
.method public bridge synthetic create(Landroid/content/Context;)Ljava/lang/Object;
.locals 0
.param p1 # Landroid/content/Context;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.annotation build Landroidx/annotation/NonNull;
.end annotation
.line 64
invoke-virtual {p0, p1}, Landroidx/profileinstaller/ProfileInstallerInitializer;->create(Landroid/content/Context;)Landroidx/profileinstaller/ProfileInstallerInitializer$Result;
move-result-object p1
return-object p1
.end method
.method public delayAfterFirstFrame(Landroid/content/Context;)V
.locals 1
.param p1 # Landroid/content/Context;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.annotation build Landroidx/annotation/RequiresApi;
value = 0x10
.end annotation
.line 94
new-instance v0, Landroidx/profileinstaller/ProfileInstallerInitializer$$ExternalSyntheticLambda1;
invoke-direct {v0, p0, p1}, Landroidx/profileinstaller/ProfileInstallerInitializer$$ExternalSyntheticLambda1;-><init>(Landroidx/profileinstaller/ProfileInstallerInitializer;Landroid/content/Context;)V
invoke-static {v0}, Landroidx/profileinstaller/ProfileInstallerInitializer$Choreographer16Impl;->postFrameCallback(Ljava/lang/Runnable;)V
return-void
.end method
.method public dependencies()Ljava/util/List;
.locals 1
.annotation build Landroidx/annotation/NonNull;
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"()",
"Ljava/util/List<",
"Ljava/lang/Class<",
"+",
"Landroidx/startup/Initializer<",
"*>;>;>;"
}
.end annotation
.line 126
invoke-static {}, Ljava/util/Collections;->emptyList()Ljava/util/List;
move-result-object v0
return-object v0
.end method
.method public installAfterDelay(Landroid/content/Context;)V
.locals 5
.param p1 # Landroid/content/Context;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
sget v0, Landroid/os/Build$VERSION;->SDK_INT:I
const/16 v1, 0x1c
if-lt v0, v1, :cond_0
.line 110
invoke-static {}, Landroid/os/Looper;->getMainLooper()Landroid/os/Looper;
move-result-object v0
invoke-static {v0}, Landroidx/profileinstaller/ProfileInstallerInitializer$Handler28Impl;->createAsync(Landroid/os/Looper;)Landroid/os/Handler;
move-result-object v0
goto :goto_0
.line 112
:cond_0
new-instance v0, Landroid/os/Handler;
invoke-static {}, Landroid/os/Looper;->getMainLooper()Landroid/os/Looper;
move-result-object v1
invoke-direct {v0, v1}, Landroid/os/Handler;-><init>(Landroid/os/Looper;)V
.line 114
:goto_0
new-instance v1, Ljava/util/Random;
invoke-direct {v1}, Ljava/util/Random;-><init>()V
const/16 v2, 0x3e8
const/4 v3, 0x1
.line 115
invoke-static {v2, v3}, Ljava/lang/Math;->max(II)I
move-result v2
invoke-virtual {v1, v2}, Ljava/util/Random;->nextInt(I)I
move-result v1
.line 117
new-instance v2, Landroidx/profileinstaller/ProfileInstallerInitializer$$ExternalSyntheticLambda0;
invoke-direct {v2, p1}, Landroidx/profileinstaller/ProfileInstallerInitializer$$ExternalSyntheticLambda0;-><init>(Landroid/content/Context;)V
add-int/lit16 v1, v1, 0x1388
int-to-long v3, v1
invoke-virtual {v0, v2, v3, v4}, Landroid/os/Handler;->postDelayed(Ljava/lang/Runnable;J)Z
return-void
.end method

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,60 @@
.class Landroidx/profileinstaller/ProfileVerifier$Api33Impl;
.super Ljava/lang/Object;
.source "SourceFile"
# annotations
.annotation build Landroidx/annotation/RequiresApi;
value = 0x21
.end annotation
.annotation system Ldalvik/annotation/EnclosingClass;
value = Landroidx/profileinstaller/ProfileVerifier;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x9
name = "Api33Impl"
.end annotation
# direct methods
.method private constructor <init>()V
.locals 0
.line 551
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
.method public static getPackageInfo(Landroid/content/pm/PackageManager;Landroid/content/Context;)Landroid/content/pm/PackageInfo;
.locals 2
.annotation build Landroidx/annotation/DoNotInline;
.end annotation
.annotation system Ldalvik/annotation/Throws;
value = {
Landroid/content/pm/PackageManager$NameNotFoundException;
}
.end annotation
.line 559
invoke-virtual {p1}, Landroid/content/Context;->getPackageName()Ljava/lang/String;
move-result-object p1
const-wide/16 v0, 0x0
.line 560
invoke-static {v0, v1}, Landroid/content/pm/PackageManager$PackageInfoFlags;->of(J)Landroid/content/pm/PackageManager$PackageInfoFlags;
move-result-object v0
.line 558
invoke-virtual {p0, p1, v0}, Landroid/content/pm/PackageManager;->getPackageInfo(Ljava/lang/String;Landroid/content/pm/PackageManager$PackageInfoFlags;)Landroid/content/pm/PackageInfo;
move-result-object p0
return-object p0
.end method

View File

@@ -0,0 +1,313 @@
.class Landroidx/profileinstaller/ProfileVerifier$Cache;
.super Ljava/lang/Object;
.source "SourceFile"
# annotations
.annotation build Landroidx/annotation/RestrictTo;
value = {
.enum Landroidx/annotation/RestrictTo$Scope;->LIBRARY:Landroidx/annotation/RestrictTo$Scope;
}
.end annotation
.annotation system Ldalvik/annotation/EnclosingClass;
value = Landroidx/profileinstaller/ProfileVerifier;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x9
name = "Cache"
.end annotation
# static fields
.field private static final SCHEMA:I = 0x1
# instance fields
.field final mInstalledCurrentProfileSize:J
.field final mPackageLastUpdateTime:J
.field final mResultCode:I
.field final mSchema:I
# direct methods
.method public constructor <init>(IIJJ)V
.locals 0
.line 337
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
iput p1, p0, Landroidx/profileinstaller/ProfileVerifier$Cache;->mSchema:I
iput p2, p0, Landroidx/profileinstaller/ProfileVerifier$Cache;->mResultCode:I
iput-wide p3, p0, Landroidx/profileinstaller/ProfileVerifier$Cache;->mPackageLastUpdateTime:J
iput-wide p5, p0, Landroidx/profileinstaller/ProfileVerifier$Cache;->mInstalledCurrentProfileSize:J
return-void
.end method
.method public static readFromFile(Ljava/io/File;)Landroidx/profileinstaller/ProfileVerifier$Cache;
.locals 9
.param p0 # Ljava/io/File;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
.line 376
new-instance v0, Ljava/io/DataInputStream;
new-instance v1, Ljava/io/FileInputStream;
invoke-direct {v1, p0}, Ljava/io/FileInputStream;-><init>(Ljava/io/File;)V
invoke-direct {v0, v1}, Ljava/io/DataInputStream;-><init>(Ljava/io/InputStream;)V
.line 377
:try_start_0
new-instance p0, Landroidx/profileinstaller/ProfileVerifier$Cache;
.line 378
invoke-virtual {v0}, Ljava/io/DataInputStream;->readInt()I
move-result v3
.line 379
invoke-virtual {v0}, Ljava/io/DataInputStream;->readInt()I
move-result v4
.line 380
invoke-virtual {v0}, Ljava/io/DataInputStream;->readLong()J
move-result-wide v5
.line 381
invoke-virtual {v0}, Ljava/io/DataInputStream;->readLong()J
move-result-wide v7
move-object v2, p0
invoke-direct/range {v2 .. v8}, Landroidx/profileinstaller/ProfileVerifier$Cache;-><init>(IIJJ)V
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
.line 383
invoke-virtual {v0}, Ljava/io/InputStream;->close()V
return-object p0
:catchall_0
move-exception p0
.line 376
:try_start_1
invoke-virtual {v0}, Ljava/io/InputStream;->close()V
:try_end_1
.catchall {:try_start_1 .. :try_end_1} :catchall_1
goto :goto_0
:catchall_1
move-exception v0
invoke-virtual {p0, v0}, Ljava/lang/Throwable;->addSuppressed(Ljava/lang/Throwable;)V
:goto_0
throw p0
.end method
# virtual methods
.method public equals(Ljava/lang/Object;)Z
.locals 6
const/4 v0, 0x1
if-ne p0, p1, :cond_0
return v0
:cond_0
const/4 v1, 0x0
if-eqz p1, :cond_3
.line 347
instance-of v2, p1, Landroidx/profileinstaller/ProfileVerifier$Cache;
if-nez v2, :cond_1
goto :goto_1
.line 348
:cond_1
check-cast p1, Landroidx/profileinstaller/ProfileVerifier$Cache;
iget v2, p0, Landroidx/profileinstaller/ProfileVerifier$Cache;->mResultCode:I
.line 349
iget v3, p1, Landroidx/profileinstaller/ProfileVerifier$Cache;->mResultCode:I
if-ne v2, v3, :cond_2
iget-wide v2, p0, Landroidx/profileinstaller/ProfileVerifier$Cache;->mPackageLastUpdateTime:J
iget-wide v4, p1, Landroidx/profileinstaller/ProfileVerifier$Cache;->mPackageLastUpdateTime:J
cmp-long v2, v2, v4
if-nez v2, :cond_2
iget v2, p0, Landroidx/profileinstaller/ProfileVerifier$Cache;->mSchema:I
iget v3, p1, Landroidx/profileinstaller/ProfileVerifier$Cache;->mSchema:I
if-ne v2, v3, :cond_2
iget-wide v2, p0, Landroidx/profileinstaller/ProfileVerifier$Cache;->mInstalledCurrentProfileSize:J
iget-wide v4, p1, Landroidx/profileinstaller/ProfileVerifier$Cache;->mInstalledCurrentProfileSize:J
cmp-long p1, v2, v4
if-nez p1, :cond_2
goto :goto_0
:cond_2
move v0, v1
:goto_0
return v0
:cond_3
:goto_1
return v1
.end method
.method public hashCode()I
.locals 5
iget v0, p0, Landroidx/profileinstaller/ProfileVerifier$Cache;->mResultCode:I
.line 358
invoke-static {v0}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object v0
iget-wide v1, p0, Landroidx/profileinstaller/ProfileVerifier$Cache;->mPackageLastUpdateTime:J
.line 359
invoke-static {v1, v2}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;
move-result-object v1
iget v2, p0, Landroidx/profileinstaller/ProfileVerifier$Cache;->mSchema:I
.line 360
invoke-static {v2}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object v2
iget-wide v3, p0, Landroidx/profileinstaller/ProfileVerifier$Cache;->mInstalledCurrentProfileSize:J
.line 361
invoke-static {v3, v4}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;
move-result-object v3
filled-new-array {v0, v1, v2, v3}, [Ljava/lang/Object;
move-result-object v0
.line 357
invoke-static {v0}, Ljava/util/Objects;->hash([Ljava/lang/Object;)I
move-result v0
return v0
.end method
.method public writeOnFile(Ljava/io/File;)V
.locals 3
.param p1 # Ljava/io/File;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
.line 366
invoke-virtual {p1}, Ljava/io/File;->delete()Z
.line 367
new-instance v0, Ljava/io/DataOutputStream;
new-instance v1, Ljava/io/FileOutputStream;
invoke-direct {v1, p1}, Ljava/io/FileOutputStream;-><init>(Ljava/io/File;)V
invoke-direct {v0, v1}, Ljava/io/DataOutputStream;-><init>(Ljava/io/OutputStream;)V
:try_start_0
iget p1, p0, Landroidx/profileinstaller/ProfileVerifier$Cache;->mSchema:I
.line 368
invoke-virtual {v0, p1}, Ljava/io/DataOutputStream;->writeInt(I)V
iget p1, p0, Landroidx/profileinstaller/ProfileVerifier$Cache;->mResultCode:I
.line 369
invoke-virtual {v0, p1}, Ljava/io/DataOutputStream;->writeInt(I)V
iget-wide v1, p0, Landroidx/profileinstaller/ProfileVerifier$Cache;->mPackageLastUpdateTime:J
.line 370
invoke-virtual {v0, v1, v2}, Ljava/io/DataOutputStream;->writeLong(J)V
iget-wide v1, p0, Landroidx/profileinstaller/ProfileVerifier$Cache;->mInstalledCurrentProfileSize:J
.line 371
invoke-virtual {v0, v1, v2}, Ljava/io/DataOutputStream;->writeLong(J)V
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
.line 372
invoke-virtual {v0}, Ljava/io/OutputStream;->close()V
return-void
:catchall_0
move-exception p1
.line 367
:try_start_1
invoke-virtual {v0}, Ljava/io/OutputStream;->close()V
:try_end_1
.catchall {:try_start_1 .. :try_end_1} :catchall_1
goto :goto_0
:catchall_1
move-exception v0
invoke-virtual {p1, v0}, Ljava/lang/Throwable;->addSuppressed(Ljava/lang/Throwable;)V
:goto_0
throw p1
.end method

View File

@@ -0,0 +1,27 @@
.class public interface abstract annotation Landroidx/profileinstaller/ProfileVerifier$CompilationStatus$ResultCode;
.super Ljava/lang/Object;
.source "SourceFile"
# interfaces
.implements Ljava/lang/annotation/Annotation;
# annotations
.annotation build Landroidx/annotation/RestrictTo;
value = {
.enum Landroidx/annotation/RestrictTo$Scope;->LIBRARY:Landroidx/annotation/RestrictTo$Scope;
}
.end annotation
.annotation system Ldalvik/annotation/EnclosingClass;
value = Landroidx/profileinstaller/ProfileVerifier$CompilationStatus;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x2609
name = "ResultCode"
.end annotation
.annotation runtime Ljava/lang/annotation/Retention;
value = .enum Ljava/lang/annotation/RetentionPolicy;->SOURCE:Ljava/lang/annotation/RetentionPolicy;
.end annotation

View File

@@ -0,0 +1,91 @@
.class public Landroidx/profileinstaller/ProfileVerifier$CompilationStatus;
.super Ljava/lang/Object;
.source "SourceFile"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Landroidx/profileinstaller/ProfileVerifier;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x9
name = "CompilationStatus"
.end annotation
.annotation system Ldalvik/annotation/MemberClasses;
value = {
Landroidx/profileinstaller/ProfileVerifier$CompilationStatus$ResultCode;
}
.end annotation
# static fields
.field public static final RESULT_CODE_COMPILED_WITH_PROFILE:I = 0x1
.field public static final RESULT_CODE_COMPILED_WITH_PROFILE_NON_MATCHING:I = 0x3
.field public static final RESULT_CODE_ERROR_CACHE_FILE_EXISTS_BUT_CANNOT_BE_READ:I = 0x20000
.field public static final RESULT_CODE_ERROR_CANT_WRITE_PROFILE_VERIFICATION_RESULT_CACHE_FILE:I = 0x30000
.field private static final RESULT_CODE_ERROR_CODE_BIT_SHIFT:I = 0x10
.field public static final RESULT_CODE_ERROR_PACKAGE_NAME_DOES_NOT_EXIST:I = 0x10000
.field public static final RESULT_CODE_ERROR_UNSUPPORTED_API_VERSION:I = 0x40000
.field public static final RESULT_CODE_NO_PROFILE:I = 0x0
.field public static final RESULT_CODE_PROFILE_ENQUEUED_FOR_COMPILATION:I = 0x2
# instance fields
.field private final mHasCurrentProfile:Z
.field private final mHasReferenceProfile:Z
.field final mResultCode:I
# direct methods
.method public constructor <init>(IZZ)V
.locals 0
.line 486
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
iput p1, p0, Landroidx/profileinstaller/ProfileVerifier$CompilationStatus;->mResultCode:I
iput-boolean p3, p0, Landroidx/profileinstaller/ProfileVerifier$CompilationStatus;->mHasCurrentProfile:Z
iput-boolean p2, p0, Landroidx/profileinstaller/ProfileVerifier$CompilationStatus;->mHasReferenceProfile:Z
return-void
.end method
# virtual methods
.method public getProfileInstallResultCode()I
.locals 1
iget v0, p0, Landroidx/profileinstaller/ProfileVerifier$CompilationStatus;->mResultCode:I
return v0
.end method
.method public hasProfileEnqueuedForCompilation()Z
.locals 1
iget-boolean v0, p0, Landroidx/profileinstaller/ProfileVerifier$CompilationStatus;->mHasCurrentProfile:Z
return v0
.end method
.method public isCompiledWithProfile()Z
.locals 1
iget-boolean v0, p0, Landroidx/profileinstaller/ProfileVerifier$CompilationStatus;->mHasReferenceProfile:Z
return v0
.end method

View File

@@ -0,0 +1,544 @@
.class public final Landroidx/profileinstaller/ProfileVerifier;
.super Ljava/lang/Object;
.source "SourceFile"
# annotations
.annotation system Ldalvik/annotation/MemberClasses;
value = {
Landroidx/profileinstaller/ProfileVerifier$CompilationStatus;,
Landroidx/profileinstaller/ProfileVerifier$Cache;,
Landroidx/profileinstaller/ProfileVerifier$Api33Impl;
}
.end annotation
# static fields
.field private static final CUR_PROFILES_BASE_DIR:Ljava/lang/String; = "/data/misc/profiles/cur/0/"
.field private static final PROFILE_FILE_NAME:Ljava/lang/String; = "primary.prof"
.field private static final PROFILE_INSTALLED_CACHE_FILE_NAME:Ljava/lang/String; = "profileInstalled"
.field private static final REF_PROFILES_BASE_DIR:Ljava/lang/String; = "/data/misc/profiles/ref/"
.field private static final SYNC_OBJ:Ljava/lang/Object;
.field private static final TAG:Ljava/lang/String; = "ProfileVerifier"
.field private static sCompilationStatus:Landroidx/profileinstaller/ProfileVerifier$CompilationStatus;
.annotation build Landroidx/annotation/Nullable;
.end annotation
.end field
.field private static final sFuture:Landroidx/concurrent/futures/ResolvableFuture;
.annotation system Ldalvik/annotation/Signature;
value = {
"Landroidx/concurrent/futures/ResolvableFuture<",
"Landroidx/profileinstaller/ProfileVerifier$CompilationStatus;",
">;"
}
.end annotation
.end field
# direct methods
.method static constructor <clinit>()V
.locals 1
.line 76
invoke-static {}, Landroidx/concurrent/futures/ResolvableFuture;->create()Landroidx/concurrent/futures/ResolvableFuture;
move-result-object v0
sput-object v0, Landroidx/profileinstaller/ProfileVerifier;->sFuture:Landroidx/concurrent/futures/ResolvableFuture;
.line 77
new-instance v0, Ljava/lang/Object;
invoke-direct {v0}, Ljava/lang/Object;-><init>()V
sput-object v0, Landroidx/profileinstaller/ProfileVerifier;->SYNC_OBJ:Ljava/lang/Object;
const/4 v0, 0x0
sput-object v0, Landroidx/profileinstaller/ProfileVerifier;->sCompilationStatus:Landroidx/profileinstaller/ProfileVerifier$CompilationStatus;
return-void
.end method
.method private constructor <init>()V
.locals 0
.line 83
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
.method public static getCompilationStatusAsync()Lcom/google/common/util/concurrent/ListenableFuture;
.locals 1
.annotation build Landroidx/annotation/NonNull;
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"()",
"Lcom/google/common/util/concurrent/ListenableFuture;"
}
.end annotation
sget-object v0, Landroidx/profileinstaller/ProfileVerifier;->sFuture:Landroidx/concurrent/futures/ResolvableFuture;
return-object v0
.end method
.method private static getPackageLastUpdateTime(Landroid/content/Context;)J
.locals 3
.annotation system Ldalvik/annotation/Throws;
value = {
Landroid/content/pm/PackageManager$NameNotFoundException;
}
.end annotation
.line 299
invoke-virtual {p0}, Landroid/content/Context;->getApplicationContext()Landroid/content/Context;
move-result-object v0
invoke-virtual {v0}, Landroid/content/Context;->getPackageManager()Landroid/content/pm/PackageManager;
move-result-object v0
sget v1, Landroid/os/Build$VERSION;->SDK_INT:I
const/16 v2, 0x21
if-lt v1, v2, :cond_0
.line 301
invoke-static {v0, p0}, Landroidx/profileinstaller/ProfileVerifier$Api33Impl;->getPackageInfo(Landroid/content/pm/PackageManager;Landroid/content/Context;)Landroid/content/pm/PackageInfo;
move-result-object p0
iget-wide v0, p0, Landroid/content/pm/PackageInfo;->lastUpdateTime:J
return-wide v0
.line 303
:cond_0
invoke-virtual {p0}, Landroid/content/Context;->getPackageName()Ljava/lang/String;
move-result-object p0
const/4 v1, 0x0
invoke-virtual {v0, p0, v1}, Landroid/content/pm/PackageManager;->getPackageInfo(Ljava/lang/String;I)Landroid/content/pm/PackageInfo;
move-result-object p0
iget-wide v0, p0, Landroid/content/pm/PackageInfo;->lastUpdateTime:J
return-wide v0
.end method
.method private static setCompilationStatus(IZZ)Landroidx/profileinstaller/ProfileVerifier$CompilationStatus;
.locals 1
.line 285
new-instance v0, Landroidx/profileinstaller/ProfileVerifier$CompilationStatus;
invoke-direct {v0, p0, p1, p2}, Landroidx/profileinstaller/ProfileVerifier$CompilationStatus;-><init>(IZZ)V
sput-object v0, Landroidx/profileinstaller/ProfileVerifier;->sCompilationStatus:Landroidx/profileinstaller/ProfileVerifier$CompilationStatus;
sget-object p0, Landroidx/profileinstaller/ProfileVerifier;->sFuture:Landroidx/concurrent/futures/ResolvableFuture;
.line 290
invoke-virtual {p0, v0}, Landroidx/concurrent/futures/ResolvableFuture;->set(Ljava/lang/Object;)Z
sget-object p0, Landroidx/profileinstaller/ProfileVerifier;->sCompilationStatus:Landroidx/profileinstaller/ProfileVerifier$CompilationStatus;
return-object p0
.end method
.method public static writeProfileVerification(Landroid/content/Context;)Landroidx/profileinstaller/ProfileVerifier$CompilationStatus;
.locals 1
.param p0 # Landroid/content/Context;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.annotation build Landroidx/annotation/NonNull;
.end annotation
.annotation build Landroidx/annotation/WorkerThread;
.end annotation
const/4 v0, 0x0
.line 100
invoke-static {p0, v0}, Landroidx/profileinstaller/ProfileVerifier;->writeProfileVerification(Landroid/content/Context;Z)Landroidx/profileinstaller/ProfileVerifier$CompilationStatus;
move-result-object p0
return-object p0
.end method
.method public static writeProfileVerification(Landroid/content/Context;Z)Landroidx/profileinstaller/ProfileVerifier$CompilationStatus;
.locals 18
.param p0 # Landroid/content/Context;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.annotation build Landroidx/annotation/NonNull;
.end annotation
.annotation build Landroidx/annotation/RestrictTo;
value = {
.enum Landroidx/annotation/RestrictTo$Scope;->LIBRARY:Landroidx/annotation/RestrictTo$Scope;
}
.end annotation
.annotation build Landroidx/annotation/WorkerThread;
.end annotation
if-nez p1, :cond_0
sget-object v0, Landroidx/profileinstaller/ProfileVerifier;->sCompilationStatus:Landroidx/profileinstaller/ProfileVerifier$CompilationStatus;
if-eqz v0, :cond_0
return-object v0
:cond_0
sget-object v1, Landroidx/profileinstaller/ProfileVerifier;->SYNC_OBJ:Ljava/lang/Object;
.line 133
monitor-enter v1
if-nez p1, :cond_1
:try_start_0
sget-object v0, Landroidx/profileinstaller/ProfileVerifier;->sCompilationStatus:Landroidx/profileinstaller/ProfileVerifier$CompilationStatus;
if-eqz v0, :cond_1
.line 136
monitor-exit v1
return-object v0
:catchall_0
move-exception v0
goto/16 :goto_7
:cond_1
sget v0, Landroid/os/Build$VERSION;->SDK_INT:I
const/16 v2, 0x1c
const/4 v3, 0x0
if-lt v0, v2, :cond_e
const/16 v2, 0x1e
if-ne v0, v2, :cond_2
goto/16 :goto_6
.line 152
:cond_2
new-instance v0, Ljava/io/File;
new-instance v2, Ljava/io/File;
const-string v4, "/data/misc/profiles/ref/"
.line 153
invoke-virtual/range {p0 .. p0}, Landroid/content/Context;->getPackageName()Ljava/lang/String;
move-result-object v5
invoke-direct {v2, v4, v5}, Ljava/io/File;-><init>(Ljava/lang/String;Ljava/lang/String;)V
const-string v4, "primary.prof"
invoke-direct {v0, v2, v4}, Ljava/io/File;-><init>(Ljava/io/File;Ljava/lang/String;)V
.line 154
invoke-virtual {v0}, Ljava/io/File;->length()J
move-result-wide v4
.line 156
invoke-virtual {v0}, Ljava/io/File;->exists()Z
move-result v0
const-wide/16 v6, 0x0
const/4 v2, 0x1
if-eqz v0, :cond_3
cmp-long v0, v4, v6
if-lez v0, :cond_3
move v0, v2
goto :goto_0
:cond_3
move v0, v3
.line 159
:goto_0
new-instance v8, Ljava/io/File;
new-instance v9, Ljava/io/File;
const-string v10, "/data/misc/profiles/cur/0/"
.line 160
invoke-virtual/range {p0 .. p0}, Landroid/content/Context;->getPackageName()Ljava/lang/String;
move-result-object v11
invoke-direct {v9, v10, v11}, Ljava/io/File;-><init>(Ljava/lang/String;Ljava/lang/String;)V
const-string v10, "primary.prof"
invoke-direct {v8, v9, v10}, Ljava/io/File;-><init>(Ljava/io/File;Ljava/lang/String;)V
.line 161
invoke-virtual {v8}, Ljava/io/File;->length()J
move-result-wide v16
.line 163
invoke-virtual {v8}, Ljava/io/File;->exists()Z
move-result v8
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
if-eqz v8, :cond_4
cmp-long v6, v16, v6
if-lez v6, :cond_4
move v6, v2
goto :goto_1
:cond_4
move v6, v3
.line 169
:goto_1
:try_start_1
invoke-static/range {p0 .. p0}, Landroidx/profileinstaller/ProfileVerifier;->getPackageLastUpdateTime(Landroid/content/Context;)J
move-result-wide v14
:try_end_1
.catch Landroid/content/pm/PackageManager$NameNotFoundException; {:try_start_1 .. :try_end_1} :catch_2
.catchall {:try_start_1 .. :try_end_1} :catchall_0
.line 179
:try_start_2
new-instance v7, Ljava/io/File;
invoke-virtual/range {p0 .. p0}, Landroid/content/Context;->getFilesDir()Ljava/io/File;
move-result-object v8
const-string v9, "profileInstalled"
invoke-direct {v7, v8, v9}, Ljava/io/File;-><init>(Ljava/io/File;Ljava/lang/String;)V
.line 181
invoke-virtual {v7}, Ljava/io/File;->exists()Z
move-result v8
:try_end_2
.catchall {:try_start_2 .. :try_end_2} :catchall_0
if-eqz v8, :cond_5
.line 183
:try_start_3
invoke-static {v7}, Landroidx/profileinstaller/ProfileVerifier$Cache;->readFromFile(Ljava/io/File;)Landroidx/profileinstaller/ProfileVerifier$Cache;
move-result-object v8
:try_end_3
.catch Ljava/io/IOException; {:try_start_3 .. :try_end_3} :catch_0
.catchall {:try_start_3 .. :try_end_3} :catchall_0
goto :goto_2
:catch_0
const/high16 v2, 0x20000
.line 185
:try_start_4
invoke-static {v2, v0, v6}, Landroidx/profileinstaller/ProfileVerifier;->setCompilationStatus(IZZ)Landroidx/profileinstaller/ProfileVerifier$CompilationStatus;
move-result-object v0
monitor-exit v1
return-object v0
:cond_5
const/4 v8, 0x0
:goto_2
const/4 v9, 0x2
if-eqz v8, :cond_7
.line 205
iget-wide v10, v8, Landroidx/profileinstaller/ProfileVerifier$Cache;->mPackageLastUpdateTime:J
cmp-long v10, v10, v14
if-nez v10, :cond_7
iget v10, v8, Landroidx/profileinstaller/ProfileVerifier$Cache;->mResultCode:I
if-ne v10, v9, :cond_6
goto :goto_3
:cond_6
move v3, v10
goto :goto_4
:cond_7
:goto_3
if-eqz v0, :cond_8
move v3, v2
goto :goto_4
:cond_8
if-eqz v6, :cond_9
move v3, v9
:cond_9
:goto_4
if-eqz p1, :cond_a
if-eqz v6, :cond_a
if-eq v3, v2, :cond_a
move v3, v9
:cond_a
if-eqz v8, :cond_b
.line 237
iget v10, v8, Landroidx/profileinstaller/ProfileVerifier$Cache;->mResultCode:I
if-ne v10, v9, :cond_b
if-ne v3, v2, :cond_b
.line 251
iget-wide v9, v8, Landroidx/profileinstaller/ProfileVerifier$Cache;->mInstalledCurrentProfileSize:J
cmp-long v2, v4, v9
if-gez v2, :cond_b
const/4 v3, 0x3
.line 257
:cond_b
new-instance v2, Landroidx/profileinstaller/ProfileVerifier$Cache;
const/4 v12, 0x1
move-object v11, v2
move v13, v3
invoke-direct/range {v11 .. v17}, Landroidx/profileinstaller/ProfileVerifier$Cache;-><init>(IIJJ)V
if-eqz v8, :cond_c
.line 266
invoke-virtual {v8, v2}, Landroidx/profileinstaller/ProfileVerifier$Cache;->equals(Ljava/lang/Object;)Z
move-result v4
:try_end_4
.catchall {:try_start_4 .. :try_end_4} :catchall_0
if-nez v4, :cond_d
.line 268
:cond_c
:try_start_5
invoke-virtual {v2, v7}, Landroidx/profileinstaller/ProfileVerifier$Cache;->writeOnFile(Ljava/io/File;)V
:try_end_5
.catch Ljava/io/IOException; {:try_start_5 .. :try_end_5} :catch_1
.catchall {:try_start_5 .. :try_end_5} :catchall_0
goto :goto_5
:catch_1
const/high16 v3, 0x30000
.line 276
:cond_d
:goto_5
:try_start_6
invoke-static {v3, v0, v6}, Landroidx/profileinstaller/ProfileVerifier;->setCompilationStatus(IZZ)Landroidx/profileinstaller/ProfileVerifier$CompilationStatus;
move-result-object v0
monitor-exit v1
return-object v0
:catch_2
const/high16 v2, 0x10000
.line 171
invoke-static {v2, v0, v6}, Landroidx/profileinstaller/ProfileVerifier;->setCompilationStatus(IZZ)Landroidx/profileinstaller/ProfileVerifier$CompilationStatus;
move-result-object v0
monitor-exit v1
return-object v0
:cond_e
:goto_6
const/high16 v0, 0x40000
.line 142
invoke-static {v0, v3, v3}, Landroidx/profileinstaller/ProfileVerifier;->setCompilationStatus(IZZ)Landroidx/profileinstaller/ProfileVerifier$CompilationStatus;
move-result-object v0
monitor-exit v1
return-object v0
.line 277
:goto_7
monitor-exit v1
:try_end_6
.catchall {:try_start_6 .. :try_end_6} :catchall_0
throw v0
.end method

View File

@@ -0,0 +1,184 @@
.class public Landroidx/profileinstaller/ProfileVersion;
.super Ljava/lang/Object;
.source "SourceFile"
# annotations
.annotation build Landroidx/annotation/RestrictTo;
value = {
.enum Landroidx/annotation/RestrictTo$Scope;->LIBRARY:Landroidx/annotation/RestrictTo$Scope;
}
.end annotation
# static fields
.field public static final MAX_SUPPORTED_SDK:I = 0x22
.field static final METADATA_V001_N:[B
.field static final METADATA_V002:[B
.field public static final MIN_SUPPORTED_SDK:I = 0x18
.field static final V001_N:[B
.field static final V005_O:[B
.field static final V009_O_MR1:[B
.field static final V010_P:[B
.field static final V015_S:[B
# direct methods
.method static constructor <clinit>()V
.locals 2
const/4 v0, 0x4
new-array v1, v0, [B
fill-array-data v1, :array_0
sput-object v1, Landroidx/profileinstaller/ProfileVersion;->V015_S:[B
new-array v1, v0, [B
fill-array-data v1, :array_1
sput-object v1, Landroidx/profileinstaller/ProfileVersion;->V010_P:[B
new-array v1, v0, [B
fill-array-data v1, :array_2
sput-object v1, Landroidx/profileinstaller/ProfileVersion;->V009_O_MR1:[B
new-array v1, v0, [B
fill-array-data v1, :array_3
sput-object v1, Landroidx/profileinstaller/ProfileVersion;->V005_O:[B
new-array v1, v0, [B
fill-array-data v1, :array_4
sput-object v1, Landroidx/profileinstaller/ProfileVersion;->V001_N:[B
new-array v1, v0, [B
fill-array-data v1, :array_5
sput-object v1, Landroidx/profileinstaller/ProfileVersion;->METADATA_V001_N:[B
new-array v0, v0, [B
fill-array-data v0, :array_6
sput-object v0, Landroidx/profileinstaller/ProfileVersion;->METADATA_V002:[B
return-void
nop
:array_0
.array-data 1
0x30t
0x31t
0x35t
0x0t
.end array-data
:array_1
.array-data 1
0x30t
0x31t
0x30t
0x0t
.end array-data
:array_2
.array-data 1
0x30t
0x30t
0x39t
0x0t
.end array-data
:array_3
.array-data 1
0x30t
0x30t
0x35t
0x0t
.end array-data
:array_4
.array-data 1
0x30t
0x30t
0x31t
0x0t
.end array-data
:array_5
.array-data 1
0x30t
0x30t
0x31t
0x0t
.end array-data
:array_6
.array-data 1
0x30t
0x30t
0x32t
0x0t
.end array-data
.end method
.method private constructor <init>()V
.locals 0
.line 28
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
.method public static dexKeySeparator([B)Ljava/lang/String;
.locals 2
sget-object v0, Landroidx/profileinstaller/ProfileVersion;->V001_N:[B
.line 40
invoke-static {p0, v0}, Ljava/util/Arrays;->equals([B[B)Z
move-result v0
const-string v1, ":"
if-eqz v0, :cond_0
return-object v1
:cond_0
sget-object v0, Landroidx/profileinstaller/ProfileVersion;->V005_O:[B
.line 42
invoke-static {p0, v0}, Ljava/util/Arrays;->equals([B[B)Z
move-result p0
if-eqz p0, :cond_1
return-object v1
:cond_1
const-string p0, "!"
return-object p0
.end method

View File

@@ -0,0 +1,13 @@
.class public final Landroidx/profileinstaller/R;
.super Ljava/lang/Object;
.source "SourceFile"
# direct methods
.method private constructor <init>()V
.locals 0
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method

View File

@@ -0,0 +1,40 @@
.class Landroidx/profileinstaller/WritableFileSection;
.super Ljava/lang/Object;
.source "SourceFile"
# instance fields
.field final mContents:[B
.field final mExpectedInflateSize:I
.field final mNeedsCompression:Z
.field final mType:Landroidx/profileinstaller/FileSectionType;
# direct methods
.method public constructor <init>(Landroidx/profileinstaller/FileSectionType;I[BZ)V
.locals 0
.param p1 # Landroidx/profileinstaller/FileSectionType;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.param p3 # [B
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.line 34
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
iput-object p1, p0, Landroidx/profileinstaller/WritableFileSection;->mType:Landroidx/profileinstaller/FileSectionType;
iput p2, p0, Landroidx/profileinstaller/WritableFileSection;->mExpectedInflateSize:I
iput-object p3, p0, Landroidx/profileinstaller/WritableFileSection;->mContents:[B
iput-boolean p4, p0, Landroidx/profileinstaller/WritableFileSection;->mNeedsCompression:Z
return-void
.end method