Files
rr3-apk/smali_classes2/com/firemonkeys/cloudcellapi/CC_AmazonStoreObserver_Class$PurchaseUpdatesAsyncTask.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

414 lines
12 KiB
Smali

.class Lcom/firemonkeys/cloudcellapi/CC_AmazonStoreObserver_Class$PurchaseUpdatesAsyncTask;
.super Landroid/os/AsyncTask;
.source "SourceFile"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/firemonkeys/cloudcellapi/CC_AmazonStoreObserver_Class;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x1
name = "PurchaseUpdatesAsyncTask"
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"Landroid/os/AsyncTask<",
"Lcom/amazon/device/iap/model/PurchaseUpdatesResponse;",
"Ljava/lang/Void;",
"Ljava/lang/Boolean;",
">;"
}
.end annotation
# instance fields
.field final synthetic this$0:Lcom/firemonkeys/cloudcellapi/CC_AmazonStoreObserver_Class;
# direct methods
.method private constructor <init>(Lcom/firemonkeys/cloudcellapi/CC_AmazonStoreObserver_Class;)V
.locals 0
iput-object p1, p0, Lcom/firemonkeys/cloudcellapi/CC_AmazonStoreObserver_Class$PurchaseUpdatesAsyncTask;->this$0:Lcom/firemonkeys/cloudcellapi/CC_AmazonStoreObserver_Class;
.line 332
invoke-direct {p0}, Landroid/os/AsyncTask;-><init>()V
return-void
.end method
.method public synthetic constructor <init>(Lcom/firemonkeys/cloudcellapi/CC_AmazonStoreObserver_Class;Lcom/firemonkeys/cloudcellapi/CC_AmazonStoreObserver_Class$PurchaseUpdatesAsyncTask-IA;)V
.locals 0
.line 0
invoke-direct {p0, p1}, Lcom/firemonkeys/cloudcellapi/CC_AmazonStoreObserver_Class$PurchaseUpdatesAsyncTask;-><init>(Lcom/firemonkeys/cloudcellapi/CC_AmazonStoreObserver_Class;)V
return-void
.end method
# virtual methods
.method public varargs doInBackground([Lcom/amazon/device/iap/model/PurchaseUpdatesResponse;)Ljava/lang/Boolean;
.locals 10
const/4 v0, 0x0
.line 337
aget-object p1, p1, v0
iget-object v1, p0, Lcom/firemonkeys/cloudcellapi/CC_AmazonStoreObserver_Class$PurchaseUpdatesAsyncTask;->this$0:Lcom/firemonkeys/cloudcellapi/CC_AmazonStoreObserver_Class;
.line 338
invoke-virtual {v1}, Lcom/firemonkeys/cloudcellapi/CC_AmazonStoreObserver_Class;->getCurrentUser()Ljava/lang/String;
move-result-object v1
.line 340
invoke-virtual {p1}, Lcom/amazon/device/iap/model/PurchaseUpdatesResponse;->getUserData()Lcom/amazon/device/iap/model/UserData;
move-result-object v2
if-eqz v2, :cond_0
.line 343
invoke-virtual {v2}, Lcom/amazon/device/iap/model/UserData;->getUserId()Ljava/lang/String;
move-result-object v2
goto :goto_0
:cond_0
const/4 v2, 0x0
:goto_0
const-string v3, ""
const-string v4, "CC_AmazonStoreObserver_Class"
if-eqz v2, :cond_9
.line 349
invoke-virtual {v2, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result v5
if-eqz v5, :cond_1
goto :goto_1
:cond_1
if-eqz v1, :cond_9
const-string v5, "l3HL7XppEMhrOGDnur9-ulvqomrSg6qyODKmah76lJU="
.line 356
invoke-virtual {v1, v5}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result v5
if-nez v5, :cond_2
invoke-virtual {v2, v3}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result v5
if-eqz v5, :cond_9
.line 378
:cond_2
:goto_1
sget-object v1, Lcom/firemonkeys/cloudcellapi/CC_AmazonStoreObserver_Class$1;->$SwitchMap$com$amazon$device$iap$model$PurchaseUpdatesResponse$RequestStatus:[I
invoke-virtual {p1}, Lcom/amazon/device/iap/model/PurchaseUpdatesResponse;->getRequestStatus()Lcom/amazon/device/iap/model/PurchaseUpdatesResponse$RequestStatus;
move-result-object v2
invoke-virtual {v2}, Ljava/lang/Enum;->ordinal()I
move-result v2
aget v1, v1, v2
const/4 v2, 0x1
if-eq v1, v2, :cond_4
const/4 v0, 0x2
if-eq v1, v0, :cond_3
sget-object p1, Ljava/lang/Boolean;->FALSE:Ljava/lang/Boolean;
return-object p1
:cond_3
const/4 v0, 0x0
.line 430
invoke-virtual {p1}, Lcom/amazon/device/iap/model/PurchaseUpdatesResponse;->getUserData()Lcom/amazon/device/iap/model/UserData;
move-result-object p1
invoke-virtual {p1}, Lcom/amazon/device/iap/model/UserData;->getUserId()Ljava/lang/String;
move-result-object v1
const/4 v2, 0x0
invoke-static {}, Lcom/firemonkeys/cloudcellapi/CC_AmazonStoreObserver_Class;->-$$Nest$sfgetm_nRestoreCallback()J
move-result-wide v3
invoke-static {}, Lcom/firemonkeys/cloudcellapi/CC_AmazonStoreObserver_Class;->-$$Nest$sfgetm_nUserPointer()J
move-result-wide v5
invoke-static/range {v0 .. v6}, Lcom/firemonkeys/cloudcellapi/CC_AmazonStoreObserver_Class;->-$$Nest$smRestoreCallback(ZLjava/lang/String;[Lcom/amazon/device/iap/model/Receipt;JJ)V
sget-object p1, Ljava/lang/Boolean;->FALSE:Ljava/lang/Boolean;
return-object p1
.line 381
:cond_4
invoke-virtual {p1}, Lcom/amazon/device/iap/model/PurchaseUpdatesResponse;->getReceipts()Ljava/util/List;
move-result-object v1
invoke-interface {v1}, Ljava/util/List;->iterator()Ljava/util/Iterator;
move-result-object v1
:goto_2
invoke-interface {v1}, Ljava/util/Iterator;->hasNext()Z
move-result v3
if-eqz v3, :cond_6
invoke-interface {v1}, Ljava/util/Iterator;->next()Ljava/lang/Object;
move-result-object v3
check-cast v3, Lcom/amazon/device/iap/model/Receipt;
.line 383
sget-object v5, Lcom/firemonkeys/cloudcellapi/CC_AmazonStoreObserver_Class$1;->$SwitchMap$com$amazon$device$iap$model$ProductType:[I
invoke-virtual {v3}, Lcom/amazon/device/iap/model/Receipt;->getProductType()Lcom/amazon/device/iap/model/ProductType;
move-result-object v6
invoke-virtual {v6}, Ljava/lang/Enum;->ordinal()I
move-result v6
aget v5, v5, v6
if-eq v5, v2, :cond_5
goto :goto_3
:cond_5
const-string v5, "PurchaseUpdatesAsyncTask: consumable product for Restore"
.line 387
invoke-static {v4, v5}, Lcom/firemonkeys/cloudcellapi/Logging;->CC_TRACE(Ljava/lang/Object;Ljava/lang/String;)V
:goto_3
iget-object v5, p0, Lcom/firemonkeys/cloudcellapi/CC_AmazonStoreObserver_Class$PurchaseUpdatesAsyncTask;->this$0:Lcom/firemonkeys/cloudcellapi/CC_AmazonStoreObserver_Class;
.line 399
iget-object v5, v5, Lcom/firemonkeys/cloudcellapi/CC_AmazonStoreObserver_Class;->mRestoreReceipts:Ljava/util/ArrayList;
invoke-virtual {v5, v3}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
iget-object v5, p0, Lcom/firemonkeys/cloudcellapi/CC_AmazonStoreObserver_Class$PurchaseUpdatesAsyncTask;->this$0:Lcom/firemonkeys/cloudcellapi/CC_AmazonStoreObserver_Class;
.line 400
invoke-static {v5, v3}, Lcom/firemonkeys/cloudcellapi/CC_AmazonStoreObserver_Class;->-$$Nest$mprintReceipt(Lcom/firemonkeys/cloudcellapi/CC_AmazonStoreObserver_Class;Lcom/amazon/device/iap/model/Receipt;)V
goto :goto_2
.line 408
:cond_6
invoke-virtual {p1}, Lcom/amazon/device/iap/model/PurchaseUpdatesResponse;->hasMore()Z
move-result v1
if-eqz v1, :cond_7
const-string p1, "Initiating Another Purchase Updates"
.line 410
invoke-static {v4, p1}, Lcom/firemonkeys/cloudcellapi/Logging;->CC_TRACE(Ljava/lang/Object;Ljava/lang/String;)V
.line 411
invoke-static {v0}, Lcom/amazon/device/iap/PurchasingService;->getPurchaseUpdates(Z)Lcom/amazon/device/iap/model/RequestId;
goto :goto_5
:cond_7
iget-object v1, p0, Lcom/firemonkeys/cloudcellapi/CC_AmazonStoreObserver_Class$PurchaseUpdatesAsyncTask;->this$0:Lcom/firemonkeys/cloudcellapi/CC_AmazonStoreObserver_Class;
.line 415
iget-object v1, v1, Lcom/firemonkeys/cloudcellapi/CC_AmazonStoreObserver_Class;->mRestoreReceipts:Ljava/util/ArrayList;
invoke-virtual {v1}, Ljava/util/ArrayList;->size()I
move-result v1
new-array v5, v1, [Lcom/amazon/device/iap/model/Receipt;
iget-object v1, p0, Lcom/firemonkeys/cloudcellapi/CC_AmazonStoreObserver_Class$PurchaseUpdatesAsyncTask;->this$0:Lcom/firemonkeys/cloudcellapi/CC_AmazonStoreObserver_Class;
.line 417
iget-object v1, v1, Lcom/firemonkeys/cloudcellapi/CC_AmazonStoreObserver_Class;->mRestoreReceipts:Ljava/util/ArrayList;
invoke-virtual {v1}, Ljava/util/ArrayList;->iterator()Ljava/util/Iterator;
move-result-object v1
:goto_4
invoke-interface {v1}, Ljava/util/Iterator;->hasNext()Z
move-result v3
if-eqz v3, :cond_8
invoke-interface {v1}, Ljava/util/Iterator;->next()Ljava/lang/Object;
move-result-object v3
check-cast v3, Lcom/amazon/device/iap/model/Receipt;
.line 419
aput-object v3, v5, v0
add-int/2addr v0, v2
goto :goto_4
:cond_8
iget-object v0, p0, Lcom/firemonkeys/cloudcellapi/CC_AmazonStoreObserver_Class$PurchaseUpdatesAsyncTask;->this$0:Lcom/firemonkeys/cloudcellapi/CC_AmazonStoreObserver_Class;
.line 422
iget-object v0, v0, Lcom/firemonkeys/cloudcellapi/CC_AmazonStoreObserver_Class;->mRestoreReceipts:Ljava/util/ArrayList;
invoke-virtual {v0}, Ljava/util/ArrayList;->clear()V
const/4 v3, 0x1
.line 423
invoke-virtual {p1}, Lcom/amazon/device/iap/model/PurchaseUpdatesResponse;->getUserData()Lcom/amazon/device/iap/model/UserData;
move-result-object p1
invoke-virtual {p1}, Lcom/amazon/device/iap/model/UserData;->getUserId()Ljava/lang/String;
move-result-object v4
invoke-static {}, Lcom/firemonkeys/cloudcellapi/CC_AmazonStoreObserver_Class;->-$$Nest$sfgetm_nRestoreCallback()J
move-result-wide v6
invoke-static {}, Lcom/firemonkeys/cloudcellapi/CC_AmazonStoreObserver_Class;->-$$Nest$sfgetm_nUserPointer()J
move-result-wide v8
invoke-static/range {v3 .. v9}, Lcom/firemonkeys/cloudcellapi/CC_AmazonStoreObserver_Class;->-$$Nest$smRestoreCallback(ZLjava/lang/String;[Lcom/amazon/device/iap/model/Receipt;JJ)V
:goto_5
sget-object p1, Ljava/lang/Boolean;->TRUE:Ljava/lang/Boolean;
return-object p1
:cond_9
if-nez v2, :cond_a
move-object v2, v3
.line 369
:cond_a
new-instance p1, Ljava/lang/StringBuilder;
invoke-direct {p1}, Ljava/lang/StringBuilder;-><init>()V
const-string v0, "Reject PurchaseUpdatesAsyncTask for user "
invoke-virtual {p1, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {p1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
const-string v0, " Excepted user "
invoke-virtual {p1, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {p1, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {p1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object p1
invoke-static {v4, p1}, Lcom/firemonkeys/cloudcellapi/Logging;->CC_WARNING(Ljava/lang/Object;Ljava/lang/String;)V
const/4 v0, 0x0
const/4 p1, 0x0
.line 370
invoke-static {}, Lcom/firemonkeys/cloudcellapi/CC_AmazonStoreObserver_Class;->-$$Nest$sfgetm_nRestoreCallback()J
move-result-wide v3
invoke-static {}, Lcom/firemonkeys/cloudcellapi/CC_AmazonStoreObserver_Class;->-$$Nest$sfgetm_nUserPointer()J
move-result-wide v5
move-object v1, v2
move-object v2, p1
invoke-static/range {v0 .. v6}, Lcom/firemonkeys/cloudcellapi/CC_AmazonStoreObserver_Class;->-$$Nest$smRestoreCallback(ZLjava/lang/String;[Lcom/amazon/device/iap/model/Receipt;JJ)V
sget-object p1, Ljava/lang/Boolean;->FALSE:Ljava/lang/Boolean;
return-object p1
.end method
.method public bridge synthetic doInBackground([Ljava/lang/Object;)Ljava/lang/Object;
.locals 0
.line 332
check-cast p1, [Lcom/amazon/device/iap/model/PurchaseUpdatesResponse;
invoke-virtual {p0, p1}, Lcom/firemonkeys/cloudcellapi/CC_AmazonStoreObserver_Class$PurchaseUpdatesAsyncTask;->doInBackground([Lcom/amazon/device/iap/model/PurchaseUpdatesResponse;)Ljava/lang/Boolean;
move-result-object p1
return-object p1
.end method
.method public onPostExecute(Ljava/lang/Boolean;)V
.locals 0
.line 439
invoke-super {p0, p1}, Landroid/os/AsyncTask;->onPostExecute(Ljava/lang/Object;)V
return-void
.end method
.method public bridge synthetic onPostExecute(Ljava/lang/Object;)V
.locals 0
.line 332
check-cast p1, Ljava/lang/Boolean;
invoke-virtual {p0, p1}, Lcom/firemonkeys/cloudcellapi/CC_AmazonStoreObserver_Class$PurchaseUpdatesAsyncTask;->onPostExecute(Ljava/lang/Boolean;)V
return-void
.end method