吾爱破解 - 52pojie.cn

 找回密码
 注册[Register]

QQ登录

只需一步,快速开始

查看: 927|回复: 2
收起左侧

[Android 求助] 以下代码如何始终执行SUCCEEDED方法

  [复制链接]
lizhibin5507 发表于 2024-3-1 11:59
以下代码是一个apk中的smali代码。经尝试,在
.method public static a(I)Lcom/alipay/sdk/app/i;

    .registers 2
    const/16 v0, 0xfa1
    if-eq p0, v0, :cond_2a
    const/16 v0, 0x1388
    if-eq p0, v0, :cond_27
    const/16 v0, 0x1f40
    if-eq p0, v0, :cond_24
    const/16 v0, 0x2328
    if-eq p0, v0, :cond_21
    const/16 v0, 0x1771
    if-eq p0, v0, :cond_1e
    const/16 v0, 0x1772
    if-eq p0, v0, :cond_1b
中强制令p0等于0x2328,无法达成始终执行SUCCEEDED的效果。请问还需要修改什么地方。谢谢!

以下是这个package中所有的smali代码

# classes.dex



.class public final enum Lcom/alipay/sdk/app/i;

.super Ljava/lang/Enum;

.source "SourceFile"





# annotations

.annotation system Ldalvik/annotation/Signature;

    value = {

        "Ljava/lang/Enum<",

        "Lcom/alipay/sdk/app/i;",

        ">;"

    }

.end annotation





# static fields

