- 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
333 lines
10 KiB
Smali
333 lines
10 KiB
Smali
.class Lcom/ea/nimble/mtx/googleplay/GooglePlay$4;
|
|
.super Ljava/lang/Object;
|
|
.source "SourceFile"
|
|
|
|
# interfaces
|
|
.implements Lcom/android/billingclient/api/PurchasesResponseListener;
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/EnclosingMethod;
|
|
value = Lcom/ea/nimble/mtx/googleplay/GooglePlay;->restorePurchasedTransactionsImpl(Z)V
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/InnerClass;
|
|
accessFlags = 0x1
|
|
name = null
|
|
.end annotation
|
|
|
|
|
|
# instance fields
|
|
.field final synthetic this$0:Lcom/ea/nimble/mtx/googleplay/GooglePlay;
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>(Lcom/ea/nimble/mtx/googleplay/GooglePlay;)V
|
|
.locals 0
|
|
|
|
iput-object p1, p0, Lcom/ea/nimble/mtx/googleplay/GooglePlay$4;->this$0:Lcom/ea/nimble/mtx/googleplay/GooglePlay;
|
|
|
|
.line 1200
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public onQueryPurchasesResponse(Lcom/android/billingclient/api/BillingResult;Ljava/util/List;)V
|
|
.locals 10
|
|
.param p1 # Lcom/android/billingclient/api/BillingResult;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
.param p2 # Ljava/util/List;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Lcom/android/billingclient/api/BillingResult;",
|
|
"Ljava/util/List<",
|
|
"Lcom/android/billingclient/api/Purchase;",
|
|
">;)V"
|
|
}
|
|
.end annotation
|
|
|
|
iget-object v0, p0, Lcom/ea/nimble/mtx/googleplay/GooglePlay$4;->this$0:Lcom/ea/nimble/mtx/googleplay/GooglePlay;
|
|
|
|
const/4 v1, 0x0
|
|
|
|
new-array v2, v1, [Ljava/lang/Object;
|
|
|
|
const-string v3, "restorePurchasedTransactions onQueryPurchasesResponse"
|
|
|
|
.line 1204
|
|
invoke-static {v0, v3, v2}, Lcom/ea/nimble/Log$Helper;->LOGD(Ljava/lang/Object;Ljava/lang/String;[Ljava/lang/Object;)V
|
|
|
|
.line 1207
|
|
invoke-virtual {p1}, Lcom/android/billingclient/api/BillingResult;->getResponseCode()I
|
|
|
|
move-result v0
|
|
|
|
const/4 v2, 0x0
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
iget-object v0, p0, Lcom/ea/nimble/mtx/googleplay/GooglePlay$4;->this$0:Lcom/ea/nimble/mtx/googleplay/GooglePlay;
|
|
|
|
.line 1209
|
|
invoke-static {v0, p1}, Lcom/ea/nimble/mtx/googleplay/GooglePlay;->access$800(Lcom/ea/nimble/mtx/googleplay/GooglePlay;Lcom/android/billingclient/api/BillingResult;)Lcom/ea/nimble/mtx/googleplay/GooglePlayError;
|
|
|
|
move-result-object p1
|
|
|
|
.line 1210
|
|
invoke-virtual {p1}, Ljava/lang/Throwable;->getMessage()Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
filled-new-array {v0}, [Ljava/lang/Object;
|
|
|
|
move-result-object v0
|
|
|
|
const-string v3, "Error with GooglePlay purchased item query. %s"
|
|
|
|
invoke-static {p0, v3, v0}, Lcom/ea/nimble/Log$Helper;->LOGE(Ljava/lang/Object;Ljava/lang/String;[Ljava/lang/Object;)V
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
move-object p1, v2
|
|
|
|
.line 1217
|
|
:goto_0
|
|
new-instance v0, Ljava/util/ArrayList;
|
|
|
|
invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V
|
|
|
|
.line 1218
|
|
new-instance v3, Ljava/util/ArrayList;
|
|
|
|
invoke-direct {v3}, Ljava/util/ArrayList;-><init>()V
|
|
|
|
.line 1219
|
|
new-instance v4, Ljava/util/HashMap;
|
|
|
|
invoke-direct {v4}, Ljava/util/HashMap;-><init>()V
|
|
|
|
.line 1221
|
|
invoke-interface {p2}, Ljava/util/List;->size()I
|
|
|
|
move-result v5
|
|
|
|
if-lez v5, :cond_4
|
|
|
|
.line 1223
|
|
invoke-interface {p2}, Ljava/util/List;->iterator()Ljava/util/Iterator;
|
|
|
|
move-result-object v5
|
|
|
|
:goto_1
|
|
invoke-interface {v5}, Ljava/util/Iterator;->hasNext()Z
|
|
|
|
move-result v6
|
|
|
|
if-eqz v6, :cond_2
|
|
|
|
invoke-interface {v5}, Ljava/util/Iterator;->next()Ljava/lang/Object;
|
|
|
|
move-result-object v6
|
|
|
|
check-cast v6, Lcom/android/billingclient/api/Purchase;
|
|
|
|
.line 1225
|
|
invoke-virtual {v6}, Lcom/android/billingclient/api/Purchase;->getProducts()Ljava/util/List;
|
|
|
|
move-result-object v6
|
|
|
|
invoke-interface {v6, v1}, Ljava/util/List;->get(I)Ljava/lang/Object;
|
|
|
|
move-result-object v6
|
|
|
|
check-cast v6, Ljava/lang/String;
|
|
|
|
iget-object v7, p0, Lcom/ea/nimble/mtx/googleplay/GooglePlay$4;->this$0:Lcom/ea/nimble/mtx/googleplay/GooglePlay;
|
|
|
|
.line 1226
|
|
iget-object v7, v7, Lcom/ea/nimble/mtx/googleplay/GooglePlay;->mCatalogItems:Ljava/util/HashMap;
|
|
|
|
invoke-virtual {v7, v6}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
move-result-object v7
|
|
|
|
check-cast v7, Lcom/ea/nimble/mtx/googleplay/GooglePlayCatalogItem;
|
|
|
|
if-eqz v7, :cond_1
|
|
|
|
.line 1227
|
|
iget-object v8, v7, Lcom/ea/nimble/mtx/googleplay/GooglePlayCatalogItem;->mAdditionalInfo:Ljava/util/Map;
|
|
|
|
const-string v9, "localCurrency"
|
|
|
|
invoke-interface {v8, v9}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
move-result-object v8
|
|
|
|
invoke-virtual {v8}, Ljava/lang/Object;->toString()Ljava/lang/String;
|
|
|
|
move-result-object v8
|
|
|
|
invoke-static {v8}, Lcom/ea/nimble/Utility;->validString(Ljava/lang/String;)Z
|
|
|
|
move-result v8
|
|
|
|
if-eqz v8, :cond_1
|
|
|
|
.line 1229
|
|
iget-object v7, v7, Lcom/ea/nimble/mtx/googleplay/GooglePlayCatalogItem;->mAdditionalInfo:Ljava/util/Map;
|
|
|
|
invoke-interface {v7, v9}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
move-result-object v7
|
|
|
|
invoke-virtual {v7}, Ljava/lang/Object;->toString()Ljava/lang/String;
|
|
|
|
move-result-object v7
|
|
|
|
invoke-virtual {v4, v6, v7}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
goto :goto_1
|
|
|
|
.line 1233
|
|
:cond_1
|
|
invoke-static {}, Lcom/android/billingclient/api/QueryProductDetailsParams$Product;->newBuilder()Lcom/android/billingclient/api/QueryProductDetailsParams$Product$Builder;
|
|
|
|
move-result-object v7
|
|
|
|
invoke-virtual {v7, v6}, Lcom/android/billingclient/api/QueryProductDetailsParams$Product$Builder;->setProductId(Ljava/lang/String;)Lcom/android/billingclient/api/QueryProductDetailsParams$Product$Builder;
|
|
|
|
move-result-object v7
|
|
|
|
const-string v8, "subs"
|
|
|
|
invoke-virtual {v7, v8}, Lcom/android/billingclient/api/QueryProductDetailsParams$Product$Builder;->setProductType(Ljava/lang/String;)Lcom/android/billingclient/api/QueryProductDetailsParams$Product$Builder;
|
|
|
|
move-result-object v7
|
|
|
|
invoke-virtual {v7}, Lcom/android/billingclient/api/QueryProductDetailsParams$Product$Builder;->build()Lcom/android/billingclient/api/QueryProductDetailsParams$Product;
|
|
|
|
move-result-object v7
|
|
|
|
invoke-interface {v0, v7}, Ljava/util/List;->add(Ljava/lang/Object;)Z
|
|
|
|
.line 1234
|
|
invoke-static {}, Lcom/android/billingclient/api/QueryProductDetailsParams$Product;->newBuilder()Lcom/android/billingclient/api/QueryProductDetailsParams$Product$Builder;
|
|
|
|
move-result-object v7
|
|
|
|
invoke-virtual {v7, v6}, Lcom/android/billingclient/api/QueryProductDetailsParams$Product$Builder;->setProductId(Ljava/lang/String;)Lcom/android/billingclient/api/QueryProductDetailsParams$Product$Builder;
|
|
|
|
move-result-object v6
|
|
|
|
const-string v7, "inapp"
|
|
|
|
invoke-virtual {v6, v7}, Lcom/android/billingclient/api/QueryProductDetailsParams$Product$Builder;->setProductType(Ljava/lang/String;)Lcom/android/billingclient/api/QueryProductDetailsParams$Product$Builder;
|
|
|
|
move-result-object v6
|
|
|
|
invoke-virtual {v6}, Lcom/android/billingclient/api/QueryProductDetailsParams$Product$Builder;->build()Lcom/android/billingclient/api/QueryProductDetailsParams$Product;
|
|
|
|
move-result-object v6
|
|
|
|
invoke-interface {v3, v6}, Ljava/util/List;->add(Ljava/lang/Object;)Z
|
|
|
|
goto :goto_1
|
|
|
|
.line 1238
|
|
:cond_2
|
|
invoke-interface {v0}, Ljava/util/List;->isEmpty()Z
|
|
|
|
move-result v5
|
|
|
|
if-nez v5, :cond_3
|
|
|
|
invoke-interface {v3}, Ljava/util/List;->isEmpty()Z
|
|
|
|
move-result v5
|
|
|
|
if-nez v5, :cond_3
|
|
|
|
iget-object v5, p0, Lcom/ea/nimble/mtx/googleplay/GooglePlay$4;->this$0:Lcom/ea/nimble/mtx/googleplay/GooglePlay;
|
|
|
|
.line 1240
|
|
invoke-static {v5}, Lcom/ea/nimble/mtx/googleplay/GooglePlay;->access$600(Lcom/ea/nimble/mtx/googleplay/GooglePlay;)Lcom/ea/nimble/mtx/googleplay/billing/BillingHelper;
|
|
|
|
move-result-object v5
|
|
|
|
new-instance v6, Lcom/ea/nimble/mtx/googleplay/GooglePlay$4$1;
|
|
|
|
invoke-direct {v6, p0, v4, p2}, Lcom/ea/nimble/mtx/googleplay/GooglePlay$4$1;-><init>(Lcom/ea/nimble/mtx/googleplay/GooglePlay$4;Ljava/util/HashMap;Ljava/util/List;)V
|
|
|
|
invoke-virtual {v5, v0, v3, v6}, Lcom/ea/nimble/mtx/googleplay/billing/BillingHelper;->queryProductDetailsAsync(Ljava/util/List;Ljava/util/List;Lcom/android/billingclient/api/ProductDetailsResponseListener;)V
|
|
|
|
goto :goto_2
|
|
|
|
:cond_3
|
|
iget-object v0, p0, Lcom/ea/nimble/mtx/googleplay/GooglePlay$4;->this$0:Lcom/ea/nimble/mtx/googleplay/GooglePlay;
|
|
|
|
.line 1265
|
|
invoke-static {v0, p2, v4}, Lcom/ea/nimble/mtx/googleplay/GooglePlay;->access$1100(Lcom/ea/nimble/mtx/googleplay/GooglePlay;Ljava/util/List;Ljava/util/HashMap;)V
|
|
|
|
:cond_4
|
|
:goto_2
|
|
if-nez p1, :cond_5
|
|
|
|
.line 1269
|
|
invoke-interface {p2}, Ljava/util/List;->isEmpty()Z
|
|
|
|
move-result p2
|
|
|
|
if-eqz p2, :cond_7
|
|
|
|
:cond_5
|
|
iget-object p2, p0, Lcom/ea/nimble/mtx/googleplay/GooglePlay$4;->this$0:Lcom/ea/nimble/mtx/googleplay/GooglePlay;
|
|
|
|
.line 1271
|
|
iget-object p2, p2, Lcom/ea/nimble/mtx/googleplay/GooglePlay;->mPurchasedTransactions:Ljava/util/HashMap;
|
|
|
|
invoke-virtual {p2}, Ljava/util/HashMap;->clear()V
|
|
|
|
iget-object p2, p0, Lcom/ea/nimble/mtx/googleplay/GooglePlay$4;->this$0:Lcom/ea/nimble/mtx/googleplay/GooglePlay;
|
|
|
|
.line 1272
|
|
invoke-static {p2, v1}, Lcom/ea/nimble/mtx/googleplay/GooglePlay;->access$202(Lcom/ea/nimble/mtx/googleplay/GooglePlay;Z)Z
|
|
|
|
if-eqz p1, :cond_6
|
|
|
|
iget-object p2, p0, Lcom/ea/nimble/mtx/googleplay/GooglePlay$4;->this$0:Lcom/ea/nimble/mtx/googleplay/GooglePlay;
|
|
|
|
const-string v0, "Error with GooglePlay purchased item query"
|
|
|
|
.line 1277
|
|
invoke-static {p2, p1, v0}, Lcom/ea/nimble/mtx/googleplay/GooglePlay;->access$1200(Lcom/ea/nimble/mtx/googleplay/GooglePlay;Lcom/ea/nimble/mtx/googleplay/GooglePlayError;Ljava/lang/String;)Lcom/ea/nimble/mtx/NimbleMTXError;
|
|
|
|
move-result-object p1
|
|
|
|
goto :goto_3
|
|
|
|
:cond_6
|
|
move-object p1, v2
|
|
|
|
:goto_3
|
|
iget-object p2, p0, Lcom/ea/nimble/mtx/googleplay/GooglePlay$4;->this$0:Lcom/ea/nimble/mtx/googleplay/GooglePlay;
|
|
|
|
const-string v0, "nimble.notification.mtx.restorepurchasedtransactionsfinished"
|
|
|
|
.line 1279
|
|
invoke-static {p2, v0, p1, v2, v2}, Lcom/ea/nimble/mtx/googleplay/GooglePlay;->access$1300(Lcom/ea/nimble/mtx/googleplay/GooglePlay;Ljava/lang/String;Lcom/ea/nimble/Error;Ljava/lang/String;Landroid/os/Bundle;)V
|
|
|
|
:cond_7
|
|
return-void
|
|
.end method
|