weikipeng / dex2jar

Automatically exported from code.google.com/p/dex2jar
0 stars 0 forks source link

faile dex2jar ussing -d #200

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
.class public Lcom/demo/Utils;
.super Ljava/lang/Object;
.source "Utils.java"

# direct methods
.method public constructor <init>()V
    .locals 0

    .prologue
    .line 31
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method

.method private static getBrandMode()Ljava/lang/String;
    .locals 3

    .prologue
    .line 96
    :try_start_0
    sget-object v1, Landroid/os/Build;->MODEL:Ljava/lang/String;

    invoke-static {v1}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v1

    if-eqz v1, :cond_0

    const-string v1, ""

    :goto_0
    const-string v2, "UTF-8"

    invoke-static {v1, v2}, Ljava/net/URLEncoder;->encode(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v1

    .line 98
    .local v0, e:Ljava/lang/Exception;
    :goto_1
    return-object v1

    .line 96
    .end local v0           #e:Ljava/lang/Exception;
    :cond_0
    sget-object v1, Landroid/os/Build;->MODEL:Ljava/lang/String;
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    goto :goto_0

    .line 97
    :catch_0
    move-exception v0

    .line 98
    .restart local v0       #e:Ljava/lang/Exception;
    const-string v1, ""

    goto :goto_1
.end method

Original issue reported on code.google.com by iro...@gmail.com on 5 Nov 2013 at 8:38

Attachments:

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
classes.dex 里面有三个方法
.method private static getBrandMode()Ljava/lang/String;
.method private static getBrandName()Ljava/lang/String;
.method private static getOSVersion()Ljava/lang/String;

用 d2j-dex2jar -d 
命令一个都反不出来,问题是因为优化goto语句后分割变量块�
��错

出错行LocalSplit.java 第255行 Phi[] targetF = (Phi[]) 
stmt._ls_forward_frame; 
targetF 为 null 值。

Original comment by iro...@gmail.com on 6 Nov 2013 at 7:08