Add Discord APKTool decompilation (Smali source for modding)

- 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
This commit is contained in:
2026-02-18 16:13:44 -08:00
parent c080f0d97f
commit f3960ee359
44288 changed files with 10998761 additions and 0 deletions

View File

@@ -0,0 +1,14 @@
.class abstract synthetic Lcom/amazonaws/retry/PredefinedRetryPolicies$1;
.super Ljava/lang/Object;
.source "SourceFile"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/amazonaws/retry/PredefinedRetryPolicies;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x1009
name = null
.end annotation

View File

@@ -0,0 +1,94 @@
.class final Lcom/amazonaws/retry/PredefinedRetryPolicies$SDKDefaultBackoffStrategy;
.super Ljava/lang/Object;
.source "SourceFile"
# interfaces
.implements Lcom/amazonaws/retry/RetryPolicy$BackoffStrategy;
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/amazonaws/retry/PredefinedRetryPolicies;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x19
name = "SDKDefaultBackoffStrategy"
.end annotation
# instance fields
.field public final baseDelayMs:I
.field public final maxDelayMs:I
.field public final random:Ljava/util/Random;
# direct methods
.method public constructor <init>(II)V
.locals 1
.line 214
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
.line 209
new-instance v0, Ljava/util/Random;
invoke-direct {v0}, Ljava/util/Random;-><init>()V
iput-object v0, p0, Lcom/amazonaws/retry/PredefinedRetryPolicies$SDKDefaultBackoffStrategy;->random:Ljava/util/Random;
iput p1, p0, Lcom/amazonaws/retry/PredefinedRetryPolicies$SDKDefaultBackoffStrategy;->baseDelayMs:I
iput p2, p0, Lcom/amazonaws/retry/PredefinedRetryPolicies$SDKDefaultBackoffStrategy;->maxDelayMs:I
return-void
.end method
.method public synthetic constructor <init>(IILcom/amazonaws/retry/PredefinedRetryPolicies$1;)V
.locals 0
.line 206
invoke-direct {p0, p1, p2}, Lcom/amazonaws/retry/PredefinedRetryPolicies$SDKDefaultBackoffStrategy;-><init>(II)V
return-void
.end method
# virtual methods
.method public final delayBeforeNextRetry(Lcom/amazonaws/AmazonWebServiceRequest;Lcom/amazonaws/AmazonClientException;I)J
.locals 1
if-gtz p3, :cond_0
const-wide/16 p1, 0x0
return-wide p1
:cond_0
iget-object p1, p0, Lcom/amazonaws/retry/PredefinedRetryPolicies$SDKDefaultBackoffStrategy;->random:Ljava/util/Random;
iget p2, p0, Lcom/amazonaws/retry/PredefinedRetryPolicies$SDKDefaultBackoffStrategy;->maxDelayMs:I
const/4 v0, 0x1
shl-int p3, v0, p3
iget v0, p0, Lcom/amazonaws/retry/PredefinedRetryPolicies$SDKDefaultBackoffStrategy;->baseDelayMs:I
mul-int/2addr p3, v0
.line 229
invoke-static {p2, p3}, Ljava/lang/Math;->min(II)I
move-result p2
invoke-virtual {p1, p2}, Ljava/util/Random;->nextInt(I)I
move-result p1
int-to-long p1, p1
return-wide p1
.end method

View File

