From 75a3a6355cea635fcdfba8813e6814fd0d26d42b Mon Sep 17 00:00:00 2001 From: dqzg12300 Date: Thu, 5 Aug 2021 09:56:58 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E5=A4=84=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/com/android/dx/unpacker/MethodCodeItemFile.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/com/android/dx/unpacker/MethodCodeItemFile.java b/src/com/android/dx/unpacker/MethodCodeItemFile.java index 3a8ae2f..12254b6 100644 --- a/src/com/android/dx/unpacker/MethodCodeItemFile.java +++ b/src/com/android/dx/unpacker/MethodCodeItemFile.java @@ -36,6 +36,9 @@ public MethodCodeItemFile(File file) //发现保存的json有点问题,应该给base64的值用双引号包起来,不然gson会出现解析失败的 codeJson=codeJson.replace("ins:","ins:\""); codeJson=codeJson.replace("}","\"}"); + codeJson=codeJson.replace("name:","name:\""); + codeJson=codeJson.replace(",method_idx","\",method_idx"); + JsonCodeItem codedata= gson.fromJson(codeJson,JsonCodeItem.class); MethodCodeItem codeItem = new MethodCodeItem(); codeItem.index = codedata.method_idx;