782 lines
14 KiB
Smali
782 lines
14 KiB
Smali
.class public final Lcom/appsflyer/internal/ca;
|
|
.super Ljava/io/FilterInputStream;
|
|
.source ""
|
|
|
|
|
|
# static fields
|
|
.field private static final AFInAppEventParameterName:S
|
|
|
|
|
|
# instance fields
|
|
.field private AFInAppEventType:[B
|
|
|
|
.field private AFKeystoreWrapper:I
|
|
|
|
.field private AFLogger$LogLevel:I
|
|
|
|
.field private AFVersionDeclaration:I
|
|
|
|
.field private AppsFlyer2dXConversionCallback:I
|
|
|
|
.field private getLevel:I
|
|
|
|
.field private init:I
|
|
|
|
.field private onAppOpenAttributionNative:I
|
|
|
|
.field private onAttributionFailureNative:I
|
|
|
|
.field private onDeepLinkingNative:I
|
|
|
|
.field private valueOf:[B
|
|
|
|
.field private values:[B
|
|
|
|
|
|
# direct methods
|
|
.method public static constructor <clinit>()V
|
|
.locals 6
|
|
|
|
const-wide/high16 v0, 0x4014000000000000L # 5.0
|
|
|
|
.line 1
|
|
invoke-static {v0, v1}, Ljava/lang/Math;->sqrt(D)D
|
|
|
|
move-result-wide v0
|
|
|
|
const-wide/high16 v2, 0x3ff0000000000000L # 1.0
|
|
|
|
sub-double/2addr v0, v2
|
|
|
|
const-wide/high16 v2, 0x4000000000000000L # 2.0
|
|
|
|
const-wide/high16 v4, 0x402e000000000000L # 15.0
|
|
|
|
invoke-static {v2, v3, v4, v5}, Ljava/lang/Math;->pow(DD)D
|
|
|
|
move-result-wide v2
|
|
|
|
mul-double/2addr v2, v0
|
|
|
|
double-to-int v0, v2
|
|
|
|
int-to-short v0, v0
|
|
|
|
sput-short v0, Lcom/appsflyer/internal/ca;->AFInAppEventParameterName:S
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public constructor <init>(Ljava/io/InputStream;[II[BII)V
|
|
.locals 6
|
|
.annotation system Ldalvik/annotation/Throws;
|
|
value = {
|
|
Ljava/io/IOException;
|
|
}
|
|
.end annotation
|
|
|
|
.line 1
|
|
invoke-direct {p0, p1}, Ljava/io/FilterInputStream;-><init>(Ljava/io/InputStream;)V
|
|
|
|
const p1, 0x7fffffff
|
|
|
|
.line 2
|
|
iput p1, p0, Lcom/appsflyer/internal/ca;->AFVersionDeclaration:I
|
|
|
|
const/16 p1, 0x8
|
|
|
|
new-array v0, p1, [B
|
|
|
|
.line 3
|
|
iput-object v0, p0, Lcom/appsflyer/internal/ca;->valueOf:[B
|
|
|
|
new-array v0, p1, [B
|
|
|
|
.line 4
|
|
iput-object v0, p0, Lcom/appsflyer/internal/ca;->values:[B
|
|
|
|
new-array v0, p1, [B
|
|
|
|
.line 5
|
|
iput-object v0, p0, Lcom/appsflyer/internal/ca;->AFInAppEventType:[B
|
|
|
|
.line 6
|
|
iput p1, p0, Lcom/appsflyer/internal/ca;->AFKeystoreWrapper:I
|
|
|
|
.line 7
|
|
iput p1, p0, Lcom/appsflyer/internal/ca;->getLevel:I
|
|
|
|
const/4 v0, 0x5
|
|
|
|
.line 8
|
|
invoke-static {p5, v0}, Ljava/lang/Math;->max(II)I
|
|
|
|
move-result p5
|
|
|
|
const/16 v0, 0x10
|
|
|
|
invoke-static {p5, v0}, Ljava/lang/Math;->min(II)I
|
|
|
|
move-result p5
|
|
|
|
iput p5, p0, Lcom/appsflyer/internal/ca;->init:I
|
|
|
|
.line 9
|
|
iput p6, p0, Lcom/appsflyer/internal/ca;->AppsFlyer2dXConversionCallback:I
|
|
|
|
const/4 p5, 0x3
|
|
|
|
const/4 v0, 0x0
|
|
|
|
if-ne p6, p5, :cond_0
|
|
|
|
.line 10
|
|
iget-object p6, p0, Lcom/appsflyer/internal/ca;->values:[B
|
|
|
|
invoke-static {p4, v0, p6, v0, p1}, Ljava/lang/System;->arraycopy(Ljava/lang/Object;ILjava/lang/Object;II)V
|
|
|
|
.line 11
|
|
:cond_0
|
|
aget p1, p2, v0
|
|
|
|
int-to-long v0, p1
|
|
|
|
const-wide v2, 0xffffffffL
|
|
|
|
and-long/2addr v0, v2
|
|
|
|
const/16 p1, 0x20
|
|
|
|
shl-long/2addr v0, p1
|
|
|
|
const/4 p4, 0x1
|
|
|
|
aget p2, p2, p4
|
|
|
|
int-to-long v4, p2
|
|
|
|
and-long/2addr v2, v4
|
|
|
|
or-long/2addr v0, v2
|
|
|
|
if-nez p3, :cond_1
|
|
|
|
long-to-int p2, v0
|
|
|
|
.line 12
|
|
iput p2, p0, Lcom/appsflyer/internal/ca;->AFLogger$LogLevel:I
|
|
|
|
shr-long p2, v0, p5
|
|
|
|
.line 13
|
|
sget-short p4, Lcom/appsflyer/internal/ca;->AFInAppEventParameterName:S
|
|
|
|
int-to-long p5, p4
|
|
|
|
mul-long/2addr p5, p2
|
|
|
|
shr-long/2addr p5, p1
|
|
|
|
long-to-int p5, p5
|
|
|
|
iput p5, p0, Lcom/appsflyer/internal/ca;->onAppOpenAttributionNative:I
|
|
|
|
shr-long p5, v0, p1
|
|
|
|
long-to-int p1, p5
|
|
|
|
.line 14
|
|
iput p1, p0, Lcom/appsflyer/internal/ca;->onAttributionFailureNative:I
|
|
|
|
int-to-long p4, p4
|
|
|
|
add-long/2addr p2, p4
|
|
|
|
long-to-int p1, p2
|
|
|
|
.line 15
|
|
iput p1, p0, Lcom/appsflyer/internal/ca;->onDeepLinkingNative:I
|
|
|
|
return-void
|
|
|
|
:cond_1
|
|
long-to-int p2, v0
|
|
|
|
.line 16
|
|
iput p2, p0, Lcom/appsflyer/internal/ca;->AFLogger$LogLevel:I
|
|
|
|
mul-int p4, p2, p3
|
|
|
|
.line 17
|
|
iput p4, p0, Lcom/appsflyer/internal/ca;->onAppOpenAttributionNative:I
|
|
|
|
xor-int/2addr p2, p3
|
|
|
|
.line 18
|
|
iput p2, p0, Lcom/appsflyer/internal/ca;->onAttributionFailureNative:I
|
|
|
|
shr-long p1, v0, p1
|
|
|
|
long-to-int p1, p1
|
|
|
|
.line 19
|
|
iput p1, p0, Lcom/appsflyer/internal/ca;->onDeepLinkingNative:I
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method private valueOf()I
|
|
.locals 7
|
|
.annotation system Ldalvik/annotation/Throws;
|
|
value = {
|
|
Ljava/io/IOException;
|
|
}
|
|
.end annotation
|
|
|
|
.line 1
|
|
iget v0, p0, Lcom/appsflyer/internal/ca;->AFVersionDeclaration:I
|
|
|
|
const v1, 0x7fffffff
|
|
|
|
if-ne v0, v1, :cond_0
|
|
|
|
.line 2
|
|
iget-object v0, p0, Ljava/io/FilterInputStream;->in:Ljava/io/InputStream;
|
|
|
|
invoke-virtual {v0}, Ljava/io/InputStream;->read()I
|
|
|
|
move-result v0
|
|
|
|
iput v0, p0, Lcom/appsflyer/internal/ca;->AFVersionDeclaration:I
|
|
|
|
.line 3
|
|
:cond_0
|
|
iget v0, p0, Lcom/appsflyer/internal/ca;->AFKeystoreWrapper:I
|
|
|
|
const/16 v1, 0x8
|
|
|
|
if-ne v0, v1, :cond_6
|
|
|
|
.line 4
|
|
iget-object v0, p0, Lcom/appsflyer/internal/ca;->valueOf:[B
|
|
|
|
iget v2, p0, Lcom/appsflyer/internal/ca;->AFVersionDeclaration:I
|
|
|
|
int-to-byte v3, v2
|
|
|
|
const/4 v4, 0x0
|
|
|
|
aput-byte v3, v0, v4
|
|
|
|
const-string v0, "unexpected block size"
|
|
|
|
if-ltz v2, :cond_5
|
|
|
|
const/4 v2, 0x1
|
|
|
|
.line 5
|
|
:cond_1
|
|
iget-object v3, p0, Ljava/io/FilterInputStream;->in:Ljava/io/InputStream;
|
|
|
|
iget-object v5, p0, Lcom/appsflyer/internal/ca;->valueOf:[B
|
|
|
|
rsub-int/lit8 v6, v2, 0x8
|
|
|
|
invoke-virtual {v3, v5, v2, v6}, Ljava/io/InputStream;->read([BII)I
|
|
|
|
move-result v3
|
|
|
|
if-lez v3, :cond_2
|
|
|
|
add-int/2addr v2, v3
|
|
|
|
if-lt v2, v1, :cond_1
|
|
|
|
:cond_2
|
|
if-lt v2, v1, :cond_4
|
|
|
|
.line 6
|
|
invoke-direct {p0}, Lcom/appsflyer/internal/ca;->values()V
|
|
|
|
.line 7
|
|
iget-object v0, p0, Ljava/io/FilterInputStream;->in:Ljava/io/InputStream;
|
|
|
|
invoke-virtual {v0}, Ljava/io/InputStream;->read()I
|
|
|
|
move-result v0
|
|
|
|
iput v0, p0, Lcom/appsflyer/internal/ca;->AFVersionDeclaration:I
|
|
|
|
.line 8
|
|
iput v4, p0, Lcom/appsflyer/internal/ca;->AFKeystoreWrapper:I
|
|
|
|
if-gez v0, :cond_3
|
|
|
|
.line 9
|
|
iget-object v0, p0, Lcom/appsflyer/internal/ca;->valueOf:[B
|
|
|
|
const/4 v2, 0x7
|
|
|
|
aget-byte v0, v0, v2
|
|
|
|
and-int/lit16 v0, v0, 0xff
|
|
|
|
sub-int/2addr v1, v0
|
|
|
|
:cond_3
|
|
iput v1, p0, Lcom/appsflyer/internal/ca;->getLevel:I
|
|
|
|
goto :goto_0
|
|
|
|
.line 10
|
|
:cond_4
|
|
new-instance v1, Ljava/lang/IllegalStateException;
|
|
|
|
invoke-direct {v1, v0}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
|
|
|
|
throw v1
|
|
|
|
.line 11
|
|
:cond_5
|
|
new-instance v1, Ljava/lang/IllegalStateException;
|
|
|
|
invoke-direct {v1, v0}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
|
|
|
|
throw v1
|
|
|
|
.line 12
|
|
:cond_6
|
|
:goto_0
|
|
iget v0, p0, Lcom/appsflyer/internal/ca;->getLevel:I
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method private values()V
|
|
.locals 15
|
|
|
|
.line 1
|
|
iget v0, p0, Lcom/appsflyer/internal/ca;->AppsFlyer2dXConversionCallback:I
|
|
|
|
const/4 v1, 0x3
|
|
|
|
const/4 v2, 0x0
|
|
|
|
if-ne v0, v1, :cond_0
|
|
|
|
.line 2
|
|
iget-object v0, p0, Lcom/appsflyer/internal/ca;->valueOf:[B
|
|
|
|
iget-object v3, p0, Lcom/appsflyer/internal/ca;->AFInAppEventType:[B
|
|
|
|
array-length v4, v0
|
|
|
|
invoke-static {v0, v2, v3, v2, v4}, Ljava/lang/System;->arraycopy(Ljava/lang/Object;ILjava/lang/Object;II)V
|
|
|
|
.line 3
|
|
:cond_0
|
|
iget-object v0, p0, Lcom/appsflyer/internal/ca;->valueOf:[B
|
|
|
|
aget-byte v3, v0, v2
|
|
|
|
shl-int/lit8 v3, v3, 0x18
|
|
|
|
const/high16 v4, -0x1000000
|
|
|
|
and-int/2addr v3, v4
|
|
|
|
const/4 v5, 0x1
|
|
|
|
aget-byte v6, v0, v5
|
|
|
|
shl-int/lit8 v6, v6, 0x10
|
|
|
|
const/high16 v7, 0xff0000
|
|
|
|
and-int/2addr v6, v7
|
|
|
|
add-int/2addr v3, v6
|
|
|
|
const/4 v6, 0x2
|
|
|
|
aget-byte v8, v0, v6
|
|
|
|
shl-int/lit8 v8, v8, 0x8
|
|
|
|
const v9, 0xff00
|
|
|
|
and-int/2addr v8, v9
|
|
|
|
add-int/2addr v3, v8
|
|
|
|
aget-byte v8, v0, v1
|
|
|
|
and-int/lit16 v8, v8, 0xff
|
|
|
|
add-int/2addr v3, v8
|
|
|
|
const/4 v8, 0x4
|
|
|
|
.line 4
|
|
aget-byte v10, v0, v8
|
|
|
|
shl-int/lit8 v10, v10, 0x18
|
|
|
|
and-int/2addr v4, v10
|
|
|
|
const/4 v10, 0x5
|
|
|
|
aget-byte v11, v0, v10
|
|
|
|
shl-int/lit8 v11, v11, 0x10
|
|
|
|
and-int/2addr v7, v11
|
|
|
|
add-int/2addr v4, v7
|
|
|
|
const/4 v7, 0x6
|
|
|
|
aget-byte v11, v0, v7
|
|
|
|
shl-int/lit8 v11, v11, 0x8
|
|
|
|
and-int/2addr v9, v11
|
|
|
|
add-int/2addr v4, v9
|
|
|
|
const/4 v9, 0x7
|
|
|
|
aget-byte v0, v0, v9
|
|
|
|
and-int/lit16 v0, v0, 0xff
|
|
|
|
add-int/2addr v4, v0
|
|
|
|
move v0, v2
|
|
|
|
.line 5
|
|
:goto_0
|
|
iget v9, p0, Lcom/appsflyer/internal/ca;->init:I
|
|
|
|
if-ge v0, v9, :cond_1
|
|
|
|
.line 6
|
|
sget-short v11, Lcom/appsflyer/internal/ca;->AFInAppEventParameterName:S
|
|
|
|
sub-int v12, v9, v0
|
|
|
|
mul-int/2addr v12, v11
|
|
|
|
add-int/2addr v12, v3
|
|
|
|
shl-int/lit8 v13, v3, 0x4
|
|
|
|
iget v14, p0, Lcom/appsflyer/internal/ca;->onAttributionFailureNative:I
|
|
|
|
add-int/2addr v13, v14
|
|
|
|
xor-int/2addr v12, v13
|
|
|
|
ushr-int/lit8 v13, v3, 0x5
|
|
|
|
iget v14, p0, Lcom/appsflyer/internal/ca;->onDeepLinkingNative:I
|
|
|
|
add-int/2addr v13, v14
|
|
|
|
xor-int/2addr v12, v13
|
|
|
|
sub-int/2addr v4, v12
|
|
|
|
sub-int/2addr v9, v0
|
|
|
|
mul-int/2addr v9, v11
|
|
|
|
add-int/2addr v9, v4
|
|
|
|
shl-int/lit8 v11, v4, 0x4
|
|
|
|
.line 7
|
|
iget v12, p0, Lcom/appsflyer/internal/ca;->AFLogger$LogLevel:I
|
|
|
|
add-int/2addr v11, v12
|
|
|
|
xor-int/2addr v9, v11
|
|
|
|
ushr-int/lit8 v11, v4, 0x5
|
|
|
|
iget v12, p0, Lcom/appsflyer/internal/ca;->onAppOpenAttributionNative:I
|
|
|
|
add-int/2addr v11, v12
|
|
|
|
xor-int/2addr v9, v11
|
|
|
|
sub-int/2addr v3, v9
|
|
|
|
add-int/lit8 v0, v0, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
.line 8
|
|
:cond_1
|
|
iget-object v0, p0, Lcom/appsflyer/internal/ca;->valueOf:[B
|
|
|
|
shr-int/lit8 v9, v3, 0x18
|
|
|
|
int-to-byte v9, v9
|
|
|
|
aput-byte v9, v0, v2
|
|
|
|
shr-int/lit8 v9, v3, 0x10
|
|
|
|
int-to-byte v9, v9
|
|
|
|
.line 9
|
|
aput-byte v9, v0, v5
|
|
|
|
shr-int/lit8 v5, v3, 0x8
|
|
|
|
int-to-byte v5, v5
|
|
|
|
.line 10
|
|
aput-byte v5, v0, v6
|
|
|
|
int-to-byte v3, v3
|
|
|
|
.line 11
|
|
aput-byte v3, v0, v1
|
|
|
|
shr-int/lit8 v3, v4, 0x18
|
|
|
|
int-to-byte v3, v3
|
|
|
|
.line 12
|
|
aput-byte v3, v0, v8
|
|
|
|
shr-int/lit8 v3, v4, 0x10
|
|
|
|
int-to-byte v3, v3
|
|
|
|
.line 13
|
|
aput-byte v3, v0, v10
|
|
|
|
shr-int/lit8 v3, v4, 0x8
|
|
|
|
int-to-byte v3, v3
|
|
|
|
.line 14
|
|
aput-byte v3, v0, v7
|
|
|
|
int-to-byte v3, v4
|
|
|
|
const/4 v4, 0x7
|
|
|
|
.line 15
|
|
aput-byte v3, v0, v4
|
|
|
|
.line 16
|
|
iget v0, p0, Lcom/appsflyer/internal/ca;->AppsFlyer2dXConversionCallback:I
|
|
|
|
if-ne v0, v1, :cond_3
|
|
|
|
const/16 v0, 0x8
|
|
|
|
move v1, v2
|
|
|
|
:goto_1
|
|
if-ge v1, v0, :cond_2
|
|
|
|
.line 17
|
|
iget-object v3, p0, Lcom/appsflyer/internal/ca;->valueOf:[B
|
|
|
|
aget-byte v4, v3, v1
|
|
|
|
iget-object v5, p0, Lcom/appsflyer/internal/ca;->values:[B
|
|
|
|
aget-byte v5, v5, v1
|
|
|
|
xor-int/2addr v4, v5
|
|
|
|
int-to-byte v4, v4
|
|
|
|
aput-byte v4, v3, v1
|
|
|
|
add-int/lit8 v1, v1, 0x1
|
|
|
|
goto :goto_1
|
|
|
|
.line 18
|
|
:cond_2
|
|
iget-object v0, p0, Lcom/appsflyer/internal/ca;->AFInAppEventType:[B
|
|
|
|
iget-object v1, p0, Lcom/appsflyer/internal/ca;->values:[B
|
|
|
|
array-length v3, v0
|
|
|
|
invoke-static {v0, v2, v1, v2, v3}, Ljava/lang/System;->arraycopy(Ljava/lang/Object;ILjava/lang/Object;II)V
|
|
|
|
:cond_3
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public final available()I
|
|
.locals 2
|
|
.annotation system Ldalvik/annotation/Throws;
|
|
value = {
|
|
Ljava/io/IOException;
|
|
}
|
|
.end annotation
|
|
|
|
.line 1
|
|
invoke-direct {p0}, Lcom/appsflyer/internal/ca;->valueOf()I
|
|
|
|
.line 2
|
|
iget v0, p0, Lcom/appsflyer/internal/ca;->getLevel:I
|
|
|
|
iget v1, p0, Lcom/appsflyer/internal/ca;->AFKeystoreWrapper:I
|
|
|
|
sub-int/2addr v0, v1
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public final markSupported()Z
|
|
.locals 1
|
|
|
|
const/4 v0, 0x0
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public final read()I
|
|
.locals 3
|
|
.annotation system Ldalvik/annotation/Throws;
|
|
value = {
|
|
Ljava/io/IOException;
|
|
}
|
|
.end annotation
|
|
|
|
.line 1
|
|
invoke-direct {p0}, Lcom/appsflyer/internal/ca;->valueOf()I
|
|
|
|
.line 2
|
|
iget v0, p0, Lcom/appsflyer/internal/ca;->AFKeystoreWrapper:I
|
|
|
|
iget v1, p0, Lcom/appsflyer/internal/ca;->getLevel:I
|
|
|
|
if-lt v0, v1, :cond_0
|
|
|
|
const/4 v0, -0x1
|
|
|
|
return v0
|
|
|
|
.line 3
|
|
:cond_0
|
|
iget-object v1, p0, Lcom/appsflyer/internal/ca;->valueOf:[B
|
|
|
|
add-int/lit8 v2, v0, 0x1
|
|
|
|
iput v2, p0, Lcom/appsflyer/internal/ca;->AFKeystoreWrapper:I
|
|
|
|
aget-byte v0, v1, v0
|
|
|
|
and-int/lit16 v0, v0, 0xff
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public final read([BII)I
|
|
.locals 6
|
|
.annotation system Ldalvik/annotation/Throws;
|
|
value = {
|
|
Ljava/io/IOException;
|
|
}
|
|
.end annotation
|
|
|
|
add-int v0, p2, p3
|
|
|
|
move v1, p2
|
|
|
|
:goto_0
|
|
if-ge v1, v0, :cond_2
|
|
|
|
.line 4
|
|
invoke-direct {p0}, Lcom/appsflyer/internal/ca;->valueOf()I
|
|
|
|
.line 5
|
|
iget v2, p0, Lcom/appsflyer/internal/ca;->AFKeystoreWrapper:I
|
|
|
|
iget v3, p0, Lcom/appsflyer/internal/ca;->getLevel:I
|
|
|
|
if-lt v2, v3, :cond_1
|
|
|
|
if-ne v1, p2, :cond_0
|
|
|
|
const/4 p1, -0x1
|
|
|
|
return p1
|
|
|
|
:cond_0
|
|
sub-int/2addr v0, v1
|
|
|
|
sub-int/2addr p3, v0
|
|
|
|
return p3
|
|
|
|
:cond_1
|
|
add-int/lit8 v3, v1, 0x1
|
|
|
|
.line 6
|
|
iget-object v4, p0, Lcom/appsflyer/internal/ca;->valueOf:[B
|
|
|
|
add-int/lit8 v5, v2, 0x1
|
|
|
|
iput v5, p0, Lcom/appsflyer/internal/ca;->AFKeystoreWrapper:I
|
|
|
|
aget-byte v2, v4, v2
|
|
|
|
aput-byte v2, p1, v1
|
|
|
|
move v1, v3
|
|
|
|
goto :goto_0
|
|
|
|
:cond_2
|
|
return p3
|
|
.end method
|
|
|
|
.method public final skip(J)J
|
|
.locals 4
|
|
.annotation system Ldalvik/annotation/Throws;
|
|
value = {
|
|
Ljava/io/IOException;
|
|
}
|
|
.end annotation
|
|
|
|
const-wide/16 v0, 0x0
|
|
|
|
:goto_0
|
|
cmp-long v2, v0, p1
|
|
|
|
if-gez v2, :cond_0
|
|
|
|
.line 1
|
|
invoke-virtual {p0}, Lcom/appsflyer/internal/ca;->read()I
|
|
|
|
move-result v2
|
|
|
|
const/4 v3, -0x1
|
|
|
|
if-eq v2, v3, :cond_0
|
|
|
|
const-wide/16 v2, 0x1
|
|
|
|
add-long/2addr v0, v2
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
return-wide v0
|
|
.end method
|