@@ -0,0 +1,115 @@
.class public Lcom/amazonaws/retry/PredefinedRetryPolicies$SDKDefaultRetryCondition;
.super Ljava/lang/Object;
.source "SourceFile"
# interfaces
.implements Lcom/amazonaws/retry/RetryPolicy$RetryCondition;
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/amazonaws/retry/PredefinedRetryPolicies;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x9
name = "SDKDefaultRetryCondition"
.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
# virtual methods
.method public shouldRetry(Lcom/amazonaws/AmazonWebServiceRequest;Lcom/amazonaws/AmazonClientException;I)Z
.locals 1
.line 160
invoke-virtual {p2}, Ljava/lang/Throwable;->getCause()Ljava/lang/Throwable;
move-result-object p1
instance-of p1, p1, Ljava/io/IOException;
const/4 p3, 0x1
if-eqz p1, :cond_0
.line 161
invoke-virtual {p2}, Ljava/lang/Throwable;->getCause()Ljava/lang/Throwable;
move-result-object p1
instance-of p1, p1, Ljava/io/InterruptedIOException;
if-nez p1, :cond_0
return p3
.line 165
:cond_0
instance-of p1, p2, Lcom/amazonaws/AmazonServiceException;
if-eqz p1, :cond_4
.line 166
check-cast p2, Lcom/amazonaws/AmazonServiceException;
.line 174
invoke-virtual {p2}, Lcom/amazonaws/AmazonServiceException;->getStatusCode()I
move-result p1
const/16 v0, 0x1f4
if-eq p1, v0, :cond_3
const/16 v0, 0x1f7
if-eq p1, v0, :cond_3
const/16 v0, 0x1f6
if-eq p1, v0, :cond_3
const/16 v0, 0x1f8
if-ne p1, v0, :cond_1
goto :goto_0
.line 188
:cond_1
invoke-static {p2}, Lcom/amazonaws/retry/RetryUtils;->isThrottlingException(Lcom/amazonaws/AmazonServiceException;)Z
move-result p1
if-eqz p1, :cond_2
return p3
.line 196
:cond_2
invoke-static {p2}, Lcom/amazonaws/retry/RetryUtils;->isClockSkewError(Lcom/amazonaws/AmazonServiceException;)Z
move-result p1
if-eqz p1, :cond_4
:cond_3
:goto_0
return p3
:cond_4
const/4 p1, 0x0
return p1
.end method

View File

