m0_57719518
2021-04-27 13:40
采纳率: 100%
浏览 26

能将smali翻译为JAVA吗?

.class public Lcom/jgg18/androidsdk/dataclasses/PurchaseResult; .super Ljava/lang/Object; .source "PurchaseResult.java" # instance fields .field public message:Ljava/lang/String; .field public status:Ljava/lang/String; .field public success:Z .field public transactionId:Ljava/lang/String; # direct methods .method public constructor ()V .registers 5 invoke-direct {p0}, Ljava/lang/Object;->()V const/4 v0, 0x2 new-array v0, v0, [Ljava/lang/Object; const/4 v1, 0x0 aput-object p0, v0, v1 const/4 v1, 0x1 const/16 v3, 0x32 invoke-static {v3}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer; move-result-object v2 aput-object v2, v0, v1 invoke-static {v0}, Lcom/AppGuard/andjni/JniLib;->cV([Ljava/lang/Object;)V return-void .end method # virtual methods .method public debugString()Ljava/lang/String; .registers 5 const/4 v0, 0x2 new-array v0, v0, [Ljava/lang/Object; const/4 v1, 0x0 aput-object p0, v0, v1 const/4 v1, 0x1 const/16 v3, 0x31 invoke-static {v3}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer; move-result-object v2 aput-object v2, v0, v1 invoke-static {v0}, Lcom/AppGuard/andjni/JniLib;->cL([Ljava/lang/Object;)Ljava/lang/Object; move-result-object v0 check-cast v0, Ljava/lang/String; return-object v0 .end method

  • 写回答
  • 关注问题
  • 收藏
  • 邀请回答

2条回答 默认 最新

  • dezng 2021-04-28 16:43
    已采纳
    package com.jgg18.androidsdk.dataclasses;
    
    import com.AppGuard.andjni.JniLib;
    
    public class PurchaseResult{
        public String message;
        public String status;
        public boolean success; 
        public String transactionId;
    
        public PurchaseResult(){
            JniLib.cV(new Object[]{this, 50});
        }
    
        public String debugString(){
            return (String)JniLib.cL(new Object[]{this, 49});
        }
    }

    大概就是这样子吧。。。

    已采纳该答案
    打赏 评论
  • BCS-点心 2021-04-27 17:23

    你想问啥?

    打赏 评论

相关推荐 更多相似问题