- 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
491 lines
16 KiB
Smali
491 lines
16 KiB
Smali
.class Lcom/ea/nimble/mtx/googleplay/GooglePlay$6;
|
|
.super Ljava/lang/Object;
|
|
.source "SourceFile"
|
|
|
|
# interfaces
|
|
.implements Lcom/android/billingclient/api/ProductDetailsResponseListener;
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/EnclosingMethod;
|
|
value = Lcom/ea/nimble/mtx/googleplay/GooglePlay;->getGooglePlayPricingForPendingCatalogItems(Ljava/util/List;Lcom/ea/nimble/mtx/googleplay/GooglePlay$CatalogItemCallback;)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;
|
|
|
|
.field final synthetic val$callback:Lcom/ea/nimble/mtx/googleplay/GooglePlay$CatalogItemCallback;
|
|
|
|
.field final synthetic val$itemList:Ljava/util/List;
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>(Lcom/ea/nimble/mtx/googleplay/GooglePlay;Ljava/util/List;Lcom/ea/nimble/mtx/googleplay/GooglePlay$CatalogItemCallback;)V
|
|
.locals 0
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"()V"
|
|
}
|
|
.end annotation
|
|
|
|
iput-object p1, p0, Lcom/ea/nimble/mtx/googleplay/GooglePlay$6;->this$0:Lcom/ea/nimble/mtx/googleplay/GooglePlay;
|
|
|
|
iput-object p2, p0, Lcom/ea/nimble/mtx/googleplay/GooglePlay$6;->val$itemList:Ljava/util/List;
|
|
|
|
iput-object p3, p0, Lcom/ea/nimble/mtx/googleplay/GooglePlay$6;->val$callback:Lcom/ea/nimble/mtx/googleplay/GooglePlay$CatalogItemCallback;
|
|
|
|
.line 1813
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public onProductDetailsResponse(Lcom/android/billingclient/api/BillingResult;Ljava/util/List;)V
|
|
.locals 11
|
|
.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/Nullable;
|
|
.end annotation
|
|
.end param
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Lcom/android/billingclient/api/BillingResult;",
|
|
"Ljava/util/List<",
|
|
"Lcom/android/billingclient/api/ProductDetails;",
|
|
">;)V"
|
|
}
|
|
.end annotation
|
|
|
|
.line 1817
|
|
new-instance v0, Ljava/lang/StringBuilder;
|
|
|
|
invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V
|
|
|
|
const-string v1, "GooglePlaySkuDetailsResponseListener onSkuDetailsResponse: "
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {p1}, Lcom/android/billingclient/api/BillingResult;->getResponseCode()I
|
|
|
|
move-result v1
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
const/4 v1, 0x0
|
|
|
|
new-array v2, v1, [Ljava/lang/Object;
|
|
|
|
invoke-static {p0, v0, v2}, Lcom/ea/nimble/Log$Helper;->LOGD(Ljava/lang/Object;Ljava/lang/String;[Ljava/lang/Object;)V
|
|
|
|
.line 1818
|
|
new-instance v0, Ljava/util/ArrayList;
|
|
|
|
iget-object v2, p0, Lcom/ea/nimble/mtx/googleplay/GooglePlay$6;->val$itemList:Ljava/util/List;
|
|
|
|
invoke-direct {v0, v2}, Ljava/util/ArrayList;-><init>(Ljava/util/Collection;)V
|
|
|
|
.line 1820
|
|
invoke-virtual {p1}, Lcom/android/billingclient/api/BillingResult;->getResponseCode()I
|
|
|
|
move-result v2
|
|
|
|
if-eqz v2, :cond_0
|
|
|
|
.line 1822
|
|
new-instance p2, Ljava/lang/StringBuilder;
|
|
|
|
invoke-direct {p2}, Ljava/lang/StringBuilder;-><init>()V
|
|
|
|
const-string v2, "Query inventory error: "
|
|
|
|
invoke-virtual {p2, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {p1}, Lcom/android/billingclient/api/BillingResult;->getDebugMessage()Ljava/lang/String;
|
|
|
|
move-result-object v2
|
|
|
|
invoke-virtual {p2, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {p2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
move-result-object p2
|
|
|
|
new-array v1, v1, [Ljava/lang/Object;
|
|
|
|
invoke-static {p0, p2, v1}, Lcom/ea/nimble/Log$Helper;->LOGD(Ljava/lang/Object;Ljava/lang/String;[Ljava/lang/Object;)V
|
|
|
|
iget-object p2, p0, Lcom/ea/nimble/mtx/googleplay/GooglePlay$6;->this$0:Lcom/ea/nimble/mtx/googleplay/GooglePlay;
|
|
|
|
.line 1824
|
|
invoke-static {p2, 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
|
|
|
|
iget-object p2, p0, Lcom/ea/nimble/mtx/googleplay/GooglePlay$6;->this$0:Lcom/ea/nimble/mtx/googleplay/GooglePlay;
|
|
|
|
const-string v1, "GooglePlay catalog query error"
|
|
|
|
.line 1825
|
|
invoke-static {p2, p1, v1}, 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/16 :goto_3
|
|
|
|
.line 1829
|
|
:cond_0
|
|
new-instance p1, Ljava/util/HashMap;
|
|
|
|
invoke-direct {p1}, Ljava/util/HashMap;-><init>()V
|
|
|
|
.line 1830
|
|
invoke-interface {p2}, Ljava/util/List;->iterator()Ljava/util/Iterator;
|
|
|
|
move-result-object p2
|
|
|
|
:goto_0
|
|
invoke-interface {p2}, Ljava/util/Iterator;->hasNext()Z
|
|
|
|
move-result v2
|
|
|
|
if-eqz v2, :cond_1
|
|
|
|
invoke-interface {p2}, Ljava/util/Iterator;->next()Ljava/lang/Object;
|
|
|
|
move-result-object v2
|
|
|
|
check-cast v2, Lcom/android/billingclient/api/ProductDetails;
|
|
|
|
.line 1832
|
|
invoke-virtual {v2}, Lcom/android/billingclient/api/ProductDetails;->getProductId()Ljava/lang/String;
|
|
|
|
move-result-object v3
|
|
|
|
invoke-virtual {p1, v3, v2}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
goto :goto_0
|
|
|
|
.line 1836
|
|
:cond_1
|
|
new-instance p2, Ljava/util/HashSet;
|
|
|
|
invoke-direct {p2}, Ljava/util/HashSet;-><init>()V
|
|
|
|
.line 1837
|
|
invoke-interface {v0}, Ljava/util/List;->iterator()Ljava/util/Iterator;
|
|
|
|
move-result-object v2
|
|
|
|
:cond_2
|
|
:goto_1
|
|
invoke-interface {v2}, Ljava/util/Iterator;->hasNext()Z
|
|
|
|
move-result v3
|
|
|
|
if-eqz v3, :cond_5
|
|
|
|
invoke-interface {v2}, Ljava/util/Iterator;->next()Ljava/lang/Object;
|
|
|
|
move-result-object v3
|
|
|
|
check-cast v3, Lcom/ea/nimble/mtx/googleplay/GooglePlayCatalogItem;
|
|
|
|
.line 1839
|
|
invoke-virtual {v3}, Lcom/ea/nimble/mtx/googleplay/GooglePlayCatalogItem;->getSku()Ljava/lang/String;
|
|
|
|
move-result-object v4
|
|
|
|
invoke-virtual {p1, v4}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
move-result-object v4
|
|
|
|
check-cast v4, Lcom/android/billingclient/api/ProductDetails;
|
|
|
|
if-eqz v4, :cond_4
|
|
|
|
.line 1846
|
|
invoke-virtual {v4}, Lcom/android/billingclient/api/ProductDetails;->getTitle()Ljava/lang/String;
|
|
|
|
move-result-object v5
|
|
|
|
iput-object v5, v3, Lcom/ea/nimble/mtx/googleplay/GooglePlayCatalogItem;->mTitle:Ljava/lang/String;
|
|
|
|
.line 1847
|
|
invoke-virtual {v4}, Lcom/android/billingclient/api/ProductDetails;->getDescription()Ljava/lang/String;
|
|
|
|
move-result-object v5
|
|
|
|
iput-object v5, v3, Lcom/ea/nimble/mtx/googleplay/GooglePlayCatalogItem;->mDescription:Ljava/lang/String;
|
|
|
|
.line 1848
|
|
invoke-virtual {v4}, Lcom/android/billingclient/api/ProductDetails;->getProductType()Ljava/lang/String;
|
|
|
|
move-result-object v5
|
|
|
|
const-string v6, "subs"
|
|
|
|
invoke-virtual {v6, v5}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result v5
|
|
|
|
const-string v7, "localCurrency"
|
|
|
|
const v8, 0x49742400 # 1000000.0f
|
|
|
|
if-eqz v5, :cond_3
|
|
|
|
.line 1850
|
|
invoke-virtual {v4}, Lcom/android/billingclient/api/ProductDetails;->getSubscriptionOfferDetails()Ljava/util/List;
|
|
|
|
move-result-object v5
|
|
|
|
invoke-interface {v5, v1}, Ljava/util/List;->get(I)Ljava/lang/Object;
|
|
|
|
move-result-object v5
|
|
|
|
check-cast v5, Lcom/android/billingclient/api/ProductDetails$SubscriptionOfferDetails;
|
|
|
|
invoke-virtual {v5}, Lcom/android/billingclient/api/ProductDetails$SubscriptionOfferDetails;->getPricingPhases()Lcom/android/billingclient/api/ProductDetails$PricingPhases;
|
|
|
|
move-result-object v5
|
|
|
|
invoke-virtual {v5}, Lcom/android/billingclient/api/ProductDetails$PricingPhases;->getPricingPhaseList()Ljava/util/List;
|
|
|
|
move-result-object v5
|
|
|
|
invoke-interface {v5, v1}, Ljava/util/List;->get(I)Ljava/lang/Object;
|
|
|
|
move-result-object v5
|
|
|
|
check-cast v5, Lcom/android/billingclient/api/ProductDetails$PricingPhase;
|
|
|
|
invoke-virtual {v5}, Lcom/android/billingclient/api/ProductDetails$PricingPhase;->getFormattedPrice()Ljava/lang/String;
|
|
|
|
move-result-object v5
|
|
|
|
iput-object v5, v3, Lcom/ea/nimble/mtx/googleplay/GooglePlayCatalogItem;->mPriceWithCurrencyAndFormat:Ljava/lang/String;
|
|
|
|
.line 1852
|
|
invoke-virtual {v4}, Lcom/android/billingclient/api/ProductDetails;->getSubscriptionOfferDetails()Ljava/util/List;
|
|
|
|
move-result-object v5
|
|
|
|
invoke-interface {v5, v1}, Ljava/util/List;->get(I)Ljava/lang/Object;
|
|
|
|
move-result-object v5
|
|
|
|
check-cast v5, Lcom/android/billingclient/api/ProductDetails$SubscriptionOfferDetails;
|
|
|
|
invoke-virtual {v5}, Lcom/android/billingclient/api/ProductDetails$SubscriptionOfferDetails;->getPricingPhases()Lcom/android/billingclient/api/ProductDetails$PricingPhases;
|
|
|
|
move-result-object v5
|
|
|
|
invoke-virtual {v5}, Lcom/android/billingclient/api/ProductDetails$PricingPhases;->getPricingPhaseList()Ljava/util/List;
|
|
|
|
move-result-object v5
|
|
|
|
invoke-interface {v5, v1}, Ljava/util/List;->get(I)Ljava/lang/Object;
|
|
|
|
move-result-object v5
|
|
|
|
check-cast v5, Lcom/android/billingclient/api/ProductDetails$PricingPhase;
|
|
|
|
invoke-virtual {v5}, Lcom/android/billingclient/api/ProductDetails$PricingPhase;->getPriceAmountMicros()J
|
|
|
|
move-result-wide v9
|
|
|
|
long-to-float v5, v9
|
|
|
|
div-float/2addr v5, v8
|
|
|
|
iput v5, v3, Lcom/ea/nimble/mtx/googleplay/GooglePlayCatalogItem;->mPriceDecimal:F
|
|
|
|
.line 1853
|
|
iget-object v5, v3, Lcom/ea/nimble/mtx/googleplay/GooglePlayCatalogItem;->mAdditionalInfo:Ljava/util/Map;
|
|
|
|
invoke-virtual {v4}, Lcom/android/billingclient/api/ProductDetails;->getSubscriptionOfferDetails()Ljava/util/List;
|
|
|
|
move-result-object v8
|
|
|
|
invoke-interface {v8, v1}, Ljava/util/List;->get(I)Ljava/lang/Object;
|
|
|
|
move-result-object v8
|
|
|
|
check-cast v8, Lcom/android/billingclient/api/ProductDetails$SubscriptionOfferDetails;
|
|
|
|
invoke-virtual {v8}, Lcom/android/billingclient/api/ProductDetails$SubscriptionOfferDetails;->getPricingPhases()Lcom/android/billingclient/api/ProductDetails$PricingPhases;
|
|
|
|
move-result-object v8
|
|
|
|
invoke-virtual {v8}, Lcom/android/billingclient/api/ProductDetails$PricingPhases;->getPricingPhaseList()Ljava/util/List;
|
|
|
|
move-result-object v8
|
|
|
|
invoke-interface {v8, v1}, Ljava/util/List;->get(I)Ljava/lang/Object;
|
|
|
|
move-result-object v8
|
|
|
|
check-cast v8, Lcom/android/billingclient/api/ProductDetails$PricingPhase;
|
|
|
|
invoke-virtual {v8}, Lcom/android/billingclient/api/ProductDetails$PricingPhase;->getPriceCurrencyCode()Ljava/lang/String;
|
|
|
|
move-result-object v8
|
|
|
|
invoke-interface {v5, v7, v8}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
goto :goto_2
|
|
|
|
.line 1857
|
|
:cond_3
|
|
invoke-virtual {v4}, Lcom/android/billingclient/api/ProductDetails;->getOneTimePurchaseOfferDetails()Lcom/android/billingclient/api/ProductDetails$OneTimePurchaseOfferDetails;
|
|
|
|
move-result-object v5
|
|
|
|
invoke-virtual {v5}, Lcom/android/billingclient/api/ProductDetails$OneTimePurchaseOfferDetails;->getFormattedPrice()Ljava/lang/String;
|
|
|
|
move-result-object v5
|
|
|
|
iput-object v5, v3, Lcom/ea/nimble/mtx/googleplay/GooglePlayCatalogItem;->mPriceWithCurrencyAndFormat:Ljava/lang/String;
|
|
|
|
.line 1858
|
|
invoke-virtual {v4}, Lcom/android/billingclient/api/ProductDetails;->getOneTimePurchaseOfferDetails()Lcom/android/billingclient/api/ProductDetails$OneTimePurchaseOfferDetails;
|
|
|
|
move-result-object v5
|
|
|
|
invoke-virtual {v5}, Lcom/android/billingclient/api/ProductDetails$OneTimePurchaseOfferDetails;->getPriceAmountMicros()J
|
|
|
|
move-result-wide v9
|
|
|
|
long-to-float v5, v9
|
|
|
|
div-float/2addr v5, v8
|
|
|
|
iput v5, v3, Lcom/ea/nimble/mtx/googleplay/GooglePlayCatalogItem;->mPriceDecimal:F
|
|
|
|
.line 1859
|
|
iget-object v5, v3, Lcom/ea/nimble/mtx/googleplay/GooglePlayCatalogItem;->mAdditionalInfo:Ljava/util/Map;
|
|
|
|
invoke-virtual {v4}, Lcom/android/billingclient/api/ProductDetails;->getOneTimePurchaseOfferDetails()Lcom/android/billingclient/api/ProductDetails$OneTimePurchaseOfferDetails;
|
|
|
|
move-result-object v8
|
|
|
|
invoke-virtual {v8}, Lcom/android/billingclient/api/ProductDetails$OneTimePurchaseOfferDetails;->getPriceCurrencyCode()Ljava/lang/String;
|
|
|
|
move-result-object v8
|
|
|
|
invoke-interface {v5, v7, v8}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
.line 1863
|
|
:goto_2
|
|
invoke-virtual {v4}, Lcom/android/billingclient/api/ProductDetails;->getProductType()Ljava/lang/String;
|
|
|
|
move-result-object v4
|
|
|
|
invoke-virtual {v4, v6}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result v4
|
|
|
|
if-eqz v4, :cond_2
|
|
|
|
iget-object v4, v3, Lcom/ea/nimble/mtx/googleplay/GooglePlayCatalogItem;->mItemType:Lcom/ea/nimble/mtx/NimbleCatalogItem$ItemType;
|
|
|
|
sget-object v5, Lcom/ea/nimble/mtx/NimbleCatalogItem$ItemType;->SUBSCRIPTION:Lcom/ea/nimble/mtx/NimbleCatalogItem$ItemType;
|
|
|
|
if-eq v4, v5, :cond_2
|
|
|
|
.line 1865
|
|
new-instance v4, Ljava/lang/StringBuilder;
|
|
|
|
invoke-direct {v4}, Ljava/lang/StringBuilder;-><init>()V
|
|
|
|
const-string v6, "EA Catalog failed to recognize "
|
|
|
|
invoke-virtual {v4, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v3}, Lcom/ea/nimble/mtx/googleplay/GooglePlayCatalogItem;->getSku()Ljava/lang/String;
|
|
|
|
move-result-object v6
|
|
|
|
invoke-virtual {v4, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
const-string v6, " as subscription. Updating item type based on First Party response."
|
|
|
|
invoke-virtual {v4, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v4}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
move-result-object v4
|
|
|
|
new-array v6, v1, [Ljava/lang/Object;
|
|
|
|
invoke-static {p0, v4, v6}, Lcom/ea/nimble/Log$Helper;->LOGW(Ljava/lang/Object;Ljava/lang/String;[Ljava/lang/Object;)V
|
|
|
|
.line 1866
|
|
iput-object v5, v3, Lcom/ea/nimble/mtx/googleplay/GooglePlayCatalogItem;->mItemType:Lcom/ea/nimble/mtx/NimbleCatalogItem$ItemType;
|
|
|
|
goto/16 :goto_1
|
|
|
|
.line 1871
|
|
:cond_4
|
|
invoke-interface {p2, v3}, Ljava/util/Set;->add(Ljava/lang/Object;)Z
|
|
|
|
goto/16 :goto_1
|
|
|
|
.line 1876
|
|
:cond_5
|
|
invoke-interface {p2}, Ljava/util/Set;->size()I
|
|
|
|
move-result p1
|
|
|
|
if-lez p1, :cond_6
|
|
|
|
.line 1878
|
|
invoke-interface {v0, p2}, Ljava/util/List;->removeAll(Ljava/util/Collection;)Z
|
|
|
|
.line 1880
|
|
:cond_6
|
|
invoke-interface {v0}, Ljava/util/List;->size()I
|
|
|
|
move-result p1
|
|
|
|
if-nez p1, :cond_7
|
|
|
|
.line 1882
|
|
new-instance p1, Lcom/ea/nimble/mtx/NimbleMTXError;
|
|
|
|
sget-object p2, Lcom/ea/nimble/mtx/NimbleMTXError$Code;->EMPTY_BILLING_CATALOG:Lcom/ea/nimble/mtx/NimbleMTXError$Code;
|
|
|
|
const-string v1, "Billing platform returned no matching items"
|
|
|
|
invoke-direct {p1, p2, v1}, Lcom/ea/nimble/mtx/NimbleMTXError;-><init>(Lcom/ea/nimble/mtx/NimbleMTXError$Code;Ljava/lang/String;)V
|
|
|
|
goto :goto_3
|
|
|
|
:cond_7
|
|
const/4 p1, 0x0
|
|
|
|
:goto_3
|
|
iget-object p2, p0, Lcom/ea/nimble/mtx/googleplay/GooglePlay$6;->val$callback:Lcom/ea/nimble/mtx/googleplay/GooglePlay$CatalogItemCallback;
|
|
|
|
.line 1887
|
|
invoke-interface {p2, v0, p1}, Lcom/ea/nimble/mtx/googleplay/GooglePlay$CatalogItemCallback;->onCatalogItemsRetrieved(Ljava/util/List;Ljava/lang/Exception;)V
|
|
|
|
return-void
|
|
.end method
|