Jump to content

Recommended Posts

Posted

I started to crack in app billing of a game jaws revenge

Decompiles and got smali file of ovserver

But got this code cn any one knows how to edit this smali code plz d2dyno help me

I didnt post in moding section coz new topic is not started by me coz i am not a vip......


.class public Lcom/amazon/inapp/purchasing/BasePurchasingObserver;

.super Lcom/amazon/inapp/purchasing/PurchasingObserver;


# direct methods

.method public constructor <init>(Landroid/content/Context;)V

.locals 0

invoke-direct {p0, p1}, Lcom/amazon/inapp/purchasing/PurchasingObserver;-><init>(Landroid/content/Context;)V

return-void

.end method


# virtual methods

.method public onGetUserIdResponse(Lcom/amazon/inapp/purchasing/GetUserIdResponse;)V

.locals 0

return-void

.end method

.method public onItemDataResponse(Lcom/amazon/inapp/purchasing/ItemDataResponse;)V

.locals 0

return-void

.end method

.method public onPurchaseResponse(Lcom/amazon/inapp/purchasing/PurchaseResponse;)V

.locals 0

return-void

.end method

.method public onPurchaseUpdatesResponse(Lcom/amazon/inapp/purchasing/PurchaseUpdatesResponse;)V

.locals 0

return-void

.end method

.method public onSdkAvailable(Z)V

.locals 0

return-void

.end method

Help me to mod this game.........

Modded many games bt strucked at this game<<<<<<<<<

Posted

Yes thats the real problem...........its a very small file so I am getting confused in editing the file

  • Administrators
Posted

This is a proper file:


.class public Lcom/disney/billing/WMWPurchaseHandler;

.super Lcom/disney/billing/PurchaseObserver;

.source "WMWPurchaseHandler.java"


# annotations

.annotation system Ldalvik/annotation/MemberClasses;

    value = {

	    Lcom/disney/billing/WMWPurchaseHandler$CatalogEntry;,

	    Lcom/disney/billing/WMWPurchaseHandler$Managed;

    }

.end annotation


# static fields