@@ -0,0 +1,117 @@
.class public abstract Lcom/amazonaws/retry/PredefinedRetryPolicies;
.super Ljava/lang/Object;
.source "SourceFile"
# annotations
.annotation system Ldalvik/annotation/MemberClasses;
value = {
Lcom/amazonaws/retry/PredefinedRetryPolicies$SDKDefaultBackoffStrategy;,
Lcom/amazonaws/retry/PredefinedRetryPolicies$SDKDefaultRetryCondition;
}
.end annotation
# static fields
.field public static final DEFAULT:Lcom/amazonaws/retry/RetryPolicy;
.field public static final DEFAULT_BACKOFF_STRATEGY:Lcom/amazonaws/retry/RetryPolicy$BackoffStrategy;
.field public static final DEFAULT_RETRY_CONDITION:Lcom/amazonaws/retry/RetryPolicy$RetryCondition;
.field public static final DYNAMODB_DEFAULT:Lcom/amazonaws/retry/RetryPolicy;
.field public static final NO_RETRY_POLICY:Lcom/amazonaws/retry/RetryPolicy;
# direct methods
.method static constructor <clinit>()V
.locals 4
.line 35
new-instance v0, Lcom/amazonaws/retry/RetryPolicy;
sget-object v1, Lcom/amazonaws/retry/RetryPolicy$RetryCondition;->NO_RETRY_CONDITION:Lcom/amazonaws/retry/RetryPolicy$RetryCondition;
sget-object v2, Lcom/amazonaws/retry/RetryPolicy$BackoffStrategy;->NO_DELAY:Lcom/amazonaws/retry/RetryPolicy$BackoffStrategy;
const/4 v3, 0x0
invoke-direct {v0, v1, v2, v3, v3}, Lcom/amazonaws/retry/RetryPolicy;-><init>(Lcom/amazonaws/retry/RetryPolicy$RetryCondition;Lcom/amazonaws/retry/RetryPolicy$BackoffStrategy;IZ)V
sput-object v0, Lcom/amazonaws/retry/PredefinedRetryPolicies;->NO_RETRY_POLICY:Lcom/amazonaws/retry/RetryPolicy;
.line 76
new-instance v0, Lcom/amazonaws/retry/PredefinedRetryPolicies$SDKDefaultRetryCondition;
invoke-direct {v0}, Lcom/amazonaws/retry/PredefinedRetryPolicies$SDKDefaultRetryCondition;-><init>()V
sput-object v0, Lcom/amazonaws/retry/PredefinedRetryPolicies;->DEFAULT_RETRY_CONDITION:Lcom/amazonaws/retry/RetryPolicy$RetryCondition;
.line 83
new-instance v0, Lcom/amazonaws/retry/PredefinedRetryPolicies$SDKDefaultBackoffStrategy;
const/16 v1, 0x4e20
const/4 v2, 0x0
const/16 v3, 0x64
invoke-direct {v0, v3, v1, v2}, Lcom/amazonaws/retry/PredefinedRetryPolicies$SDKDefaultBackoffStrategy;-><init>(IILcom/amazonaws/retry/PredefinedRetryPolicies$1;)V
sput-object v0, Lcom/amazonaws/retry/PredefinedRetryPolicies;->DEFAULT_BACKOFF_STRATEGY:Lcom/amazonaws/retry/RetryPolicy$BackoffStrategy;
.line 87
invoke-static {}, Lcom/amazonaws/retry/PredefinedRetryPolicies;->getDefaultRetryPolicy()Lcom/amazonaws/retry/RetryPolicy;
move-result-object v0
sput-object v0, Lcom/amazonaws/retry/PredefinedRetryPolicies;->DEFAULT:Lcom/amazonaws/retry/RetryPolicy;
.line 88
invoke-static {}, Lcom/amazonaws/retry/PredefinedRetryPolicies;->getDynamoDBDefaultRetryPolicy()Lcom/amazonaws/retry/RetryPolicy;
move-result-object v0
sput-object v0, Lcom/amazonaws/retry/PredefinedRetryPolicies;->DYNAMODB_DEFAULT:Lcom/amazonaws/retry/RetryPolicy;
return-void
.end method
.method public static getDefaultRetryPolicy()Lcom/amazonaws/retry/RetryPolicy;
.locals 5
.line 98
new-instance v0, Lcom/amazonaws/retry/RetryPolicy;
sget-object v1, Lcom/amazonaws/retry/PredefinedRetryPolicies;->DEFAULT_RETRY_CONDITION:Lcom/amazonaws/retry/RetryPolicy$RetryCondition;
sget-object v2, Lcom/amazonaws/retry/PredefinedRetryPolicies;->DEFAULT_BACKOFF_STRATEGY:Lcom/amazonaws/retry/RetryPolicy$BackoffStrategy;
const/4 v3, 0x3
const/4 v4, 0x1
invoke-direct {v0, v1, v2, v3, v4}, Lcom/amazonaws/retry/RetryPolicy;-><init>(Lcom/amazonaws/retry/RetryPolicy$RetryCondition;Lcom/amazonaws/retry/RetryPolicy$BackoffStrategy;IZ)V
return-object v0
.end method
.method public static getDynamoDBDefaultRetryPolicy()Lcom/amazonaws/retry/RetryPolicy;
.locals 5
.line 111
new-instance v0, Lcom/amazonaws/retry/RetryPolicy;
sget-object v1, Lcom/amazonaws/retry/PredefinedRetryPolicies;->DEFAULT_RETRY_CONDITION:Lcom/amazonaws/retry/RetryPolicy$RetryCondition;
sget-object v2, Lcom/amazonaws/retry/PredefinedRetryPolicies;->DEFAULT_BACKOFF_STRATEGY:Lcom/amazonaws/retry/RetryPolicy$BackoffStrategy;
const/16 v3, 0xa
const/4 v4, 0x1
invoke-direct {v0, v1, v2, v3, v4}, Lcom/amazonaws/retry/RetryPolicy;-><init>(Lcom/amazonaws/retry/RetryPolicy$RetryCondition;Lcom/amazonaws/retry/RetryPolicy$BackoffStrategy;IZ)V
return-object v0
.end method

View File

@@ -0,0 +1,38 @@
.class final Lcom/amazonaws/retry/RetryPolicy$BackoffStrategy$1;
.super Ljava/lang/Object;
.source "SourceFile"
# interfaces
.implements Lcom/amazonaws/retry/RetryPolicy$BackoffStrategy;
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/amazonaws/retry/RetryPolicy$BackoffStrategy;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x9
name = null
.end annotation
# direct methods
.method public constructor <init>()V
.locals 0
.line 200
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
# virtual methods
.method public delayBeforeNextRetry(Lcom/amazonaws/AmazonWebServiceRequest;Lcom/amazonaws/AmazonClientException;I)J
.locals 0
const-wide/16 p1, 0x0
return-wide p1
.end method

View File

