Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
极致猎手
jadx
提交
1f21760b
J
jadx
项目概览
极致猎手
/
jadx
与 Fork 源项目一致
从无法访问的项目Fork
通知
1
Star
1
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
1
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
J
jadx
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
1
Issue
1
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
1f21760b
编写于
7月 27, 2013
作者:
S
Skylot
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
rename jadx-cli, update build scripts
上级
67eb55a9
变更
7
隐藏空白更改
内联
并排
Showing
7 changed file
with
19 addition
and
27 deletion
+19
-27
README.md
README.md
+4
-5
build.gradle
build.gradle
+6
-4
jadx-cli/build.gradle
jadx-cli/build.gradle
+3
-5
jadx-cli/src/main/java/jadx/cli/JadxArgs.java
jadx-cli/src/main/java/jadx/cli/JadxArgs.java
+6
-1
jadx-cli/src/main/java/jadx/cli/JadxCLI.java
jadx-cli/src/main/java/jadx/cli/JadxCLI.java
+0
-4
jadx-gui/build.gradle
jadx-gui/build.gradle
+0
-3
jadx-gui/src/main/java/jadx/gui/utils/OverlayIcon.java
jadx-gui/src/main/java/jadx/gui/utils/OverlayIcon.java
+0
-5
未找到文件。
README.md
浏览文件 @
1f21760b
...
@@ -16,7 +16,7 @@ Latest version available at
...
@@ -16,7 +16,7 @@ Latest version available at
git clone https://github.com/skylot/jadx.git
git clone https://github.com/skylot/jadx.git
cd jadx
cd jadx
./gradlew clean build
pack
./gradlew clean build
(on Windows, use
`gradlew.bat`
instead of
`./gradlew`
)
(on Windows, use
`gradlew.bat`
instead of
`./gradlew`
)
...
@@ -28,15 +28,14 @@ and also packed to `build/jadx-<version>.zip`
...
@@ -28,15 +28,14 @@ and also packed to `build/jadx-<version>.zip`
Run
**jadx**
on itself:
Run
**jadx**
on itself:
cd build/jadx/
cd build/jadx/
bin/jadx-cli -d out lib/jadx-core-*.jar
bin/jadx -d out lib/jadx-core-*.jar
or
#or
bin/jadx-gui lib/jadx-core-*.jar
bin/jadx-gui lib/jadx-core-*.jar
### Usage
### Usage
```
```
jadx
[options] <input files
> (.dex, .apk or .jar)
jadx
[-gui] [options] <input file
> (.dex, .apk or .jar)
options:
options:
-d, --output-dir - output directory
-d, --output-dir - output directory
-j, --threads-count - processing threads count
-j, --threads-count - processing threads count
...
...
build.gradle
浏览文件 @
1f21760b
apply
plugin:
'idea'
ext
.
jadxVersion
=
file
(
'version'
).
readLines
().
get
(
0
)
ext
.
jadxVersion
=
file
(
'version'
).
readLines
().
get
(
0
)
subprojects
{
subprojects
{
...
@@ -17,7 +15,7 @@ subprojects {
...
@@ -17,7 +15,7 @@ subprojects {
}
}
manifest
{
manifest
{
mainAttributes
(
"jadx-version"
:
jadxVersion
)
mainAttributes
(
'jadx-version'
:
jadxVersion
)
}
}
dependencies
{
dependencies
{
...
@@ -31,7 +29,7 @@ subprojects {
...
@@ -31,7 +29,7 @@ subprojects {
}
}
}
}
task
copyArtifacts
(
type:
Sync
,
dependsOn:
[
"jadx-cli:installApp"
,
"jadx-gui:installApp"
])
{
task
copyArtifacts
(
type:
Sync
,
dependsOn:
[
'jadx-cli:installApp'
,
'jadx-gui:installApp'
])
{
destinationDir
file
(
"$buildDir/jadx"
)
destinationDir
file
(
"$buildDir/jadx"
)
[
'jadx-cli'
,
'jadx-gui'
].
each
{
[
'jadx-cli'
,
'jadx-gui'
].
each
{
from
tasks
.
getByPath
(
":${it}:installApp"
).
destinationDir
from
tasks
.
getByPath
(
":${it}:installApp"
).
destinationDir
...
@@ -44,6 +42,10 @@ task pack (type: Zip, dependsOn: copyArtifacts) {
...
@@ -44,6 +42,10 @@ task pack (type: Zip, dependsOn: copyArtifacts) {
from
copyArtifacts
.
destinationDir
from
copyArtifacts
.
destinationDir
}
}
task
build
(
dependsOn:
pack
)
{
description
=
'Build jadx distribution zip'
}
task
clean
(
type:
Delete
)
{
task
clean
(
type:
Delete
)
{
delete
buildDir
delete
buildDir
}
}
...
...
jadx-cli/build.gradle
浏览文件 @
1f21760b
apply
plugin:
'application'
apply
plugin:
'application'
mainClassName
=
"jadx.cli.JadxCLI"
mainClassName
=
'jadx.cli.JadxCLI'
applicationName
=
'jadx'
dependencies
{
dependencies
{
compile
(
project
(
":jadx-core"
))
compile
(
project
(
':jadx-core'
))
compile
'com.beust:jcommander:1.30'
compile
'com.beust:jcommander:1.30'
}
}
build
.
dependsOn
distZip
build
.
dependsOn
installApp
startScripts
{
startScripts
{
doLast
{
doLast
{
// increase default max heap size
// increase default max heap size
...
...
jadx-cli/src/main/java/jadx/cli/JadxArgs.java
浏览文件 @
1f21760b
...
@@ -80,6 +80,7 @@ public class JadxArgs implements IJadxArgs {
...
@@ -80,6 +80,7 @@ public class JadxArgs implements IJadxArgs {
processArgs
();
processArgs
();
}
catch
(
JadxException
e
)
{
}
catch
(
JadxException
e
)
{
LOG
.
error
(
e
.
getMessage
());
LOG
.
error
(
e
.
getMessage
());
printUsage
();
System
.
exit
(
1
);
System
.
exit
(
1
);
}
}
}
}
...
@@ -103,10 +104,13 @@ public class JadxArgs implements IJadxArgs {
...
@@ -103,10 +104,13 @@ public class JadxArgs implements IJadxArgs {
if
(
input
.
isEmpty
())
{
if
(
input
.
isEmpty
())
{
if
(
inputRequired
)
if
(
inputRequired
)
throw
new
JadxException
(
"Please specify
at least one
input file"
);
throw
new
JadxException
(
"Please specify input file"
);
else
else
return
;
return
;
}
}
if
(
input
.
size
()
>
1
)
{
throw
new
JadxException
(
"Only one input file is supported"
);
}
if
(
outDirName
==
null
)
{
if
(
outDirName
==
null
)
{
File
file
=
new
File
(
files
.
get
(
0
));
File
file
=
new
File
(
files
.
get
(
0
));
...
@@ -129,6 +133,7 @@ public class JadxArgs implements IJadxArgs {
...
@@ -129,6 +133,7 @@ public class JadxArgs implements IJadxArgs {
JCommander
jc
=
new
JCommander
(
this
);
JCommander
jc
=
new
JCommander
(
this
);
// print usage in not sorted fields order (by default its sorted by description)
// print usage in not sorted fields order (by default its sorted by description)
PrintStream
out
=
System
.
out
;
PrintStream
out
=
System
.
out
;
out
.
println
();
out
.
println
(
"jadx - dex to java decompiler, version: "
+
Consts
.
JADX_VERSION
);
out
.
println
(
"jadx - dex to java decompiler, version: "
+
Consts
.
JADX_VERSION
);
out
.
println
();
out
.
println
();
out
.
println
(
"usage: jadx [options] "
+
jc
.
getMainParameterDescription
());
out
.
println
(
"usage: jadx [options] "
+
jc
.
getMainParameterDescription
());
...
...
jadx-cli/src/main/java/jadx/cli/JadxCLI.java
浏览文件 @
1f21760b
...
@@ -2,11 +2,7 @@ package jadx.cli;
...
@@ -2,11 +2,7 @@ package jadx.cli;
import
jadx.api.Decompiler
;
import
jadx.api.Decompiler
;
import
org.slf4j.Logger
;
import
org.slf4j.LoggerFactory
;
public
class
JadxCLI
{
public
class
JadxCLI
{
private
static
final
Logger
LOG
=
LoggerFactory
.
getLogger
(
JadxCLI
.
class
);
public
static
void
main
(
String
[]
args
)
{
public
static
void
main
(
String
[]
args
)
{
JadxArgs
jadxArgs
=
new
JadxArgs
(
args
,
true
);
JadxArgs
jadxArgs
=
new
JadxArgs
(
args
,
true
);
...
...
jadx-gui/build.gradle
浏览文件 @
1f21760b
...
@@ -8,9 +8,6 @@ dependencies {
...
@@ -8,9 +8,6 @@ dependencies {
compile
'com.fifesoft:rsyntaxtextarea:2.0.7'
compile
'com.fifesoft:rsyntaxtextarea:2.0.7'
}
}
build
.
dependsOn
distZip
build
.
dependsOn
installApp
startScripts
{
startScripts
{
doLast
{
doLast
{
// increase default max heap size
// increase default max heap size
...
...
jadx-gui/src/main/java/jadx/gui/utils/OverlayIcon.java
浏览文件 @
1f21760b
...
@@ -4,7 +4,6 @@ import javax.swing.Icon;
...
@@ -4,7 +4,6 @@ import javax.swing.Icon;
import
java.awt.Component
;
import
java.awt.Component
;
import
java.awt.Graphics
;
import
java.awt.Graphics
;
import
java.util.ArrayList
;
import
java.util.ArrayList
;
import
java.util.Collection
;
import
java.util.List
;
import
java.util.List
;
public
class
OverlayIcon
implements
Icon
{
public
class
OverlayIcon
implements
Icon
{
...
@@ -48,10 +47,6 @@ public class OverlayIcon implements Icon {
...
@@ -48,10 +47,6 @@ public class OverlayIcon implements Icon {
icons
.
add
(
icon
);
icons
.
add
(
icon
);
}
}
public
void
addAll
(
Collection
<
Icon
>
icons
)
{
icons
.
addAll
(
icons
);
}
public
List
<
Icon
>
getIcons
()
{
public
List
<
Icon
>
getIcons
()
{
return
icons
;
return
icons
;
}
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录