.field private static final CATALOG:[Lcom/disney/billing/WMWPurchaseHandler$CatalogEntry; = null

.field private static final DIALOG_BILLING_NOT_SUPPORTED_ID:I = 0x2

.field private static final DIALOG_CANNOT_CONNECT_ID:I = 0x1

.field public static final INITIALIZED:Ljava/lang/String; = "Google_IAP_Initialized_2"

.field private static final TAG:Ljava/lang/String; = "WMW-G-IAP"


# instance fields

.field private isRestoreRequest:Z

.field private mActivity:Landroid/app/Activity;

.field private mBillingService:Lcom/disney/billing/BillingService;

.field private mIsSupported:Z

.field private mItemName:Ljava/lang/String;

.field private mPayloadContents:Ljava/lang/String;

.field private mSku:Ljava/lang/String;

.field private systemError:Z

.field private timerNotify:Ljava/lang/Runnable;

.field private willSendNotification:Z


# direct methods

.method static constructor <clinit>()V

    .locals 6

    .prologue

    .line 46

    const/4 v0, 0x1

    new-array v0, v0, [Lcom/disney/billing/WMWPurchaseHandler$CatalogEntry;

    const/4 v1, 0x0

    new-instance v2, Lcom/disney/billing/WMWPurchaseHandler$CatalogEntry;

    sget-object v3, Lcom/disney/common/Constants;->GOOGLE_IAP_CRANKY_SKU:Ljava/lang/String;

    const-string v4, ""

    sget-object v5, Lcom/disney/billing/WMWPurchaseHandler$Managed;->MANAGED:Lcom/disney/billing/WMWPurchaseHandler$Managed;

    invoke-direct {v2, v3, v4, v5}, Lcom/disney/billing/WMWPurchaseHandler$CatalogEntry;-><init>(Ljava/lang/String;Ljava/lang/String;Lcom/disney/billing/WMWPurchaseHandler$Managed;)V

    aput-object v2, v0, v1

    sput-object v0, Lcom/disney/billing/WMWPurchaseHandler;->CATALOG:[Lcom/disney/billing/WMWPurchaseHandler$CatalogEntry;

    return-void

.end method

.method public constructor <init>(Landroid/app/Activity;Landroid/os/Handler;)V

    .locals 2

    .parameter "activity"

    .parameter "handler"

    .prologue

    const/4 v1, 0x0

    .line 56

    invoke-direct {p0, p1, p2}, Lcom/disney/billing/PurchaseObserver;-><init>(Landroid/app/Activity;Landroid/os/Handler;)V

    .line 31

    const/4 v0, 0x0

    iput-object v0, p0, Lcom/disney/billing/WMWPurchaseHandler;->mPayloadContents:Ljava/lang/String;

    .line 33

    sget-object v0, Lcom/disney/billing/WMWPurchaseHandler;->CATALOG:[Lcom/disney/billing/WMWPurchaseHandler$CatalogEntry;

    aget-object v0, v0, v1

    iget-object v0, v0, Lcom/disney/billing/WMWPurchaseHandler$CatalogEntry;->name:Ljava/lang/String;

    iput-object v0, p0, Lcom/disney/billing/WMWPurchaseHandler;->mItemName:Ljava/lang/String;

    .line 34

    sget-object v0, Lcom/disney/billing/WMWPurchaseHandler;->CATALOG:[Lcom/disney/billing/WMWPurchaseHandler$CatalogEntry;

    aget-object v0, v0, v1

    iget-object v0, v0, Lcom/disney/billing/WMWPurchaseHandler$CatalogEntry;->sku:Ljava/lang/String;

    iput-object v0, p0, Lcom/disney/billing/WMWPurchaseHandler;->mSku:Ljava/lang/String;

    .line 36

    iput-boolean v1, p0, Lcom/disney/billing/WMWPurchaseHandler;->mIsSupported:Z

    .line 38

    iput-boolean v1, p0, Lcom/disney/billing/WMWPurchaseHandler;->isRestoreRequest:Z

    .line 40

    iput-boolean v1, p0, Lcom/disney/billing/WMWPurchaseHandler;->willSendNotification:Z

    .line 135

    iput-boolean v1, p0, Lcom/disney/billing/WMWPurchaseHandler;->systemError:Z

    .line 302

    new-instance v0, Lcom/disney/billing/WMWPurchaseHandler$1;

    invoke-direct {v0, p0}, Lcom/disney/billing/WMWPurchaseHandler$1;-><init>(Lcom/disney/billing/WMWPurchaseHandler;)V

    iput-object v0, p0, Lcom/disney/billing/WMWPurchaseHandler;->timerNotify:Ljava/lang/Runnable;

    .line 57

    iput-object p1, p0, Lcom/disney/billing/WMWPurchaseHandler;->mActivity:Landroid/app/Activity;

    .line 59

    new-instance v0, Lcom/disney/billing/BillingService;

    invoke-direct {v0}, Lcom/disney/billing/BillingService;-><init>()V

    iput-object v0, p0, Lcom/disney/billing/WMWPurchaseHandler;->mBillingService:Lcom/disney/billing/BillingService;

    .line 60

    iget-object v0, p0, Lcom/disney/billing/WMWPurchaseHandler;->mBillingService:Lcom/disney/billing/BillingService;

    invoke-virtual {v0, p1}, Lcom/disney/billing/BillingService;->setContext(Landroid/content/Context;)V

    .line 63

    invoke-static {p0}, Lcom/disney/billing/ResponseHandler;->register(Lcom/disney/billing/PurchaseObserver;)V

    .line 64

    iget-object v0, p0, Lcom/disney/billing/WMWPurchaseHandler;->mBillingService:Lcom/disney/billing/BillingService;

    invoke-virtual {v0}, Lcom/disney/billing/BillingService;->checkBillingSupported()Z

    move-result v0

    if-nez v0, :cond_0

    .line 68

    :cond_0

    return-void

.end method

.method static synthetic access$000(Lcom/disney/billing/WMWPurchaseHandler;)Ljava/lang/String;

    .locals 1

    .parameter "x0"

    .prologue

    .line 16

    iget-object v0, p0, Lcom/disney/billing/WMWPurchaseHandler;->mSku:Ljava/lang/String;

    return-object v0

.end method

.method static synthetic access$100(Lcom/disney/billing/WMWPurchaseHandler;)Landroid/app/Activity;

    .locals 1

    .parameter "x0"

    .prologue

    .line 16

    iget-object v0, p0, Lcom/disney/billing/WMWPurchaseHandler;->mActivity:Landroid/app/Activity;

    return-object v0

.end method


# virtual methods

.method public cleanup()V

    .locals 1

    .prologue

    .line 80

    iget-object v0, p0, Lcom/disney/billing/WMWPurchaseHandler;->mBillingService:Lcom/disney/billing/BillingService;

    invoke-virtual {v0}, Lcom/disney/billing/BillingService;->unbind()V

    .line 81

    return-void

.end method

.method public disabled()V

    .locals 0

    .prologue

    .line 77

    return-void

.end method

.method public enabled()V

    .locals 0

    .prologue

    .line 71

    invoke-static {p0}, Lcom/disney/billing/ResponseHandler;->register(Lcom/disney/billing/PurchaseObserver;)V

    .line 72

    return-void

.end method

.method public onBillingSupported(Z)V

    .locals 7

    .parameter "supported"

    .prologue

    const/4 v6, 0x1

    const/4 v5, 0x0

    .line 86

    const-string v2, "WMW-G-IAP"

    new-instance v3, Ljava/lang/StringBuilder;

    invoke-direct {v3}, Ljava/lang/StringBuilder;-><init>()V

    const-string v4, "supported: "

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v3

    invoke-virtual {v3, p1}, Ljava/lang/StringBuilder;->append(Z)Ljava/lang/StringBuilder;

    move-result-object v3

    invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v3

    invoke-static {v2, v3}, Landroid/util/Log;->i(Ljava/lang/String;Ljava/lang/String;)I

    .line 88

    if-eqz p1, :cond_1

    .line 89

    iput-boolean v6, p0, Lcom/disney/billing/WMWPurchaseHandler;->mIsSupported:Z

    .line 90

    iput-boolean v6, p0, Lcom/disney/billing/WMWPurchaseHandler;->willSendNotification:Z

    .line 92

    iget-object v2, p0, Lcom/disney/billing/WMWPurchaseHandler;->mActivity:Landroid/app/Activity;

    invoke-virtual {v2, v5}, Landroid/app/Activity;->getPreferences(I)Landroid/content/SharedPreferences;

    move-result-object v1

    .line 93

    .local v1, prefs:Landroid/content/SharedPreferences;

    const-string v2, "Google_IAP_Initialized_2"

    invoke-interface {v1, v2, v5}, Landroid/content/SharedPreferences;->getBoolean(Ljava/lang/String;Z)Z

    move-result v0

    .line 94

    .local v0, isRestored:Z

    if-nez v0, :cond_0

    .line 95

    iput-boolean v5, p0, Lcom/disney/billing/WMWPurchaseHandler;->systemError:Z

    .line 96

    iput-boolean v5, p0, Lcom/disney/billing/WMWPurchaseHandler;->willSendNotification:Z

    .line 97

    invoke-virtual {p0}, Lcom/disney/billing/WMWPurchaseHandler;->requestRestore()V

    .line 104

    .end local v0		   #isRestored:Z

    .end local v1		   #prefs:Landroid/content/SharedPreferences;

    :cond_0

    :goto_0

    iget-object v2, p0, Lcom/disney/billing/WMWPurchaseHandler;->mActivity:Landroid/app/Activity;

    check-cast v2, Lcom/disney/common/BaseActivity;

    invoke-virtual {v2, p1}, Lcom/disney/common/BaseActivity;->notifyIAPAvailability(Z)V

    .line 105

    return-void

    .line 101

    :cond_1

    iput-boolean v5, p0, Lcom/disney/billing/WMWPurchaseHandler;->mIsSupported:Z

    goto :goto_0

.end method

.method public onPurchaseStateChange(Lcom/disney/billing/Consts$PurchaseState;Ljava/lang/String;IJLjava/lang/String;)V

    .locals 3

    .parameter "purchaseState"

    .parameter "itemId"

    .parameter "quantity"

    .parameter "purchaseTime"

    .parameter "developerPayload"

    .prologue

    .line 111

    const-string v0, "WMW-G-IAP"

    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    const-string v2, "onPurchaseStateChange() itemId: "

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1, p2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    const-string v2, " "

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-static {v0, v1}, Landroid/util/Log;->i(Ljava/lang/String;Ljava/lang/String;)I

    .line 114

    if-nez p6, :cond_2

    .line 121

    :goto_0

    sget-object v0, Lcom/disney/billing/Consts$PurchaseState;->PURCHASED:Lcom/disney/billing/Consts$PurchaseState;

    if-ne p1, v0, :cond_1

    .line 123

    iget-boolean v0, p0, Lcom/disney/billing/WMWPurchaseHandler;->systemError:Z

    if-eqz v0, :cond_0

    .line 124

    const/4 v0, 0x0

    iput-boolean v0, p0, Lcom/disney/billing/WMWPurchaseHandler;->isRestoreRequest:Z

    .line 126

    :cond_0

    iget-object v0, p0, Lcom/disney/billing/WMWPurchaseHandler;->mActivity:Landroid/app/Activity;

    check-cast v0, Lcom/disney/common/BaseActivity;

    iget-boolean v1, p0, Lcom/disney/billing/WMWPurchaseHandler;->isRestoreRequest:Z

    invoke-virtual {v0, p2, v1}, Lcom/disney/common/BaseActivity;->notifyPurchaseSuccess(Ljava/lang/String;Z)V

    .line 133

    :cond_1

    return-void

    .line 117

    :cond_2

    const-string v0, "WMW-G-IAP"

    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    const-string v2, "developerPayload: "

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1, p6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-static {v0, v1}, Landroid/util/Log;->i(Ljava/lang/String;Ljava/lang/String;)I

    goto :goto_0

.end method

.method public onRequestPurchaseResponse(Lcom/disney/billing/BillingService$RequestPurchase;Lcom/disney/billing/Consts$ResponseCode;)V

    .locals 7

    .parameter "request"

    .parameter "responseCode"

    .prologue

    const/4 v6, 0x0

    .line 139

    const/4 v1, 0x0

    .line 141

    .local v1, failed:Z

    const-string v3, "WMW-G-IAP"

    new-instance v4, Ljava/lang/StringBuilder;

    invoke-direct {v4}, Ljava/lang/StringBuilder;-><init>()V

    iget-object v5, p1, Lcom/disney/billing/BillingService$RequestPurchase;->mProductId:Ljava/lang/String;

    invoke-virtual {v4, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v4

    const-string v5, ": "

    invoke-virtual {v4, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v4

    invoke-virtual {v4, p2}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;

    move-result-object v4

    invoke-virtual {v4}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v4

    invoke-static {v3, v4}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I

    .line 144

    sget-object v3, Lcom/disney/billing/Consts$ResponseCode;->RESULT_OK:Lcom/disney/billing/Consts$ResponseCode;

    if-ne p2, v3, :cond_1

    .line 146

    const-string v3, "WMW-G-IAP"

    const-string v4, "purchase was successfully sent to server"

    invoke-static {v3, v4}, Landroid/util/Log;->i(Ljava/lang/String;Ljava/lang/String;)I

    .line 149

    iget-object v3, p0, Lcom/disney/billing/WMWPurchaseHandler;->mActivity:Landroid/app/Activity;

    check-cast v3, Lcom/disney/common/BaseActivity;

    iget-object v4, p1, Lcom/disney/billing/BillingService$RequestPurchase;->mProductId:Ljava/lang/String;

    iget-boolean v5, p0, Lcom/disney/billing/WMWPurchaseHandler;->isRestoreRequest:Z

    invoke-virtual {v3, v4, v5}, Lcom/disney/common/BaseActivity;->notifyPurchaseSuccess(Ljava/lang/String;Z)V

    .line 181

    :goto_0

    if-eqz v1, :cond_0

    .line 182

    iget-object v3, p0, Lcom/disney/billing/WMWPurchaseHandler;->mActivity:Landroid/app/Activity;

    invoke-virtual {v3, v6}, Landroid/app/Activity;->getPreferences(I)Landroid/content/SharedPreferences;

    move-result-object v2

    .line 183

    .local v2, prefs:Landroid/content/SharedPreferences;

    invoke-interface {v2}, Landroid/content/SharedPreferences;->edit()Landroid/content/SharedPreferences$Editor;

    move-result-object v0

    .line 184

    .local v0, edit:Landroid/content/SharedPreferences$Editor;

    const-string v3, "Google_IAP_Initialized_2"

    invoke-interface {v0, v3, v6}, Landroid/content/SharedPreferences$Editor;->putBoolean(Ljava/lang/String;Z)Landroid/content/SharedPreferences$Editor;

    .line 185

    invoke-interface {v0}, Landroid/content/SharedPreferences$Editor;->commit()Z

    .line 188

    .end local v0		   #edit:Landroid/content/SharedPreferences$Editor;

    .end local v2		   #prefs:Landroid/content/SharedPreferences;

    :cond_0

    return-void

    .line 150

    :cond_1

    sget-object v3, Lcom/disney/billing/Consts$ResponseCode;->RESULT_USER_CANCELED:Lcom/disney/billing/Consts$ResponseCode;

    if-ne p2, v3, :cond_2

    .line 152

    const-string v3, "WMW-G-IAP"

    const-string v4, "user cancelled purchase"

    invoke-static {v3, v4}, Landroid/util/Log;->i(Ljava/lang/String;Ljava/lang/String;)I

    .line 155

    iget-object v3, p0, Lcom/disney/billing/WMWPurchaseHandler;->mActivity:Landroid/app/Activity;

    check-cast v3, Lcom/disney/common/BaseActivity;

    iget-object v4, p1, Lcom/disney/billing/BillingService$RequestPurchase;->mProductId:Ljava/lang/String;

    invoke-virtual {v3, v4}, Lcom/disney/common/BaseActivity;->notifyPurchaseCancelled(Ljava/lang/String;)V

    goto :goto_0

    .line 156

    :cond_2

    sget-object v3, Lcom/disney/billing/Consts$ResponseCode;->RESULT_ITEM_UNAVAILABLE:Lcom/disney/billing/Consts$ResponseCode;

    if-eq p2, v3, :cond_3

    sget-object v3, Lcom/disney/billing/Consts$ResponseCode;->RESULT_BILLING_UNAVAILABLE:Lcom/disney/billing/Consts$ResponseCode;

    if-eq p2, v3, :cond_3

    sget-object v3, Lcom/disney/billing/Consts$ResponseCode;->RESULT_SERVICE_UNAVAILABLE:Lcom/disney/billing/Consts$ResponseCode;

    if-ne p2, v3, :cond_4

    .line 159

    :cond_3

    const-string v3, "WMW-G-IAP"

    const-string v4, "purchase unavailable"

    invoke-static {v3, v4}, Landroid/util/Log;->i(Ljava/lang/String;Ljava/lang/String;)I

    .line 162

    const/4 v1, 0x1

    .line 163

    iget-object v3, p0, Lcom/disney/billing/WMWPurchaseHandler;->mActivity:Landroid/app/Activity;

    check-cast v3, Lcom/disney/common/BaseActivity;

    iget-object v4, p1, Lcom/disney/billing/BillingService$RequestPurchase;->mProductId:Ljava/lang/String;

    invoke-virtual {v3, v4}, Lcom/disney/common/BaseActivity;->notifyPurchaseFailed(Ljava/lang/String;)V

    goto :goto_0

    .line 166

    :cond_4

    const-string v3, "WMW-G-IAP"

    const-string v4, "purchase failed"

    invoke-static {v3, v4}, Landroid/util/Log;->i(Ljava/lang/String;Ljava/lang/String;)I

    .line 170

    iget-boolean v3, p0, Lcom/disney/billing/WMWPurchaseHandler;->systemError:Z

    if-nez v3, :cond_5

    .line 171

    const/4 v3, 0x1

    iput-boolean v3, p0, Lcom/disney/billing/WMWPurchaseHandler;->systemError:Z

    .line 172

    iput-boolean v6, p0, Lcom/disney/billing/WMWPurchaseHandler;->willSendNotification:Z

    .line 173

    invoke-virtual {p0}, Lcom/disney/billing/WMWPurchaseHandler;->requestRestore()V

    .line 177

    :goto_1

    const/4 v1, 0x1

    goto :goto_0

    .line 175

    :cond_5

    iget-object v3, p0, Lcom/disney/billing/WMWPurchaseHandler;->mActivity:Landroid/app/Activity;

    check-cast v3, Lcom/disney/common/BaseActivity;

    iget-object v4, p1, Lcom/disney/billing/BillingService$RequestPurchase;->mProductId:Ljava/lang/String;

    invoke-virtual {v3, v4}, Lcom/disney/common/BaseActivity;->notifyPurchaseFailed(Ljava/lang/String;)V

    goto :goto_1

.end method

.method public onRestoreTransactionsResponse(Lcom/disney/billing/BillingService$RestoreTransactions;Lcom/disney/billing/Consts$ResponseCode;)V

    .locals 6

    .parameter "request"

    .parameter "responseCode"

    .prologue

    const/4 v5, 0x1

    .line 194

    sget-object v2, Lcom/disney/billing/Consts$ResponseCode;->RESULT_OK:Lcom/disney/billing/Consts$ResponseCode;

    if-ne p2, v2, :cond_0

    .line 196

    const-string v2, "WMW-G-IAP"

    const-string v3, "completed RestoreTransactions request"

    invoke-static {v2, v3}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I

    .line 200

    iget-object v2, p0, Lcom/disney/billing/WMWPurchaseHandler;->mActivity:Landroid/app/Activity;

    const/4 v3, 0x0

    invoke-virtual {v2, v3}, Landroid/app/Activity;->getPreferences(I)Landroid/content/SharedPreferences;

    move-result-object v1

    .line 201

    .local v1, prefs:Landroid/content/SharedPreferences;

    invoke-interface {v1}, Landroid/content/SharedPreferences;->edit()Landroid/content/SharedPreferences$Editor;

    move-result-object v0

    .line 202

    .local v0, edit:Landroid/content/SharedPreferences$Editor;

    const-string v2, "Google_IAP_Initialized_2"

    invoke-interface {v0, v2, v5}, Landroid/content/SharedPreferences$Editor;->putBoolean(Ljava/lang/String;Z)Landroid/content/SharedPreferences$Editor;

    .line 203

    invoke-interface {v0}, Landroid/content/SharedPreferences$Editor;->commit()Z

    .line 220

    .end local v0		   #edit:Landroid/content/SharedPreferences$Editor;

    .end local v1		   #prefs:Landroid/content/SharedPreferences;

    :goto_0

    iput-boolean v5, p0, Lcom/disney/billing/WMWPurchaseHandler;->willSendNotification:Z

    .line 222

    return-void

    .line 212

    :cond_0

    const-string v2, "WMW-G-IAP"

    new-instance v3, Ljava/lang/StringBuilder;

    invoke-direct {v3}, Ljava/lang/StringBuilder;-><init>()V

    const-string v4, "RestoreTransactions error: "

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v3

    invoke-virtual {v3, p2}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;

    move-result-object v3

    invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v3

    invoke-static {v2, v3}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I

    .line 215

    iget-object v2, p0, Lcom/disney/billing/WMWPurchaseHandler;->mActivity:Landroid/app/Activity;

    check-cast v2, Lcom/disney/common/BaseActivity;

    iget-object v3, p0, Lcom/disney/billing/WMWPurchaseHandler;->mSku:Ljava/lang/String;

    invoke-virtual {v2, v3}, Lcom/disney/common/BaseActivity;->notifyPurchaseFailed(Ljava/lang/String;)V

    goto :goto_0

.end method

.method public requestItemData()V

    .locals 3

    .prologue

    .line 225

    invoke-virtual {p0}, Lcom/disney/billing/WMWPurchaseHandler;->enabled()V

    .line 227

    iget-boolean v0, p0, Lcom/disney/billing/WMWPurchaseHandler;->mIsSupported:Z

    if-nez v0, :cond_0

    .line 228

    iget-object v0, p0, Lcom/disney/billing/WMWPurchaseHandler;->mActivity:Landroid/app/Activity;

    check-cast v0, Lcom/disney/common/BaseActivity;

    iget-boolean v1, p0, Lcom/disney/billing/WMWPurchaseHandler;->mIsSupported:Z

    invoke-virtual {v0, v1}, Lcom/disney/common/BaseActivity;->notifyIAPAvailability(Z)V

    .line 229

    const-string v0, "WMW-G-IAP"

    const-string v1, "IAP is not supported"

    invoke-static {v0, v1}, Landroid/util/Log;->i(Ljava/lang/String;Ljava/lang/String;)I

    .line 237

    :goto_0

    return-void

    .line 233

    :cond_0

    const/4 v0, 0x1

    iput-boolean v0, p0, Lcom/disney/billing/WMWPurchaseHandler;->isRestoreRequest:Z

    .line 235

    const-string v0, "WMW-G-IAP"

    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    const-string v2, "item data: "

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    iget-object v2, p0, Lcom/disney/billing/WMWPurchaseHandler;->mItemName:Ljava/lang/String;

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    const-string v2, " sku: "

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    iget-object v2, p0, Lcom/disney/billing/WMWPurchaseHandler;->mSku:Ljava/lang/String;

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-static {v0, v1}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I

    goto :goto_0

.end method

.method public requestItemInfo(Ljava/lang/String;Ljava/lang/String;)V

    .locals 3

    .parameter "itemID"

    .parameter "itemName"

    .prologue

    .line 279

    invoke-virtual {p0}, Lcom/disney/billing/WMWPurchaseHandler;->enabled()V

    .line 281

    iget-boolean v0, p0, Lcom/disney/billing/WMWPurchaseHandler;->mIsSupported:Z

    if-nez v0, :cond_0

    .line 282

    iget-object v0, p0, Lcom/disney/billing/WMWPurchaseHandler;->mActivity:Landroid/app/Activity;

    check-cast v0, Lcom/disney/common/BaseActivity;

    invoke-virtual {v0, p1}, Lcom/disney/common/BaseActivity;->notifyProductInfoFailed(Ljava/lang/String;)V

    .line 283

    const-string v0, "WMW-G-IAP"

    const-string v1, "IAP is not supported"

    invoke-static {v0, v1}, Landroid/util/Log;->i(Ljava/lang/String;Ljava/lang/String;)I

    .line 299

    :goto_0

    return-void

    .line 288

    :cond_0

    const-string v0, "WMW-G-IAP"

    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    const-string v2, "requesting item info: "

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1, p2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-static {v0, v1}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I

    .line 292

    const-string v0, "crankypack01"

    invoke-virtual {p2, v0}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v0

    if-nez v0, :cond_1

    const-string v0, "mysteryduck01"

    invoke-virtual {p2, v0}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v0

    if-eqz v0, :cond_2

    .line 293

    :cond_1

    invoke-virtual {p0, p1}, Lcom/disney/billing/WMWPurchaseHandler;->requestPurchase(Ljava/lang/String;)V

    goto :goto_0

    .line 295

    :cond_2

    iget-object v0, p0, Lcom/disney/billing/WMWPurchaseHandler;->mActivity:Landroid/app/Activity;

    check-cast v0, Lcom/disney/common/BaseActivity;

    const-string v1, ""

    const-string v2, ""

    invoke-virtual {v0, p1, v1, v2}, Lcom/disney/common/BaseActivity;->notifyProductInfo(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V

    goto :goto_0

.end method

.method public requestPurchase(Ljava/lang/String;)V

    .locals 3

    .parameter "itemID"

    .prologue

    const/4 v1, 0x0

    .line 240

    invoke-virtual {p0}, Lcom/disney/billing/WMWPurchaseHandler;->enabled()V

    .line 242

    iput-object p1, p0, Lcom/disney/billing/WMWPurchaseHandler;->mSku:Ljava/lang/String;

    .line 244

    iget-boolean v0, p0, Lcom/disney/billing/WMWPurchaseHandler;->mIsSupported:Z

    if-nez v0, :cond_1

    .line 245

    iget-object v0, p0, Lcom/disney/billing/WMWPurchaseHandler;->mActivity:Landroid/app/Activity;

    check-cast v0, Lcom/disney/common/BaseActivity;

    iget-boolean v1, p0, Lcom/disney/billing/WMWPurchaseHandler;->mIsSupported:Z

    invoke-virtual {v0, v1}, Lcom/disney/common/BaseActivity;->notifyIAPAvailability(Z)V

    .line 246

    const-string v0, "WMW-G-IAP"

    const-string v1, "IAP is not supported"

    invoke-static {v0, v1}, Landroid/util/Log;->i(Ljava/lang/String;Ljava/lang/String;)I

    .line 258

    :cond_0

    :goto_0

    return-void

    .line 250

    :cond_1

    iput-boolean v1, p0, Lcom/disney/billing/WMWPurchaseHandler;->systemError:Z

    .line 251

    iput-boolean v1, p0, Lcom/disney/billing/WMWPurchaseHandler;->isRestoreRequest:Z

    .line 253

    const-string v0, "WMW-G-IAP"

    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    const-string v2, "buying: "

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    iget-object v2, p0, Lcom/disney/billing/WMWPurchaseHandler;->mItemName:Ljava/lang/String;

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    const-string v2, " sku: "

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    iget-object v2, p0, Lcom/disney/billing/WMWPurchaseHandler;->mSku:Ljava/lang/String;

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-static {v0, v1}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I

    .line 255

    iget-object v0, p0, Lcom/disney/billing/WMWPurchaseHandler;->mBillingService:Lcom/disney/billing/BillingService;

    iget-object v1, p0, Lcom/disney/billing/WMWPurchaseHandler;->mSku:Ljava/lang/String;

    iget-object v2, p0, Lcom/disney/billing/WMWPurchaseHandler;->mPayloadContents:Ljava/lang/String;

    invoke-virtual {v0, v1, v2}, Lcom/disney/billing/BillingService;->requestPurchase(Ljava/lang/String;Ljava/lang/String;)Z

    move-result v0

    if-nez v0, :cond_0

    goto :goto_0

.end method

.method public requestRestore()V

    .locals 2

    .prologue

    .line 261

    invoke-virtual {p0}, Lcom/disney/billing/WMWPurchaseHandler;->enabled()V

    .line 263

    iget-boolean v0, p0, Lcom/disney/billing/WMWPurchaseHandler;->mIsSupported:Z

    if-nez v0, :cond_1

    .line 264

    iget-object v0, p0, Lcom/disney/billing/WMWPurchaseHandler;->mActivity:Landroid/app/Activity;

    check-cast v0, Lcom/disney/common/BaseActivity;

    iget-boolean v1, p0, Lcom/disney/billing/WMWPurchaseHandler;->mIsSupported:Z

    invoke-virtual {v0, v1}, Lcom/disney/common/BaseActivity;->notifyIAPAvailability(Z)V

    .line 265

    const-string v0, "WMW-G-IAP"

    const-string v1, "IAP is not supported"

    invoke-static {v0, v1}, Landroid/util/Log;->i(Ljava/lang/String;Ljava/lang/String;)I

    .line 276

    :cond_0

    :goto_0

    return-void

    .line 269

    :cond_1

    const/4 v0, 0x1

    iput-boolean v0, p0, Lcom/disney/billing/WMWPurchaseHandler;->isRestoreRequest:Z

    .line 271

    const-string v0, "WMW-G-IAP"

    const-string v1, "restoring..."

    invoke-static {v0, v1}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I

    .line 273

    iget-object v0, p0, Lcom/disney/billing/WMWPurchaseHandler;->mBillingService:Lcom/disney/billing/BillingService;

    invoke-virtual {v0}, Lcom/disney/billing/BillingService;->restoreTransactions()Z

    move-result v0

    if-nez v0, :cond_0

    goto :goto_0

.end method

Posted

Thats the real problem I met with while I was hacking the Jaws revenge game.........

If you can hack the billing den jst hack the billing bcoz many users are demanding this hacked game on GG and other forums

Thnxx

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.