@@ -0,0 +1,38 @@
.class public interface abstract Lcom/amazonaws/retry/RetryPolicy$BackoffStrategy;
.super Ljava/lang/Object;
.source "SourceFile"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/amazonaws/retry/RetryPolicy;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x609
name = "BackoffStrategy"
.end annotation
# static fields
.field public static final NO_DELAY:Lcom/amazonaws/retry/RetryPolicy$BackoffStrategy;
# direct methods
.method static constructor <clinit>()V
.locals 1
.line 200
new-instance v0, Lcom/amazonaws/retry/RetryPolicy$BackoffStrategy$1;
invoke-direct {v0}, Lcom/amazonaws/retry/RetryPolicy$BackoffStrategy$1;-><init>()V
sput-object v0, Lcom/amazonaws/retry/RetryPolicy$BackoffStrategy;->NO_DELAY:Lcom/amazonaws/retry/RetryPolicy$BackoffStrategy;
return-void
.end method
# virtual methods
.method public abstract delayBeforeNextRetry(Lcom/amazonaws/AmazonWebServiceRequest;Lcom/amazonaws/AmazonClientException;I)J
.end method

View File

@@ -0,0 +1,38 @@
.class final Lcom/amazonaws/retry/RetryPolicy$RetryCondition$1;
.super Ljava/lang/Object;
.source "SourceFile"
# interfaces
.implements Lcom/amazonaws/retry/RetryPolicy$RetryCondition;
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/amazonaws/retry/RetryPolicy$RetryCondition;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x9
name = null
.end annotation
# direct methods
.method public constructor <init>()V
.locals 0
.line 145
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
# virtual methods
.method public shouldRetry(Lcom/amazonaws/AmazonWebServiceRequest;Lcom/amazonaws/AmazonClientException;I)Z
.locals 0
const/4 p1, 0x0
return p1
.end method

View File

@@ -0,0 +1,38 @@
.class public interface abstract Lcom/amazonaws/retry/RetryPolicy$RetryCondition;
.super Ljava/lang/Object;
.source "SourceFile"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/amazonaws/retry/RetryPolicy;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x609
name = "RetryCondition"
.end annotation
# static fields
.field public static final NO_RETRY_CONDITION:Lcom/amazonaws/retry/RetryPolicy$RetryCondition;
# direct methods
.method static constructor <clinit>()V
.locals 1
.line 145
new-instance v0, Lcom/amazonaws/retry/RetryPolicy$RetryCondition$1;
invoke-direct {v0}, Lcom/amazonaws/retry/RetryPolicy$RetryCondition$1;-><init>()V
sput-object v0, Lcom/amazonaws/retry/RetryPolicy$RetryCondition;->NO_RETRY_CONDITION:Lcom/amazonaws/retry/RetryPolicy$RetryCondition;
return-void
.end method
# virtual methods
.method public abstract shouldRetry(Lcom/amazonaws/AmazonWebServiceRequest;Lcom/amazonaws/AmazonClientException;I)Z
.end method

View File

