[Asm] 纯文本查看 复制代码
以移动MM商城 暴力战神 为例,反编译后,找到如下代码。
.method private init(I)V
.locals 5
const/16 v0, 0x3e9 【MM商城:成功的短代:1001(十六进制(0x3e9)→ 十进制(1001))】
if-eq p1, v0, :cond_0 【走这里就跳向:支付请求发送成功,意思是跳向显示发送成功的图片(Log)】
const/16 v0, 0x4be 【MM商城:失败的短代:1214(十六进制(0x4be)→ 十进制(1214))】
if-ne p1, v0, :cond_2 【这里就跳向了支付失败,意思是如果支付失败就显示这个图片:支付失败的Log】
:cond_0 【跳转到此:支付成功显示的文字↓】
const-string v0, "支付请求发送成功"
iput-object v0, p0, Lmm/sms/purchasesdk/ui/k;->j:Ljava/lang/String;
const-string v0, "确 定"
iput-object v0, p0, Lmm/sms/purchasesdk/ui/k;->l:Ljava/lang/String;
invoke-static {}, Lmm/sms/purchasesdk/e/c;->getContext()Landroid/content/Context;
move-result-object v0
const-string v1, "mmiap/smsimage/vertical/icon_success.png" 【成功显示的图片:路径、png】
invoke-static {v0, v1}, Lmm/sms/purchasesdk/ui/n;->a(Landroid/content/Context;Ljava/lang/String;)Landroid/graphics/Bitmap;
move-result-object v0
iput-object v0, p0, Lmm/sms/purchasesdk/ui/k;->f:Landroid/graphics/Bitmap;
const v0, -0xa869b6
iput v0, p0, Lmm/sms/purchasesdk/ui/k;->h:I
invoke-static {p1}, Lmm/sms/purchasesdk/PurchaseCode;->getReason(I)Ljava/lang/String;
move-result-object v0
iput-object v0, p0, Lmm/sms/purchasesdk/ui/k;->k:Ljava/lang/String;
const/4 v0, 0x1
invoke-static {v0}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;
move-result-object v0
iput-object v0, p0, Lmm/sms/purchasesdk/ui/k;->g:Ljava/lang/Boolean;
:goto_0
iget-object v0, p0, Lmm/sms/purchasesdk/ui/k;->g:Landroid/graphics/drawable/Drawable;
if-nez v0, :cond_1
invoke-static {}, Lmm/sms/purchasesdk/e/c;->getContext()Landroid/content/Context;
move-result-object v0
const-string v1, "mmiap/smsimage/vertical/infobg.9.png"
invoke-static {v0, v1}, Lmm/sms/purchasesdk/ui/n;->a(Landroid/content/Context;Ljava/lang/String;)Landroid/graphics/Bitmap;
move-result-object v0
if-eqz v0, :cond_1
invoke-virtual {v0}, Landroid/graphics/Bitmap;->getNinePatchChunk()[B
move-result-object v1
invoke-static {v1}, Landroid/graphics/NinePatch;->isNinePatchChunk([B)Z
new-instance v2, Landroid/graphics/drawable/NinePatchDrawable;
new-instance v3, Landroid/graphics/Rect;
invoke-direct {v3}, Landroid/graphics/Rect;-><init>()V
const/4 v4, 0x0
invoke-direct {v2, v0, v1, v3, v4}, Landroid/graphics/drawable/NinePatchDrawable;-><init>(Landroid/graphics/Bitmap;[BLandroid/graphics/Rect;Ljava/lang/String;)V
iput-object v2, p0, Lmm/sms/purchasesdk/ui/k;->g:Landroid/graphics/drawable/Drawable;
:cond_1
return-void
:cond_2 【跳转到此:显示支付失败的图片↓】
const-string v0, "支 付 失 败"
iput-object v0, p0, Lmm/sms/purchasesdk/ui/k;->j:Ljava/lang/String;
const/4 v0, 0x0
invoke-static {v0}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;
move-result-object v0
iput-object v0, p0, Lmm/sms/purchasesdk/ui/k;->g:Ljava/lang/Boolean;
const v0, -0x47c4c5
iput v0, p0, Lmm/sms/purchasesdk/ui/k;->h:I
iget-object v0, p0, Lmm/sms/purchasesdk/ui/k;->a:Ljava/util/HashMap;
if-nez v0, :cond_3
const-string v0, "ResultDialog"
new-instance v1, Ljava/lang/StringBuilder;
const-string v2, "mReturnObject null order fail ="
invoke-direct {v1, v2}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
invoke-virtual {v1, p1}, Ljava/lang/StringBuilder;->append(I)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}, Lmm/sms/purchasesdk/e/d;->c(Ljava/lang/String;Ljava/lang/String;)V
invoke-static {}, Lmm/sms/purchasesdk/e/c;->getContext()Landroid/content/Context;
move-result-object v0
const-string v1, "mmiap/smsimage/vertical/icon_info.png"
invoke-static {v0, v1}, Lmm/sms/purchasesdk/ui/n;->a(Landroid/content/Context;Ljava/lang/String;)Landroid/graphics/Bitmap;
move-result-object v0
iput-object v0, p0, Lmm/sms/purchasesdk/ui/k;->f:Landroid/graphics/Bitmap;
:goto_1
invoke-static {p1}, Lmm/sms/purchasesdk/PurchaseCode;->getReason(I)Ljava/lang/String;
move-result-object v0
iput-object v0, p0, Lmm/sms/purchasesdk/ui/k;->k:Ljava/lang/String;
const-string v0, "确 定"
iput-object v0, p0, Lmm/sms/purchasesdk/ui/k;->l:Ljava/lang/String;
goto :goto_0
:cond_3
const-string v0, "ResultDialog"
new-instance v1, Ljava/lang/StringBuilder;
const-string v2, "mReturnObject order fail ="
invoke-direct {v1, v2}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
invoke-virtual {v1, p1}, Ljava/lang/StringBuilder;->append(I)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}, Lmm/sms/purchasesdk/e/d;->c(Ljava/lang/String;Ljava/lang/String;)V
invoke-static {}, Lmm/sms/purchasesdk/e/c;->getContext()Landroid/content/Context;
move-result-object v0
const-string v1, "mmiap/smsimage/vertical/icon_false.png" 【失败的图片:路径和png】
invoke-static {v0, v1}, Lmm/sms/purchasesdk/ui/n;->a(Landroid/content/Context;Ljava/lang/String;)Landroid/graphics/Bitmap;
move-result-object v0
iput-object v0, p0, Lmm/sms/purchasesdk/ui/k;->f:Landroid/graphics/Bitmap;
goto :goto_1
.end method