Files
rr3-apk/smali/com/amazonaws/retry/PredefinedRetryPolicies$SDKDefaultRetryCondition.smali
Daniel Elliott f3960ee359 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
2026-02-18 16:13:44 -08:00

116 lines
2.2 KiB
Smali

.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