changed repo structure
This commit is contained in:
@@ -0,0 +1,36 @@
|
||||
.class Landroidx/profileinstaller/BenchmarkOperation$Api21ContextHelper;
|
||||
.super Ljava/lang/Object;
|
||||
.source "BenchmarkOperation.java"
|
||||
|
||||
|
||||
# annotations
|
||||
.annotation system Ldalvik/annotation/EnclosingClass;
|
||||
value = Landroidx/profileinstaller/BenchmarkOperation;
|
||||
.end annotation
|
||||
|
||||
.annotation system Ldalvik/annotation/InnerClass;
|
||||
accessFlags = 0xa
|
||||
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 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
|
||||
@@ -0,0 +1,40 @@
|
||||
.class Landroidx/profileinstaller/BenchmarkOperation$Api24ContextHelper;
|
||||
.super Ljava/lang/Object;
|
||||
.source "BenchmarkOperation.java"
|
||||
|
||||
|
||||
# annotations
|
||||
.annotation system Ldalvik/annotation/EnclosingClass;
|
||||
value = Landroidx/profileinstaller/BenchmarkOperation;
|
||||
.end annotation
|
||||
|
||||
.annotation system Ldalvik/annotation/InnerClass;
|
||||
accessFlags = 0xa
|
||||
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 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
|
||||
@@ -0,0 +1,124 @@
|
||||
.class Landroidx/profileinstaller/BenchmarkOperation;
|
||||
.super Ljava/lang/Object;
|
||||
.source "BenchmarkOperation.java"
|
||||
|
||||
|
||||
# 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 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 static dropShaderCache(Landroid/content/Context;Landroidx/profileinstaller/ProfileInstallReceiver$ResultDiagnostics;)V
|
||||
.locals 1
|
||||
|
||||
.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
|
||||
@@ -0,0 +1,48 @@
|
||||
.class public final synthetic Landroidx/profileinstaller/DeviceProfileWriter$$ExternalSyntheticLambda0;
|
||||
.super Ljava/lang/Object;
|
||||
.source "D8$$SyntheticClass"
|
||||
|
||||
# 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-virtual {v0, v1, v2}, Landroidx/profileinstaller/DeviceProfileWriter;->lambda$result$0$androidx-profileinstaller-DeviceProfileWriter(ILjava/lang/Object;)V
|
||||
|
||||
return-void
|
||||
.end method
|
||||
@@ -0,0 +1,993 @@
|
||||
.class public Landroidx/profileinstaller/DeviceProfileWriter;
|
||||
.super Ljava/lang/Object;
|
||||
.source "DeviceProfileWriter.java"
|
||||
|
||||
|
||||
# instance fields
|
||||
.field private final mApkName:Ljava/lang/String;
|
||||
|
||||
.field private final mAssetManager:Landroid/content/res/AssetManager;
|
||||
|
||||
.field private final mCurProfile:Ljava/io/File;
|
||||
|
||||
.field private final mDesiredVersion:[B
|
||||
|
||||
.field private mDeviceSupportsAotProfile:Z
|
||||
|
||||
.field private final mDiagnostics:Landroidx/profileinstaller/ProfileInstaller$DiagnosticsCallback;
|
||||
|
||||
.field private final mExecutor:Ljava/util/concurrent/Executor;
|
||||
|
||||
.field private mProfile:[Landroidx/profileinstaller/DexProfileData;
|
||||
|
||||
.field private final mProfileMetaSourceLocation:Ljava/lang/String;
|
||||
|
||||
.field private final mProfileSourceLocation:Ljava/lang/String;
|
||||
|
||||
.field private mTranscodedProfile:[B
|
||||
|
||||
|
||||
# direct methods
|
||||
.method public constructor <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
|
||||
.locals 1
|
||||
|
||||
.line 102
|
||||
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
||||
|
||||
const/4 v0, 0x0
|
||||
|
||||
.line 80
|
||||
iput-boolean v0, p0, Landroidx/profileinstaller/DeviceProfileWriter;->mDeviceSupportsAotProfile:Z
|
||||
|
||||
.line 103
|
||||
iput-object p1, p0, Landroidx/profileinstaller/DeviceProfileWriter;->mAssetManager:Landroid/content/res/AssetManager;
|
||||
|
||||
.line 104
|
||||
iput-object p2, p0, Landroidx/profileinstaller/DeviceProfileWriter;->mExecutor:Ljava/util/concurrent/Executor;
|
||||
|
||||
.line 105
|
||||
iput-object p3, p0, Landroidx/profileinstaller/DeviceProfileWriter;->mDiagnostics:Landroidx/profileinstaller/ProfileInstaller$DiagnosticsCallback;
|
||||
|
||||
.line 106
|
||||
iput-object p4, p0, Landroidx/profileinstaller/DeviceProfileWriter;->mApkName:Ljava/lang/String;
|
||||
|
||||
.line 107
|
||||
iput-object p5, p0, Landroidx/profileinstaller/DeviceProfileWriter;->mProfileSourceLocation:Ljava/lang/String;
|
||||
|
||||
.line 108
|
||||
iput-object p6, p0, Landroidx/profileinstaller/DeviceProfileWriter;->mProfileMetaSourceLocation:Ljava/lang/String;
|
||||
|
||||
.line 109
|
||||
iput-object p7, p0, Landroidx/profileinstaller/DeviceProfileWriter;->mCurProfile:Ljava/io/File;
|
||||
|
||||
.line 110
|
||||
invoke-static {}, Landroidx/profileinstaller/DeviceProfileWriter;->desiredVersion()[B
|
||||
|
||||
move-result-object p1
|
||||
|
||||
iput-object p1, p0, Landroidx/profileinstaller/DeviceProfileWriter;->mDesiredVersion:[B
|
||||
|
||||
return-void
|
||||
.end method
|
||||
|
||||
.method private addMetadata([Landroidx/profileinstaller/DexProfileData;[B)Landroidx/profileinstaller/DeviceProfileWriter;
|
||||
.locals 3
|
||||
|
||||
const/4 v0, 0x0
|
||||
|
||||
.line 253
|
||||
:try_start_0
|
||||
iget-object v1, p0, Landroidx/profileinstaller/DeviceProfileWriter;->mAssetManager:Landroid/content/res/AssetManager;
|
||||
|
||||
iget-object v2, p0, Landroidx/profileinstaller/DeviceProfileWriter;->mProfileMetaSourceLocation:Ljava/lang/String;
|
||||
|
||||
invoke-direct {p0, v1, v2}, Landroidx/profileinstaller/DeviceProfileWriter;->openStreamFromAssets(Landroid/content/res/AssetManager;Ljava/lang/String;)Ljava/io/InputStream;
|
||||
|
||||
move-result-object v1
|
||||
:try_end_0
|
||||
.catch Ljava/io/FileNotFoundException; {:try_start_0 .. :try_end_0} :catch_2
|
||||
.catch Ljava/io/IOException; {:try_start_0 .. :try_end_0} :catch_1
|
||||
.catch Ljava/lang/IllegalStateException; {:try_start_0 .. :try_end_0} :catch_0
|
||||
|
||||
if-eqz v1, :cond_2
|
||||
|
||||
.line 255
|
||||
:try_start_1
|
||||
sget-object v2, Landroidx/profileinstaller/ProfileTranscoder;->MAGIC_PROFM:[B
|
||||
|
||||
invoke-static {v1, v2}, Landroidx/profileinstaller/ProfileTranscoder;->readHeader(Ljava/io/InputStream;[B)[B
|
||||
|
||||
move-result-object v2
|
||||
|
||||
.line 256
|
||||
invoke-static {v1, v2, p2, p1}, Landroidx/profileinstaller/ProfileTranscoder;->readMeta(Ljava/io/InputStream;[B[B[Landroidx/profileinstaller/DexProfileData;)[Landroidx/profileinstaller/DexProfileData;
|
||||
|
||||
move-result-object p1
|
||||
|
||||
iput-object p1, p0, Landroidx/profileinstaller/DeviceProfileWriter;->mProfile:[Landroidx/profileinstaller/DexProfileData;
|
||||
:try_end_1
|
||||
.catchall {:try_start_1 .. :try_end_1} :catchall_0
|
||||
|
||||
if-eqz v1, :cond_0
|
||||
|
||||
.line 264
|
||||
:try_start_2
|
||||
invoke-virtual {v1}, Ljava/io/InputStream;->close()V
|
||||
:try_end_2
|
||||
.catch Ljava/io/FileNotFoundException; {:try_start_2 .. :try_end_2} :catch_2
|
||||
.catch Ljava/io/IOException; {:try_start_2 .. :try_end_2} :catch_1
|
||||
.catch Ljava/lang/IllegalStateException; {:try_start_2 .. :try_end_2} :catch_0
|
||||
|
||||
:cond_0
|
||||
return-object p0
|
||||
|
||||
:catchall_0
|
||||
move-exception p1
|
||||
|
||||
if-eqz v1, :cond_1
|
||||
|
||||
.line 253
|
||||
:try_start_3
|
||||
invoke-virtual {v1}, Ljava/io/InputStream;->close()V
|
||||
:try_end_3
|
||||
.catchall {:try_start_3 .. :try_end_3} :catchall_1
|
||||
|
||||
goto :goto_0
|
||||
|
||||
:catchall_1
|
||||
move-exception p2
|
||||
|
||||
:try_start_4
|
||||
invoke-virtual {p1, p2}, Ljava/lang/Throwable;->addSuppressed(Ljava/lang/Throwable;)V
|
||||
|
||||
:cond_1
|
||||
:goto_0
|
||||
throw p1
|
||||
|
||||
:cond_2
|
||||
if-eqz v1, :cond_3
|
||||
|
||||
.line 264
|
||||
invoke-virtual {v1}, Ljava/io/InputStream;->close()V
|
||||
:try_end_4
|
||||
.catch Ljava/io/FileNotFoundException; {:try_start_4 .. :try_end_4} :catch_2
|
||||
.catch Ljava/io/IOException; {:try_start_4 .. :try_end_4} :catch_1
|
||||
.catch Ljava/lang/IllegalStateException; {:try_start_4 .. :try_end_4} :catch_0
|
||||
|
||||
goto :goto_1
|
||||
|
||||
:catch_0
|
||||
move-exception p1
|
||||
|
||||
.line 270
|
||||
iput-object v0, p0, Landroidx/profileinstaller/DeviceProfileWriter;->mProfile:[Landroidx/profileinstaller/DexProfileData;
|
||||
|
||||
.line 271
|
||||
iget-object p2, p0, Landroidx/profileinstaller/DeviceProfileWriter;->mDiagnostics:Landroidx/profileinstaller/ProfileInstaller$DiagnosticsCallback;
|
||||
|
||||
const/16 v1, 0x8
|
||||
|
||||
invoke-interface {p2, v1, p1}, Landroidx/profileinstaller/ProfileInstaller$DiagnosticsCallback;->onResultReceived(ILjava/lang/Object;)V
|
||||
|
||||
goto :goto_1
|
||||
|
||||
:catch_1
|
||||
move-exception p1
|
||||
|
||||
.line 268
|
||||
iget-object p2, p0, Landroidx/profileinstaller/DeviceProfileWriter;->mDiagnostics:Landroidx/profileinstaller/ProfileInstaller$DiagnosticsCallback;
|
||||
|
||||
const/4 v1, 0x7
|
||||
|
||||
invoke-interface {p2, v1, p1}, Landroidx/profileinstaller/ProfileInstaller$DiagnosticsCallback;->onResultReceived(ILjava/lang/Object;)V
|
||||
|
||||
goto :goto_1
|
||||
|
||||
:catch_2
|
||||
move-exception p1
|
||||
|
||||
.line 265
|
||||
iget-object p2, p0, Landroidx/profileinstaller/DeviceProfileWriter;->mDiagnostics:Landroidx/profileinstaller/ProfileInstaller$DiagnosticsCallback;
|
||||
|
||||
const/16 v1, 0x9
|
||||
|
||||
invoke-interface {p2, v1, p1}, Landroidx/profileinstaller/ProfileInstaller$DiagnosticsCallback;->onResultReceived(ILjava/lang/Object;)V
|
||||
|
||||
:cond_3
|
||||
:goto_1
|
||||
return-object v0
|
||||
.end method
|
||||
|
||||
.method private assertDeviceAllowsProfileInstallerAotWritesCalled()V
|
||||
.locals 2
|
||||
|
||||
.line 136
|
||||
iget-boolean v0, p0, Landroidx/profileinstaller/DeviceProfileWriter;->mDeviceSupportsAotProfile:Z
|
||||
|
||||
if-eqz v0, :cond_0
|
||||
|
||||
return-void
|
||||
|
||||
.line 137
|
||||
:cond_0
|
||||
new-instance v0, Ljava/lang/IllegalStateException;
|
||||
|
||||
const-string v1, "This device doesn\'t support aot. Did you call deviceSupportsAotProfile()?"
|
||||
|
||||
invoke-direct {v0, v1}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
|
||||
|
||||
throw v0
|
||||
.end method
|
||||
|
||||
.method private static desiredVersion()[B
|
||||
.locals 3
|
||||
|
||||
.line 363
|
||||
sget v0, Landroid/os/Build$VERSION;->SDK_INT:I
|
||||
|
||||
const/16 v1, 0x21
|
||||
|
||||
const/4 v2, 0x0
|
||||
|
||||
if-le v0, v1, :cond_0
|
||||
|
||||
return-object v2
|
||||
|
||||
.line 368
|
||||
:cond_0
|
||||
sget v0, Landroid/os/Build$VERSION;->SDK_INT:I
|
||||
|
||||
packed-switch v0, :pswitch_data_0
|
||||
|
||||
return-object v2
|
||||
|
||||
.line 386
|
||||
:pswitch_0
|
||||
sget-object v0, Landroidx/profileinstaller/ProfileVersion;->V015_S:[B
|
||||
|
||||
return-object v0
|
||||
|
||||
.line 381
|
||||
:pswitch_1
|
||||
sget-object v0, Landroidx/profileinstaller/ProfileVersion;->V010_P:[B
|
||||
|
||||
return-object v0
|
||||
|
||||
.line 376
|
||||
:pswitch_2
|
||||
sget-object v0, Landroidx/profileinstaller/ProfileVersion;->V009_O_MR1:[B
|
||||
|
||||
return-object v0
|
||||
|
||||
.line 374
|
||||
:pswitch_3
|
||||
sget-object v0, Landroidx/profileinstaller/ProfileVersion;->V005_O:[B
|
||||
|
||||
return-object v0
|
||||
|
||||
.line 371
|
||||
:pswitch_4
|
||||
sget-object v0, Landroidx/profileinstaller/ProfileVersion;->V001_N:[B
|
||||
|
||||
return-object v0
|
||||
|
||||
nop
|
||||
|
||||
:pswitch_data_0
|
||||
.packed-switch 0x18
|
||||
:pswitch_4
|
||||
:pswitch_4
|
||||
:pswitch_3
|
||||
:pswitch_2
|
||||
:pswitch_1
|
||||
:pswitch_1
|
||||
:pswitch_1
|
||||
:pswitch_0
|
||||
:pswitch_0
|
||||
:pswitch_0
|
||||
.end packed-switch
|
||||
.end method
|
||||
|
||||
.method private getProfileInputStream(Landroid/content/res/AssetManager;)Ljava/io/InputStream;
|
||||
.locals 2
|
||||
|
||||
.line 210
|
||||
:try_start_0
|
||||
iget-object v0, p0, Landroidx/profileinstaller/DeviceProfileWriter;->mProfileSourceLocation:Ljava/lang/String;
|
||||
|
||||
invoke-direct {p0, p1, v0}, Landroidx/profileinstaller/DeviceProfileWriter;->openStreamFromAssets(Landroid/content/res/AssetManager;Ljava/lang/String;)Ljava/io/InputStream;
|
||||
|
||||
move-result-object p1
|
||||
:try_end_0
|
||||
.catch Ljava/io/FileNotFoundException; {:try_start_0 .. :try_end_0} :catch_1
|
||||
.catch Ljava/io/IOException; {:try_start_0 .. :try_end_0} :catch_0
|
||||
|
||||
goto :goto_1
|
||||
|
||||
:catch_0
|
||||
move-exception p1
|
||||
|
||||
.line 214
|
||||
iget-object v0, p0, Landroidx/profileinstaller/DeviceProfileWriter;->mDiagnostics:Landroidx/profileinstaller/ProfileInstaller$DiagnosticsCallback;
|
||||
|
||||
const/4 v1, 0x7
|
||||
|
||||
invoke-interface {v0, v1, p1}, Landroidx/profileinstaller/ProfileInstaller$DiagnosticsCallback;->onResultReceived(ILjava/lang/Object;)V
|
||||
|
||||
goto :goto_0
|
||||
|
||||
:catch_1
|
||||
move-exception p1
|
||||
|
||||
.line 212
|
||||
iget-object v0, p0, Landroidx/profileinstaller/DeviceProfileWriter;->mDiagnostics:Landroidx/profileinstaller/ProfileInstaller$DiagnosticsCallback;
|
||||
|
||||
const/4 v1, 0x6
|
||||
|
||||
invoke-interface {v0, v1, p1}, Landroidx/profileinstaller/ProfileInstaller$DiagnosticsCallback;->onResultReceived(ILjava/lang/Object;)V
|
||||
|
||||
:goto_0
|
||||
const/4 p1, 0x0
|
||||
|
||||
:goto_1
|
||||
return-object p1
|
||||
.end method
|
||||
|
||||
.method private openStreamFromAssets(Landroid/content/res/AssetManager;Ljava/lang/String;)Ljava/io/InputStream;
|
||||
.locals 1
|
||||
.annotation system Ldalvik/annotation/Throws;
|
||||
value = {
|
||||
Ljava/io/IOException;
|
||||
}
|
||||
.end annotation
|
||||
|
||||
.line 190
|
||||
:try_start_0
|
||||
invoke-virtual {p1, p2}, Landroid/content/res/AssetManager;->openFd(Ljava/lang/String;)Landroid/content/res/AssetFileDescriptor;
|
||||
|
||||
move-result-object p1
|
||||
|
||||
.line 191
|
||||
invoke-virtual {p1}, Landroid/content/res/AssetFileDescriptor;->createInputStream()Ljava/io/FileInputStream;
|
||||
|
||||
move-result-object p1
|
||||
:try_end_0
|
||||
.catch Ljava/io/FileNotFoundException; {:try_start_0 .. :try_end_0} :catch_0
|
||||
|
||||
goto :goto_0
|
||||
|
||||
:catch_0
|
||||
move-exception p1
|
||||
|
||||
.line 193
|
||||
invoke-virtual {p1}, Ljava/io/FileNotFoundException;->getMessage()Ljava/lang/String;
|
||||
|
||||
move-result-object p1
|
||||
|
||||
const/4 p2, 0x0
|
||||
|
||||
if-eqz p1, :cond_0
|
||||
|
||||
.line 194
|
||||
const-string v0, "compressed"
|
||||
|
||||
invoke-virtual {p1, v0}, Ljava/lang/String;->contains(Ljava/lang/CharSequence;)Z
|
||||
|
||||
move-result p1
|
||||
|
||||
if-eqz p1, :cond_0
|
||||
|
||||
.line 195
|
||||
iget-object p1, p0, Landroidx/profileinstaller/DeviceProfileWriter;->mDiagnostics:Landroidx/profileinstaller/ProfileInstaller$DiagnosticsCallback;
|
||||
|
||||
const/4 v0, 0x5
|
||||
|
||||
invoke-interface {p1, v0, p2}, Landroidx/profileinstaller/ProfileInstaller$DiagnosticsCallback;->onDiagnosticReceived(ILjava/lang/Object;)V
|
||||
|
||||
:cond_0
|
||||
move-object p1, p2
|
||||
|
||||
:goto_0
|
||||
return-object p1
|
||||
.end method
|
||||
|
||||
.method private readProfileInternal(Ljava/io/InputStream;)[Landroidx/profileinstaller/DexProfileData;
|
||||
.locals 4
|
||||
|
||||
const/4 v0, 0x7
|
||||
|
||||
.line 228
|
||||
:try_start_0
|
||||
sget-object v1, Landroidx/profileinstaller/ProfileTranscoder;->MAGIC_PROF:[B
|
||||
|
||||
invoke-static {p1, v1}, Landroidx/profileinstaller/ProfileTranscoder;->readHeader(Ljava/io/InputStream;[B)[B
|
||||
|
||||
move-result-object v1
|
||||
|
||||
.line 229
|
||||
iget-object v2, p0, Landroidx/profileinstaller/DeviceProfileWriter;->mApkName:Ljava/lang/String;
|
||||
|
||||
invoke-static {p1, v1, v2}, Landroidx/profileinstaller/ProfileTranscoder;->readProfile(Ljava/io/InputStream;[BLjava/lang/String;)[Landroidx/profileinstaller/DexProfileData;
|
||||
|
||||
move-result-object v1
|
||||
:try_end_0
|
||||
.catch Ljava/io/IOException; {:try_start_0 .. :try_end_0} :catch_2
|
||||
.catch Ljava/lang/IllegalStateException; {:try_start_0 .. :try_end_0} :catch_1
|
||||
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
||||
|
||||
.line 236
|
||||
:try_start_1
|
||||
invoke-virtual {p1}, Ljava/io/InputStream;->close()V
|
||||
:try_end_1
|
||||
.catch Ljava/io/IOException; {:try_start_1 .. :try_end_1} :catch_0
|
||||
|
||||
goto :goto_1
|
||||
|
||||
:catch_0
|
||||
move-exception p1
|
||||
|
||||
.line 238
|
||||
iget-object v2, p0, Landroidx/profileinstaller/DeviceProfileWriter;->mDiagnostics:Landroidx/profileinstaller/ProfileInstaller$DiagnosticsCallback;
|
||||
|
||||
invoke-interface {v2, v0, p1}, Landroidx/profileinstaller/ProfileInstaller$DiagnosticsCallback;->onResultReceived(ILjava/lang/Object;)V
|
||||
|
||||
goto :goto_1
|
||||
|
||||
:catchall_0
|
||||
move-exception v1
|
||||
|
||||
goto :goto_2
|
||||
|
||||
:catch_1
|
||||
move-exception v1
|
||||
|
||||
.line 233
|
||||
:try_start_2
|
||||
iget-object v2, p0, Landroidx/profileinstaller/DeviceProfileWriter;->mDiagnostics:Landroidx/profileinstaller/ProfileInstaller$DiagnosticsCallback;
|
||||
|
||||
const/16 v3, 0x8
|
||||
|
||||
invoke-interface {v2, v3, v1}, Landroidx/profileinstaller/ProfileInstaller$DiagnosticsCallback;->onResultReceived(ILjava/lang/Object;)V
|
||||
:try_end_2
|
||||
.catchall {:try_start_2 .. :try_end_2} :catchall_0
|
||||
|
||||
.line 236
|
||||
:try_start_3
|
||||
invoke-virtual {p1}, Ljava/io/InputStream;->close()V
|
||||
:try_end_3
|
||||
.catch Ljava/io/IOException; {:try_start_3 .. :try_end_3} :catch_3
|
||||
|
||||
goto :goto_0
|
||||
|
||||
:catch_2
|
||||
move-exception v1
|
||||
|
||||
.line 231
|
||||
:try_start_4
|
||||
iget-object v2, p0, Landroidx/profileinstaller/DeviceProfileWriter;->mDiagnostics:Landroidx/profileinstaller/ProfileInstaller$DiagnosticsCallback;
|
||||
|
||||
invoke-interface {v2, v0, v1}, Landroidx/profileinstaller/ProfileInstaller$DiagnosticsCallback;->onResultReceived(ILjava/lang/Object;)V
|
||||
:try_end_4
|
||||
.catchall {:try_start_4 .. :try_end_4} :catchall_0
|
||||
|
||||
.line 236
|
||||
:try_start_5
|
||||
invoke-virtual {p1}, Ljava/io/InputStream;->close()V
|
||||
:try_end_5
|
||||
.catch Ljava/io/IOException; {:try_start_5 .. :try_end_5} :catch_3
|
||||
|
||||
goto :goto_0
|
||||
|
||||
:catch_3
|
||||
move-exception p1
|
||||
|
||||
.line 238
|
||||
iget-object v1, p0, Landroidx/profileinstaller/DeviceProfileWriter;->mDiagnostics:Landroidx/profileinstaller/ProfileInstaller$DiagnosticsCallback;
|
||||
|
||||
invoke-interface {v1, v0, p1}, Landroidx/profileinstaller/ProfileInstaller$DiagnosticsCallback;->onResultReceived(ILjava/lang/Object;)V
|
||||
|
||||
:goto_0
|
||||
const/4 v1, 0x0
|
||||
|
||||
:goto_1
|
||||
return-object v1
|
||||
|
||||
.line 236
|
||||
:goto_2
|
||||
:try_start_6
|
||||
invoke-virtual {p1}, Ljava/io/InputStream;->close()V
|
||||
:try_end_6
|
||||
.catch Ljava/io/IOException; {:try_start_6 .. :try_end_6} :catch_4
|
||||
|
||||
goto :goto_3
|
||||
|
||||
:catch_4
|
||||
move-exception p1
|
||||
|
||||
.line 238
|
||||
iget-object v2, p0, Landroidx/profileinstaller/DeviceProfileWriter;->mDiagnostics:Landroidx/profileinstaller/ProfileInstaller$DiagnosticsCallback;
|
||||
|
||||
invoke-interface {v2, v0, p1}, Landroidx/profileinstaller/ProfileInstaller$DiagnosticsCallback;->onResultReceived(ILjava/lang/Object;)V
|
||||
|
||||
.line 240
|
||||
:goto_3
|
||||
throw v1
|
||||
.end method
|
||||
|
||||
.method private static requiresMetadata()Z
|
||||
.locals 4
|
||||
|
||||
.line 395
|
||||
sget v0, Landroid/os/Build$VERSION;->SDK_INT:I
|
||||
|
||||
const/16 v1, 0x21
|
||||
|
||||
const/4 v2, 0x0
|
||||
|
||||
if-le v0, v1, :cond_0
|
||||
|
||||
return v2
|
||||
|
||||
.line 400
|
||||
:cond_0
|
||||
sget v0, Landroid/os/Build$VERSION;->SDK_INT:I
|
||||
|
||||
const/16 v1, 0x18
|
||||
|
||||
const/4 v3, 0x1
|
||||
|
||||
if-eq v0, v1, :cond_1
|
||||
|
||||
const/16 v1, 0x19
|
||||
|
||||
if-eq v0, v1, :cond_1
|
||||
|
||||
packed-switch v0, :pswitch_data_0
|
||||
|
||||
return v2
|
||||
|
||||
:cond_1
|
||||
:pswitch_0
|
||||
return v3
|
||||
|
||||
:pswitch_data_0
|
||||
.packed-switch 0x1f
|
||||
:pswitch_0
|
||||
:pswitch_0
|
||||
:pswitch_0
|
||||
.end packed-switch
|
||||
.end method
|
||||
|
||||
.method private result(ILjava/lang/Object;)V
|
||||
.locals 2
|
||||
|
||||
.line 87
|
||||
iget-object v0, p0, Landroidx/profileinstaller/DeviceProfileWriter;->mExecutor:Ljava/util/concurrent/Executor;
|
||||
|
||||
new-instance v1, Landroidx/profileinstaller/DeviceProfileWriter$$ExternalSyntheticLambda0;
|
||||
|
||||
invoke-direct {v1, p0, p1, p2}, Landroidx/profileinstaller/DeviceProfileWriter$$ExternalSyntheticLambda0;-><init>(Landroidx/profileinstaller/DeviceProfileWriter;ILjava/lang/Object;)V
|
||||
|
||||
invoke-interface {v0, v1}, Ljava/util/concurrent/Executor;->execute(Ljava/lang/Runnable;)V
|
||||
|
||||
return-void
|
||||
.end method
|
||||
|
||||
|
||||
# virtual methods
|
||||
.method public deviceAllowsProfileInstallerAotWrites()Z
|
||||
.locals 3
|
||||
|
||||
.line 118
|
||||
iget-object v0, p0, Landroidx/profileinstaller/DeviceProfileWriter;->mDesiredVersion:[B
|
||||
|
||||
const/4 v1, 0x0
|
||||
|
||||
if-nez v0, :cond_0
|
||||
|
||||
.line 119
|
||||
sget v0, Landroid/os/Build$VERSION;->SDK_INT:I
|
||||
|
||||
invoke-static {v0}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
|
||||
|
||||
move-result-object v0
|
||||
|
||||
const/4 v2, 0x3
|
||||
|
||||
invoke-direct {p0, v2, v0}, Landroidx/profileinstaller/DeviceProfileWriter;->result(ILjava/lang/Object;)V
|
||||
|
||||
return v1
|
||||
|
||||
.line 123
|
||||
:cond_0
|
||||
iget-object v0, p0, Landroidx/profileinstaller/DeviceProfileWriter;->mCurProfile:Ljava/io/File;
|
||||
|
||||
invoke-virtual {v0}, Ljava/io/File;->canWrite()Z
|
||||
|
||||
move-result v0
|
||||
|
||||
if-nez v0, :cond_1
|
||||
|
||||
const/4 v0, 0x4
|
||||
|
||||
const/4 v2, 0x0
|
||||
|
||||
.line 127
|
||||
invoke-direct {p0, v0, v2}, Landroidx/profileinstaller/DeviceProfileWriter;->result(ILjava/lang/Object;)V
|
||||
|
||||
return v1
|
||||
|
||||
:cond_1
|
||||
const/4 v0, 0x1
|
||||
|
||||
.line 131
|
||||
iput-boolean v0, p0, Landroidx/profileinstaller/DeviceProfileWriter;->mDeviceSupportsAotProfile:Z
|
||||
|
||||
return v0
|
||||
.end method
|
||||
|
||||
.method synthetic lambda$result$0$androidx-profileinstaller-DeviceProfileWriter(ILjava/lang/Object;)V
|
||||
.locals 1
|
||||
|
||||
.line 87
|
||||
iget-object v0, p0, Landroidx/profileinstaller/DeviceProfileWriter;->mDiagnostics:Landroidx/profileinstaller/ProfileInstaller$DiagnosticsCallback;
|
||||
|
||||
invoke-interface {v0, p1, p2}, Landroidx/profileinstaller/ProfileInstaller$DiagnosticsCallback;->onResultReceived(ILjava/lang/Object;)V
|
||||
|
||||
return-void
|
||||
.end method
|
||||
|
||||
.method public read()Landroidx/profileinstaller/DeviceProfileWriter;
|
||||
.locals 2
|
||||
|
||||
.line 159
|
||||
invoke-direct {p0}, Landroidx/profileinstaller/DeviceProfileWriter;->assertDeviceAllowsProfileInstallerAotWritesCalled()V
|
||||
|
||||
.line 160
|
||||
iget-object v0, p0, Landroidx/profileinstaller/DeviceProfileWriter;->mDesiredVersion:[B
|
||||
|
||||
if-nez v0, :cond_0
|
||||
|
||||
return-object p0
|
||||
|
||||
.line 164
|
||||
:cond_0
|
||||
iget-object v0, p0, Landroidx/profileinstaller/DeviceProfileWriter;->mAssetManager:Landroid/content/res/AssetManager;
|
||||
|
||||
invoke-direct {p0, v0}, Landroidx/profileinstaller/DeviceProfileWriter;->getProfileInputStream(Landroid/content/res/AssetManager;)Ljava/io/InputStream;
|
||||
|
||||
move-result-object v0
|
||||
|
||||
if-eqz v0, :cond_1
|
||||
|
||||
.line 166
|
||||
invoke-direct {p0, v0}, Landroidx/profileinstaller/DeviceProfileWriter;->readProfileInternal(Ljava/io/InputStream;)[Landroidx/profileinstaller/DexProfileData;
|
||||
|
||||
move-result-object v0
|
||||
|
||||
iput-object v0, p0, Landroidx/profileinstaller/DeviceProfileWriter;->mProfile:[Landroidx/profileinstaller/DexProfileData;
|
||||
|
||||
.line 168
|
||||
:cond_1
|
||||
iget-object v0, p0, Landroidx/profileinstaller/DeviceProfileWriter;->mProfile:[Landroidx/profileinstaller/DexProfileData;
|
||||
|
||||
if-eqz v0, :cond_2
|
||||
|
||||
.line 170
|
||||
invoke-static {}, Landroidx/profileinstaller/DeviceProfileWriter;->requiresMetadata()Z
|
||||
|
||||
move-result v1
|
||||
|
||||
if-eqz v1, :cond_2
|
||||
|
||||
.line 171
|
||||
iget-object v1, p0, Landroidx/profileinstaller/DeviceProfileWriter;->mDesiredVersion:[B
|
||||
|
||||
invoke-direct {p0, v0, v1}, Landroidx/profileinstaller/DeviceProfileWriter;->addMetadata([Landroidx/profileinstaller/DexProfileData;[B)Landroidx/profileinstaller/DeviceProfileWriter;
|
||||
|
||||
move-result-object v0
|
||||
|
||||
if-eqz v0, :cond_2
|
||||
|
||||
return-object v0
|
||||
|
||||
:cond_2
|
||||
return-object p0
|
||||
.end method
|
||||
|
||||
.method public transcodeIfNeeded()Landroidx/profileinstaller/DeviceProfileWriter;
|
||||
.locals 4
|
||||
|
||||
.line 296
|
||||
iget-object v0, p0, Landroidx/profileinstaller/DeviceProfileWriter;->mProfile:[Landroidx/profileinstaller/DexProfileData;
|
||||
|
||||
.line 297
|
||||
iget-object v1, p0, Landroidx/profileinstaller/DeviceProfileWriter;->mDesiredVersion:[B
|
||||
|
||||
if-eqz v0, :cond_2
|
||||
|
||||
if-nez v1, :cond_0
|
||||
|
||||
goto :goto_2
|
||||
|
||||
.line 301
|
||||
:cond_0
|
||||
invoke-direct {p0}, Landroidx/profileinstaller/DeviceProfileWriter;->assertDeviceAllowsProfileInstallerAotWritesCalled()V
|
||||
|
||||
const/4 v2, 0x0
|
||||
|
||||
.line 302
|
||||
:try_start_0
|
||||
new-instance v3, Ljava/io/ByteArrayOutputStream;
|
||||
|
||||
invoke-direct {v3}, Ljava/io/ByteArrayOutputStream;-><init>()V
|
||||
:try_end_0
|
||||
.catch Ljava/io/IOException; {:try_start_0 .. :try_end_0} :catch_1
|
||||
.catch Ljava/lang/IllegalStateException; {:try_start_0 .. :try_end_0} :catch_0
|
||||
|
||||
.line 303
|
||||
:try_start_1
|
||||
invoke-static {v3, v1}, Landroidx/profileinstaller/ProfileTranscoder;->writeHeader(Ljava/io/OutputStream;[B)V
|
||||
|
||||
.line 304
|
||||
invoke-static {v3, v1, v0}, Landroidx/profileinstaller/ProfileTranscoder;->transcodeAndWriteBody(Ljava/io/OutputStream;[B[Landroidx/profileinstaller/DexProfileData;)Z
|
||||
|
||||
move-result v0
|
||||
|
||||
if-nez v0, :cond_1
|
||||
|
||||
.line 311
|
||||
iget-object v0, p0, Landroidx/profileinstaller/DeviceProfileWriter;->mDiagnostics:Landroidx/profileinstaller/ProfileInstaller$DiagnosticsCallback;
|
||||
|
||||
const/4 v1, 0x5
|
||||
|
||||
invoke-interface {v0, v1, v2}, Landroidx/profileinstaller/ProfileInstaller$DiagnosticsCallback;->onResultReceived(ILjava/lang/Object;)V
|
||||
|
||||
.line 315
|
||||
iput-object v2, p0, Landroidx/profileinstaller/DeviceProfileWriter;->mProfile:[Landroidx/profileinstaller/DexProfileData;
|
||||
:try_end_1
|
||||
.catchall {:try_start_1 .. :try_end_1} :catchall_0
|
||||
|
||||
.line 320
|
||||
:try_start_2
|
||||
invoke-virtual {v3}, Ljava/io/ByteArrayOutputStream;->close()V
|
||||
:try_end_2
|
||||
.catch Ljava/io/IOException; {:try_start_2 .. :try_end_2} :catch_1
|
||||
.catch Ljava/lang/IllegalStateException; {:try_start_2 .. :try_end_2} :catch_0
|
||||
|
||||
return-object p0
|
||||
|
||||
.line 319
|
||||
:cond_1
|
||||
:try_start_3
|
||||
invoke-virtual {v3}, Ljava/io/ByteArrayOutputStream;->toByteArray()[B
|
||||
|
||||
move-result-object v0
|
||||
|
||||
iput-object v0, p0, Landroidx/profileinstaller/DeviceProfileWriter;->mTranscodedProfile:[B
|
||||
:try_end_3
|
||||
.catchall {:try_start_3 .. :try_end_3} :catchall_0
|
||||
|
||||
.line 320
|
||||
:try_start_4
|
||||
invoke-virtual {v3}, Ljava/io/ByteArrayOutputStream;->close()V
|
||||
:try_end_4
|
||||
.catch Ljava/io/IOException; {:try_start_4 .. :try_end_4} :catch_1
|
||||
.catch Ljava/lang/IllegalStateException; {:try_start_4 .. :try_end_4} :catch_0
|
||||
|
||||
goto :goto_1
|
||||
|
||||
:catchall_0
|
||||
move-exception v0
|
||||
|
||||
.line 302
|
||||
:try_start_5
|
||||
invoke-virtual {v3}, Ljava/io/ByteArrayOutputStream;->close()V
|
||||
:try_end_5
|
||||
.catchall {:try_start_5 .. :try_end_5} :catchall_1
|
||||
|
||||
goto :goto_0
|
||||
|
||||
:catchall_1
|
||||
move-exception v1
|
||||
|
||||
:try_start_6
|
||||
invoke-virtual {v0, v1}, Ljava/lang/Throwable;->addSuppressed(Ljava/lang/Throwable;)V
|
||||
|
||||
:goto_0
|
||||
throw v0
|
||||
:try_end_6
|
||||
.catch Ljava/io/IOException; {:try_start_6 .. :try_end_6} :catch_1
|
||||
.catch Ljava/lang/IllegalStateException; {:try_start_6 .. :try_end_6} :catch_0
|
||||
|
||||
:catch_0
|
||||
move-exception v0
|
||||
|
||||
.line 323
|
||||
iget-object v1, p0, Landroidx/profileinstaller/DeviceProfileWriter;->mDiagnostics:Landroidx/profileinstaller/ProfileInstaller$DiagnosticsCallback;
|
||||
|
||||
const/16 v3, 0x8
|
||||
|
||||
invoke-interface {v1, v3, v0}, Landroidx/profileinstaller/ProfileInstaller$DiagnosticsCallback;->onResultReceived(ILjava/lang/Object;)V
|
||||
|
||||
goto :goto_1
|
||||
|
||||
:catch_1
|
||||
move-exception v0
|
||||
|
||||
.line 321
|
||||
iget-object v1, p0, Landroidx/profileinstaller/DeviceProfileWriter;->mDiagnostics:Landroidx/profileinstaller/ProfileInstaller$DiagnosticsCallback;
|
||||
|
||||
const/4 v3, 0x7
|
||||
|
||||
invoke-interface {v1, v3, v0}, Landroidx/profileinstaller/ProfileInstaller$DiagnosticsCallback;->onResultReceived(ILjava/lang/Object;)V
|
||||
|
||||
.line 325
|
||||
:goto_1
|
||||
iput-object v2, p0, Landroidx/profileinstaller/DeviceProfileWriter;->mProfile:[Landroidx/profileinstaller/DexProfileData;
|
||||
|
||||
:cond_2
|
||||
:goto_2
|
||||
return-object p0
|
||||
.end method
|
||||
|
||||
.method public write()Z
|
||||
.locals 5
|
||||
|
||||
.line 338
|
||||
iget-object v0, p0, Landroidx/profileinstaller/DeviceProfileWriter;->mTranscodedProfile:[B
|
||||
|
||||
const/4 v1, 0x0
|
||||
|
||||
if-nez v0, :cond_0
|
||||
|
||||
return v1
|
||||
|
||||
.line 342
|
||||
:cond_0
|
||||
invoke-direct {p0}, Landroidx/profileinstaller/DeviceProfileWriter;->assertDeviceAllowsProfileInstallerAotWritesCalled()V
|
||||
|
||||
const/4 v2, 0x0
|
||||
|
||||
.line 344
|
||||
:try_start_0
|
||||
new-instance v3, Ljava/io/ByteArrayInputStream;
|
||||
|
||||
invoke-direct {v3, v0}, Ljava/io/ByteArrayInputStream;-><init>([B)V
|
||||
:try_end_0
|
||||
.catch Ljava/io/FileNotFoundException; {:try_start_0 .. :try_end_0} :catch_1
|
||||
.catch Ljava/io/IOException; {:try_start_0 .. :try_end_0} :catch_0
|
||||
.catchall {:try_start_0 .. :try_end_0} :catchall_4
|
||||
|
||||
.line 345
|
||||
:try_start_1
|
||||
new-instance v0, Ljava/io/FileOutputStream;
|
||||
|
||||
iget-object v4, p0, Landroidx/profileinstaller/DeviceProfileWriter;->mCurProfile:Ljava/io/File;
|
||||
|
||||
invoke-direct {v0, v4}, Ljava/io/FileOutputStream;-><init>(Ljava/io/File;)V
|
||||
:try_end_1
|
||||
.catchall {:try_start_1 .. :try_end_1} :catchall_2
|
||||
|
||||
.line 347
|
||||
:try_start_2
|
||||
invoke-static {v3, v0}, Landroidx/profileinstaller/Encoding;->writeAll(Ljava/io/InputStream;Ljava/io/OutputStream;)V
|
||||
|
||||
const/4 v4, 0x1
|
||||
|
||||
.line 348
|
||||
invoke-direct {p0, v4, v2}, Landroidx/profileinstaller/DeviceProfileWriter;->result(ILjava/lang/Object;)V
|
||||
:try_end_2
|
||||
.catchall {:try_start_2 .. :try_end_2} :catchall_0
|
||||
|
||||
.line 350
|
||||
:try_start_3
|
||||
invoke-virtual {v0}, Ljava/io/OutputStream;->close()V
|
||||
:try_end_3
|
||||
.catchall {:try_start_3 .. :try_end_3} :catchall_2
|
||||
|
||||
:try_start_4
|
||||
invoke-virtual {v3}, Ljava/io/InputStream;->close()V
|
||||
:try_end_4
|
||||
.catch Ljava/io/FileNotFoundException; {:try_start_4 .. :try_end_4} :catch_1
|
||||
.catch Ljava/io/IOException; {:try_start_4 .. :try_end_4} :catch_0
|
||||
.catchall {:try_start_4 .. :try_end_4} :catchall_4
|
||||
|
||||
.line 355
|
||||
iput-object v2, p0, Landroidx/profileinstaller/DeviceProfileWriter;->mTranscodedProfile:[B
|
||||
|
||||
.line 356
|
||||
iput-object v2, p0, Landroidx/profileinstaller/DeviceProfileWriter;->mProfile:[Landroidx/profileinstaller/DexProfileData;
|
||||
|
||||
return v4
|
||||
|
||||
:catchall_0
|
||||
move-exception v4
|
||||
|
||||
.line 343
|
||||
:try_start_5
|
||||
invoke-virtual {v0}, Ljava/io/OutputStream;->close()V
|
||||
:try_end_5
|
||||
.catchall {:try_start_5 .. :try_end_5} :catchall_1
|
||||
|
||||
goto :goto_0
|
||||
|
||||
:catchall_1
|
||||
move-exception v0
|
||||
|
||||
:try_start_6
|
||||
invoke-virtual {v4, v0}, Ljava/lang/Throwable;->addSuppressed(Ljava/lang/Throwable;)V
|
||||
|
||||
:goto_0
|
||||
throw v4
|
||||
:try_end_6
|
||||
.catchall {:try_start_6 .. :try_end_6} :catchall_2
|
||||
|
||||
:catchall_2
|
||||
move-exception v0
|
||||
|
||||
:try_start_7
|
||||
invoke-virtual {v3}, Ljava/io/InputStream;->close()V
|
||||
:try_end_7
|
||||
.catchall {:try_start_7 .. :try_end_7} :catchall_3
|
||||
|
||||
goto :goto_1
|
||||
|
||||
:catchall_3
|
||||
move-exception v3
|
||||
|
||||
:try_start_8
|
||||
invoke-virtual {v0, v3}, Ljava/lang/Throwable;->addSuppressed(Ljava/lang/Throwable;)V
|
||||
|
||||
:goto_1
|
||||
throw v0
|
||||
:try_end_8
|
||||
.catch Ljava/io/FileNotFoundException; {:try_start_8 .. :try_end_8} :catch_1
|
||||
.catch Ljava/io/IOException; {:try_start_8 .. :try_end_8} :catch_0
|
||||
.catchall {:try_start_8 .. :try_end_8} :catchall_4
|
||||
|
||||
:catchall_4
|
||||
move-exception v0
|
||||
|
||||
goto :goto_3
|
||||
|
||||
:catch_0
|
||||
move-exception v0
|
||||
|
||||
const/4 v3, 0x7
|
||||
|
||||
.line 353
|
||||
:try_start_9
|
||||
invoke-direct {p0, v3, v0}, Landroidx/profileinstaller/DeviceProfileWriter;->result(ILjava/lang/Object;)V
|
||||
|
||||
goto :goto_2
|
||||
|
||||
:catch_1
|
||||
move-exception v0
|
||||
|
||||
const/4 v3, 0x6
|
||||
|
||||
.line 351
|
||||
invoke-direct {p0, v3, v0}, Landroidx/profileinstaller/DeviceProfileWriter;->result(ILjava/lang/Object;)V
|
||||
:try_end_9
|
||||
.catchall {:try_start_9 .. :try_end_9} :catchall_4
|
||||
|
||||
.line 355
|
||||
:goto_2
|
||||
iput-object v2, p0, Landroidx/profileinstaller/DeviceProfileWriter;->mTranscodedProfile:[B
|
||||
|
||||
.line 356
|
||||
iput-object v2, p0, Landroidx/profileinstaller/DeviceProfileWriter;->mProfile:[Landroidx/profileinstaller/DexProfileData;
|
||||
|
||||
return v1
|
||||
|
||||
.line 355
|
||||
:goto_3
|
||||
iput-object v2, p0, Landroidx/profileinstaller/DeviceProfileWriter;->mTranscodedProfile:[B
|
||||
|
||||
.line 356
|
||||
iput-object v2, p0, Landroidx/profileinstaller/DeviceProfileWriter;->mProfile:[Landroidx/profileinstaller/DexProfileData;
|
||||
|
||||
.line 357
|
||||
throw v0
|
||||
.end method
|
||||
@@ -0,0 +1,82 @@
|
||||
.class Landroidx/profileinstaller/DexProfileData;
|
||||
.super Ljava/lang/Object;
|
||||
.source "DexProfileData.java"
|
||||
|
||||
|
||||
# instance fields
|
||||
.field final apkName:Ljava/lang/String;
|
||||
|
||||
.field classSetSize:I
|
||||
|
||||
.field classes:[I
|
||||
|
||||
.field final dexChecksum:J
|
||||
|
||||
.field final dexName:Ljava/lang/String;
|
||||
|
||||
.field final hotMethodRegionSize:I
|
||||
|
||||
.field mTypeIdCount:J
|
||||
|
||||
.field final methods:Ljava/util/TreeMap;
|
||||
.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 constructor <init>(Ljava/lang/String;Ljava/lang/String;JJIII[ILjava/util/TreeMap;)V
|
||||
.locals 0
|
||||
.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
|
||||
|
||||
.line 48
|
||||
iput-object p1, p0, Landroidx/profileinstaller/DexProfileData;->apkName:Ljava/lang/String;
|
||||
|
||||
.line 49
|
||||
iput-object p2, p0, Landroidx/profileinstaller/DexProfileData;->dexName:Ljava/lang/String;
|
||||
|
||||
.line 50
|
||||
iput-wide p3, p0, Landroidx/profileinstaller/DexProfileData;->dexChecksum:J
|
||||
|
||||
.line 51
|
||||
iput-wide p5, p0, Landroidx/profileinstaller/DexProfileData;->mTypeIdCount:J
|
||||
|
||||
.line 52
|
||||
iput p7, p0, Landroidx/profileinstaller/DexProfileData;->classSetSize:I
|
||||
|
||||
.line 53
|
||||
iput p8, p0, Landroidx/profileinstaller/DexProfileData;->hotMethodRegionSize:I
|
||||
|
||||
.line 54
|
||||
iput p9, p0, Landroidx/profileinstaller/DexProfileData;->numMethodIds:I
|
||||
|
||||
.line 55
|
||||
iput-object p10, p0, Landroidx/profileinstaller/DexProfileData;->classes:[I
|
||||
|
||||
.line 56
|
||||
iput-object p11, p0, Landroidx/profileinstaller/DexProfileData;->methods:Ljava/util/TreeMap;
|
||||
|
||||
return-void
|
||||
.end method
|
||||
@@ -0,0 +1,697 @@
|
||||
.class Landroidx/profileinstaller/Encoding;
|
||||
.super Ljava/lang/Object;
|
||||
.source "Encoding.java"
|
||||
|
||||
|
||||
# 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 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 static compress([B)[B
|
||||
.locals 3
|
||||
.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_2
|
||||
|
||||
.line 180
|
||||
:try_start_1
|
||||
invoke-virtual {v2, p0}, Ljava/util/zip/DeflaterOutputStream;->write([B)V
|
||||
:try_end_1
|
||||
.catchall {:try_start_1 .. :try_end_1} :catchall_0
|
||||
|
||||
.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_2
|
||||
|
||||
.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
|
||||
|
||||
.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_1
|
||||
|
||||
goto :goto_0
|
||||
|
||||
:catchall_1
|
||||
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_2
|
||||
|
||||
:catchall_2
|
||||
move-exception p0
|
||||
|
||||
.line 182
|
||||
invoke-virtual {v0}, Ljava/util/zip/Deflater;->end()V
|
||||
|
||||
.line 183
|
||||
throw p0
|
||||
.end method
|
||||
|
||||
.method static error(Ljava/lang/String;)Ljava/lang/RuntimeException;
|
||||
.locals 1
|
||||
|
||||
.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 static read(Ljava/io/InputStream;I)[B
|
||||
.locals 3
|
||||
.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;
|
||||
|
||||
const-string v0, "Not enough bytes to read: "
|
||||
|
||||
invoke-direct {p0, v0}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
|
||||
|
||||
invoke-virtual {p0, p1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
|
||||
|
||||
move-result-object p0
|
||||
|
||||
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 static readCompressed(Ljava/io/InputStream;II)[B
|
||||
.locals 8
|
||||
.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
|
||||
|
||||
.line 128
|
||||
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
|
||||
|
||||
:catch_0
|
||||
move-exception p0
|
||||
|
||||
.line 149
|
||||
:try_start_2
|
||||
invoke-virtual {p0}, Ljava/util/zip/DataFormatException;->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;
|
||||
|
||||
move-result-object p0
|
||||
|
||||
invoke-virtual {p0, p1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
|
||||
|
||||
move-result-object p0
|
||||
|
||||
const-string p1, " bytes"
|
||||
|
||||
invoke-virtual {p0, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
||||
|
||||
move-result-object p0
|
||||
|
||||
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
|
||||
|
||||
.line 161
|
||||
:cond_2
|
||||
:try_start_3
|
||||
const-string p0, "Inflater did not finish"
|
||||
|
||||
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;
|
||||
|
||||
move-result-object p0
|
||||
|
||||
invoke-virtual {p0, p1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
|
||||
|
||||
move-result-object p0
|
||||
|
||||
const-string p1, " actual="
|
||||
|
||||
invoke-virtual {p0, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
||||
|
||||
move-result-object p0
|
||||
|
||||
invoke-virtual {p0, v4}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
|
||||
|
||||
move-result-object p0
|
||||
|
||||
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
|
||||
|
||||
:catchall_0
|
||||
move-exception p0
|
||||
|
||||
.line 165
|
||||
invoke-virtual {v0}, Ljava/util/zip/Inflater;->end()V
|
||||
|
||||
.line 166
|
||||
throw p0
|
||||
.end method
|
||||
|
||||
.method static readString(Ljava/io/InputStream;I)Ljava/lang/String;
|
||||
.locals 1
|
||||
.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 static readUInt(Ljava/io/InputStream;I)J
|
||||
.locals 6
|
||||
.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 static readUInt16(Ljava/io/InputStream;)I
|
||||
.locals 2
|
||||
.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 static readUInt32(Ljava/io/InputStream;)J
|
||||
.locals 2
|
||||
.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 static readUInt8(Ljava/io/InputStream;)I
|
||||
.locals 2
|
||||
.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 static utf8Length(Ljava/lang/String;)I
|
||||
.locals 1
|
||||
|
||||
.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 static writeAll(Ljava/io/InputStream;Ljava/io/OutputStream;)V
|
||||
.locals 3
|
||||
.annotation system Ldalvik/annotation/Throws;
|
||||
value = {
|
||||
Ljava/io/IOException;
|
||||
}
|
||||
.end annotation
|
||||
|
||||
const/16 v0, 0x200
|
||||
|
||||
.line 188
|
||||
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 static writeCompressed(Ljava/io/OutputStream;[B)V
|
||||
.locals 2
|
||||
.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 static writeString(Ljava/io/OutputStream;Ljava/lang/String;)V
|
||||
.locals 1
|
||||
.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 static writeUInt(Ljava/io/OutputStream;JI)V
|
||||
.locals 6
|
||||
.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 static writeUInt16(Ljava/io/OutputStream;I)V
|
||||
.locals 2
|
||||
.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 static writeUInt32(Ljava/io/OutputStream;J)V
|
||||
.locals 1
|
||||
.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 static writeUInt8(Ljava/io/OutputStream;I)V
|
||||
.locals 2
|
||||
.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
|
||||
@@ -0,0 +1,250 @@
|
||||
.class final enum Landroidx/profileinstaller/FileSectionType;
|
||||
.super Ljava/lang/Enum;
|
||||
.source "FileSectionType.java"
|
||||
|
||||
|
||||
# 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
|
||||
|
||||
.line 22
|
||||
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
|
||||
|
||||
.line 38
|
||||
iput-wide p3, p0, Landroidx/profileinstaller/FileSectionType;->mValue:J
|
||||
|
||||
return-void
|
||||
.end method
|
||||
|
||||
.method 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;
|
||||
|
||||
const-string v2, "Unsupported FileSection Type "
|
||||
|
||||
invoke-direct {v1, v2}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
|
||||
|
||||
invoke-virtual {v1, p0, p1}, Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder;
|
||||
|
||||
move-result-object p0
|
||||
|
||||
invoke-virtual {p0}, 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
|
||||
|
||||
.line 22
|
||||
const-class v0, Landroidx/profileinstaller/FileSectionType;
|
||||
|
||||
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
|
||||
|
||||
.line 22
|
||||
sget-object v0, Landroidx/profileinstaller/FileSectionType;->$VALUES:[Landroidx/profileinstaller/FileSectionType;
|
||||
|
||||
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
|
||||
|
||||
.line 42
|
||||
iget-wide v0, p0, Landroidx/profileinstaller/FileSectionType;->mValue:J
|
||||
|
||||
return-wide v0
|
||||
.end method
|
||||
@@ -0,0 +1,28 @@
|
||||
.class public final synthetic Landroidx/profileinstaller/ProfileInstallReceiver$$ExternalSyntheticLambda0;
|
||||
.super Ljava/lang/Object;
|
||||
.source "D8$$SyntheticClass"
|
||||
|
||||
# interfaces
|
||||
.implements Ljava/util/concurrent/Executor;
|
||||
|
||||
|
||||
# direct methods
|
||||
.method public synthetic constructor <init>()V
|
||||
.locals 0
|
||||
|
||||
.line 0
|
||||
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
||||
|
||||
return-void
|
||||
.end method
|
||||
|
||||
|
||||
# virtual methods
|
||||
.method public final execute(Ljava/lang/Runnable;)V
|
||||
.locals 0
|
||||
|
||||
.line 0
|
||||
invoke-interface {p1}, Ljava/lang/Runnable;->run()V
|
||||
|
||||
return-void
|
||||
.end method
|
||||
@@ -0,0 +1,63 @@
|
||||
.class Landroidx/profileinstaller/ProfileInstallReceiver$ResultDiagnostics;
|
||||
.super Ljava/lang/Object;
|
||||
.source "ProfileInstallReceiver.java"
|
||||
|
||||
# interfaces
|
||||
.implements Landroidx/profileinstaller/ProfileInstaller$DiagnosticsCallback;
|
||||
|
||||
|
||||
# annotations
|
||||
.annotation system Ldalvik/annotation/EnclosingClass;
|
||||
value = Landroidx/profileinstaller/ProfileInstallReceiver;
|
||||
.end annotation
|
||||
|
||||
.annotation system Ldalvik/annotation/InnerClass;
|
||||
accessFlags = 0x0
|
||||
name = "ResultDiagnostics"
|
||||
.end annotation
|
||||
|
||||
|
||||
# instance fields
|
||||
.field final synthetic this$0:Landroidx/profileinstaller/ProfileInstallReceiver;
|
||||
|
||||
|
||||
# direct methods
|
||||
.method constructor <init>(Landroidx/profileinstaller/ProfileInstallReceiver;)V
|
||||
.locals 0
|
||||
|
||||
.line 157
|
||||
iput-object p1, p0, Landroidx/profileinstaller/ProfileInstallReceiver$ResultDiagnostics;->this$0:Landroidx/profileinstaller/ProfileInstallReceiver;
|
||||
|
||||
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
||||
|
||||
return-void
|
||||
.end method
|
||||
|
||||
|
||||
# virtual methods
|
||||
.method public onDiagnosticReceived(ILjava/lang/Object;)V
|
||||
.locals 1
|
||||
|
||||
.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
|
||||
|
||||
.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
|
||||
|
||||
.line 166
|
||||
iget-object p2, p0, Landroidx/profileinstaller/ProfileInstallReceiver$ResultDiagnostics;->this$0:Landroidx/profileinstaller/ProfileInstallReceiver;
|
||||
|
||||
invoke-virtual {p2, p1}, Landroidx/profileinstaller/ProfileInstallReceiver;->setResultCode(I)V
|
||||
|
||||
return-void
|
||||
.end method
|
||||
@@ -0,0 +1,247 @@
|
||||
.class public Landroidx/profileinstaller/ProfileInstallReceiver;
|
||||
.super Landroid/content/BroadcastReceiver;
|
||||
.source "ProfileInstallReceiver.java"
|
||||
|
||||
|
||||
# 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"
|
||||
|
||||
.field public static final ACTION_INSTALL_PROFILE:Ljava/lang/String; = "androidx.profileinstaller.action.INSTALL_PROFILE"
|
||||
|
||||
.field public static final ACTION_SAVE_PROFILE:Ljava/lang/String; = "androidx.profileinstaller.action.SAVE_PROFILE"
|
||||
|
||||
.field public static final ACTION_SKIP_FILE:Ljava/lang/String; = "androidx.profileinstaller.action.SKIP_FILE"
|
||||
|
||||
.field private static final EXTRA_BENCHMARK_OPERATION:Ljava/lang/String; = "EXTRA_BENCHMARK_OPERATION"
|
||||
|
||||
.field private static final EXTRA_BENCHMARK_OPERATION_DROP_SHADER_CACHE:Ljava/lang/String; = "DROP_SHADER_CACHE"
|
||||
|
||||
.field private static final EXTRA_SKIP_FILE_OPERATION:Ljava/lang/String; = "EXTRA_SKIP_FILE_OPERATION"
|
||||
|
||||
.field private static final EXTRA_SKIP_FILE_OPERATION_DELETE:Ljava/lang/String; = "DELETE_SKIP_FILE"
|
||||
|
||||
.field private static final EXTRA_SKIP_FILE_OPERATION_WRITE:Ljava/lang/String; = "WRITE_SKIP_FILE"
|
||||
|
||||
|
||||
# direct methods
|
||||
.method public constructor <init>()V
|
||||
.locals 0
|
||||
|
||||
.line 38
|
||||
invoke-direct {p0}, Landroid/content/BroadcastReceiver;-><init>()V
|
||||
|
||||
return-void
|
||||
.end method
|
||||
|
||||
.method static saveProfile(Landroidx/profileinstaller/ProfileInstaller$DiagnosticsCallback;)V
|
||||
.locals 2
|
||||
|
||||
.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
|
||||
|
||||
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
|
||||
|
||||
.line 103
|
||||
const-string v1, "androidx.profileinstaller.action.INSTALL_PROFILE"
|
||||
|
||||
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/profileinstaller/ProfileInstallReceiver$$ExternalSyntheticLambda0;
|
||||
|
||||
invoke-direct {p2}, Landroidx/profileinstaller/ProfileInstallReceiver$$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
|
||||
|
||||
.line 106
|
||||
:cond_1
|
||||
const-string v1, "androidx.profileinstaller.action.SKIP_FILE"
|
||||
|
||||
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
|
||||
|
||||
.line 109
|
||||
const-string v0, "EXTRA_SKIP_FILE_OPERATION"
|
||||
|
||||
invoke-virtual {p2, v0}, Landroid/os/Bundle;->getString(Ljava/lang/String;)Ljava/lang/String;
|
||||
|
||||
move-result-object p2
|
||||
|
||||
.line 110
|
||||
const-string v0, "WRITE_SKIP_FILE"
|
||||
|
||||
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/profileinstaller/ProfileInstallReceiver$$ExternalSyntheticLambda0;
|
||||
|
||||
invoke-direct {p2}, Landroidx/profileinstaller/ProfileInstallReceiver$$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
|
||||
|
||||
.line 112
|
||||
:cond_2
|
||||
const-string v0, "DELETE_SKIP_FILE"
|
||||
|
||||
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/profileinstaller/ProfileInstallReceiver$$ExternalSyntheticLambda0;
|
||||
|
||||
invoke-direct {p2}, Landroidx/profileinstaller/ProfileInstallReceiver$$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
|
||||
|
||||
.line 117
|
||||
:cond_3
|
||||
const-string v1, "androidx.profileinstaller.action.SAVE_PROFILE"
|
||||
|
||||
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
|
||||
|
||||
.line 119
|
||||
:cond_4
|
||||
const-string v1, "androidx.profileinstaller.action.BENCHMARK_OPERATION"
|
||||
|
||||
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
|
||||
|
||||
.line 122
|
||||
const-string v0, "EXTRA_BENCHMARK_OPERATION"
|
||||
|
||||
invoke-virtual {p2, v0}, Landroid/os/Bundle;->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
|
||||
|
||||
.line 124
|
||||
const-string v1, "DROP_SHADER_CACHE"
|
||||
|
||||
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
|
||||
@@ -0,0 +1,48 @@
|
||||
.class public final synthetic Landroidx/profileinstaller/ProfileInstaller$$ExternalSyntheticLambda0;
|
||||
.super Ljava/lang/Object;
|
||||
.source "D8$$SyntheticClass"
|
||||
|
||||
# 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;->lambda$result$0(Landroidx/profileinstaller/ProfileInstaller$DiagnosticsCallback;ILjava/lang/Object;)V
|
||||
|
||||
return-void
|
||||
.end method
|
||||
@@ -0,0 +1,48 @@
|
||||
.class public final synthetic Landroidx/profileinstaller/ProfileInstaller$$ExternalSyntheticLambda1;
|
||||
.super Ljava/lang/Object;
|
||||
.source "D8$$SyntheticClass"
|
||||
|
||||
# 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;->lambda$diagnostic$1(Landroidx/profileinstaller/ProfileInstaller$DiagnosticsCallback;ILjava/lang/Object;)V
|
||||
|
||||
return-void
|
||||
.end method
|
||||
@@ -0,0 +1,42 @@
|
||||
.class Landroidx/profileinstaller/ProfileInstaller$1;
|
||||
.super Ljava/lang/Object;
|
||||
.source "ProfileInstaller.java"
|
||||
|
||||
# interfaces
|
||||
.implements Landroidx/profileinstaller/ProfileInstaller$DiagnosticsCallback;
|
||||
|
||||
|
||||
# annotations
|
||||
.annotation system Ldalvik/annotation/EnclosingClass;
|
||||
value = Landroidx/profileinstaller/ProfileInstaller;
|
||||
.end annotation
|
||||
|
||||
.annotation system Ldalvik/annotation/InnerClass;
|
||||
accessFlags = 0x0
|
||||
name = null
|
||||
.end annotation
|
||||
|
||||
|
||||
# direct methods
|
||||
.method 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
|
||||
|
||||
return-void
|
||||
.end method
|
||||
|
||||
.method public onResultReceived(ILjava/lang/Object;)V
|
||||
.locals 0
|
||||
|
||||
return-void
|
||||
.end method
|
||||
@@ -0,0 +1,216 @@
|
||||
.class Landroidx/profileinstaller/ProfileInstaller$2;
|
||||
.super Ljava/lang/Object;
|
||||
.source "ProfileInstaller.java"
|
||||
|
||||
# interfaces
|
||||
.implements Landroidx/profileinstaller/ProfileInstaller$DiagnosticsCallback;
|
||||
|
||||
|
||||
# annotations
|
||||
.annotation system Ldalvik/annotation/EnclosingClass;
|
||||
value = Landroidx/profileinstaller/ProfileInstaller;
|
||||
.end annotation
|
||||
|
||||
.annotation system Ldalvik/annotation/InnerClass;
|
||||
accessFlags = 0x0
|
||||
name = null
|
||||
.end annotation
|
||||
|
||||
|
||||
# static fields
|
||||
.field static final TAG:Ljava/lang/String; = "ProfileInstaller"
|
||||
|
||||
|
||||
# direct methods
|
||||
.method 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
|
||||
|
||||
const/4 p2, 0x1
|
||||
|
||||
if-eq p1, p2, :cond_4
|
||||
|
||||
const/4 p2, 0x2
|
||||
|
||||
if-eq p1, p2, :cond_3
|
||||
|
||||
const/4 p2, 0x3
|
||||
|
||||
if-eq p1, p2, :cond_2
|
||||
|
||||
const/4 p2, 0x4
|
||||
|
||||
if-eq p1, p2, :cond_1
|
||||
|
||||
const/4 p2, 0x5
|
||||
|
||||
if-eq p1, p2, :cond_0
|
||||
|
||||
.line 127
|
||||
const-string p1, ""
|
||||
|
||||
goto :goto_0
|
||||
|
||||
.line 141
|
||||
:cond_0
|
||||
const-string p1, "DIAGNOSTIC_PROFILE_IS_COMPRESSED"
|
||||
|
||||
goto :goto_0
|
||||
|
||||
.line 139
|
||||
:cond_1
|
||||
const-string p1, "DIAGNOSTIC_REF_PROFILE_DOES_NOT_EXIST"
|
||||
|
||||
goto :goto_0
|
||||
|
||||
.line 136
|
||||
:cond_2
|
||||
const-string p1, "DIAGNOSTIC_REF_PROFILE_EXISTS"
|
||||
|
||||
goto :goto_0
|
||||
|
||||
.line 133
|
||||
:cond_3
|
||||
const-string p1, "DIAGNOSTIC_CURRENT_PROFILE_DOES_NOT_EXIST"
|
||||
|
||||
goto :goto_0
|
||||
|
||||
.line 130
|
||||
:cond_4
|
||||
const-string p1, "DIAGNOSTIC_CURRENT_PROFILE_EXISTS"
|
||||
|
||||
.line 144
|
||||
:goto_0
|
||||
const-string p2, "ProfileInstaller"
|
||||
|
||||
invoke-static {p2, p1}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I
|
||||
|
||||
return-void
|
||||
.end method
|
||||
|
||||
.method public onResultReceived(ILjava/lang/Object;)V
|
||||
.locals 3
|
||||
|
||||
packed-switch p1, :pswitch_data_0
|
||||
|
||||
.line 150
|
||||
:pswitch_0
|
||||
const-string v0, ""
|
||||
|
||||
goto :goto_0
|
||||
|
||||
.line 169
|
||||
:pswitch_1
|
||||
const-string v0, "RESULT_DELETE_SKIP_FILE_SUCCESS"
|
||||
|
||||
goto :goto_0
|
||||
|
||||
.line 168
|
||||
:pswitch_2
|
||||
const-string v0, "RESULT_INSTALL_SKIP_FILE_SUCCESS"
|
||||
|
||||
goto :goto_0
|
||||
|
||||
.line 166
|
||||
:pswitch_3
|
||||
const-string v0, "RESULT_PARSE_EXCEPTION"
|
||||
|
||||
goto :goto_0
|
||||
|
||||
.line 164
|
||||
:pswitch_4
|
||||
const-string v0, "RESULT_IO_EXCEPTION"
|
||||
|
||||
goto :goto_0
|
||||
|
||||
.line 162
|
||||
:pswitch_5
|
||||
const-string v0, "RESULT_BASELINE_PROFILE_NOT_FOUND"
|
||||
|
||||
goto :goto_0
|
||||
|
||||
.line 160
|
||||
:pswitch_6
|
||||
const-string v0, "RESULT_DESIRED_FORMAT_UNSUPPORTED"
|
||||
|
||||
goto :goto_0
|
||||
|
||||
.line 158
|
||||
:pswitch_7
|
||||
const-string v0, "RESULT_NOT_WRITABLE"
|
||||
|
||||
goto :goto_0
|
||||
|
||||
.line 156
|
||||
:pswitch_8
|
||||
const-string v0, "RESULT_UNSUPPORTED_ART_VERSION"
|
||||
|
||||
goto :goto_0
|
||||
|
||||
.line 154
|
||||
:pswitch_9
|
||||
const-string v0, "RESULT_ALREADY_INSTALLED"
|
||||
|
||||
goto :goto_0
|
||||
|
||||
.line 152
|
||||
:pswitch_a
|
||||
const-string v0, "RESULT_INSTALL_SUCCESS"
|
||||
|
||||
:goto_0
|
||||
const/4 v1, 0x6
|
||||
|
||||
.line 173
|
||||
const-string v2, "ProfileInstaller"
|
||||
|
||||
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
|
||||
|
||||
.line 180
|
||||
invoke-static {v2, v0}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I
|
||||
|
||||
goto :goto_1
|
||||
|
||||
.line 177
|
||||
:cond_0
|
||||
check-cast p2, Ljava/lang/Throwable;
|
||||
|
||||
invoke-static {v2, v0, p2}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)I
|
||||
|
||||
:goto_1
|
||||
return-void
|
||||
|
||||
nop
|
||||
|
||||
: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
|
||||
@@ -0,0 +1,21 @@
|
||||
.class public interface abstract annotation Landroidx/profileinstaller/ProfileInstaller$DiagnosticCode;
|
||||
.super Ljava/lang/Object;
|
||||
.source "ProfileInstaller.java"
|
||||
|
||||
# interfaces
|
||||
.implements Ljava/lang/annotation/Annotation;
|
||||
|
||||
|
||||
# annotations
|
||||
.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
|
||||
@@ -0,0 +1,22 @@
|
||||
.class public interface abstract Landroidx/profileinstaller/ProfileInstaller$DiagnosticsCallback;
|
||||
.super Ljava/lang/Object;
|
||||
.source "ProfileInstaller.java"
|
||||
|
||||
|
||||
# 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
|
||||
.end method
|
||||
|
||||
.method public abstract onResultReceived(ILjava/lang/Object;)V
|
||||
.end method
|
||||
@@ -0,0 +1,21 @@
|
||||
.class public interface abstract annotation Landroidx/profileinstaller/ProfileInstaller$ResultCode;
|
||||
.super Ljava/lang/Object;
|
||||
.source "ProfileInstaller.java"
|
||||
|
||||
# interfaces
|
||||
.implements Ljava/lang/annotation/Annotation;
|
||||
|
||||
|
||||
# annotations
|
||||
.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
|
||||
@@ -0,0 +1,657 @@
|
||||
.class public Landroidx/profileinstaller/ProfileInstaller;
|
||||
.super Ljava/lang/Object;
|
||||
.source "ProfileInstaller.java"
|
||||
|
||||
|
||||
# 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;
|
||||
|
||||
.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 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 static deleteProfileWrittenFor(Ljava/io/File;)Z
|
||||
.locals 2
|
||||
|
||||
.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 static deleteSkipFile(Landroid/content/Context;Ljava/util/concurrent/Executor;Landroidx/profileinstaller/ProfileInstaller$DiagnosticsCallback;)V
|
||||
.locals 1
|
||||
|
||||
.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 static diagnostic(Ljava/util/concurrent/Executor;Landroidx/profileinstaller/ProfileInstaller$DiagnosticsCallback;ILjava/lang/Object;)V
|
||||
.locals 1
|
||||
|
||||
.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 static hasAlreadyWrittenProfileForThisInstall(Landroid/content/pm/PackageInfo;Ljava/io/File;Landroidx/profileinstaller/ProfileInstaller$DiagnosticsCallback;)Z
|
||||
.locals 4
|
||||
|
||||
.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/DataInputStream;->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/DataInputStream;->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 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 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 static noteProfileWrittenFor(Landroid/content/pm/PackageInfo;Ljava/io/File;)V
|
||||
.locals 2
|
||||
|
||||
.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/DataOutputStream;->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/DataOutputStream;->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 static result(Ljava/util/concurrent/Executor;Landroidx/profileinstaller/ProfileInstaller$DiagnosticsCallback;ILjava/lang/Object;)V
|
||||
.locals 1
|
||||
|
||||
.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
|
||||
|
||||
.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
|
||||
|
||||
.line 479
|
||||
new-instance v0, Landroidx/profileinstaller/ProfileInstallReceiver$$ExternalSyntheticLambda0;
|
||||
|
||||
invoke-direct {v0}, Landroidx/profileinstaller/ProfileInstallReceiver$$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
|
||||
|
||||
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 static writeProfile(Landroid/content/Context;Ljava/util/concurrent/Executor;Landroidx/profileinstaller/ProfileInstaller$DiagnosticsCallback;Z)V
|
||||
.locals 9
|
||||
|
||||
.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
|
||||
|
||||
.line 572
|
||||
const-string v1, "ProfileInstaller"
|
||||
|
||||
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 v6
|
||||
|
||||
if-nez v6, :cond_0
|
||||
|
||||
goto :goto_0
|
||||
|
||||
.line 580
|
||||
:cond_0
|
||||
new-instance p1, Ljava/lang/StringBuilder;
|
||||
|
||||
const-string p2, "Skipping profile installation for "
|
||||
|
||||
invoke-direct {p1, p2}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
|
||||
|
||||
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;
|
||||
|
||||
move-result-object p1
|
||||
|
||||
invoke-virtual {p1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
||||
|
||||
move-result-object p1
|
||||
|
||||
invoke-static {v1, p1}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I
|
||||
|
||||
.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 v6, Ljava/lang/StringBuilder;
|
||||
|
||||
const-string v7, "Installing profile for "
|
||||
|
||||
invoke-direct {v6, v7}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
|
||||
|
||||
invoke-virtual {p0}, Landroid/content/Context;->getPackageName()Ljava/lang/String;
|
||||
|
||||
move-result-object v7
|
||||
|
||||
invoke-virtual {v6, v7}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
||||
|
||||
move-result-object v6
|
||||
|
||||
invoke-virtual {v6}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
||||
|
||||
move-result-object v6
|
||||
|
||||
invoke-static {v1, v6}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I
|
||||
|
||||
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 static writeSkipFile(Landroid/content/Context;Ljava/util/concurrent/Executor;Landroidx/profileinstaller/ProfileInstaller$DiagnosticsCallback;)V
|
||||
.locals 3
|
||||
|
||||
.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
|
||||
@@ -0,0 +1,36 @@
|
||||
.class public final synthetic Landroidx/profileinstaller/ProfileInstallerInitializer$$ExternalSyntheticLambda0;
|
||||
.super Ljava/lang/Object;
|
||||
.source "D8$$SyntheticClass"
|
||||
|
||||
# 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;->lambda$installAfterDelay$1(Landroid/content/Context;)V
|
||||
|
||||
return-void
|
||||
.end method
|
||||
@@ -0,0 +1,42 @@
|
||||
.class public final synthetic Landroidx/profileinstaller/ProfileInstallerInitializer$$ExternalSyntheticLambda1;
|
||||
.super Ljava/lang/Object;
|
||||
.source "D8$$SyntheticClass"
|
||||
|
||||
# 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-virtual {v0, v1}, Landroidx/profileinstaller/ProfileInstallerInitializer;->lambda$delayAfterFirstFrame$0$androidx-profileinstaller-ProfileInstallerInitializer(Landroid/content/Context;)V
|
||||
|
||||
return-void
|
||||
.end method
|
||||
@@ -0,0 +1,36 @@
|
||||
.class public final synthetic Landroidx/profileinstaller/ProfileInstallerInitializer$$ExternalSyntheticLambda2;
|
||||
.super Ljava/lang/Object;
|
||||
.source "D8$$SyntheticClass"
|
||||
|
||||
# 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;->lambda$writeInBackground$2(Landroid/content/Context;)V
|
||||
|
||||
return-void
|
||||
.end method
|
||||
@@ -0,0 +1,36 @@
|
||||
.class public final synthetic Landroidx/profileinstaller/ProfileInstallerInitializer$Choreographer16Impl$$ExternalSyntheticLambda0;
|
||||
.super Ljava/lang/Object;
|
||||
.source "D8$$SyntheticClass"
|
||||
|
||||
# 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;->lambda$postFrameCallback$0(Ljava/lang/Runnable;J)V
|
||||
|
||||
return-void
|
||||
.end method
|
||||
@@ -0,0 +1,51 @@
|
||||
.class Landroidx/profileinstaller/ProfileInstallerInitializer$Choreographer16Impl;
|
||||
.super Ljava/lang/Object;
|
||||
.source "ProfileInstallerInitializer.java"
|
||||
|
||||
|
||||
# annotations
|
||||
.annotation system Ldalvik/annotation/EnclosingClass;
|
||||
value = Landroidx/profileinstaller/ProfileInstallerInitializer;
|
||||
.end annotation
|
||||
|
||||
.annotation system Ldalvik/annotation/InnerClass;
|
||||
accessFlags = 0xa
|
||||
name = "Choreographer16Impl"
|
||||
.end annotation
|
||||
|
||||
|
||||
# direct methods
|
||||
.method private constructor <init>()V
|
||||
.locals 0
|
||||
|
||||
.line 155
|
||||
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
||||
|
||||
return-void
|
||||
.end method
|
||||
|
||||
.method 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
|
||||
|
||||
.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
|
||||
@@ -0,0 +1,36 @@
|
||||
.class Landroidx/profileinstaller/ProfileInstallerInitializer$Handler28Impl;
|
||||
.super Ljava/lang/Object;
|
||||
.source "ProfileInstallerInitializer.java"
|
||||
|
||||
|
||||
# annotations
|
||||
.annotation system Ldalvik/annotation/EnclosingClass;
|
||||
value = Landroidx/profileinstaller/ProfileInstallerInitializer;
|
||||
.end annotation
|
||||
|
||||
.annotation system Ldalvik/annotation/InnerClass;
|
||||
accessFlags = 0xa
|
||||
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
|
||||
|
||||
.line 174
|
||||
invoke-static {p0}, Landroid/os/Handler;->createAsync(Landroid/os/Looper;)Landroid/os/Handler;
|
||||
|
||||
move-result-object p0
|
||||
|
||||
return-object p0
|
||||
.end method
|
||||
@@ -0,0 +1,25 @@
|
||||
.class public Landroidx/profileinstaller/ProfileInstallerInitializer$Result;
|
||||
.super Ljava/lang/Object;
|
||||
.source "ProfileInstallerInitializer.java"
|
||||
|
||||
|
||||
# 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
|
||||
@@ -0,0 +1,228 @@
|
||||
.class public Landroidx/profileinstaller/ProfileInstallerInitializer;
|
||||
.super Ljava/lang/Object;
|
||||
.source "ProfileInstallerInitializer.java"
|
||||
|
||||
# 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 constructor <init>()V
|
||||
.locals 0
|
||||
|
||||
.line 64
|
||||
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
||||
|
||||
return-void
|
||||
.end method
|
||||
|
||||
.method 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 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
|
||||
|
||||
.line 138
|
||||
new-instance v7, Ljava/util/concurrent/ThreadPoolExecutor;
|
||||
|
||||
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
|
||||
|
||||
const/4 v1, 0x0
|
||||
|
||||
const/4 v2, 0x1
|
||||
|
||||
const-wide/16 v3, 0x0
|
||||
|
||||
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
|
||||
|
||||
.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
|
||||
|
||||
.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 delayAfterFirstFrame(Landroid/content/Context;)V
|
||||
.locals 1
|
||||
|
||||
.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 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 installAfterDelay(Landroid/content/Context;)V
|
||||
.locals 5
|
||||
|
||||
.line 108
|
||||
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
|
||||
|
||||
.method synthetic lambda$delayAfterFirstFrame$0$androidx-profileinstaller-ProfileInstallerInitializer(Landroid/content/Context;)V
|
||||
.locals 0
|
||||
|
||||
.line 94
|
||||
invoke-virtual {p0, p1}, Landroidx/profileinstaller/ProfileInstallerInitializer;->installAfterDelay(Landroid/content/Context;)V
|
||||
|
||||
return-void
|
||||
.end method
|
||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,53 @@
|
||||
.class Landroidx/profileinstaller/ProfileVerifier$Api33Impl;
|
||||
.super Ljava/lang/Object;
|
||||
.source "ProfileVerifier.java"
|
||||
|
||||
|
||||
# annotations
|
||||
.annotation system Ldalvik/annotation/EnclosingClass;
|
||||
value = Landroidx/profileinstaller/ProfileVerifier;
|
||||
.end annotation
|
||||
|
||||
.annotation system Ldalvik/annotation/InnerClass;
|
||||
accessFlags = 0xa
|
||||
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 static getPackageInfo(Landroid/content/pm/PackageManager;Landroid/content/Context;)Landroid/content/pm/PackageInfo;
|
||||
.locals 2
|
||||
.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
|
||||
@@ -0,0 +1,304 @@
|
||||
.class Landroidx/profileinstaller/ProfileVerifier$Cache;
|
||||
.super Ljava/lang/Object;
|
||||
.source "ProfileVerifier.java"
|
||||
|
||||
|
||||
# annotations
|
||||
.annotation system Ldalvik/annotation/EnclosingClass;
|
||||
value = Landroidx/profileinstaller/ProfileVerifier;
|
||||
.end annotation
|
||||
|
||||
.annotation system Ldalvik/annotation/InnerClass;
|
||||
accessFlags = 0x8
|
||||
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 constructor <init>(IIJJ)V
|
||||
.locals 0
|
||||
|
||||
.line 337
|
||||
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
||||
|
||||
.line 338
|
||||
iput p1, p0, Landroidx/profileinstaller/ProfileVerifier$Cache;->mSchema:I
|
||||
|
||||
.line 339
|
||||
iput p2, p0, Landroidx/profileinstaller/ProfileVerifier$Cache;->mResultCode:I
|
||||
|
||||
.line 340
|
||||
iput-wide p3, p0, Landroidx/profileinstaller/ProfileVerifier$Cache;->mPackageLastUpdateTime:J
|
||||
|
||||
.line 341
|
||||
iput-wide p5, p0, Landroidx/profileinstaller/ProfileVerifier$Cache;->mInstalledCurrentProfileSize:J
|
||||
|
||||
return-void
|
||||
.end method
|
||||
|
||||
.method static readFromFile(Ljava/io/File;)Landroidx/profileinstaller/ProfileVerifier$Cache;
|
||||
.locals 9
|
||||
.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/DataInputStream;->close()V
|
||||
|
||||
return-object p0
|
||||
|
||||
:catchall_0
|
||||
move-exception p0
|
||||
|
||||
.line 376
|
||||
:try_start_1
|
||||
invoke-virtual {v0}, Ljava/io/DataInputStream;->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;
|
||||
|
||||
.line 349
|
||||
iget v2, p0, Landroidx/profileinstaller/ProfileVerifier$Cache;->mResultCode:I
|
||||
|
||||
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
|
||||
|
||||
.line 357
|
||||
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 writeOnFile(Ljava/io/File;)V
|
||||
.locals 3
|
||||
.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
|
||||
|
||||
.line 368
|
||||
:try_start_0
|
||||
iget p1, p0, Landroidx/profileinstaller/ProfileVerifier$Cache;->mSchema:I
|
||||
|
||||
invoke-virtual {v0, p1}, Ljava/io/DataOutputStream;->writeInt(I)V
|
||||
|
||||
.line 369
|
||||
iget p1, p0, Landroidx/profileinstaller/ProfileVerifier$Cache;->mResultCode:I
|
||||
|
||||
invoke-virtual {v0, p1}, Ljava/io/DataOutputStream;->writeInt(I)V
|
||||
|
||||
.line 370
|
||||
iget-wide v1, p0, Landroidx/profileinstaller/ProfileVerifier$Cache;->mPackageLastUpdateTime:J
|
||||
|
||||
invoke-virtual {v0, v1, v2}, Ljava/io/DataOutputStream;->writeLong(J)V
|
||||
|
||||
.line 371
|
||||
iget-wide v1, p0, Landroidx/profileinstaller/ProfileVerifier$Cache;->mInstalledCurrentProfileSize:J
|
||||
|
||||
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/DataOutputStream;->close()V
|
||||
|
||||
return-void
|
||||
|
||||
:catchall_0
|
||||
move-exception p1
|
||||
|
||||
.line 367
|
||||
:try_start_1
|
||||
invoke-virtual {v0}, Ljava/io/DataOutputStream;->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
|
||||
@@ -0,0 +1,21 @@
|
||||
.class public interface abstract annotation Landroidx/profileinstaller/ProfileVerifier$CompilationStatus$ResultCode;
|
||||
.super Ljava/lang/Object;
|
||||
.source "ProfileVerifier.java"
|
||||
|
||||
# interfaces
|
||||
.implements Ljava/lang/annotation/Annotation;
|
||||
|
||||
|
||||
# annotations
|
||||
.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
|
||||
@@ -0,0 +1,97 @@
|
||||
.class public Landroidx/profileinstaller/ProfileVerifier$CompilationStatus;
|
||||
.super Ljava/lang/Object;
|
||||
.source "ProfileVerifier.java"
|
||||
|
||||
|
||||
# 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 constructor <init>(IZZ)V
|
||||
.locals 0
|
||||
|
||||
.line 486
|
||||
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
||||
|
||||
.line 487
|
||||
iput p1, p0, Landroidx/profileinstaller/ProfileVerifier$CompilationStatus;->mResultCode:I
|
||||
|
||||
.line 488
|
||||
iput-boolean p3, p0, Landroidx/profileinstaller/ProfileVerifier$CompilationStatus;->mHasCurrentProfile:Z
|
||||
|
||||
.line 489
|
||||
iput-boolean p2, p0, Landroidx/profileinstaller/ProfileVerifier$CompilationStatus;->mHasReferenceProfile:Z
|
||||
|
||||
return-void
|
||||
.end method
|
||||
|
||||
|
||||
# virtual methods
|
||||
.method public getProfileInstallResultCode()I
|
||||
.locals 1
|
||||
|
||||
.line 521
|
||||
iget v0, p0, Landroidx/profileinstaller/ProfileVerifier$CompilationStatus;->mResultCode:I
|
||||
|
||||
return v0
|
||||
.end method
|
||||
|
||||
.method public hasProfileEnqueuedForCompilation()Z
|
||||
.locals 1
|
||||
|
||||
.line 545
|
||||
iget-boolean v0, p0, Landroidx/profileinstaller/ProfileVerifier$CompilationStatus;->mHasCurrentProfile:Z
|
||||
|
||||
return v0
|
||||
.end method
|
||||
|
||||
.method public isCompiledWithProfile()Z
|
||||
.locals 1
|
||||
|
||||
.line 534
|
||||
iget-boolean v0, p0, Landroidx/profileinstaller/ProfileVerifier$CompilationStatus;->mHasReferenceProfile:Z
|
||||
|
||||
return v0
|
||||
.end method
|
||||
@@ -0,0 +1,523 @@
|
||||
.class public final Landroidx/profileinstaller/ProfileVerifier;
|
||||
.super Ljava/lang/Object;
|
||||
.source "ProfileVerifier.java"
|
||||
|
||||
|
||||
# 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;
|
||||
|
||||
.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
|
||||
|
||||
.line 81
|
||||
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 system Ldalvik/annotation/Signature;
|
||||
value = {
|
||||
"()",
|
||||
"Lcom/google/common/util/concurrent/ListenableFuture<",
|
||||
"Landroidx/profileinstaller/ProfileVerifier$CompilationStatus;",
|
||||
">;"
|
||||
}
|
||||
.end annotation
|
||||
|
||||
.line 320
|
||||
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
|
||||
|
||||
.line 300
|
||||
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;
|
||||
|
||||
.line 290
|
||||
sget-object p0, Landroidx/profileinstaller/ProfileVerifier;->sFuture:Landroidx/concurrent/futures/ResolvableFuture;
|
||||
|
||||
invoke-virtual {p0, v0}, Landroidx/concurrent/futures/ResolvableFuture;->set(Ljava/lang/Object;)Z
|
||||
|
||||
.line 291
|
||||
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
|
||||
|
||||
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 static writeProfileVerification(Landroid/content/Context;Z)Landroidx/profileinstaller/ProfileVerifier$CompilationStatus;
|
||||
.locals 18
|
||||
|
||||
if-nez p1, :cond_0
|
||||
|
||||
.line 129
|
||||
sget-object v0, Landroidx/profileinstaller/ProfileVerifier;->sCompilationStatus:Landroidx/profileinstaller/ProfileVerifier$CompilationStatus;
|
||||
|
||||
if-eqz v0, :cond_0
|
||||
|
||||
return-object v0
|
||||
|
||||
.line 133
|
||||
:cond_0
|
||||
sget-object v1, Landroidx/profileinstaller/ProfileVerifier;->SYNC_OBJ:Ljava/lang/Object;
|
||||
|
||||
monitor-enter v1
|
||||
|
||||
if-nez p1, :cond_1
|
||||
|
||||
.line 135
|
||||
: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
|
||||
|
||||
.line 140
|
||||
: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
|
||||
|
||||
sget v0, Landroid/os/Build$VERSION;->SDK_INT:I
|
||||
|
||||
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
|
||||
|
||||
.line 223
|
||||
:cond_6
|
||||
iget v3, v8, Landroidx/profileinstaller/ProfileVerifier$Cache;->mResultCode:I
|
||||
|
||||
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
|
||||
|
||||
:catchall_0
|
||||
move-exception v0
|
||||
|
||||
.line 277
|
||||
monitor-exit v1
|
||||
:try_end_6
|
||||
.catchall {:try_start_6 .. :try_end_6} :catchall_0
|
||||
|
||||
throw v0
|
||||
.end method
|
||||
@@ -0,0 +1,184 @@
|
||||
.class public Landroidx/profileinstaller/ProfileVersion;
|
||||
.super Ljava/lang/Object;
|
||||
.source "ProfileVersion.java"
|
||||
|
||||
|
||||
# static fields
|
||||
.field public static final MAX_SUPPORTED_SDK:I = 0x21
|
||||
|
||||
.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
|
||||
|
||||
.line 29
|
||||
new-array v1, v0, [B
|
||||
|
||||
fill-array-data v1, :array_0
|
||||
|
||||
sput-object v1, Landroidx/profileinstaller/ProfileVersion;->V015_S:[B
|
||||
|
||||
.line 30
|
||||
new-array v1, v0, [B
|
||||
|
||||
fill-array-data v1, :array_1
|
||||
|
||||
sput-object v1, Landroidx/profileinstaller/ProfileVersion;->V010_P:[B
|
||||
|
||||
.line 31
|
||||
new-array v1, v0, [B
|
||||
|
||||
fill-array-data v1, :array_2
|
||||
|
||||
sput-object v1, Landroidx/profileinstaller/ProfileVersion;->V009_O_MR1:[B
|
||||
|
||||
.line 32
|
||||
new-array v1, v0, [B
|
||||
|
||||
fill-array-data v1, :array_3
|
||||
|
||||
sput-object v1, Landroidx/profileinstaller/ProfileVersion;->V005_O:[B
|
||||
|
||||
.line 33
|
||||
new-array v1, v0, [B
|
||||
|
||||
fill-array-data v1, :array_4
|
||||
|
||||
sput-object v1, Landroidx/profileinstaller/ProfileVersion;->V001_N:[B
|
||||
|
||||
.line 34
|
||||
new-array v1, v0, [B
|
||||
|
||||
fill-array-data v1, :array_5
|
||||
|
||||
sput-object v1, Landroidx/profileinstaller/ProfileVersion;->METADATA_V001_N:[B
|
||||
|
||||
.line 35
|
||||
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 static dexKeySeparator([B)Ljava/lang/String;
|
||||
.locals 2
|
||||
|
||||
.line 40
|
||||
sget-object v0, Landroidx/profileinstaller/ProfileVersion;->V001_N:[B
|
||||
|
||||
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
|
||||
|
||||
.line 42
|
||||
:cond_0
|
||||
sget-object v0, Landroidx/profileinstaller/ProfileVersion;->V005_O:[B
|
||||
|
||||
invoke-static {p0, v0}, Ljava/util/Arrays;->equals([B[B)Z
|
||||
|
||||
move-result p0
|
||||
|
||||
if-eqz p0, :cond_1
|
||||
|
||||
return-object v1
|
||||
|
||||
.line 45
|
||||
:cond_1
|
||||
const-string p0, "!"
|
||||
|
||||
return-object p0
|
||||
.end method
|
||||
@@ -0,0 +1,12 @@
|
||||
.class public final Landroidx/profileinstaller/R;
|
||||
.super Ljava/lang/Object;
|
||||
|
||||
|
||||
# direct methods
|
||||
.method private constructor <init>()V
|
||||
.locals 0
|
||||
|
||||
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
||||
|
||||
return-void
|
||||
.end method
|
||||
@@ -0,0 +1,36 @@
|
||||
.class Landroidx/profileinstaller/WritableFileSection;
|
||||
.super Ljava/lang/Object;
|
||||
.source "WritableFileSection.java"
|
||||
|
||||
|
||||
# instance fields
|
||||
.field final mContents:[B
|
||||
|
||||
.field final mExpectedInflateSize:I
|
||||
|
||||
.field final mNeedsCompression:Z
|
||||
|
||||
.field final mType:Landroidx/profileinstaller/FileSectionType;
|
||||
|
||||
|
||||
# direct methods
|
||||
.method constructor <init>(Landroidx/profileinstaller/FileSectionType;I[BZ)V
|
||||
.locals 0
|
||||
|
||||
.line 34
|
||||
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
||||
|
||||
.line 35
|
||||
iput-object p1, p0, Landroidx/profileinstaller/WritableFileSection;->mType:Landroidx/profileinstaller/FileSectionType;
|
||||
|
||||
.line 36
|
||||
iput p2, p0, Landroidx/profileinstaller/WritableFileSection;->mExpectedInflateSize:I
|
||||
|
||||
.line 37
|
||||
iput-object p3, p0, Landroidx/profileinstaller/WritableFileSection;->mContents:[B
|
||||
|
||||
.line 38
|
||||
iput-boolean p4, p0, Landroidx/profileinstaller/WritableFileSection;->mNeedsCompression:Z
|
||||
|
||||
return-void
|
||||
.end method
|
||||
Reference in New Issue
Block a user