Commit Graph

139 Commits

Author SHA1 Message Date
Nico Mexis
a3f93f5e2c Apply miscellaneous fixes
Most of these are from some fork

# Conflicts:
#	build.gradle
#	d2j-j6/build.gradle
#	d2j-jasmin/build.gradle
#	d2j-smali/build.gradle
#	d2j-smali/src/test/java/a/SmaliTest.java
#	dex-reader-api/src/main/java/com/googlecode/d2j/DexConstants.java
#	dex-reader/build.gradle
#	dex-reader/src/main/java/com/googlecode/d2j/reader/DexFileReader.java
#	dex-tools/build.gradle
#	dex-tools/src/main/java/com/googlecode/d2j/tools/jar/InitOut.java
#	dex-tools/src/main/java/com/googlecode/d2j/tools/jar/InvocationWeaver.java
#	dex-translator/build.gradle
#	dex-translator/src/main/java/com/googlecode/d2j/dex/Dex2Asm.java
#	dex-translator/src/main/java/org/objectweb/asm/AsmBridge.java
#	gradle/wrapper/gradle-wrapper.properties
2023-09-01 14:02:38 +08:00
Nico Mexis
7fafa42fa6 Add serialVersionUIDs
# Conflicts:
#	dex-reader/src/main/java/com/googlecode/d2j/reader/DexFileReader.java
2023-09-01 12:21:22 +08:00
Bob Pan
482af4a26f
typo similar with ffa0574dff (#596) 2023-08-31 20:42:39 +08:00
Bob Pan
2dd92907c5
Fix issues with J2IRConverter (#595)
* Fix issues with J2IRConverter

cherry-pick 09273cdb36

---------

Co-authored-by: Nico Mexis <nico.mexis@kabelmail.de>
2023-08-31 20:39:34 +08:00
Bob Pan
aebd9ebd05 support dex 039 and 040 2023-08-31 12:54:53 +08:00
Bob Pan
b004967677 fix ClassCastException
NewTransformer#findInvokeExpr attempts to cast InvokePolymorphicExpr to InvokeExpr under certain inputs, which causes a ClassCastException.

this patch is similar with

9c6cde4f59
9c0db1d636
2021-10-31 03:32:55 +08:00
Nico Mexis
441d045797 Fix grammar & typo 2021-10-31 02:33:21 +08:00
Nico Mexis
121f727d37 Fix NPE
(cherry picked from commit 9335d9d945)
2021-10-31 02:09:48 +08:00
Nico Mexis
c577db0da3 cherry-pick form
85e41523ee
ffa0574dff
56e6c8602c
2021-10-31 01:38:00 +08:00
Bob Pan
80a81b317f the exception handler is dead cause NPE in unssa
fix https://github.com/pxb1988/dex2jar/issues/477
2021-10-30 18:47:53 +08:00
Bob Pan
d7a86110ba fix crash on pattern empty-try-catch-with-goto-head 2019-09-05 15:21:28 +08:00
Bob Pan
6e085153cf insert a Nop between two LabelStmt if both have phis
fixes https://github.com/pxb1988/dex2jar/issues/186
2018-06-06 17:49:28 +08:00
Bob Pan
eca2c98278 fix test error 2018-04-02 18:26:59 +08:00
Bob Pan
ffd6e395b8 fix build error 2018-04-02 18:19:23 +08:00
Bob Pan
24b0643dd5 remove maven pom.xml 2018-04-02 16:44:36 +08:00
Bob Pan
e3ff06d9d8 sort locals in RemoveConstantFromSSA 2018-04-02 10:37:08 +08:00
Bob Pan
373446a00e change to super OnUseCallBack 2018-04-02 10:36:37 +08:00
Bob Pan
3192470689 special allow merge of Z and I 2018-04-02 10:36:08 +08:00
Bob Pan
3e93d2021f d2j-smali support polymorphic/custom 2017-08-02 16:32:20 +08:00
Bob Pan
bac5d542a6 support translate INVOKE_POLYMORPHIC 2017-07-26 02:04:15 +08:00
Bob Pan
6b08884da9 'dex 038' support 2017-07-16 00:28:05 +08:00
Bob Pan
14ecdee422 [type] merge all array values
fix https://github.com/pxb1988/dex2jar/issues/101
2017-01-18 13:27:48 +08:00
Bob Pan
d6383b7d1d [type] minor improve of type transformer 2016-03-04 21:05:33 +08:00
Bob Pan
8e58b0eb40 fix bug on MultiArrayTransformer 2016-03-04 20:00:17 +08:00
Bob Pan
0d48e49275 fix type detect on arrays
fix https://github.com/pxb1988/dex2jar/issues/28
2016-03-04 19:55:13 +08:00
Bob Pan
f548b03cdc disable test case 2016-01-18 19:03:02 +08:00
Bob Pan
a21374153a Fix issue 1 on bitbucket
https://bitbucket.org/pxb1988/dex2jar/issues/1/javalangruntimeexception-can-not-merge-i
return int when merge int and boolean
2016-01-06 12:58:00 +08:00
Bob Pan
83ea8a24dc Merge
--HG--
branch : 2.x
2015-12-03 10:22:31 +08:00
Bob Pan
f8ad4dc98e replace to 'throw new NegativeArraySizeException()' when init a nagative size array
--HG--
branch : 2.x
2015-12-02 22:44:08 +08:00
Bob Pan
60599ef4e4 fix crash on negative arraysize, https://bitbucket.org/pxb1988/dex2jar/issues/2/decompiler-error
--HG--
branch : 2.x
2015-12-02 21:57:03 +08:00
Bob Pan
7abe3ef333 transform Array.newInstance to new-multi-array
--HG--
branch : 2.x
2015-11-08 03:25:20 +08:00
Bob Pan
45d7036a97 fix
#4 register maybe used before calling its constructor

https://github.com/pxb1988/dex2jar/issues/4

--HG--
branch : 2.x
2015-05-17 18:12:39 +08:00
Bob Pan
d4746863a9 support divide by zeor
--HG--
branch : 2.x
2015-05-02 14:17:39 +08:00
Bob Pan
a91651cec7 fix exception handler on dex2ir
fix other bugs

--HG--
branch : 2.x
2015-03-17 22:51:01 +08:00
Bob Pan
b13f6f284f improve j2ir
--HG--
branch : 2.x
2015-02-19 01:04:14 +08:00
Bob Pan
fd927793a7 correct array type display is ir
--HG--
branch : 2.x
2014-12-07 02:16:13 +08:00
Bob Pan
e742563077 split DIV to Idiv/Ldiv/Fdiv/Ddiv
Fixes issue 230

--HG--
branch : 2.x
2014-10-08 21:31:25 +08:00
Bob Pan
ac831e3f8f start working 2.1
--HG--
branch : 2.x
2014-09-30 10:08:32 +08:00
Bob Pan
35168af753 disable result check due to type strategy change
--HG--
branch : 2.x
2014-08-15 18:40:13 +08:00
Bob Pan
f8df89ef9b type as int if the type is ZI
--HG--
branch : 2.x
2014-08-13 22:18:23 +08:00
Bob Pan
d1f14f8d68 remove NEW if possible
--HG--
branch : 2.x
2014-08-07 01:20:56 +08:00
Bob Pan
fa54e82162 fix compiler warnings
--HG--
branch : 2.x
2014-08-06 19:48:43 +08:00
Bob Pan
6469f08a74 jimple THROW
--HG--
branch : 2.x
2014-08-06 00:56:41 +08:00
Bob Pan
092b7b48ba merge code 2.x
--HG--
branch : 2.x
2014-07-21 22:11:55 +08:00
Bob Pan
6ad1e44d59 fix issue in ExceptionHandlerCurrectTransformer, add ExceptionRef if possible
--HG--
branch : 0.0.9.x
2013-07-05 18:56:59 +08:00
Panxiaobo
d3312344fb clean exec mode from file
--HG--
branch : 0.0.9.x
2013-06-05 19:10:04 +08:00
bob@bob-pc
ae5cd2f422 start work 0.0.9.14
--HG--
branch : 0.0.9.x
2013-02-03 23:11:34 +08:00
Bob Pan
5e261a4515 Fixes issue 154
--HG--
branch : 0.0.9.x
2012-12-31 18:26:46 +08:00
Panxiaobo
dda6b0bb50 Update issue 152
Status: Fixed
use iterator instead of recursion in BaseLiveAnalyze

--HG--
branch : 0.0.9.x
2012-12-13 13:22:10 +08:00
Panxiaobo
4f349ac68c not clean LabelStmt used by LocalVar
--HG--
branch : 0.0.9.x
2012-12-04 01:12:01 +08:00