# j6 Generate dex2jar for jdk6
dex2jar 2.0 change the compile jdk to version 1.7, but there still requirement for running dex2jar on jdk6. this project is try make dex2jar runnable on jdk6.
## jdk7 vs jdk6
### the major version of class file is changed
jdk6 can not run class file build for jdk7
### new package java.nio.file
jdk7 add the java.nio.file package for file processing, and dex2jar heavy based on it,
#### Related new Class
* java.nio.file.\*\*
#### Related new method
* File.toPath()
### try-with-resource
This is a good improvement for coding, i can' stop using it.
the AutoCloseable interface is used for close the resource, and addSuppressed/getSuppressed is Throwable is used for save the Exception during close resource.
#### Related new Class
* java.lang.AutoCloseable
#### Related new method
* Throwable.addSuppressed()
* Throwable.getSuppressed()
### other improvement
#### Related new Class
* java.nio.charset.StandardCharsets
## Solution
* For each missing class, create a new class with prefixed 'pxb.' in this project.
* For each missing method, create a static method in this project and use the d2j-jar-weave feature of dex2jar to static weave the code into the origianl jar.
```
r Ljava/io/File;.toPath=Lj6/Files;.toPath(Ljava/io/File;)Ljava/lang/Object;
r Ljava/lang/Throwable;.addSuppressed(Ljava/lang/Throwable;)=Lj6/Thro;.addSuppressed(Ljava/lang/Throwable;Ljava/lang/Throwable;)V;
r [Ljava/lang/Throwable;.getSuppressed()=Lj6/Thro;.getSuppressed(Ljava/lang/Throwable;)[Ljava/lang/Throwable;
```
* Replace the following reference in original jar by the tool jarjar
```
rule java.nio.file.** pxb.@0
rule java.nio.charset.StandardCharsets pxb.java.nio.charset.StandardCharsets
rule java.lang.AutoCloseable java.io.Closeable
```
* Modify the version of all .class file to java6
## Test
this the following VM have been tested (only the cmd d2j-dex2jar)
* Oracle jdk 1.6.0_45, on 64bit linux
* Dalvik VM on android 4.4.2 armv7a with '-Xmx512m' to increase memory
没有合适的资源?快使用搜索试试~ 我知道了~
安卓应用逆向工具 AndroidKiller-v1.3.1 与补丁
共457个文件
java:328个
smali:24个
bat:15个
需积分: 5 0 下载量 142 浏览量
2024-04-10
15:38:57
上传
评论
收藏 7.51MB ZIP 举报
温馨提示
安卓应用逆向工具 AndroidKiller_v1.3.1 与补丁
资源推荐
资源详情
资源评论
收起资源包目录
安卓应用逆向工具 AndroidKiller-v1.3.1 与补丁 (457个子文件)
dex-tools.bat 3KB
apktool.bat 2KB
InjectLog.bat 1KB
d2j-dex-recompute-checksum.bat 851B
d2j-class-version-switch.bat 849B
d2j-decrypt-string.bat 847B
d2j-asm-verify.bat 840B
d2j-dex2smali.bat 838B
d2j-baksmali.bat 838B
d2j-apk-sign.bat 836B
d2j_invoke.bat 379B
d2j_invoke.bat 326B
signapk.bat 90B
keyver.bat 50B
ap.bat 37B
bat_template 814B
rtl230.bpl 8.96MB
vcl230.bpl 1.71MB
APKKiller.bpl 969KB
APKKiller.ProcInfo.bpl 43KB
FakeEnc.bpl 19KB
ApkSign.cer 725B
简体中文_codetip.cfg 40KB
English_codetip.cfg 40KB
简体中文_permission.cfg 32KB
English_permission.cfg 32KB
searchhistory.cfg 5KB
codecomp.cfg 3KB
class.cfg 1KB
ymlkeywords.cfg 277B
logtaghistory.cfg 2B
adb链接模拟器.cmd 3KB
code 268B
code 109B
code 102B
code 54B
i_jetty.dex 866KB
i200.dex 658B
dex-tools 5KB
7za.dll 247KB
7zxa.dll 144KB
lua5.3.0.dll 76KB
AndroidKiller.exe 1.6MB
7za.exe 661KB
jad.exe 484KB
Jasmin.g 50KB
Smali.g4 11KB
build.gradle 2KB
build.gradle 972B
build.gradle 485B
build.gradle 322B
build.gradle 315B
build.gradle 185B
build.gradle 175B
build.gradle 87B
build.gradle 54B
build.gradle 31B
info 71B
info 71B
info 71B
codecolor.ini 504B
configs.ini 370B
externaltools.ini 310B
apktool.ini 231B
AndroidKiller.ini 130B
b-gen.j 3KB
c-gen.j 3KB
b-after.j 3KB
a-gen.j 3KB
c-after.j 2KB
b-before.j 999B
type.j 942B
a-after.j 637B
c-before.j 234B
a-before.j 122B
gradle-wrapper.jar 52KB
ap.jar 26KB
signapk.jar 7KB
keyver.jar 1KB
DexFileReader.java 69KB
Dex2IRConverter.java 47KB
J2IRConverter.java 41KB
DecryptStringCmd.java 41KB
IR2JConverter.java 39KB
TypeTransformer.java 38KB
JasminDumper.java 33KB
AntlrSmaliUtil.java 31KB
Dex2IrAdapter.java 31KB
InvocationWeaver.java 29KB
Dex2Asm.java 28KB
Base64.java 28KB
DexWeaver.java 27KB
CodeWriter.java 27KB
Op.java 23KB
FillArrayTransformer.java 23KB
UnSSATransformer.java 21KB
BaseCmd.java 19KB
BaksmaliCodeDumper.java 19KB
BaksmaliDumper.java 19KB
ArrayElementTransformer.java 17KB
共 457 条
- 1
- 2
- 3
- 4
- 5
资源评论
iscyan
- 粉丝: 2
- 资源: 6
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功