XploitSPY/app/factory/decompiled/smali/c/u.smali

294 lines
6.1 KiB
Smali
Raw Normal View History

2020-03-24 03:54:23 +08:00
.class public final Lc/u;
.super Ljava/lang/Object;
2020-01-11 23:35:37 +08:00
.source ""
# instance fields
2020-03-24 03:54:23 +08:00
.field private final a:Lc/K;
.field private final b:Lc/i;
.field private final c:Ljava/util/List;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/List<",
"Ljava/security/cert/Certificate;",
">;"
}
.end annotation
.end field
.field private final d:Ljava/util/List;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/List<",
"Ljava/security/cert/Certificate;",
">;"
}
.end annotation
.end field
2020-01-11 23:35:37 +08:00
# direct methods
2020-03-24 03:54:23 +08:00
.method private constructor <init>(Lc/K;Lc/i;Ljava/util/List;Ljava/util/List;)V
.locals 0
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lc/K;",
"Lc/i;",
"Ljava/util/List<",
"Ljava/security/cert/Certificate;",
">;",
"Ljava/util/List<",
"Ljava/security/cert/Certificate;",
">;)V"
}
.end annotation
2020-01-11 23:35:37 +08:00
2020-03-24 03:54:23 +08:00
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
2020-01-11 23:35:37 +08:00
2020-03-24 03:54:23 +08:00
iput-object p1, p0, Lc/u;->a:Lc/K;
2020-01-11 23:35:37 +08:00
2020-03-24 03:54:23 +08:00
iput-object p2, p0, Lc/u;->b:Lc/i;
2020-01-11 23:35:37 +08:00
2020-03-24 03:54:23 +08:00
iput-object p3, p0, Lc/u;->c:Ljava/util/List;
2020-01-11 23:35:37 +08:00
2020-03-24 03:54:23 +08:00
iput-object p4, p0, Lc/u;->d:Ljava/util/List;
2020-01-11 23:35:37 +08:00
return-void
.end method
2020-03-24 03:54:23 +08:00
.method public static a(Ljavax/net/ssl/SSLSession;)Lc/u;
.locals 4
2020-01-11 23:35:37 +08:00
2020-03-24 03:54:23 +08:00
invoke-interface {p0}, Ljavax/net/ssl/SSLSession;->getCipherSuite()Ljava/lang/String;
2020-01-11 23:35:37 +08:00
2020-03-24 03:54:23 +08:00
move-result-object v0
2020-01-11 23:35:37 +08:00
2020-03-24 03:54:23 +08:00
if-eqz v0, :cond_3
2020-01-11 23:35:37 +08:00
2020-03-24 03:54:23 +08:00
invoke-static {v0}, Lc/i;->a(Ljava/lang/String;)Lc/i;
2020-01-11 23:35:37 +08:00
2020-03-24 03:54:23 +08:00
move-result-object v0
2020-01-11 23:35:37 +08:00
2020-03-24 03:54:23 +08:00
invoke-interface {p0}, Ljavax/net/ssl/SSLSession;->getProtocol()Ljava/lang/String;
2020-01-11 23:35:37 +08:00
move-result-object v1
2020-03-24 03:54:23 +08:00
if-eqz v1, :cond_2
2020-01-11 23:35:37 +08:00
2020-03-24 03:54:23 +08:00
invoke-static {v1}, Lc/K;->a(Ljava/lang/String;)Lc/K;
2020-01-11 23:35:37 +08:00
2020-03-24 03:54:23 +08:00
move-result-object v1
2020-01-11 23:35:37 +08:00
2020-03-24 03:54:23 +08:00
:try_start_0
invoke-interface {p0}, Ljavax/net/ssl/SSLSession;->getPeerCertificates()[Ljava/security/cert/Certificate;
2020-01-11 23:35:37 +08:00
2020-03-24 03:54:23 +08:00
move-result-object v2
:try_end_0
.catch Ljavax/net/ssl/SSLPeerUnverifiedException; {:try_start_0 .. :try_end_0} :catch_0
2020-01-11 23:35:37 +08:00
goto :goto_0
2020-03-24 03:54:23 +08:00
:catch_0
2020-01-11 23:35:37 +08:00
const/4 v2, 0x0
:goto_0
2020-03-24 03:54:23 +08:00
if-eqz v2, :cond_0
2020-01-11 23:35:37 +08:00
2020-03-24 03:54:23 +08:00
invoke-static {v2}, Lc/a/d;->a([Ljava/lang/Object;)Ljava/util/List;
2020-01-11 23:35:37 +08:00
2020-03-24 03:54:23 +08:00
move-result-object v2
2020-01-11 23:35:37 +08:00
goto :goto_1
:cond_0
2020-03-24 03:54:23 +08:00
invoke-static {}, Ljava/util/Collections;->emptyList()Ljava/util/List;
2020-01-11 23:35:37 +08:00
2020-03-24 03:54:23 +08:00
move-result-object v2
2020-01-11 23:35:37 +08:00
:goto_1
2020-03-24 03:54:23 +08:00
invoke-interface {p0}, Ljavax/net/ssl/SSLSession;->getLocalCertificates()[Ljava/security/cert/Certificate;
2020-01-11 23:35:37 +08:00
2020-03-24 03:54:23 +08:00
move-result-object p0
2020-01-11 23:35:37 +08:00
2020-03-24 03:54:23 +08:00
if-eqz p0, :cond_1
2020-01-11 23:35:37 +08:00
2020-03-24 03:54:23 +08:00
invoke-static {p0}, Lc/a/d;->a([Ljava/lang/Object;)Ljava/util/List;
2020-01-11 23:35:37 +08:00
2020-03-24 03:54:23 +08:00
move-result-object p0
2020-01-11 23:35:37 +08:00
goto :goto_2
:cond_1
2020-03-24 03:54:23 +08:00
invoke-static {}, Ljava/util/Collections;->emptyList()Ljava/util/List;
2020-01-11 23:35:37 +08:00
2020-03-24 03:54:23 +08:00
move-result-object p0
2020-01-11 23:35:37 +08:00
:goto_2
2020-03-24 03:54:23 +08:00
new-instance v3, Lc/u;
2020-01-11 23:35:37 +08:00
2020-03-24 03:54:23 +08:00
invoke-direct {v3, v1, v0, v2, p0}, Lc/u;-><init>(Lc/K;Lc/i;Ljava/util/List;Ljava/util/List;)V
2020-01-11 23:35:37 +08:00
2020-03-24 03:54:23 +08:00
return-object v3
2020-01-11 23:35:37 +08:00
:cond_2
2020-03-24 03:54:23 +08:00
new-instance p0, Ljava/lang/IllegalStateException;
2020-01-11 23:35:37 +08:00
2020-03-24 03:54:23 +08:00
const-string v0, "tlsVersion == null"
2020-01-11 23:35:37 +08:00
2020-03-24 03:54:23 +08:00
invoke-direct {p0, v0}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
2020-01-11 23:35:37 +08:00
2020-03-24 03:54:23 +08:00
throw p0
2020-01-11 23:35:37 +08:00
:cond_3
2020-03-24 03:54:23 +08:00
new-instance p0, Ljava/lang/IllegalStateException;
2020-01-11 23:35:37 +08:00
2020-03-24 03:54:23 +08:00
const-string v0, "cipherSuite == null"
2020-01-11 23:35:37 +08:00
2020-03-24 03:54:23 +08:00
invoke-direct {p0, v0}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
2020-01-11 23:35:37 +08:00
2020-03-24 03:54:23 +08:00
throw p0
2020-01-11 23:35:37 +08:00
.end method
2020-03-24 03:54:23 +08:00
# virtual methods
.method public a()Lc/i;
.locals 1
2020-01-11 23:35:37 +08:00
2020-03-24 03:54:23 +08:00
iget-object v0, p0, Lc/u;->b:Lc/i;
2020-01-11 23:35:37 +08:00
return-object v0
.end method
2020-03-24 03:54:23 +08:00
.method public b()Ljava/util/List;
2020-01-11 23:35:37 +08:00
.locals 1
2020-03-24 03:54:23 +08:00
.annotation system Ldalvik/annotation/Signature;
value = {
"()",
"Ljava/util/List<",
"Ljava/security/cert/Certificate;",
">;"
}
.end annotation
2020-01-11 23:35:37 +08:00
2020-03-24 03:54:23 +08:00
iget-object v0, p0, Lc/u;->c:Ljava/util/List;
2020-01-11 23:35:37 +08:00
return-object v0
.end method
2020-03-24 03:54:23 +08:00
.method public equals(Ljava/lang/Object;)Z
.locals 3
2020-01-11 23:35:37 +08:00
2020-03-24 03:54:23 +08:00
instance-of v0, p1, Lc/u;
2020-01-11 23:35:37 +08:00
2020-03-24 03:54:23 +08:00
const/4 v1, 0x0
2020-01-11 23:35:37 +08:00
2020-03-24 03:54:23 +08:00
if-nez v0, :cond_0
2020-01-11 23:35:37 +08:00
2020-03-24 03:54:23 +08:00
return v1
2020-01-11 23:35:37 +08:00
2020-03-24 03:54:23 +08:00
:cond_0
check-cast p1, Lc/u;
2020-01-11 23:35:37 +08:00
2020-03-24 03:54:23 +08:00
iget-object v0, p0, Lc/u;->b:Lc/i;
2020-01-11 23:35:37 +08:00
2020-03-24 03:54:23 +08:00
iget-object v2, p1, Lc/u;->b:Lc/i;
2020-01-11 23:35:37 +08:00
2020-03-24 03:54:23 +08:00
invoke-static {v0, v2}, Lc/a/d;->a(Ljava/lang/Object;Ljava/lang/Object;)Z
2020-01-11 23:35:37 +08:00
2020-03-24 03:54:23 +08:00
move-result v0
2020-01-11 23:35:37 +08:00
2020-03-24 03:54:23 +08:00
if-eqz v0, :cond_1
2020-01-11 23:35:37 +08:00
2020-03-24 03:54:23 +08:00
iget-object v0, p0, Lc/u;->b:Lc/i;
2020-01-11 23:35:37 +08:00
2020-03-24 03:54:23 +08:00
iget-object v2, p1, Lc/u;->b:Lc/i;
invoke-virtual {v0, v2}, Ljava/lang/Object;->equals(Ljava/lang/Object;)Z
2020-01-11 23:35:37 +08:00
2020-03-24 03:54:23 +08:00
move-result v0
2020-01-11 23:35:37 +08:00
2020-03-24 03:54:23 +08:00
if-eqz v0, :cond_1
2020-01-11 23:35:37 +08:00
2020-03-24 03:54:23 +08:00
iget-object v0, p0, Lc/u;->c:Ljava/util/List;
2020-01-11 23:35:37 +08:00
2020-03-24 03:54:23 +08:00
iget-object v2, p1, Lc/u;->c:Ljava/util/List;
2020-01-11 23:35:37 +08:00
2020-03-24 03:54:23 +08:00
invoke-interface {v0, v2}, Ljava/util/List;->equals(Ljava/lang/Object;)Z
2020-01-11 23:35:37 +08:00
2020-03-24 03:54:23 +08:00
move-result v0
2020-01-11 23:35:37 +08:00
2020-03-24 03:54:23 +08:00
if-eqz v0, :cond_1
2020-01-11 23:35:37 +08:00
2020-03-24 03:54:23 +08:00
iget-object v0, p0, Lc/u;->d:Ljava/util/List;
2020-01-11 23:35:37 +08:00
2020-03-24 03:54:23 +08:00
iget-object p1, p1, Lc/u;->d:Ljava/util/List;
2020-01-11 23:35:37 +08:00
2020-03-24 03:54:23 +08:00
invoke-interface {v0, p1}, Ljava/util/List;->equals(Ljava/lang/Object;)Z
2020-01-11 23:35:37 +08:00
move-result p1
if-eqz p1, :cond_1
2020-03-24 03:54:23 +08:00
const/4 v1, 0x1
2020-01-11 23:35:37 +08:00
:cond_1
2020-03-24 03:54:23 +08:00
return v1
2020-01-11 23:35:37 +08:00
.end method
.method public hashCode()I
2020-03-24 03:54:23 +08:00
.locals 2
2020-01-11 23:35:37 +08:00
2020-03-24 03:54:23 +08:00
iget-object v0, p0, Lc/u;->a:Lc/K;
2020-01-11 23:35:37 +08:00
if-eqz v0, :cond_0
2020-03-24 03:54:23 +08:00
invoke-virtual {v0}, Ljava/lang/Enum;->hashCode()I
2020-01-11 23:35:37 +08:00
2020-03-24 03:54:23 +08:00
move-result v0
2020-01-11 23:35:37 +08:00
2020-03-24 03:54:23 +08:00
goto :goto_0
2020-01-11 23:35:37 +08:00
2020-03-24 03:54:23 +08:00
:cond_0
const/4 v0, 0x0
2020-01-11 23:35:37 +08:00
:goto_0
2020-03-24 03:54:23 +08:00
const/16 v1, 0x20f
2020-01-11 23:35:37 +08:00
2020-03-24 03:54:23 +08:00
add-int/2addr v1, v0
2020-01-11 23:35:37 +08:00
2020-03-24 03:54:23 +08:00
mul-int/lit8 v1, v1, 0x1f
2020-01-11 23:35:37 +08:00
2020-03-24 03:54:23 +08:00
iget-object v0, p0, Lc/u;->b:Lc/i;
2020-01-11 23:35:37 +08:00
2020-03-24 03:54:23 +08:00
invoke-virtual {v0}, Ljava/lang/Object;->hashCode()I
2020-01-11 23:35:37 +08:00
2020-03-24 03:54:23 +08:00
move-result v0
2020-01-11 23:35:37 +08:00
2020-03-24 03:54:23 +08:00
add-int/2addr v1, v0
2020-01-11 23:35:37 +08:00
2020-03-24 03:54:23 +08:00
mul-int/lit8 v1, v1, 0x1f
2020-01-11 23:35:37 +08:00
2020-03-24 03:54:23 +08:00
iget-object v0, p0, Lc/u;->c:Ljava/util/List;
2020-01-11 23:35:37 +08:00
2020-03-24 03:54:23 +08:00
invoke-interface {v0}, Ljava/util/List;->hashCode()I
2020-01-11 23:35:37 +08:00
2020-03-24 03:54:23 +08:00
move-result v0
2020-01-11 23:35:37 +08:00
2020-03-24 03:54:23 +08:00
add-int/2addr v1, v0
2020-01-11 23:35:37 +08:00
2020-03-24 03:54:23 +08:00
mul-int/lit8 v1, v1, 0x1f
2020-01-11 23:35:37 +08:00
2020-03-24 03:54:23 +08:00
iget-object v0, p0, Lc/u;->d:Ljava/util/List;
2020-01-11 23:35:37 +08:00
2020-03-24 03:54:23 +08:00
invoke-interface {v0}, Ljava/util/List;->hashCode()I
2020-01-11 23:35:37 +08:00
2020-03-24 03:54:23 +08:00
move-result v0
2020-01-11 23:35:37 +08:00
2020-03-24 03:54:23 +08:00
add-int/2addr v1, v0
2020-01-11 23:35:37 +08:00
2020-03-24 03:54:23 +08:00
return v1
2020-01-11 23:35:37 +08:00
.end method