@@ -0,0 +1,99 @@
.class public final Lcom/amazonaws/retry/RetryPolicy;
.super Ljava/lang/Object;
.source "SourceFile"
# annotations
.annotation system Ldalvik/annotation/MemberClasses;
value = {
Lcom/amazonaws/retry/RetryPolicy$BackoffStrategy;,
Lcom/amazonaws/retry/RetryPolicy$RetryCondition;
}
.end annotation
# instance fields
.field public final backoffStrategy:Lcom/amazonaws/retry/RetryPolicy$BackoffStrategy;
.field public final honorMaxErrorRetryInClientConfig:Z
.field public final maxErrorRetry:I
.field public final retryCondition:Lcom/amazonaws/retry/RetryPolicy$RetryCondition;
# direct methods
.method public constructor <init>(Lcom/amazonaws/retry/RetryPolicy$RetryCondition;Lcom/amazonaws/retry/RetryPolicy$BackoffStrategy;IZ)V
.locals 0
.line 79
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
if-nez p1, :cond_0
.line 81
sget-object p1, Lcom/amazonaws/retry/PredefinedRetryPolicies;->DEFAULT_RETRY_CONDITION:Lcom/amazonaws/retry/RetryPolicy$RetryCondition;
:cond_0
if-nez p2, :cond_1
.line 84
sget-object p2, Lcom/amazonaws/retry/PredefinedRetryPolicies;->DEFAULT_BACKOFF_STRATEGY:Lcom/amazonaws/retry/RetryPolicy$BackoffStrategy;
:cond_1
if-ltz p3, :cond_2
iput-object p1, p0, Lcom/amazonaws/retry/RetryPolicy;->retryCondition:Lcom/amazonaws/retry/RetryPolicy$RetryCondition;
iput-object p2, p0, Lcom/amazonaws/retry/RetryPolicy;->backoffStrategy:Lcom/amazonaws/retry/RetryPolicy$BackoffStrategy;
iput p3, p0, Lcom/amazonaws/retry/RetryPolicy;->maxErrorRetry:I
iput-boolean p4, p0, Lcom/amazonaws/retry/RetryPolicy;->honorMaxErrorRetryInClientConfig:Z
return-void
.line 87
:cond_2
new-instance p1, Ljava/lang/IllegalArgumentException;
const-string p2, "Please provide a non-negative value for maxErrorRetry."
invoke-direct {p1, p2}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
throw p1
.end method
# virtual methods
.method public getBackoffStrategy()Lcom/amazonaws/retry/RetryPolicy$BackoffStrategy;
.locals 1
iget-object v0, p0, Lcom/amazonaws/retry/RetryPolicy;->backoffStrategy:Lcom/amazonaws/retry/RetryPolicy$BackoffStrategy;
return-object v0
.end method
.method public getMaxErrorRetry()I
.locals 1
iget v0, p0, Lcom/amazonaws/retry/RetryPolicy;->maxErrorRetry:I
return v0
.end method
.method public getRetryCondition()Lcom/amazonaws/retry/RetryPolicy$RetryCondition;
.locals 1
iget-object v0, p0, Lcom/amazonaws/retry/RetryPolicy;->retryCondition:Lcom/amazonaws/retry/RetryPolicy$RetryCondition;
return-object v0
.end method
.method public isMaxErrorRetryInClientConfigHonored()Z
.locals 1
iget-boolean v0, p0, Lcom/amazonaws/retry/RetryPolicy;->honorMaxErrorRetryInClientConfig:Z
return v0
.end method

View File

@@ -0,0 +1,112 @@
.class public abstract Lcom/amazonaws/retry/RetryUtils;
.super Ljava/lang/Object;
.source "SourceFile"
# direct methods
.method public static isClockSkewError(Lcom/amazonaws/AmazonServiceException;)Z
.locals 2
const/4 v0, 0x0
if-nez p0, :cond_0
return v0
.line 69
:cond_0
invoke-virtual {p0}, Lcom/amazonaws/AmazonServiceException;->getErrorCode()Ljava/lang/String;
move-result-object p0
const-string v1, "RequestTimeTooSkewed"
.line 70
invoke-virtual {v1, p0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result v1
if-nez v1, :cond_1
const-string v1, "RequestExpired"
.line 71
invoke-virtual {v1, p0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result v1
if-nez v1, :cond_1
const-string v1, "InvalidSignatureException"
.line 72
invoke-virtual {v1, p0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result v1
if-nez v1, :cond_1
const-string v1, "SignatureDoesNotMatch"
.line 73
invoke-virtual {v1, p0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result p0
if-eqz p0, :cond_2
:cond_1
const/4 v0, 0x1
:cond_2
return v0
.end method
.method public static isThrottlingException(Lcom/amazonaws/AmazonServiceException;)Z
.locals 2
const/4 v0, 0x0
if-nez p0, :cond_0
return v0
.line 38
:cond_0
invoke-virtual {p0}, Lcom/amazonaws/AmazonServiceException;->getErrorCode()Ljava/lang/String;
move-result-object p0
const-string v1, "Throttling"
.line 39
invoke-virtual {v1, p0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result v1
if-nez v1, :cond_1
const-string v1, "ThrottlingException"
.line 40
invoke-virtual {v1, p0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result v1
if-nez v1, :cond_1
const-string v1, "ProvisionedThroughputExceededException"
.line 41
invoke-virtual {v1, p0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result p0
if-eqz p0, :cond_2
:cond_1
const/4 v0, 0x1
:cond_2
return v0
.end method