- 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
376 lines
14 KiB
Smali
376 lines
14 KiB
Smali
.class Lcom/ea/nimble/mtx/googleplay/GooglePlay$3;
|
|
.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;->purchaseItem(Ljava/lang/String;Lcom/ea/nimble/mtx/INimbleMTX$PurchaseTransactionCallback;Ljava/lang/String;)Lcom/ea/nimble/Error;
|
|
.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$newTransaction:Lcom/ea/nimble/mtx/googleplay/GooglePlayTransaction;
|
|
|
|
.field final synthetic val$sku:Ljava/lang/String;
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>(Lcom/ea/nimble/mtx/googleplay/GooglePlay;Ljava/lang/String;Lcom/ea/nimble/mtx/googleplay/GooglePlayTransaction;)V
|
|
.locals 0
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"()V"
|
|
}
|
|
.end annotation
|
|
|
|
iput-object p1, p0, Lcom/ea/nimble/mtx/googleplay/GooglePlay$3;->this$0:Lcom/ea/nimble/mtx/googleplay/GooglePlay;
|
|
|
|
iput-object p2, p0, Lcom/ea/nimble/mtx/googleplay/GooglePlay$3;->val$sku:Ljava/lang/String;
|
|
|
|
iput-object p3, p0, Lcom/ea/nimble/mtx/googleplay/GooglePlay$3;->val$newTransaction:Lcom/ea/nimble/mtx/googleplay/GooglePlayTransaction;
|
|
|
|
.line 673
|
|
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 5
|
|
.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 678
|
|
invoke-virtual {p1}, Lcom/android/billingclient/api/BillingResult;->getResponseCode()I
|
|
|
|
move-result v0
|
|
|
|
const/4 v1, 0x0
|
|
|
|
if-nez v0, :cond_3
|
|
|
|
invoke-interface {p2}, Ljava/util/List;->isEmpty()Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
goto/16 :goto_2
|
|
|
|
.line 705
|
|
:cond_0
|
|
invoke-interface {p2, v1}, Ljava/util/List;->get(I)Ljava/lang/Object;
|
|
|
|
move-result-object p1
|
|
|
|
check-cast p1, Lcom/android/billingclient/api/ProductDetails;
|
|
|
|
.line 708
|
|
invoke-virtual {p1}, Lcom/android/billingclient/api/ProductDetails;->getProductType()Ljava/lang/String;
|
|
|
|
move-result-object p2
|
|
|
|
const-string v0, "subs"
|
|
|
|
invoke-virtual {v0, p2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result p2
|
|
|
|
const v0, 0x49742400 # 1000000.0f
|
|
|
|
if-eqz p2, :cond_1
|
|
|
|
.line 710
|
|
invoke-virtual {p1}, Lcom/android/billingclient/api/ProductDetails;->getSubscriptionOfferDetails()Ljava/util/List;
|
|
|
|
move-result-object p2
|
|
|
|
.line 711
|
|
invoke-interface {p2, v1}, Ljava/util/List;->get(I)Ljava/lang/Object;
|
|
|
|
move-result-object p2
|
|
|
|
check-cast p2, Lcom/android/billingclient/api/ProductDetails$SubscriptionOfferDetails;
|
|
|
|
.line 712
|
|
invoke-virtual {p2}, Lcom/android/billingclient/api/ProductDetails$SubscriptionOfferDetails;->getPricingPhases()Lcom/android/billingclient/api/ProductDetails$PricingPhases;
|
|
|
|
move-result-object p2
|
|
|
|
invoke-virtual {p2}, Lcom/android/billingclient/api/ProductDetails$PricingPhases;->getPricingPhaseList()Ljava/util/List;
|
|
|
|
move-result-object p2
|
|
|
|
invoke-interface {p2, v1}, Ljava/util/List;->get(I)Ljava/lang/Object;
|
|
|
|
move-result-object p2
|
|
|
|
check-cast p2, Lcom/android/billingclient/api/ProductDetails$PricingPhase;
|
|
|
|
iget-object v2, p0, Lcom/ea/nimble/mtx/googleplay/GooglePlay$3;->val$newTransaction:Lcom/ea/nimble/mtx/googleplay/GooglePlayTransaction;
|
|
|
|
.line 713
|
|
invoke-virtual {p2}, Lcom/android/billingclient/api/ProductDetails$PricingPhase;->getPriceAmountMicros()J
|
|
|
|
move-result-wide v3
|
|
|
|
long-to-float v3, v3
|
|
|
|
div-float/2addr v3, v0
|
|
|
|
iput v3, v2, Lcom/ea/nimble/mtx/googleplay/GooglePlayTransaction;->mPriceDecimal:F
|
|
|
|
.line 714
|
|
invoke-virtual {p2}, Lcom/android/billingclient/api/ProductDetails$PricingPhase;->getPriceCurrencyCode()Ljava/lang/String;
|
|
|
|
move-result-object p2
|
|
|
|
goto :goto_0
|
|
|
|
:cond_1
|
|
iget-object p2, p0, Lcom/ea/nimble/mtx/googleplay/GooglePlay$3;->val$newTransaction:Lcom/ea/nimble/mtx/googleplay/GooglePlayTransaction;
|
|
|
|
.line 718
|
|
invoke-virtual {p1}, Lcom/android/billingclient/api/ProductDetails;->getOneTimePurchaseOfferDetails()Lcom/android/billingclient/api/ProductDetails$OneTimePurchaseOfferDetails;
|
|
|
|
move-result-object v2
|
|
|
|
invoke-virtual {v2}, Lcom/android/billingclient/api/ProductDetails$OneTimePurchaseOfferDetails;->getPriceAmountMicros()J
|
|
|
|
move-result-wide v2
|
|
|
|
long-to-float v2, v2
|
|
|
|
div-float/2addr v2, v0
|
|
|
|
iput v2, p2, Lcom/ea/nimble/mtx/googleplay/GooglePlayTransaction;->mPriceDecimal:F
|
|
|
|
.line 719
|
|
invoke-virtual {p1}, Lcom/android/billingclient/api/ProductDetails;->getOneTimePurchaseOfferDetails()Lcom/android/billingclient/api/ProductDetails$OneTimePurchaseOfferDetails;
|
|
|
|
move-result-object p2
|
|
|
|
invoke-virtual {p2}, Lcom/android/billingclient/api/ProductDetails$OneTimePurchaseOfferDetails;->getPriceCurrencyCode()Ljava/lang/String;
|
|
|
|
move-result-object p2
|
|
|
|
:goto_0
|
|
const-string v0, "localCurrency"
|
|
|
|
if-eqz p2, :cond_2
|
|
|
|
iget-object v1, p0, Lcom/ea/nimble/mtx/googleplay/GooglePlay$3;->val$newTransaction:Lcom/ea/nimble/mtx/googleplay/GooglePlayTransaction;
|
|
|
|
.line 724
|
|
iget-object v1, v1, Lcom/ea/nimble/mtx/googleplay/GooglePlayTransaction;->mAdditionalInfo:Ljava/util/Map;
|
|
|
|
invoke-virtual {p2}, Ljava/lang/Object;->toString()Ljava/lang/String;
|
|
|
|
move-result-object p2
|
|
|
|
invoke-interface {v1, v0, p2}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
goto :goto_1
|
|
|
|
:cond_2
|
|
const-string p2, "Currency information not currently available; using local currency instead."
|
|
|
|
new-array v1, v1, [Ljava/lang/Object;
|
|
|
|
.line 728
|
|
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$3;->val$newTransaction:Lcom/ea/nimble/mtx/googleplay/GooglePlayTransaction;
|
|
|
|
.line 729
|
|
iget-object p2, p2, Lcom/ea/nimble/mtx/googleplay/GooglePlayTransaction;->mAdditionalInfo:Ljava/util/Map;
|
|
|
|
invoke-static {}, Lcom/ea/nimble/ApplicationEnvironment;->getComponent()Lcom/ea/nimble/IApplicationEnvironment;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-interface {v1}, Lcom/ea/nimble/IApplicationEnvironment;->getCurrencyCode()Ljava/lang/String;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-interface {p2, v0, v1}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
:goto_1
|
|
iget-object p2, p0, Lcom/ea/nimble/mtx/googleplay/GooglePlay$3;->val$newTransaction:Lcom/ea/nimble/mtx/googleplay/GooglePlayTransaction;
|
|
|
|
iget-object v0, p0, Lcom/ea/nimble/mtx/googleplay/GooglePlay$3;->this$0:Lcom/ea/nimble/mtx/googleplay/GooglePlay;
|
|
|
|
.line 734
|
|
invoke-static {v0, p2}, Lcom/ea/nimble/mtx/googleplay/GooglePlay;->access$1000(Lcom/ea/nimble/mtx/googleplay/GooglePlay;Lcom/ea/nimble/mtx/googleplay/GooglePlayTransaction;)Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
iput-object v0, p2, Lcom/ea/nimble/mtx/googleplay/GooglePlayTransaction;->mDeveloperPayload:Ljava/lang/String;
|
|
|
|
iget-object p2, p0, Lcom/ea/nimble/mtx/googleplay/GooglePlay$3;->this$0:Lcom/ea/nimble/mtx/googleplay/GooglePlay;
|
|
|
|
iget-object v0, p0, Lcom/ea/nimble/mtx/googleplay/GooglePlay$3;->val$newTransaction:Lcom/ea/nimble/mtx/googleplay/GooglePlayTransaction;
|
|
|
|
.line 737
|
|
sget-object v1, Lcom/ea/nimble/mtx/googleplay/GooglePlayTransaction$GooglePlayTransactionState;->WAITING_FOR_GOOGLEPLAY_ACTIVITY_RESPONSE:Lcom/ea/nimble/mtx/googleplay/GooglePlayTransaction$GooglePlayTransactionState;
|
|
|
|
invoke-static {p2, v0, v1}, Lcom/ea/nimble/mtx/googleplay/GooglePlay;->access$900(Lcom/ea/nimble/mtx/googleplay/GooglePlay;Lcom/ea/nimble/mtx/googleplay/GooglePlayTransaction;Lcom/ea/nimble/mtx/googleplay/GooglePlayTransaction$GooglePlayTransactionState;)V
|
|
|
|
iget-object p2, p0, Lcom/ea/nimble/mtx/googleplay/GooglePlay$3;->this$0:Lcom/ea/nimble/mtx/googleplay/GooglePlay;
|
|
|
|
.line 738
|
|
invoke-static {p2}, Lcom/ea/nimble/mtx/googleplay/GooglePlay;->access$600(Lcom/ea/nimble/mtx/googleplay/GooglePlay;)Lcom/ea/nimble/mtx/googleplay/billing/BillingHelper;
|
|
|
|
move-result-object p2
|
|
|
|
invoke-static {}, Lcom/ea/nimble/ApplicationEnvironment;->getCurrentActivity()Landroid/app/Activity;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {p2, v0, p1}, Lcom/ea/nimble/mtx/googleplay/billing/BillingHelper;->launchPurchaseFlow(Landroid/app/Activity;Lcom/android/billingclient/api/ProductDetails;)V
|
|
|
|
return-void
|
|
|
|
.line 680
|
|
:cond_3
|
|
:goto_2
|
|
new-instance p2, Ljava/lang/StringBuilder;
|
|
|
|
invoke-direct {p2}, Ljava/lang/StringBuilder;-><init>()V
|
|
|
|
const-string v0, "Query inventory error: "
|
|
|
|
invoke-virtual {p2, v0}, 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 v0
|
|
|
|
invoke-virtual {p2, v0}, 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 v0, v1, [Ljava/lang/Object;
|
|
|
|
invoke-static {p0, p2, v0}, 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$3;->this$0:Lcom/ea/nimble/mtx/googleplay/GooglePlay;
|
|
|
|
.line 682
|
|
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;
|
|
|
|
.line 683
|
|
new-instance p1, Lcom/ea/nimble/mtx/NimbleMTXError;
|
|
|
|
sget-object p2, Lcom/ea/nimble/mtx/NimbleMTXError$Code;->ERROR_GETTING_PREPURCHASE_INFO:Lcom/ea/nimble/mtx/NimbleMTXError$Code;
|
|
|
|
new-instance v0, Ljava/lang/StringBuilder;
|
|
|
|
invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V
|
|
|
|
const-string v2, "Failed to get prepurchase info for item "
|
|
|
|
invoke-virtual {v0, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
iget-object v2, p0, Lcom/ea/nimble/mtx/googleplay/GooglePlay$3;->val$sku:Ljava/lang/String;
|
|
|
|
invoke-virtual {v0, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-direct {p1, p2, v0}, Lcom/ea/nimble/mtx/NimbleMTXError;-><init>(Lcom/ea/nimble/mtx/NimbleMTXError$Code;Ljava/lang/String;)V
|
|
|
|
iget-object p2, p0, Lcom/ea/nimble/mtx/googleplay/GooglePlay$3;->val$newTransaction:Lcom/ea/nimble/mtx/googleplay/GooglePlayTransaction;
|
|
|
|
.line 686
|
|
iput-object p1, p2, Lcom/ea/nimble/mtx/googleplay/GooglePlayTransaction;->mError:Ljava/lang/Exception;
|
|
|
|
.line 687
|
|
iget-object p1, p2, Lcom/ea/nimble/mtx/googleplay/GooglePlayTransaction;->mGooglePlayTransactionState:Lcom/ea/nimble/mtx/googleplay/GooglePlayTransaction$GooglePlayTransactionState;
|
|
|
|
iput-object p1, p2, Lcom/ea/nimble/mtx/googleplay/GooglePlayTransaction;->mFailedState:Lcom/ea/nimble/mtx/googleplay/GooglePlayTransaction$GooglePlayTransactionState;
|
|
|
|
iget-object p1, p0, Lcom/ea/nimble/mtx/googleplay/GooglePlay$3;->this$0:Lcom/ea/nimble/mtx/googleplay/GooglePlay;
|
|
|
|
.line 689
|
|
sget-object v0, Lcom/ea/nimble/mtx/googleplay/GooglePlayTransaction$GooglePlayTransactionState;->COMPLETE:Lcom/ea/nimble/mtx/googleplay/GooglePlayTransaction$GooglePlayTransactionState;
|
|
|
|
invoke-static {p1, p2, v0}, Lcom/ea/nimble/mtx/googleplay/GooglePlay;->access$900(Lcom/ea/nimble/mtx/googleplay/GooglePlay;Lcom/ea/nimble/mtx/googleplay/GooglePlayTransaction;Lcom/ea/nimble/mtx/googleplay/GooglePlayTransaction$GooglePlayTransactionState;)V
|
|
|
|
iget-object p1, p0, Lcom/ea/nimble/mtx/googleplay/GooglePlay$3;->val$newTransaction:Lcom/ea/nimble/mtx/googleplay/GooglePlayTransaction;
|
|
|
|
.line 690
|
|
iget-object p2, p1, Lcom/ea/nimble/mtx/googleplay/GooglePlayTransaction;->mPurchaseCallback:Lcom/ea/nimble/mtx/INimbleMTX$PurchaseTransactionCallback;
|
|
|
|
if-eqz p2, :cond_4
|
|
|
|
.line 695
|
|
:try_start_0
|
|
invoke-interface {p2, p1}, Lcom/ea/nimble/mtx/INimbleMTX$PurchaseTransactionCallback;->purchaseComplete(Lcom/ea/nimble/mtx/NimbleMTXTransaction;)V
|
|
:try_end_0
|
|
.catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0
|
|
|
|
goto :goto_3
|
|
|
|
:catch_0
|
|
move-exception p1
|
|
|
|
.line 699
|
|
new-instance p2, Ljava/lang/StringBuilder;
|
|
|
|
invoke-direct {p2}, Ljava/lang/StringBuilder;-><init>()V
|
|
|
|
const-string v0, "MTX_GOOGLE: Unhandled exception in mPurchaseCallback: "
|
|
|
|
invoke-virtual {p2, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {p2, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {p2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
move-result-object p2
|
|
|
|
new-array v0, v1, [Ljava/lang/Object;
|
|
|
|
invoke-static {p0, p2, v0}, Lcom/ea/nimble/Log$Helper;->LOGE(Ljava/lang/Object;Ljava/lang/String;[Ljava/lang/Object;)V
|
|
|
|
.line 700
|
|
invoke-virtual {p1}, Ljava/lang/Throwable;->printStackTrace()V
|
|
|
|
:cond_4
|
|
:goto_3
|
|
return-void
|
|
.end method
|