吾爱破解 - 52pojie.cn

 找回密码
 注册[Register]

QQ登录

只需一步,快速开始

查看: 3169|回复: 4
收起左侧

[Android 求助] 安卓APP破解问题

[复制链接]
飞翔的鸟 发表于 2021-1-12 20:20
本人用MT管理器搜索到了一个APP的关键支付代码,但是删除支付失败代码和替换失败代码都无法会编译,代码如下请大佬指教。

.class final Lcom/qiber/bike/BKMainActivity$6;
.super Landroid/os/Handler;
.source "BKMainActivity.java"


# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Lcom/qiber/bike/BKMainActivity;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x8
    name = null
.end annotation


# direct methods
.method constructor <init>()V
    .registers 1

    .line 363
    invoke-direct {p0}, Landroid/os/Handler;-><init>()V

    return-void
.end method


# virtual methods
.method public handleMessage(Landroid/os/Message;)V
    .registers 7

    .line 366
    iget v0, p1, Landroid/os/Message;->what:I

    const/4 v1, 0x0

    packed-switch v0, :pswitch_data_e6

    goto/16 :goto_e4

    .line 389
    new-instance v0, Lcom/qiber/bike/pay/ali/AuthResult;

    iget-object p1, p1, Landroid/os/Message;->obj:Ljava/lang/Object;

    check-cast p1, Ljava/util/Map;

    const/4 v2, 0x1

    invoke-direct {v0, p1, v2}, Lcom/qiber/bike/pay/ali/AuthResult;-><init>(Ljava/util/Map;Z)V

    .line 390
    invoke-virtual {v0}, Lcom/qiber/bike/pay/ali/AuthResult;->getResultStatus()Ljava/lang/String;

    move-result-object p1

    const-string v3, "9000"

    .line 394
    invoke-static {p1, v3}, Landroid/text/TextUtils;->equals(Ljava/lang/CharSequence;Ljava/lang/CharSequence;)Z

    move-result p1

    if-eqz p1, :cond_56

    invoke-virtual {v0}, Lcom/qiber/bike/pay/ali/AuthResult;->getResultCode()Ljava/lang/String;

    move-result-object p1

    const-string v3, "200"

    invoke-static {p1, v3}, Landroid/text/TextUtils;->equals(Ljava/lang/CharSequence;Ljava/lang/CharSequence;)Z

    move-result p1

    if-nez p1, :cond_56

    .line 397
    invoke-static {}, Lcom/onemore/unity/QibaMainActivity;->getMainActivity()Lcom/onemore/unity/QibaMainActivity;

    move-result-object p1

    new-instance v3, Ljava/lang/StringBuilder;

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

    const-string v4, "授权成功\n"

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

    const-string v4, "authCode:%s"

    new-array v2, v2, [Ljava/lang/Object;

    .line 398
    invoke-virtual {v0}, Lcom/qiber/bike/pay/ali/AuthResult;->getAuthCode()Ljava/lang/String;

    move-result-object v0

    aput-object v0, v2, v1

    invoke-static {v4, v2}, Ljava/lang/String;->format(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v0

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

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

    move-result-object v0

    .line 397
    invoke-static {p1, v0, v1}, Landroid/widget/Toast;->makeText(Landroid/content/Context;Ljava/lang/CharSequence;I)Landroid/widget/Toast;

    move-result-object p1

    .line 399
    invoke-virtual {p1}, Landroid/widget/Toast;->show()V

    goto/16 :goto_e4

    .line 402
    :cond_56
    invoke-static {}, Lcom/onemore/unity/QibaMainActivity;->getMainActivity()Lcom/onemore/unity/QibaMainActivity;

    move-result-object p1

    new-instance v3, Ljava/lang/StringBuilder;

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

    const-string v4, "授权失败"

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

    const-string v4, "authCode:%s"

    new-array v2, v2, [Ljava/lang/Object;

    .line 403
    invoke-virtual {v0}, Lcom/qiber/bike/pay/ali/AuthResult;->getAuthCode()Ljava/lang/String;

    move-result-object v0

    aput-object v0, v2, v1

    invoke-static {v4, v2}, Ljava/lang/String;->format(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v0

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

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

    move-result-object v0

    .line 402
    invoke-static {p1, v0, v1}, Landroid/widget/Toast;->makeText(Landroid/content/Context;Ljava/lang/CharSequence;I)Landroid/widget/Toast;

    move-result-object p1

    .line 403
    invoke-virtual {p1}, Landroid/widget/Toast;->show()V

    goto :goto_e4

    .line 369
    :pswitch_81  #0x1, 0x2
    new-instance v0, Lcom/qiber/bike/pay/ali/PayResult;

    iget-object p1, p1, Landroid/os/Message;->obj:Ljava/lang/Object;

    check-cast p1, Ljava/util/Map;

    invoke-direct {v0, p1}, Lcom/qiber/bike/pay/ali/PayResult;-><init>(Ljava/util/Map;)V

    .line 373
    invoke-virtual {v0}, Lcom/qiber/bike/pay/ali/PayResult;->getResult()Ljava/lang/String;

    .line 374
    invoke-virtual {v0}, Lcom/qiber/bike/pay/ali/PayResult;->getResultStatus()Ljava/lang/String;

    move-result-object p1

    const-string v0, "9000"

    .line 376
    invoke-static {p1, v0}, Landroid/text/TextUtils;->equals(Ljava/lang/CharSequence;Ljava/lang/CharSequence;)Z

    move-result v0

    if-eqz v0, :cond_bf

    const-string v0, "MMIScene"

    const-string v2, "OnPaySuccess"

    .line 378
    new-instance v3, Ljava/lang/StringBuilder;

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

    const-string v4, "Ali:"

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

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

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

    move-result-object p1

    invoke-static {v0, v2, p1}, Lcom/unity3d/player/UnityPlayer;->UnitySendMessage(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V

    .line 379
    invoke-static {}, Lcom/onemore/unity/QibaMainActivity;->getMainActivity()Lcom/onemore/unity/QibaMainActivity;

    move-result-object p1

    const-string v0, "支付成功"

    invoke-static {p1, v0, v1}, Landroid/widget/Toast;->makeText(Landroid/content/Context;Ljava/lang/CharSequence;I)Landroid/widget/Toast;

    move-result-object p1

    invoke-virtual {p1}, Landroid/widget/Toast;->show()V

    goto :goto_e4

    :cond_bf
    const-string v0, "MMIScene"

    const-string v2, "OnPayFailed"

    .line 382
    new-instance v3, Ljava/lang/StringBuilder;

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

    const-string v4, "Ali:"

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

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

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

    move-result-object p1

    invoke-static {v0, v2, p1}, Lcom/unity3d/player/UnityPlayer;->UnitySendMessage(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V

    .line 383
    invoke-static {}, Lcom/onemore/unity/QibaMainActivity;->getMainActivity()Lcom/onemore/unity/QibaMainActivity;

    move-result-object p1

    const-string v0, "支付失败"

    invoke-static {p1, v0, v1}, Landroid/widget/Toast;->makeText(Landroid/content/Context;Ljava/lang/CharSequence;I)Landroid/widget/Toast;

    move-result-object p1

    invoke-virtual {p1}, Landroid/widget/Toast;->show()V

    :goto_e4
    return-void

    nop

    :pswitch_data_e6
    .packed-switch 0x1
        :pswitch_81  #00000001
        :pswitch_81  #00000002
    .end packed-switch
.end method

发帖前要善用论坛搜索功能,那里可能会有你要找的答案或者已经有人发布过相同内容了,请勿重复发帖。

芽衣 发表于 2021-1-13 16:15
你确定这是个本地校验的APP??
 楼主| 飞翔的鸟 发表于 2021-1-15 12:51
豪情壮志 发表于 2021-1-19 15:26
看smali代码 看得贼头疼,还是转java代码看起来好点
alongzhenggang 发表于 2021-4-11 22:58
学习mt中,有会员便宜的出手吗
您需要登录后才可以回帖 登录 | 注册[Register]

本版积分规则

返回列表

RSS订阅|小黑屋|处罚记录|联系我们|吾爱破解 - LCG - LSG ( 京ICP备16042023号 | 京公网安备 11010502030087号 )

GMT+8, 2024-12-23 06:47

Powered by Discuz!

Copyright © 2001-2020, Tencent Cloud.

快速回复 返回顶部 返回列表