Commit Graph

203 Commits

Author SHA1 Message Date
Panxiaobo
c980842ef0 add test case for issue 121
Update issue 121
Status: Accepted
the generated IrMethod is fine,
and there are something wrong with IrMethod2AsmMethod

--HG--
branch : 0.0.9.x
2012-06-12 21:15:21 +08:00
Panxiaobo
4cda0b365d type array reference as Object in local type.
Fixes issue 120

--HG--
branch : 0.0.9.x
2012-06-11 11:03:44 +08:00
Panxiaobo
c29ccd1d79 add test case for issue 120
Update issue 120
Status: Accepted
seems something wrong with array references.

--HG--
branch : 0.0.9.x
2012-06-11 10:50:58 +08:00
Panxiaobo
25c775fb11 deprecat dex2jar.sh
--HG--
branch : 0.0.9.x
2012-05-21 16:24:27 +08:00
Panxiaobo
27809a2e2e clear ACC_DECLARED_SYNCHRONIZED and ACC_CONSTRUCTOR from method flags
Fixes issue 117

--HG--
branch : 0.0.9.x
2012-04-24 13:47:00 +08:00
Panxiaobo
59dfa00154 update issue 115
add unit test

--HG--
branch : 0.0.9.x
2012-03-25 15:36:37 +08:00
Panxiaobo
05c8e3007b implement OPTIMIZE_SYNCHRONIZED
update issue 115
implement OPTIMIZE_SYNCHRONIZED

--HG--
branch : 0.0.9.x
2012-03-25 15:20:35 +08:00
Panxiaobo
8db300ccea add cmd d2j-jar-access to modify a class/field/method accessFlag
--HG--
branch : 0.0.9.x
2012-03-02 15:27:56 +08:00
Panxiaobo
bf58ed1e16 add switch -p to print ir to console
--HG--
branch : 0.0.9.x
2012-03-02 15:27:13 +08:00
Panxiaobo
8919c6d45a merge debug-support to 0.0.9.x
Fixes issue 90

--HG--
branch : 0.0.9.x
2012-02-24 17:35:31 +08:00
Panxiaobo
fe7cf210d8 merge LOCALVARIABLE to IrMethod.vars
--HG--
branch : debug-support
2012-02-24 16:18:46 +08:00
Panxiaobo
a894b0d78b update NOTICE.txt to add contributors, Thanks for their great help.
--HG--
branch : debug-support
2012-02-24 13:55:34 +08:00
Panxiaobo
5c36f289c7 1. merge LineNumStmt to LabelStmt,
2. enable V3Test to process debug info

--HG--
branch : debug-support
2012-02-24 13:46:39 +08:00
Panxiaobo
75973f4118 add dex-translator debug mode
--HG--
branch : 0.0.9.x
2012-02-24 12:33:59 +08:00
Panxiaobo
1ab14e75b0 use LCONST_0/1 FCONST_0/1/2 DCONST_0/1 is possible
--HG--
branch : 0.0.9.x
2012-02-24 12:33:04 +08:00
yyjdelete
5ab114da09 support trans dubug info
--HG--
branch : debug-support
2012-02-18 16:26:31 +08:00
Panxiaobo
5ab81d65cd add switch to turn off topologicalSort
--HG--
branch : 0.0.9.x
2012-02-16 13:09:11 +08:00
Panxiaobo
b2808e9a81 improve junit test output
improve d2j-dex2jar, d2j-apk-sign

--HG--
branch : 0.0.9.x
2012-02-02 21:28:15 +08:00
Panxiaobo
e3607f972b add config to generate .class code not reuse register
--HG--
branch : 0.0.9.x
2012-01-17 17:02:46 +08:00
Panxiaobo
15743b1f3f update project description
--HG--
branch : 0.0.9.x
2012-01-17 11:33:08 +08:00
Panxiaobo
c53b8ba4b5 update project description
--HG--
branch : 0.0.9.x
2012-01-17 11:20:01 +08:00
Panxiaobo
b795b63545 clean the code
--HG--
branch : 0.0.9.x
2012-01-13 15:58:47 +08:00
Panxiaobo
d17d99ce99 remove depedence from commons-io,commons-codec,
add commons-lite to provide class needed by dex-reader

