- Imported from https://github.com/supermegamestre/Project-Real-Resurrection-3 - APKTool decompilation (Smali bytecode) for modding and rebuilding APK - Supports both 32-bit (armeabi-v7a) and 64-bit (arm64-v8a) architectures - Includes full Smali source, resources, and native libraries - Ready to rebuild APK after modifications with apktool b command - Added comprehensive README-apktool.md with modding guide This branch complements the JADX branches: - Use JADX (main/discord-community) to UNDERSTAND code (readable Java) - Use APKTool (this branch) to MODIFY and REBUILD APK (editable Smali) Total: 44,417 files, 538.51 MB Smali source code
239 lines
5.4 KiB
Smali
239 lines
5.4 KiB
Smali
.class public final synthetic Lcom/google/android/gms/internal/ads/zzcdg;
|
|
.super Ljava/lang/Object;
|
|
.source "SourceFile"
|
|
|
|
# interfaces
|
|
.implements Lcom/google/android/gms/internal/ads/zzfqq;
|
|
|
|
|
|
# instance fields
|
|
.field public final synthetic zza:Ljava/lang/String;
|
|
|
|
|
|
# direct methods
|
|
.method public synthetic constructor <init>(Ljava/lang/String;)V
|
|
.locals 0
|
|
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
iput-object p1, p0, Lcom/google/android/gms/internal/ads/zzcdg;->zza:Ljava/lang/String;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public final zza()Ljava/net/URLConnection;
|
|
.locals 8
|
|
|
|
sget v0, Lcom/google/android/gms/internal/ads/zzcdh;->zzd:I
|
|
|
|
.line 1
|
|
invoke-static {}, Lcom/google/android/gms/ads/internal/zzv;->zzx()Lcom/google/android/gms/internal/ads/zzcac;
|
|
|
|
sget-object v0, Lcom/google/android/gms/internal/ads/zzbcl;->zzM:Lcom/google/android/gms/internal/ads/zzbcc;
|
|
|
|
.line 2
|
|
invoke-static {}, Lcom/google/android/gms/ads/internal/client/zzbe;->zzc()Lcom/google/android/gms/internal/ads/zzbcj;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-virtual {v1, v0}, Lcom/google/android/gms/internal/ads/zzbcj;->zza(Lcom/google/android/gms/internal/ads/zzbcc;)Ljava/lang/Object;
|
|
|
|
move-result-object v0
|
|
|
|
.line 3
|
|
check-cast v0, Ljava/lang/Integer;
|
|
|
|
invoke-virtual {v0}, Ljava/lang/Integer;->intValue()I
|
|
|
|
move-result v0
|
|
|
|
.line 4
|
|
new-instance v1, Ljava/net/URL;
|
|
|
|
iget-object v2, p0, Lcom/google/android/gms/internal/ads/zzcdg;->zza:Ljava/lang/String;
|
|
|
|
invoke-direct {v1, v2}, Ljava/net/URL;-><init>(Ljava/lang/String;)V
|
|
|
|
const/4 v2, 0x0
|
|
|
|
move v3, v2
|
|
|
|
:goto_0
|
|
add-int/lit8 v3, v3, 0x1
|
|
|
|
const/16 v4, 0x14
|
|
|
|
if-gt v3, v4, :cond_6
|
|
|
|
.line 5
|
|
invoke-virtual {v1}, Ljava/net/URL;->openConnection()Ljava/net/URLConnection;
|
|
|
|
move-result-object v4
|
|
|
|
.line 6
|
|
invoke-virtual {v4, v0}, Ljava/net/URLConnection;->setConnectTimeout(I)V
|
|
|
|
.line 7
|
|
invoke-virtual {v4, v0}, Ljava/net/URLConnection;->setReadTimeout(I)V
|
|
|
|
.line 8
|
|
instance-of v5, v4, Ljava/net/HttpURLConnection;
|
|
|
|
if-eqz v5, :cond_5
|
|
|
|
.line 9
|
|
check-cast v4, Ljava/net/HttpURLConnection;
|
|
|
|
.line 10
|
|
new-instance v5, Lcom/google/android/gms/ads/internal/util/client/zzl;
|
|
|
|
const/4 v6, 0x0
|
|
|
|
.line 11
|
|
invoke-direct {v5, v6}, Lcom/google/android/gms/ads/internal/util/client/zzl;-><init>(Ljava/lang/String;)V
|
|
|
|
.line 12
|
|
invoke-virtual {v5, v4, v6}, Lcom/google/android/gms/ads/internal/util/client/zzl;->zzc(Ljava/net/HttpURLConnection;[B)V
|
|
|
|
.line 13
|
|
invoke-virtual {v4, v2}, Ljava/net/HttpURLConnection;->setInstanceFollowRedirects(Z)V
|
|
|
|
.line 14
|
|
invoke-virtual {v4}, Ljava/net/HttpURLConnection;->getResponseCode()I
|
|
|
|
move-result v6
|
|
|
|
.line 15
|
|
invoke-virtual {v5, v4, v6}, Lcom/google/android/gms/ads/internal/util/client/zzl;->zze(Ljava/net/HttpURLConnection;I)V
|
|
|
|
div-int/lit8 v6, v6, 0x64
|
|
|
|
const/4 v5, 0x3
|
|
|
|
if-ne v6, v5, :cond_4
|
|
|
|
const-string v5, "Location"
|
|
|
|
.line 16
|
|
invoke-virtual {v4, v5}, Ljava/net/URLConnection;->getHeaderField(Ljava/lang/String;)Ljava/lang/String;
|
|
|
|
move-result-object v5
|
|
|
|
if-eqz v5, :cond_3
|
|
|
|
.line 23
|
|
new-instance v6, Ljava/net/URL;
|
|
|
|
.line 17
|
|
invoke-direct {v6, v1, v5}, Ljava/net/URL;-><init>(Ljava/net/URL;Ljava/lang/String;)V
|
|
|
|
.line 18
|
|
invoke-virtual {v6}, Ljava/net/URL;->getProtocol()Ljava/lang/String;
|
|
|
|
move-result-object v1
|
|
|
|
if-eqz v1, :cond_2
|
|
|
|
const-string v7, "http"
|
|
|
|
.line 19
|
|
invoke-virtual {v1, v7}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result v7
|
|
|
|
if-nez v7, :cond_1
|
|
|
|
const-string v7, "https"
|
|
|
|
invoke-virtual {v1, v7}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result v7
|
|
|
|
if-eqz v7, :cond_0
|
|
|
|
goto :goto_1
|
|
|
|
:cond_0
|
|
const-string v0, "Unsupported scheme: "
|
|
|
|
.line 21
|
|
invoke-virtual {v0, v1}, Ljava/lang/String;->concat(Ljava/lang/String;)Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
new-instance v1, Ljava/io/IOException;
|
|
|
|
.line 25
|
|
invoke-direct {v1, v0}, Ljava/io/IOException;-><init>(Ljava/lang/String;)V
|
|
|
|
throw v1
|
|
|
|
:cond_1
|
|
:goto_1
|
|
const-string v1, "Redirecting to "
|
|
|
|
.line 19
|
|
invoke-virtual {v1, v5}, Ljava/lang/String;->concat(Ljava/lang/String;)Ljava/lang/String;
|
|
|
|
move-result-object v1
|
|
|
|
.line 20
|
|
invoke-static {v1}, Lcom/google/android/gms/ads/internal/util/client/zzo;->zze(Ljava/lang/String;)V
|
|
|
|
.line 21
|
|
invoke-virtual {v4}, Ljava/net/HttpURLConnection;->disconnect()V
|
|
|
|
move-object v1, v6
|
|
|
|
goto :goto_0
|
|
|
|
.line 18
|
|
:cond_2
|
|
new-instance v0, Ljava/io/IOException;
|
|
|
|
const-string v1, "Protocol is null"
|
|
|
|
.line 24
|
|
invoke-direct {v0, v1}, Ljava/io/IOException;-><init>(Ljava/lang/String;)V
|
|
|
|
throw v0
|
|
|
|
.line 16
|
|
:cond_3
|
|
new-instance v0, Ljava/io/IOException;
|
|
|
|
const-string v1, "Missing Location header in redirect"
|
|
|
|
.line 23
|
|
invoke-direct {v0, v1}, Ljava/io/IOException;-><init>(Ljava/lang/String;)V
|
|
|
|
throw v0
|
|
|
|
:cond_4
|
|
return-object v4
|
|
|
|
.line 8
|
|
:cond_5
|
|
new-instance v0, Ljava/io/IOException;
|
|
|
|
const-string v1, "Invalid protocol."
|
|
|
|
.line 22
|
|
invoke-direct {v0, v1}, Ljava/io/IOException;-><init>(Ljava/lang/String;)V
|
|
|
|
throw v0
|
|
|
|
.line 25
|
|
:cond_6
|
|
new-instance v0, Ljava/io/IOException;
|
|
|
|
const-string v1, "Too many redirects (20)"
|
|
|
|
.line 26
|
|
invoke-direct {v0, v1}, Ljava/io/IOException;-><init>(Ljava/lang/String;)V
|
|
|
|
throw v0
|
|
.end method
|