Skip to content

Commit

Permalink
优化处理
Browse files Browse the repository at this point in the history
  • Loading branch information
dqzg12300 committed Aug 5, 2021
1 parent 4d5ffad commit 75a3a63
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/com/android/dx/unpacker/MethodCodeItemFile.java
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 75a3a63

Please sign in to comment.