--HG--
branch : 0.0.9.x
2012-01-12 13:48:08 +08:00
Panxiaobo
691806bb59 update test output
--HG--
branch : 0.0.9.x
2012-01-09 19:45:12 +08:00
Panxiaobo
b1fe645303 add exception handler, update d2j-dex2jar to more configurable
--HG--
branch : 0.0.9.x
2012-01-09 19:35:12 +08:00
Panxiaobo
1e6db92f13 move endremover/exceptionHanderCurrect to dex-ir
--HG--
branch : 0.0.9.x
2012-01-09 19:30:12 +08:00
Panxiaobo
c6e68489bf --HG--
branch : 0.0.9.x
2012-01-08 01:10:24 +08:00
Panxiaobo
cc0dc9b81d update java doc of dex-reader
--HG--
branch : 0.0.9.x
2012-01-08 00:53:44 +08:00
Panxiaobo
b626ee0527 update NOTICE.txt
--HG--
branch : 0.0.9.x
2012-01-07 22:38:16 +08:00
Panxiaobo
89a3ea38bf fix a bug in generate asm code
--HG--
branch : 0.0.9.x
2012-01-03 14:28:01 +08:00
Panxiaobo
cc5a417d5f add dex-tools
--HG--
branch : 0.0.9.x
2012-01-02 16:05:33 +08:00
Panxiaobo
2797be5fc6 update dx to android-platform-tools-rev10
--HG--
branch : 0.0.9.x
2012-01-02 15:05:59 +08:00
Panxiaobo
ff6b2ec23a add ZERO transformer
Fixes issue 96

--HG--
branch : 0.0.9.x
2012-01-01 17:35:54 +08:00
Panxiaobo
de7145b544 improve register allocation
--HG--
branch : 0.0.9.x
2011-12-25 15:27:01 +08:00
Panxiaobo
2618359e5c add TestUtils.initDexFileReader(...) to set apiLevel if possible
--HG--
branch : 0.0.9.x
2011-12-14 20:07:39 +08:00
Panxiaobo
9f2d0d51b9 log warn about apiLevel
--HG--
branch : 0.0.9.x
2011-12-14 20:05:39 +08:00
Panxiaobo
ec284bceca never reuse this(local 0)
convert [x + (-1)] to [x - 1] and [x - (-1)] to [x + 1]

Fixes issue 93

--HG--
branch : 0.0.9.x
2011-12-06 19:45:10 +08:00
Panxiaobo
8d1727d5ef add support for register allocation
Fixes issue 91

--HG--
branch : 0.0.9.x
2011-12-06 19:40:10 +08:00
Panxiaobo
922e27a599 add support for register allocation
--HG--
branch : 0.0.9.x
2011-12-05 19:37:23 +08:00
Panxiaobo
a11d516eec apply patch from jcmdev0.
ignore TestDexClassV from junit

Fixes issue 94

--HG--
branch : 0.0.9.x
2011-12-05 09:20:19 +08:00
Panxiaobo
1494aa1e25 --HG--
branch : 0.0.9.x
2011-12-01 19:06:16 +08:00
Panxiaobo
dc6b8046bb --HG--
branch : 0.0.9.x
2011-12-01 01:13:09 +08:00
Panxiaobo
8c1cc56165 --HG--
branch : 0.0.9.x
2011-12-01 00:39:15 +08:00
Panxiaobo
bbafd1c9ef --HG--
branch : 0.0.9.x
2011-11-29 20:38:29 +08:00
Panxiaobo
c4f9217af5 --HG--
branch : 0.0.9.x
2011-11-29 20:10:26 +08:00
Panxiaobo
0f750f7a63 --HG--
branch : 0.0.9.x
2011-11-28 19:11:52 +08:00
Panxiaobo
6ce55ef798 --HG--
branch : 0.0.9.x
2011-11-27 16:34:27 +08:00
Panxiaobo
ab29c79c7a add version to pom.xml
--HG--
branch : 0.0.9.x
2011-11-24 20:51:31 +08:00
Panxiaobo
5f2ae5f3ce issue 11
--HG--
branch : 0.0.9.x
2011-11-21 22:39:35 +08:00
Panxiaobo
cefd2e3cab apply 491dd2810da1 to 0.0.9.x
--HG--
branch : 0.0.9.x
2011-11-14 19:54:03 +08:00
Panxiaobo
60f3e9c859 Fix a bug in local type
Fix a bug in visitAnnotationDefault
Update dump api

Fixes issue 73

