Skip to content

Commit

Permalink
细节调整
Browse files Browse the repository at this point in the history
  • Loading branch information
dqzg12300 committed Jan 10, 2024
1 parent 75a3a63 commit cb0cfbe
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/com/android/dx/merge/DexMerger.java
Original file line number Diff line number Diff line change
Expand Up @@ -889,7 +889,12 @@ private void transformMethods(Dex in, IndexMap indexMap, ClassData.Method[] meth
} else {
codeOut.alignToFourBytesWithZeroFill();
classDataOut.writeUleb128(codeOut.getPosition());
transformCode(in, in.readCode(method), indexMap);
try{
transformCode(in, in.readCode(method), indexMap);
}catch (Exception ex){
System.out.println("tracesformCode Exception "+ex.getMessage());
}

}
}
else {
Expand Down
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 @@ -30,6 +30,9 @@ public MethodCodeItemFile(File file)
this.map = new HashMap<>();
Gson gson=new Gson();
String[] items=this.jsondata.split(";");
if(items.length<=2){
items=this.jsondata.split("\n");
}
for(int i=0;i<items.length;i++){
String codeJson=items[i];
// System.out.println("codeJson:"+codeJson);
Expand Down

0 comments on commit cb0cfbe

Please sign in to comment.