apkfuckery/com.discord/smali/com/franmontiel/persistentcookiejar/persistence/SerializableCookie.smali

673 lines
16 KiB
Smali
Raw Normal View History

2019-02-04 20:05:16 +00:00
.class public Lcom/franmontiel/persistentcookiejar/persistence/SerializableCookie;
.super Ljava/lang/Object;
2019-02-04 20:29:01 +00:00
.source "SerializableCookie.java"
2019-02-04 20:05:16 +00:00
# interfaces
.implements Ljava/io/Serializable;
# static fields
2019-02-04 20:08:30 +00:00
.field private static final TAG:Ljava/lang/String; = "SerializableCookie"
2019-02-04 20:05:16 +00:00
2019-04-03 00:06:05 +00:00
.field private static Yf:J = -0x1L
2019-02-04 20:05:16 +00:00
.field private static final serialVersionUID:J = -0x77442f0b309f5e9eL
# instance fields
2019-04-03 00:06:05 +00:00
.field private transient Yb:Lokhttp3/l;
2019-02-04 20:05:16 +00:00
# direct methods
.method static constructor <clinit>()V
2019-02-04 20:08:30 +00:00
.locals 0
2019-02-04 20:05:16 +00:00
return-void
.end method
.method public constructor <init>()V
.locals 0
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
2019-02-17 02:24:41 +00:00
.method public static aF(Ljava/lang/String;)Lokhttp3/l;
2019-02-04 20:05:16 +00:00
.locals 7
2019-02-04 20:08:30 +00:00
invoke-virtual {p0}, Ljava/lang/String;->length()I
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
move-result v0
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
div-int/lit8 v1, v0, 0x2
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
new-array v1, v1, [B
2019-02-04 20:05:16 +00:00
const/4 v2, 0x0
:goto_0
2019-02-04 20:08:30 +00:00
if-ge v2, v0, :cond_0
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
div-int/lit8 v3, v2, 0x2
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
invoke-virtual {p0, v2}, Ljava/lang/String;->charAt(I)C
move-result v4
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
const/16 v5, 0x10
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
invoke-static {v4, v5}, Ljava/lang/Character;->digit(CI)I
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
move-result v4
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
shl-int/lit8 v4, v4, 0x4
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
add-int/lit8 v6, v2, 0x1
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
invoke-virtual {p0, v6}, Ljava/lang/String;->charAt(I)C
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
move-result v6
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
invoke-static {v6, v5}, Ljava/lang/Character;->digit(CI)I
move-result v5
add-int/2addr v4, v5
int-to-byte v4, v4
aput-byte v4, v1, v3
add-int/lit8 v2, v2, 0x2
2019-02-04 20:05:16 +00:00
goto :goto_0
2019-02-04 20:08:30 +00:00
:cond_0
new-instance p0, Ljava/io/ByteArrayInputStream;
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
invoke-direct {p0, v1}, Ljava/io/ByteArrayInputStream;-><init>([B)V
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
const/4 v0, 0x0
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
:try_start_0
new-instance v1, Ljava/io/ObjectInputStream;
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
invoke-direct {v1, p0}, Ljava/io/ObjectInputStream;-><init>(Ljava/io/InputStream;)V
:try_end_0
.catch Ljava/io/IOException; {:try_start_0 .. :try_end_0} :catch_4
.catch Ljava/lang/ClassNotFoundException; {:try_start_0 .. :try_end_0} :catch_3
.catchall {:try_start_0 .. :try_end_0} :catchall_0
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
:try_start_1
invoke-virtual {v1}, Ljava/io/ObjectInputStream;->readObject()Ljava/lang/Object;
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
move-result-object p0
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
check-cast p0, Lcom/franmontiel/persistentcookiejar/persistence/SerializableCookie;
2019-02-04 20:05:16 +00:00
2019-04-03 00:06:05 +00:00
iget-object v0, p0, Lcom/franmontiel/persistentcookiejar/persistence/SerializableCookie;->Yb:Lokhttp3/l;
2019-02-04 20:08:30 +00:00
:try_end_1
.catch Ljava/io/IOException; {:try_start_1 .. :try_end_1} :catch_2
.catch Ljava/lang/ClassNotFoundException; {:try_start_1 .. :try_end_1} :catch_1
.catchall {:try_start_1 .. :try_end_1} :catchall_1
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
:try_start_2
invoke-virtual {v1}, Ljava/io/ObjectInputStream;->close()V
:try_end_2
.catch Ljava/io/IOException; {:try_start_2 .. :try_end_2} :catch_0
2019-02-04 20:05:16 +00:00
2019-02-04 20:29:01 +00:00
goto :goto_3
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
:catch_0
2019-02-04 20:29:01 +00:00
move-exception p0
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
sget-object v1, Lcom/franmontiel/persistentcookiejar/persistence/SerializableCookie;->TAG:Ljava/lang/String;
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
const-string v2, "Stream not closed in decodeCookie"
2019-02-04 20:05:16 +00:00
2019-02-04 20:29:01 +00:00
invoke-static {v1, v2, p0}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)I
2019-02-04 20:05:16 +00:00
2019-02-04 20:29:01 +00:00
goto :goto_3
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
:catch_1
move-exception p0
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
goto :goto_1
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
:catch_2
move-exception p0
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
goto :goto_2
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
:catchall_0
move-exception p0
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
move-object v1, v0
2019-02-04 20:05:16 +00:00
2019-02-04 20:29:01 +00:00
goto :goto_4
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
:catch_3
move-exception p0
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
move-object v1, v0
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
:goto_1
:try_start_3
sget-object v2, Lcom/franmontiel/persistentcookiejar/persistence/SerializableCookie;->TAG:Ljava/lang/String;
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
const-string v3, "ClassNotFoundException in decodeCookie"
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
invoke-static {v2, v3, p0}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)I
:try_end_3
.catchall {:try_start_3 .. :try_end_3} :catchall_1
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
if-eqz v1, :cond_1
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
:try_start_4
invoke-virtual {v1}, Ljava/io/ObjectInputStream;->close()V
:try_end_4
2019-02-04 20:29:01 +00:00
.catch Ljava/io/IOException; {:try_start_4 .. :try_end_4} :catch_0
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
goto :goto_3
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
:catch_4
move-exception p0
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
move-object v1, v0
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
:goto_2
:try_start_5
sget-object v2, Lcom/franmontiel/persistentcookiejar/persistence/SerializableCookie;->TAG:Ljava/lang/String;
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
const-string v3, "IOException in decodeCookie"
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
invoke-static {v2, v3, p0}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)I
:try_end_5
.catchall {:try_start_5 .. :try_end_5} :catchall_1
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
if-eqz v1, :cond_1
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
:try_start_6
invoke-virtual {v1}, Ljava/io/ObjectInputStream;->close()V
:try_end_6
2019-02-04 20:29:01 +00:00
.catch Ljava/io/IOException; {:try_start_6 .. :try_end_6} :catch_0
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
:cond_1
:goto_3
2019-02-04 20:29:01 +00:00
return-object v0
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
:catchall_1
move-exception p0
2019-02-04 20:05:16 +00:00
2019-02-04 20:29:01 +00:00
:goto_4
2019-02-04 20:08:30 +00:00
if-eqz v1, :cond_2
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
:try_start_7
invoke-virtual {v1}, Ljava/io/ObjectInputStream;->close()V
:try_end_7
2019-02-04 20:29:01 +00:00
.catch Ljava/io/IOException; {:try_start_7 .. :try_end_7} :catch_5
2019-02-04 20:05:16 +00:00
2019-02-04 20:29:01 +00:00
goto :goto_5
2019-02-04 20:05:16 +00:00
2019-02-04 20:29:01 +00:00
:catch_5
2019-02-04 20:08:30 +00:00
move-exception v0
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
sget-object v1, Lcom/franmontiel/persistentcookiejar/persistence/SerializableCookie;->TAG:Ljava/lang/String;
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
const-string v2, "Stream not closed in decodeCookie"
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
invoke-static {v1, v2, v0}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)I
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
:cond_2
2019-02-04 20:29:01 +00:00
:goto_5
2019-02-04 20:08:30 +00:00
throw p0
2019-02-04 20:29:01 +00:00
return-void
2019-02-04 20:08:30 +00:00
.end method
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
.method private static h([B)Ljava/lang/String;
.locals 5
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
new-instance v0, Ljava/lang/StringBuilder;
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
array-length v1, p0
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
mul-int/lit8 v1, v1, 0x2
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
invoke-direct {v0, v1}, Ljava/lang/StringBuilder;-><init>(I)V
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
array-length v1, p0
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
const/4 v2, 0x0
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
:goto_0
if-ge v2, v1, :cond_1
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
aget-byte v3, p0, v2
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
and-int/lit16 v3, v3, 0xff
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
const/16 v4, 0x10
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
if-ge v3, v4, :cond_0
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
const/16 v4, 0x30
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
invoke-virtual {v0, v4}, Ljava/lang/StringBuilder;->append(C)Ljava/lang/StringBuilder;
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
:cond_0
invoke-static {v3}, Ljava/lang/Integer;->toHexString(I)Ljava/lang/String;
move-result-object v3
invoke-virtual {v0, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
add-int/lit8 v2, v2, 0x1
goto :goto_0
:cond_1
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object p0
return-object p0
2019-02-04 20:05:16 +00:00
.end method
2019-02-04 20:08:30 +00:00
.method private readObject(Ljava/io/ObjectInputStream;)V
2019-02-27 21:13:14 +00:00
.locals 7
2019-02-04 20:05:16 +00:00
.annotation system Ldalvik/annotation/Throws;
value = {
2019-02-04 20:08:30 +00:00
Ljava/io/IOException;,
Ljava/lang/ClassNotFoundException;
2019-02-04 20:05:16 +00:00
}
.end annotation
2019-02-04 20:08:30 +00:00
new-instance v0, Lokhttp3/l$a;
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
invoke-direct {v0}, Lokhttp3/l$a;-><init>()V
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
invoke-virtual {p1}, Ljava/io/ObjectInputStream;->readObject()Ljava/lang/Object;
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
move-result-object v1
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
check-cast v1, Ljava/lang/String;
2019-02-04 20:05:16 +00:00
2019-02-27 21:13:14 +00:00
if-eqz v1, :cond_a
invoke-virtual {v1}, Ljava/lang/String;->trim()Ljava/lang/String;
move-result-object v2
invoke-virtual {v2, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result v2
if-eqz v2, :cond_9
iput-object v1, v0, Lokhttp3/l$a;->name:Ljava/lang/String;
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
invoke-virtual {p1}, Ljava/io/ObjectInputStream;->readObject()Ljava/lang/Object;
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
move-result-object v1
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
check-cast v1, Ljava/lang/String;
2019-02-04 20:05:16 +00:00
2019-02-27 21:13:14 +00:00
if-eqz v1, :cond_8
invoke-virtual {v1}, Ljava/lang/String;->trim()Ljava/lang/String;
move-result-object v2
invoke-virtual {v2, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result v2
if-eqz v2, :cond_7
iput-object v1, v0, Lokhttp3/l$a;->value:Ljava/lang/String;
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
invoke-virtual {p1}, Ljava/io/ObjectInputStream;->readLong()J
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
move-result-wide v1
2019-02-04 20:05:16 +00:00
2019-04-03 00:06:05 +00:00
sget-wide v3, Lcom/franmontiel/persistentcookiejar/persistence/SerializableCookie;->Yf:J
2019-02-04 20:05:16 +00:00
2019-02-27 21:13:14 +00:00
const/4 v5, 0x1
cmp-long v6, v1, v3
2019-02-04 20:05:16 +00:00
2019-02-27 21:13:14 +00:00
if-eqz v6, :cond_2
2019-02-04 20:05:16 +00:00
2019-02-27 21:13:14 +00:00
const-wide/16 v3, 0x0
cmp-long v6, v1, v3
if-gtz v6, :cond_0
const-wide/high16 v1, -0x8000000000000000L
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
:cond_0
2019-02-27 21:13:14 +00:00
const-wide v3, 0xe677d21fdbffL
cmp-long v6, v1, v3
if-lez v6, :cond_1
move-wide v1, v3
:cond_1
2019-04-03 00:06:05 +00:00
iput-wide v1, v0, Lokhttp3/l$a;->bmA:J
2019-02-27 21:13:14 +00:00
2019-04-03 00:06:05 +00:00
iput-boolean v5, v0, Lokhttp3/l$a;->bmE:Z
2019-02-27 21:13:14 +00:00
:cond_2
2019-02-04 20:08:30 +00:00
invoke-virtual {p1}, Ljava/io/ObjectInputStream;->readObject()Ljava/lang/Object;
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
move-result-object v1
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
check-cast v1, Ljava/lang/String;
2019-02-04 20:05:16 +00:00
2019-02-27 21:13:14 +00:00
const/4 v2, 0x0
2019-04-03 19:10:53 +00:00
invoke-virtual {v0, v1, v2}, Lokhttp3/l$a;->g(Ljava/lang/String;Z)Lokhttp3/l$a;
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
invoke-virtual {p1}, Ljava/io/ObjectInputStream;->readObject()Ljava/lang/Object;
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
move-result-object v2
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
check-cast v2, Ljava/lang/String;
2019-02-04 20:05:16 +00:00
2019-02-27 21:13:14 +00:00
const-string v3, "/"
invoke-virtual {v2, v3}, Ljava/lang/String;->startsWith(Ljava/lang/String;)Z
move-result v3
if-eqz v3, :cond_6
iput-object v2, v0, Lokhttp3/l$a;->path:Ljava/lang/String;
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
invoke-virtual {p1}, Ljava/io/ObjectInputStream;->readBoolean()Z
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
move-result v2
2019-02-04 20:05:16 +00:00
2019-02-27 21:13:14 +00:00
if-eqz v2, :cond_3
2019-02-04 20:05:16 +00:00
2019-04-03 00:06:05 +00:00
iput-boolean v5, v0, Lokhttp3/l$a;->bmC:Z
2019-02-04 20:05:16 +00:00
2019-02-27 21:13:14 +00:00
:cond_3
2019-02-04 20:08:30 +00:00
invoke-virtual {p1}, Ljava/io/ObjectInputStream;->readBoolean()Z
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
move-result v2
2019-02-04 20:05:16 +00:00
2019-02-27 21:13:14 +00:00
if-eqz v2, :cond_4
2019-02-04 20:05:16 +00:00
2019-04-03 00:06:05 +00:00
iput-boolean v5, v0, Lokhttp3/l$a;->bmD:Z
2019-02-04 20:05:16 +00:00
2019-02-27 21:13:14 +00:00
:cond_4
2019-02-04 20:08:30 +00:00
invoke-virtual {p1}, Ljava/io/ObjectInputStream;->readBoolean()Z
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
move-result p1
2019-02-04 20:05:16 +00:00
2019-02-27 21:13:14 +00:00
if-eqz p1, :cond_5
2019-02-04 20:05:16 +00:00
2019-04-03 19:10:53 +00:00
invoke-virtual {v0, v1, v5}, Lokhttp3/l$a;->g(Ljava/lang/String;Z)Lokhttp3/l$a;
2019-02-04 20:05:16 +00:00
2019-02-27 21:13:14 +00:00
:cond_5
new-instance p1, Lokhttp3/l;
2019-02-04 20:05:16 +00:00
2019-02-27 21:13:14 +00:00
invoke-direct {p1, v0}, Lokhttp3/l;-><init>(Lokhttp3/l$a;)V
2019-02-04 20:05:16 +00:00
2019-04-03 00:06:05 +00:00
iput-object p1, p0, Lcom/franmontiel/persistentcookiejar/persistence/SerializableCookie;->Yb:Lokhttp3/l;
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
return-void
2019-02-27 21:13:14 +00:00
:cond_6
new-instance p1, Ljava/lang/IllegalArgumentException;
const-string v0, "path must start with \'/\'"
invoke-direct {p1, v0}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
throw p1
:cond_7
new-instance p1, Ljava/lang/IllegalArgumentException;
const-string v0, "value is not trimmed"
invoke-direct {p1, v0}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
throw p1
:cond_8
new-instance p1, Ljava/lang/NullPointerException;
const-string v0, "value == null"
invoke-direct {p1, v0}, Ljava/lang/NullPointerException;-><init>(Ljava/lang/String;)V
throw p1
:cond_9
new-instance p1, Ljava/lang/IllegalArgumentException;
const-string v0, "name is not trimmed"
invoke-direct {p1, v0}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
throw p1
:cond_a
new-instance p1, Ljava/lang/NullPointerException;
const-string v0, "name == null"
invoke-direct {p1, v0}, Ljava/lang/NullPointerException;-><init>(Ljava/lang/String;)V
throw p1
2019-02-04 20:08:30 +00:00
.end method
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
.method private writeObject(Ljava/io/ObjectOutputStream;)V
.locals 2
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
2019-02-04 20:05:16 +00:00
2019-04-03 00:06:05 +00:00
iget-object v0, p0, Lcom/franmontiel/persistentcookiejar/persistence/SerializableCookie;->Yb:Lokhttp3/l;
2019-02-04 20:05:16 +00:00
2019-02-27 21:13:14 +00:00
iget-object v0, v0, Lokhttp3/l;->name:Ljava/lang/String;
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
invoke-virtual {p1, v0}, Ljava/io/ObjectOutputStream;->writeObject(Ljava/lang/Object;)V
2019-02-04 20:05:16 +00:00
2019-04-03 00:06:05 +00:00
iget-object v0, p0, Lcom/franmontiel/persistentcookiejar/persistence/SerializableCookie;->Yb:Lokhttp3/l;
2019-02-27 00:16:35 +00:00
2019-02-27 21:13:14 +00:00
iget-object v0, v0, Lokhttp3/l;->value:Ljava/lang/String;
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
invoke-virtual {p1, v0}, Ljava/io/ObjectOutputStream;->writeObject(Ljava/lang/Object;)V
2019-02-04 20:05:16 +00:00
2019-04-03 00:06:05 +00:00
iget-object v0, p0, Lcom/franmontiel/persistentcookiejar/persistence/SerializableCookie;->Yb:Lokhttp3/l;
2019-02-04 20:05:16 +00:00
2019-04-03 00:06:05 +00:00
iget-boolean v0, v0, Lokhttp3/l;->bmE:Z
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
if-eqz v0, :cond_0
2019-02-04 20:05:16 +00:00
2019-04-03 00:06:05 +00:00
iget-object v0, p0, Lcom/franmontiel/persistentcookiejar/persistence/SerializableCookie;->Yb:Lokhttp3/l;
2019-02-04 20:05:16 +00:00
2019-04-03 00:06:05 +00:00
iget-wide v0, v0, Lokhttp3/l;->bmA:J
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
goto :goto_0
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
:cond_0
2019-04-03 00:06:05 +00:00
sget-wide v0, Lcom/franmontiel/persistentcookiejar/persistence/SerializableCookie;->Yf:J
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
:goto_0
invoke-virtual {p1, v0, v1}, Ljava/io/ObjectOutputStream;->writeLong(J)V
2019-02-04 20:05:16 +00:00
2019-04-03 00:06:05 +00:00
iget-object v0, p0, Lcom/franmontiel/persistentcookiejar/persistence/SerializableCookie;->Yb:Lokhttp3/l;
2019-02-27 00:16:35 +00:00
2019-04-03 00:06:05 +00:00
iget-object v0, v0, Lokhttp3/l;->bmB:Ljava/lang/String;
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
invoke-virtual {p1, v0}, Ljava/io/ObjectOutputStream;->writeObject(Ljava/lang/Object;)V
2019-02-04 20:05:16 +00:00
2019-04-03 00:06:05 +00:00
iget-object v0, p0, Lcom/franmontiel/persistentcookiejar/persistence/SerializableCookie;->Yb:Lokhttp3/l;
2019-02-27 00:16:35 +00:00
2019-02-27 21:13:14 +00:00
iget-object v0, v0, Lokhttp3/l;->path:Ljava/lang/String;
2019-02-04 20:08:30 +00:00
invoke-virtual {p1, v0}, Ljava/io/ObjectOutputStream;->writeObject(Ljava/lang/Object;)V
2019-04-03 00:06:05 +00:00
iget-object v0, p0, Lcom/franmontiel/persistentcookiejar/persistence/SerializableCookie;->Yb:Lokhttp3/l;
2019-02-04 20:08:30 +00:00
2019-04-03 00:06:05 +00:00
iget-boolean v0, v0, Lokhttp3/l;->bmC:Z
2019-02-04 20:08:30 +00:00
invoke-virtual {p1, v0}, Ljava/io/ObjectOutputStream;->writeBoolean(Z)V
2019-04-03 00:06:05 +00:00
iget-object v0, p0, Lcom/franmontiel/persistentcookiejar/persistence/SerializableCookie;->Yb:Lokhttp3/l;
2019-02-04 20:08:30 +00:00
2019-04-03 00:06:05 +00:00
iget-boolean v0, v0, Lokhttp3/l;->bmD:Z
2019-02-04 20:08:30 +00:00
invoke-virtual {p1, v0}, Ljava/io/ObjectOutputStream;->writeBoolean(Z)V
2019-04-03 00:06:05 +00:00
iget-object v0, p0, Lcom/franmontiel/persistentcookiejar/persistence/SerializableCookie;->Yb:Lokhttp3/l;
2019-02-04 20:08:30 +00:00
2019-04-03 00:06:05 +00:00
iget-boolean v0, v0, Lokhttp3/l;->bmF:Z
2019-02-04 20:08:30 +00:00
invoke-virtual {p1, v0}, Ljava/io/ObjectOutputStream;->writeBoolean(Z)V
return-void
2019-02-04 20:05:16 +00:00
.end method
2019-02-04 20:08:30 +00:00
# virtual methods
.method public final a(Lokhttp3/l;)Ljava/lang/String;
.locals 4
2019-02-04 20:05:16 +00:00
2019-04-03 00:06:05 +00:00
iput-object p1, p0, Lcom/franmontiel/persistentcookiejar/persistence/SerializableCookie;->Yb:Lokhttp3/l;
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
new-instance p1, Ljava/io/ByteArrayOutputStream;
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
invoke-direct {p1}, Ljava/io/ByteArrayOutputStream;-><init>()V
const/4 v0, 0x0
2019-02-04 20:05:16 +00:00
:try_start_0
2019-02-04 20:08:30 +00:00
new-instance v1, Ljava/io/ObjectOutputStream;
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
invoke-direct {v1, p1}, Ljava/io/ObjectOutputStream;-><init>(Ljava/io/OutputStream;)V
2019-02-04 20:05:16 +00:00
:try_end_0
2019-02-04 20:08:30 +00:00
.catch Ljava/io/IOException; {:try_start_0 .. :try_end_0} :catch_2
2019-02-04 20:05:16 +00:00
.catchall {:try_start_0 .. :try_end_0} :catchall_0
:try_start_1
2019-02-04 20:08:30 +00:00
invoke-virtual {v1, p0}, Ljava/io/ObjectOutputStream;->writeObject(Ljava/lang/Object;)V
2019-02-04 20:05:16 +00:00
:try_end_1
2019-02-04 20:08:30 +00:00
.catch Ljava/io/IOException; {:try_start_1 .. :try_end_1} :catch_1
2019-02-04 20:05:16 +00:00
.catchall {:try_start_1 .. :try_end_1} :catchall_1
:try_start_2
2019-02-04 20:08:30 +00:00
invoke-virtual {v1}, Ljava/io/ObjectOutputStream;->close()V
2019-02-04 20:05:16 +00:00
:try_end_2
.catch Ljava/io/IOException; {:try_start_2 .. :try_end_2} :catch_0
2019-02-04 20:08:30 +00:00
goto :goto_0
:catch_0
move-exception v0
sget-object v1, Lcom/franmontiel/persistentcookiejar/persistence/SerializableCookie;->TAG:Ljava/lang/String;
const-string v2, "Stream not closed in encodeCookie"
invoke-static {v1, v2, v0}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)I
2019-02-04 20:05:16 +00:00
:goto_0
2019-02-04 20:08:30 +00:00
invoke-virtual {p1}, Ljava/io/ByteArrayOutputStream;->toByteArray()[B
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
move-result-object p1
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
invoke-static {p1}, Lcom/franmontiel/persistentcookiejar/persistence/SerializableCookie;->h([B)Ljava/lang/String;
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
move-result-object p1
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
return-object p1
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
:catch_1
move-exception p1
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
goto :goto_1
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
:catchall_0
move-exception p1
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
move-object v1, v0
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
goto :goto_3
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
:catch_2
move-exception p1
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
move-object v1, v0
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
:goto_1
2019-02-04 20:05:16 +00:00
:try_start_3
2019-02-04 20:08:30 +00:00
sget-object v2, Lcom/franmontiel/persistentcookiejar/persistence/SerializableCookie;->TAG:Ljava/lang/String;
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
const-string v3, "IOException in encodeCookie"
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
invoke-static {v2, v3, p1}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)I
2019-02-04 20:05:16 +00:00
:try_end_3
2019-02-04 20:08:30 +00:00
.catchall {:try_start_3 .. :try_end_3} :catchall_1
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
if-eqz v1, :cond_0
2019-02-04 20:05:16 +00:00
:try_start_4
2019-02-04 20:08:30 +00:00
invoke-virtual {v1}, Ljava/io/ObjectOutputStream;->close()V
2019-02-04 20:05:16 +00:00
:try_end_4
2019-02-04 20:08:30 +00:00
.catch Ljava/io/IOException; {:try_start_4 .. :try_end_4} :catch_3
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
goto :goto_2
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
:catch_3
move-exception p1
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
sget-object v1, Lcom/franmontiel/persistentcookiejar/persistence/SerializableCookie;->TAG:Ljava/lang/String;
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
const-string v2, "Stream not closed in encodeCookie"
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
invoke-static {v1, v2, p1}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)I
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
:cond_0
:goto_2
return-object v0
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
:catchall_1
move-exception p1
2019-02-04 20:05:16 +00:00
:goto_3
2019-02-04 20:08:30 +00:00
if-eqz v1, :cond_1
2019-02-04 20:05:16 +00:00
:try_start_5
2019-02-04 20:08:30 +00:00
invoke-virtual {v1}, Ljava/io/ObjectOutputStream;->close()V
2019-02-04 20:05:16 +00:00
:try_end_5
2019-02-04 20:08:30 +00:00
.catch Ljava/io/IOException; {:try_start_5 .. :try_end_5} :catch_4
2019-02-04 20:05:16 +00:00
goto :goto_4
2019-02-04 20:08:30 +00:00
:catch_4
move-exception v0
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
sget-object v1, Lcom/franmontiel/persistentcookiejar/persistence/SerializableCookie;->TAG:Ljava/lang/String;
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
const-string v2, "Stream not closed in encodeCookie"
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
invoke-static {v1, v2, v0}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)I
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
:cond_1
:goto_4
throw p1
2019-02-04 20:05:16 +00:00
.end method