--HG--
branch : 0.0.9.x
2011-11-10 20:00:58 +08:00
Panxiaobo
da4bcd0e09 merge dex-dumper to dex-reader
--HG--
branch : 0.0.9.x
2011-11-08 19:07:46 +08:00
Panxiaobo
5cf0fd9357 --HG--
branch : 0.0.9.x
2011-11-04 13:21:16 +08:00
Panxiaobo
8b908c5e20 1. remove type field from Local
--HG--
branch : 0.0.9.x
2011-11-04 09:55:34 +08:00
Panxiaobo
01e0ddae21 1. remove dependence from slf4j, to keep dex2jar simple
--HG--
branch : 0.0.9.x
2011-11-03 19:15:25 +08:00
Panxiaobo
fc674a4f4f add support to translate Annotation class
Fixes issue 89
Fixes issue 41

--HG--
branch : 0.0.9.x
2011-11-02 21:31:19 +08:00
Panxiaobo
43918638ab New issue
Summary: support @dalvik.annotation.AnnotationDefault
Labels: Type-Defect Priority-High
Status: Accepted
translate @dalvik.annotation.AnnotationDefault to mv.visitAnnotationDefault

--HG--
branch : 0.0.9.x
2011-11-02 20:49:57 +08:00
Panxiaobo
9373e5f58c start 0.0.9.3
--HG--
branch : 0.0.9.x
2011-11-02 19:50:00 +08:00
Panxiaobo
f3c3399318 Fixes issue 88
--HG--
branch : 0.0.9.x
2011-11-02 19:44:43 +08:00
Panxiaobo
cbe1e096f1 1. add omited code to some exception handler
Update issue 63
Status:Accepted
This issue was caused by omited code in exception handler generated by android dx tool, will fix in 0.0.9.2


Fixes issue 63

--HG--
branch : 0.0.9.x
2011-11-01 21:44:19 +08:00
Panxiaobo
dc57a0dc94 Fix a bug in reading dex encoded_values
--HG--
branch : 0.0.9.x
2011-11-01 21:04:19 +08:00
Panxiaobo
37f1fec5de start 0.0.9.2
--HG--
branch : 0.0.9.x
2011-11-01 02:08:13 +08:00
Panxiaobo
1e22062562 1. fix a bug in local split
--HG--
branch : 0.0.9.x
2011-11-01 02:05:38 +08:00
Panxiaobo
a4098b363d 1. rewrite localsplit
Fixes issue 87

--HG--
branch : 0.0.9.x
2011-11-01 00:50:10 +08:00
Panxiaobo
19fd401bb7 1. fixes bug in DexCodeReader
2. add test case for issue 87


Update issue 87
Status:Accepted
Labels:Priority-High
There are bug when translate code without end. for example. while(true) { do something...}

--HG--
branch : 0.0.9.x
2011-10-31 20:01:07 +08:00
Panxiaobo
f24c5daecb start 0.0.9.1
--HG--
branch : 0.0.9.x
2011-10-30 01:58:38 +08:00
Panxiaobo
2d86377355 --HG--
branch : 0.0.9.x
2011-10-30 00:37:21 +08:00
Panxiaobo
f40f7bf3fe 1. write exception and code visit order to a file
--HG--
branch : 0.0.9.x
2011-10-30 00:27:47 +08:00
Panxiaobo
13159d03d7 1. add api similar with org.objectweb.asm.util.ASMifierClassVisitor
--HG--
branch : 0.0.9.x
2011-10-27 22:41:24 +08:00
Panxiaobo
2fcc712b44 1.change LocalType.type(Value v) to LocalType.typeOf(Value v)
2. if the type not detected, use type in constant


Fixes issue 71

--HG--
branch : 0.0.9.x
2011-10-23 00:51:53 +08:00
pxb1988@gmail.com
996282f1d3 put the generated jar in the same folder of the dex file.
Fixes issue 83


--HG--
branch : 0.0.9.x
2011-10-19 01:26:02 +00:00
pxb1988
b76a62e478 1.add class DexType
2.remove method visitType(String name, String type) from DexAnnotationVisitor

--HG--
branch : 0.0.9.x
2011-09-26 00:33:43 +08:00
pxb1988
48d9d44dea 1.change version of dex-reader to 1.2
2.Make dex-reader independant from ASM3.
3.add class DexAnnotationVisitor,DexLabel
4.add method visitType(String name, String type) to DexAnnotationVisitor

Fixes issue 77

--HG--
branch : 0.0.9.x
2011-09-25 22:33:26 +08:00
pxb1988
6bd911166a add
visitLineNumber
visitLocalVariable

Fixes issue 76

--HG--
branch : 0.0.9.x
2011-09-25 16:54:26 +08:00
pxb1988
10eeb133cf Spelling stuff
Fixes issue 78

Fixes issue 74