.field public static final enum a:Lcom/alipay/sdk/app/i;
.field public static final enum b:Lcom/alipay/sdk/app/i;
.field public static final enum c:Lcom/alipay/sdk/app/i;
.field public static final enum d:Lcom/alipay/sdk/app/i;
.field public static final enum e:Lcom/alipay/sdk/app/i;
.field public static final enum f:Lcom/alipay/sdk/app/i;
.field public static final enum g:Lcom/alipay/sdk/app/i;
.field private static final synthetic j:[Lcom/alipay/sdk/app/i;


# instance fields

.field public h:I
.field public i:Ljava/lang/String;


# direct methods

.method static constructor <clinit>()V

    .registers 11



    .line 4

    new-instance v0, Lcom/alipay/sdk/app/i;
    const-string v1, "SUCCEEDED"
    const/4 v2, 0x0
    const/16 v3, 0x2328
    const-string v4, "处理成功"
    invoke-direct {v0, v1, v2, v3, v4}, Lcom/alipay/sdk/app/i;-><init>(Ljava/lang/String;IILjava/lang/String;)V
    sput-object v0, Lcom/alipay/sdk/app/i;->a:Lcom/alipay/sdk/app/i;



    .line 6

    new-instance v0, Lcom/alipay/sdk/app/i;
    const-string v1, "FAILED"
    const/4 v3, 0x1
    const/16 v4, 0xfa0
    const-string/jumbo v5, "系统繁忙,请稍后再试"
    invoke-direct {v0, v1, v3, v4, v5}, Lcom/alipay/sdk/app/i;-><init>(Ljava/lang/String;IILjava/lang/String;)V
    sput-object v0, Lcom/alipay/sdk/app/i;->b:Lcom/alipay/sdk/app/i;



    .line 8

    new-instance v0, Lcom/alipay/sdk/app/i;
    const-string v1, "CANCELED"
    const/4 v4, 0x2
    const/16 v5, 0x1771
    const-string v6, "用户取消"
    invoke-direct {v0, v1, v4, v5, v6}, Lcom/alipay/sdk/app/i;-><init>(Ljava/lang/String;IILjava/lang/String;)V
    sput-object v0, Lcom/alipay/sdk/app/i;->c:Lcom/alipay/sdk/app/i;



    .line 10

    new-instance v0, Lcom/alipay/sdk/app/i;
    const-string v1, "NETWORK_ERROR"
    const/4 v5, 0x3
    const/16 v6, 0x1772
    const-string/jumbo v7, "网络连接异常"
    invoke-direct {v0, v1, v5, v6, v7}, Lcom/alipay/sdk/app/i;-><init>(Ljava/lang/String;IILjava/lang/String;)V
    sput-object v0, Lcom/alipay/sdk/app/i;->d:Lcom/alipay/sdk/app/i;



    .line 12

    new-instance v0, Lcom/alipay/sdk/app/i;
    const-string v1, "PARAMS_ERROR"
    const/4 v6, 0x4
    const/16 v7, 0xfa1
    const-string v8, "参数错误"
    invoke-direct {v0, v1, v6, v7, v8}, Lcom/alipay/sdk/app/i;-><init>(Ljava/lang/String;IILjava/lang/String;)V
    sput-object v0, Lcom/alipay/sdk/app/i;->e:Lcom/alipay/sdk/app/i;



    .line 14

    new-instance v0, Lcom/alipay/sdk/app/i;
    const-string v1, "DOUBLE_REQUEST"
    const/4 v7, 0x5
    const/16 v8, 0x1388
    const-string/jumbo v9, "重复请求"
    invoke-direct {v0, v1, v7, v8, v9}, Lcom/alipay/sdk/app/i;-><init>(Ljava/lang/String;IILjava/lang/String;)V
    sput-object v0, Lcom/alipay/sdk/app/i;->f:Lcom/alipay/sdk/app/i;



    .line 16

    new-instance v0, Lcom/alipay/sdk/app/i;
    const-string v1, "PAY_WAITTING"
    const/4 v8, 0x6
    const/16 v9, 0x1f40
    const-string v10, "支付结果确认中"
    invoke-direct {v0, v1, v8, v9, v10}, Lcom/alipay/sdk/app/i;-><init>(Ljava/lang/String;IILjava/lang/String;)V
    sput-object v0, Lcom/alipay/sdk/app/i;->g:Lcom/alipay/sdk/app/i;
    const/4 v1, 0x7
    new-array v1, v1, [Lcom/alipay/sdk/app/i;



    .line 3

    sget-object v9, Lcom/alipay/sdk/app/i;->a:Lcom/alipay/sdk/app/i;
    aput-object v9, v1, v2
    sget-object v2, Lcom/alipay/sdk/app/i;->b:Lcom/alipay/sdk/app/i;
    aput-object v2, v1, v3
    sget-object v2, Lcom/alipay/sdk/app/i;->c:Lcom/alipay/sdk/app/i;
    aput-object v2, v1, v4
    sget-object v2, Lcom/alipay/sdk/app/i;->d:Lcom/alipay/sdk/app/i;
    aput-object v2, v1, v5
    sget-object v2, Lcom/alipay/sdk/app/i;->e:Lcom/alipay/sdk/app/i;
    aput-object v2, v1, v6
    sget-object v2, Lcom/alipay/sdk/app/i;->f:Lcom/alipay/sdk/app/i;
    aput-object v2, v1, v7
    aput-object v0, v1, v8
    sput-object v1, Lcom/alipay/sdk/app/i;->j:[Lcom/alipay/sdk/app/i;
    return-void
.end method



.method private constructor <init>(Ljava/lang/String;IILjava/lang/String;)V

    .registers 5
    .annotation system Ldalvik/annotation/Signature;

        value = {
            "(I",
            "Ljava/lang/String;",
            ")V"
        }

    .end annotation



    .line 22

    invoke-direct {p0, p1, p2}, Ljava/lang/Enum;-><init>(Ljava/lang/String;I)V



    .line 23

    iput p3, p0, Lcom/alipay/sdk/app/i;->h:I



    .line 24

    iput-object p4, p0, Lcom/alipay/sdk/app/i;->i:Ljava/lang/String;
    return-void

.end method



.method private a()I

    .registers 2

    .line 32

    iget v0, p0, Lcom/alipay/sdk/app/i;->h:I
    return v0

.end method



.method public static a(I)Lcom/alipay/sdk/app/i;

    .registers 2
    const/16 v0, 0xfa1
    if-eq p0, v0, :cond_2a
    const/16 v0, 0x1388
    if-eq p0, v0, :cond_27
    const/16 v0, 0x1f40
    if-eq p0, v0, :cond_24
    const/16 v0, 0x2328
    if-eq p0, v0, :cond_21
    const/16 v0, 0x1771
    if-eq p0, v0, :cond_1e
    const/16 v0, 0x1772
    if-eq p0, v0, :cond_1b



    .line 58

    sget-object p0, Lcom/alipay/sdk/app/i;->b:Lcom/alipay/sdk/app/i;
    return-object p0




    .line 50

    :cond_1b
    sget-object p0, Lcom/alipay/sdk/app/i;->d:Lcom/alipay/sdk/app/i;
    return-object p0



    .line 48

    :cond_1e
    sget-object p0, Lcom/alipay/sdk/app/i;->c:Lcom/alipay/sdk/app/i;
    return-object p0



    .line 46

    :cond_21
    sget-object p0, Lcom/alipay/sdk/app/i;->a:Lcom/alipay/sdk/app/i;
    return-object p0



    .line 54

    :cond_24
    sget-object p0, Lcom/alipay/sdk/app/i;->g:Lcom/alipay/sdk/app/i;
    return-object p0



    .line 56

    :cond_27
    sget-object p0, Lcom/alipay/sdk/app/i;->f:Lcom/alipay/sdk/app/i;
    return-object p0



    .line 52

    :cond_2a
    sget-object p0, Lcom/alipay/sdk/app/i;->e:Lcom/alipay/sdk/app/i;
    return-object p0

.end method



.method private a(Ljava/lang/String;)V

    .registers 2



    .line 36

    iput-object p1, p0, Lcom/alipay/sdk/app/i;->i:Ljava/lang/String;
    return-void
.end method



.method private b()Ljava/lang/String;

    .registers 2



    .line 40

    iget-object v0, p0, Lcom/alipay/sdk/app/i;->i:Ljava/lang/String;
    return-object v0

.end method



.method private b(I)V

    .registers 2


    .line 28

    iput p1, p0, Lcom/alipay/sdk/app/i;->h:I


    return-void

.end method



.method public static valueOf(Ljava/lang/String;)Lcom/alipay/sdk/app/i;

    .registers 2



    .line 3

    const-class v0, Lcom/alipay/sdk/app/i;
    invoke-static {v0, p0}, Ljava/lang/Enum;->valueOf(Ljava/lang/Class;Ljava/lang/String;)Ljava/lang/Enum;
    move-result-object p0
    check-cast p0, Lcom/alipay/sdk/app/i;
    return-object p0

.end method




.method public static values()[Lcom/alipay/sdk/app/i;

    .registers 1



    .line 3

    sget-object v0, Lcom/alipay/sdk/app/i;->j:[Lcom/alipay/sdk/app/i;
    invoke-virtual {v0}, [Lcom/alipay/sdk/app/i;->clone()Ljava/lang/Object;
    move-result-object v0
    check-cast v0, [Lcom/alipay/sdk/app/i;
    return-object v0

.end method

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

怜渠客 发表于 2024-3-1 12:50
Snipaste_2024-03-01_12-49-50.jpg
星辰丿 发表于 2024-3-1 18:42
您需要登录后才可以回帖 登录 | 注册[Register]

本版积分规则

返回列表

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

GMT+8, 2024-11-21 19:43

Powered by Discuz!

Copyright © 2001-2020, Tencent Cloud.

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