Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
keyescgm
jadx
提交
fdc87fe2
J
jadx
项目概览
keyescgm
/
jadx
与 Fork 源项目一致
从无法访问的项目Fork
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
J
jadx
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
fdc87fe2
编写于
11月 22, 2020
作者:
S
Skylot
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fix: update class set data to Android API 30
上级
7396c759
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
14 addition
and
8 deletion
+14
-8
jadx-cli/src/main/java/jadx/cli/clst/ConvertToClsSet.java
jadx-cli/src/main/java/jadx/cli/clst/ConvertToClsSet.java
+10
-2
jadx-core/build.gradle
jadx-core/build.gradle
+0
-2
jadx-core/clsp-data/android-29-clst.jar
jadx-core/clsp-data/android-29-clst.jar
+0
-0
jadx-core/src/main/java/jadx/core/clsp/ClsSet.java
jadx-core/src/main/java/jadx/core/clsp/ClsSet.java
+4
-4
jadx-core/src/main/resources/clst/core.jcst
jadx-core/src/main/resources/clst/core.jcst
+0
-0
未找到文件。
jadx-cli/src/main/java/jadx/cli/clst/ConvertToClsSet.java
浏览文件 @
fdc87fe2
package
jadx.cli.clst
;
import
java.io.IOException
;
import
java.nio.file.Path
;
import
java.nio.file.Paths
;
import
java.util.ArrayList
;
...
...
@@ -17,7 +16,9 @@ import jadx.api.plugins.JadxPluginManager;
import
jadx.api.plugins.input.JadxInputPlugin
;
import
jadx.api.plugins.input.data.ILoadResult
;
import
jadx.core.clsp.ClsSet
;
import
jadx.core.dex.nodes.ClassNode
;
import
jadx.core.dex.nodes.RootNode
;
import
jadx.core.dex.visitors.SignatureProcessor
;
/**
* Utility class for convert dex or jar to jadx classes set (.jcst)
...
...
@@ -29,7 +30,7 @@ public class ConvertToClsSet {
LOG
.
info
(
"<output .jcst or .jar file> <several input dex or jar files> "
);
}
public
static
void
main
(
String
[]
args
)
throws
IO
Exception
{
public
static
void
main
(
String
[]
args
)
throws
Exception
{
if
(
args
.
length
<
2
)
{
usage
();
System
.
exit
(
1
);
...
...
@@ -48,6 +49,13 @@ public class ConvertToClsSet {
RootNode
root
=
new
RootNode
(
jadxArgs
);
root
.
loadClasses
(
loadedInputs
);
// from pre-decompilation stage run only SignatureProcessor
SignatureProcessor
signatureProcessor
=
new
SignatureProcessor
();
signatureProcessor
.
init
(
root
);
for
(
ClassNode
classNode
:
root
.
getClasses
())
{
signatureProcessor
.
visit
(
classNode
);
}
ClsSet
set
=
new
ClsSet
(
root
);
set
.
loadFrom
(
root
);
set
.
save
(
output
);
...
...
jadx-core/build.gradle
浏览文件 @
fdc87fe2
...
...
@@ -3,8 +3,6 @@ plugins {
}
dependencies
{
runtimeOnly
files
(
'clsp-data/android-29-clst.jar'
)
api
(
project
(
':jadx-plugins:jadx-plugins-api'
))
implementation
'com.google.code.gson:gson:2.8.6'
...
...
jadx-core/clsp-data/android-29-clst.jar
已删除
100644 → 0
浏览文件 @
7396c759
文件已删除
jadx-core/src/main/java/jadx/core/clsp/ClsSet.java
浏览文件 @
fdc87fe2
...
...
@@ -49,7 +49,7 @@ public class ClsSet {
private
static
final
String
CLST_EXTENSION
=
".jcst"
;
private
static
final
String
CLST_FILENAME
=
"core"
+
CLST_EXTENSION
;
private
static
final
String
CLST_P
KG_PATH
=
ClsSet
.
class
.
getPackage
().
getName
().
replace
(
'.'
,
'/'
)
;
private
static
final
String
CLST_P
ATH
=
"/clst/"
+
CLST_FILENAME
;
private
static
final
String
JADX_CLS_SET_HEADER
=
"jadx-cst"
;
private
static
final
int
VERSION
=
3
;
...
...
@@ -78,9 +78,9 @@ public class ClsSet {
public
void
loadFromClstFile
()
throws
IOException
,
DecodeException
{
long
startTime
=
System
.
currentTimeMillis
();
try
(
InputStream
input
=
getClass
().
getResourceAsStream
(
CLST_FILENAME
))
{
try
(
InputStream
input
=
ClsSet
.
class
.
getResourceAsStream
(
CLST_PATH
))
{
if
(
input
==
null
)
{
throw
new
JadxRuntimeException
(
"Can't load classpath file: "
+
CLST_
FILENAME
);
throw
new
JadxRuntimeException
(
"Can't load classpath file: "
+
CLST_
PATH
);
}
load
(
input
);
}
...
...
@@ -197,7 +197,7 @@ public class ClsSet {
try
(
ZipOutputStream
out
=
new
ZipOutputStream
(
Files
.
newOutputStream
(
path
));
ZipInputStream
in
=
new
ZipInputStream
(
Files
.
newInputStream
(
temp
)))
{
String
clst
=
CLST_P
KG_PATH
+
'/'
+
CLST_FILENAME
;
String
clst
=
CLST_P
ATH
;
boolean
clstReplaced
=
false
;
ZipEntry
entry
=
in
.
getNextEntry
();
while
(
entry
!=
null
)
{
...
...
jadx-core/src/main/resources/clst/core.jcst
0 → 100644
浏览文件 @
fdc87fe2
文件已添加
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录