--HG--
branch : 0.0.9.x
2011-09-25 13:40:09 +08:00
pxb1988
3a51d81e2e 将CPM,CMPL,CMPG拆分成LCMP,FCMPL,DCMPL,FCMPG,DCMPG
将CAST指令单独为一个类,添加源类型及目的类型


Fixes  issue 71

--HG--
branch : 0.0.9.x
2011-09-07 14:47:31 +08:00
pxb1988
3c3ee9cfde bug fix
New issue
Summary: Exception Handler
Labels: Type-Defect Priority-High
Status: Accepted
程序在处理try-catch-finally块时有异常,特别在处理包含synchronized快

--HG--
branch : 0.0.9.x
2011-08-06 18:53:20 +08:00
pxb1988
79123c0cb3 bug fix
--HG--
branch : 0.0.9.x
2011-08-06 17:06:30 +08:00
pxb1988
2c77c0b9c0 bug fix
--HG--
branch : 0.0.9.x
2011-08-06 13:30:04 +08:00
pxb1988
36f7f5ad65 bug fix
--HG--
branch : 0.0.9.x
2011-08-06 04:21:30 +08:00
pxb1988
dbe9f9f17c bug fix
--HG--
branch : 0.0.9.x
2011-08-06 03:34:00 +08:00
pxb1988
d36f1736b4 bug fix
--HG--
branch : 0.0.9.x
2011-08-06 03:08:41 +08:00
pxb1988
e78398ed32 bug fix
--HG--
branch : 0.0.9.x
2011-08-06 01:46:28 +08:00
pxb1988
6c8995d048 bug fix
--HG--
branch : 0.0.9.x
2011-08-06 01:34:53 +08:00
pxb1988
e34921d052 bug fix
--HG--
branch : 0.0.9.x
2011-08-04 22:03:04 +08:00
pxb1988
ff86b91cf6 bug fix
--HG--
branch : 0.0.9.x
2011-08-04 00:24:03 +08:00
Panxiaobo
125c65b47c bug fix
--HG--
branch : 0.0.9.x
2011-08-03 23:35:18 +08:00
pxb1988
cbe7056c4a Pop a local if it has no read
--HG--
branch : 0.0.9.x
2011-07-31 16:46:20 +08:00
pxb1988
216c1a9700 恢复IR中NEW指令
--HG--
branch : 0.0.9.x
2011-07-31 16:32:42 +08:00
pxb1988
a14aeeafdd bug fix
--HG--
branch : 0.0.9.x
2011-07-31 15:39:37 +08:00
pxb1988
c84ea018a6 bug fix
--HG--
branch : 0.0.9.x
2011-07-31 13:45:01 +08:00
pxb1988
34121b24b5 bug fix
--HG--
branch : 0.0.9.x
2011-07-30 22:16:55 +08:00
pxb1988
afe41def4a bug fix
--HG--
branch : 0.0.9.x
2011-07-30 18:30:57 +08:00
Panxiaobo
76033dc695 完成ir到asm的转换
--HG--
branch : 0.0.9.x
2011-07-30 17:07:03 +08:00
Panxiaobo
b950869fff start work loacl type
--HG--
branch : 0.0.9.x
2011-07-04 23:25:29 +08:00
Panxiaobo
dd4b3a9a21 1.完善doc
--HG--
branch : 0.0.9.x
2011-07-04 19:33:26 +08:00
Panxiaobo
ebf12e9eb2 修改IR结构
完善localsplit,localremove

--HG--
branch : 0.0.9.x
2011-07-03 23:15:48 +08:00
Panxiaobo
346e1254b0 修改IR结构
--HG--
branch : 0.0.9.x
2011-07-03 17:57:54 +08:00
Panxiaobo
627987347a 完成到ir的转换
ls出错,需要反向遍历cfg

--HG--
branch : 0.0.9.x
2011-07-02 03:59:59 +08:00
Panxiaobo
df5f6d9afb 1.revert dex-translator to use reader 1.0
--HG--
branch : 0.0.9.x
2011-03-22 14:30:04 +08:00
Panxiaobo
07bed9b8ef 1.移除/合并指令
--HG--
branch : 0.0.9.x
2011-03-21 14:52:50 +08:00
Panxiaobo
fa1c82238e 1.add pom.xml
--HG--
branch : 0.0.9.x
2011-03-18 14:57:50 +08:00
Panxiaobo
50709946a2 cut into 3 projects
--HG--
branch : 0.0.9.x
2011-03-18 14:45:39 +08:00